Fix/59945 update api calls for expensify cards#59996
Conversation
|
@DylanDylann Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
@DylanDylann I also fixed 2 issues - more in the PR description. |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2025-04-17.at.14.34.44.movAndroid: mWeb ChromeScreen.Recording.2025-04-17.at.14.32.14.moviOS: NativeScreen.Recording.2025-04-17.at.14.35.17.moviOS: mWeb SafariScreen.Recording.2025-04-17.at.14.30.58.movMacOS: Chrome / SafariScreen.Recording.2025-04-17.at.14.28.39.movMacOS: DesktopScreen.Recording.2025-04-17.at.14.36.47.mov |
|
Discovering a new bug while reviewing this PR (not related to this change) In mobile, after entering the correct magic code, the App navigates to the issue new card page before coming back to the card list page I get this bug on MWeb Chrome and IOS native Screen.Recording.2025-04-17.at.14.32.14.movScreen.Recording.2025-04-17.at.14.35.17.mov |
|
@DylanDylann can you please check if the issue is already reported? If not I think it's better to create a new one, as it's out of scope of this PR |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
…i-calls-for-expensify-cards Fix/59945 update api calls for expensify cards (cherry picked from commit e730f5b) (CP triggered by puneetlath)
|
🚀 Cherry-picked to staging by https://github.com/puneetlath in version: 9.1.29-5 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by https://github.com/marcaaron in version: 9.1.29-10 🚀
|
| API.write( | ||
| WRITE_COMMANDS.CREATE_ADMIN_ISSUED_VIRTUAL_CARD, | ||
| {...parameters, domainAccountID}, | ||
| {...parameters}, |
There was a problem hiding this comment.
Coming from: #61051. We should pass policyID here
Explanation of Change
This PR changes the params sent to create a new virtual and physical Expensify Card to make it compatible with domain cards.
I also fixed 2 problems that I've discovered during working on this:
Fixed Issues
$ #59945
PROPOSAL: -
Tests
PREREQUISITES: domain cards enabled on a policy
Additional steps:
Expensify Card enabled, no account added as a payment account - Empty Card State
Expensify Card enabled, account added - empty card list
Expensify Card enabled, cards issued - card list with cards
for each case check if the loader is displayed if the data is loading (you can log out before checking each case to verify) and no other. screen is glitching before the proper one appears
Verify that no errors appear in the JS console
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop