only show the button with the current card state#60782
only show the button with the current card state#60782mountiny merged 3 commits intoExpensify:mainfrom
Conversation
|
@hungvu193 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] |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2025-04-24.at.15.04.02.movAndroid: mWeb ChromeScreen.Recording.2025-04-24.at.15.08.26.moviOS: NativeScreen.Recording.2025-04-24.at.15.01.51.moviOS: mWeb SafariScreen.Recording.2025-04-24.at.14.52.36.movMacOS: Chrome / SafariChrome2.movChrome1.movChrome3.movMacOS: DesktopScreen.Recording.2025-04-24.at.14.42.05.mov |
|
Hmm, Get Physical Card validation step never seems to work, even though the API returned successfully. I need to update Onyx manually to test Screen.Recording.2025-04-24.at.14.55.51.mov |
|
Is that somethings we noticed before @mountiny ? |
|
@hungvu193 that is on the testing feed right? I think that might be because we do not allow you to ship the card with the testing bank account actually |
I see, yeah I was using testing feed. |
|
@nkdengineer @hungvu193 this page is really confusing to me, this is used to show a detail of a single card, but we iterate over all physical cards, that just feels wrong App/src/pages/settings/Wallet/ExpensifyCardPage.tsx Lines 301 to 321 in 941fc1e I assume this is because before workspace feeds, there was option to have only one physical card Can you update this section to also only render per the physical card you are seeing because its possible user has multiple physical expensify cards now |
|
Lets do that in another PR to deliver this faster though |
@mountiny This logic was added here. I think we should ask the author to verify the behavior. |
|
@mountiny Wait a bit I just checked we need to change the logic a bit. |
|
@mountiny Updated logic to navigate to activate with the current card. |
Signed-off-by: nkdengineer <nkdengineer@outlook.com>
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/mountiny in version: 9.1.33-0 🚀
|
|
Tested and works as expected. Thank you! |
|
Hm, actually some weirdness i noticed when also testing #60866. When I initially issued the second card, it had the Which is expected? Should you have to order additional physical cards issued once we have your address on file, or should we just ship them? @mountiny mentioned the latter to me in Slack, but I see the former above in the QA section. |
|
🚀 Deployed to staging by https://github.com/mountiny in version: 9.1.35-1 🚀
|
|
🚀 Deployed to staging by https://github.com/mountiny in version: 9.1.36-3 🚀
|
|
🚀 Deployed to staging by https://github.com/mountiny in version: 9.1.37-1 🚀
|
|
🚀 Deployed to production by https://github.com/thienlnam in version: 9.1.37-3 🚀
|
Explanation of Change
only show the button with the current card state
Fixed Issues
$ #60717
PROPOSAL: #60717 (comment)
Tests
ExpensifyCardPageadd this useEffect if you can't confirm address to get physical cards,cardIDis the first cardOffline tests
None
QA Steps
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
Screen.Recording.2025-04-24.at.12.09.46.mov
Android: mWeb Chrome
Screen.Recording.2025-04-24.at.12.04.38.mov
iOS: Native
Screen.Recording.2025-04-24.at.12.08.35.mov
iOS: mWeb Safari
Screen.Recording.2025-04-24.at.12.07.08.mov
MacOS: Chrome / Safari
Screen.Recording.2025-04-24.at.12.01.20.mov
MacOS: Desktop
Screen.Recording.2025-04-24.at.12.12.13.mov