-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Fix/59945 update api calls for expensify cards #59996
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 🚀
|
// eslint-disable-next-line rulesdir/no-multiple-api-calls | ||
API.write( | ||
WRITE_COMMANDS.CREATE_ADMIN_ISSUED_VIRTUAL_CARD, | ||
{...parameters, domainAccountID}, | ||
{...parameters}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop