Repository navigation
[CP Stg] Fix not here page after deleting imported card - #91012
Conversation
Navigate to the wallet settings route before optimistically removing the card from Onyx, matching the header back button behavior. Co-authored-by: Cursor <cursoragent@cursor.com>
Run deletePersonalCard in goBack's afterTransition so the card stays in Onyx during the dismiss animation and NotFoundPage does not flash. Co-authored-by: Cursor <cursoragent@cursor.com>
|
@Eskalifer1 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] |
|
Hi @roryabraham, do you need review here?) |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
|
🚧 @deetergp has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
…-not-found Fix not here page after deleting imported card (cherry picked from commit c076e15) (cherry-picked to staging by roryabraham)
|
🚀 Cherry-picked to staging by https://github.com/roryabraham in version: 9.3.75-10 🚀
Bundle Size Analysis (Sentry): |
|
No help site changes are required for this PR. This is a navigation bug fix that changes the order of |
|
🚀 Cherry-picked to staging by https://github.com/roryabraham in version: 9.3.75-14 🚀
Bundle Size Analysis (Sentry): |
|
No help site changes are needed for this PR. This is a navigation timing fix — it changes when |
|
🚀 Deployed to production by https://github.com/roryabraham in version: 9.3.75-14 🚀
Bundle Size Analysis (Sentry): |
|
🚀 Cherry-picked to staging by https://github.com/roryabraham in version: 9.3.76-0 🚀
|
|
🚀 Deployed to production by https://github.com/roryabraham in version: 9.3.77-3 🚀
|
Explanation of Change
When deleting an imported personal card,
confirmDeleteCardcalledNavigation.goBack()without a target route. On wide layouts where the RHP stays mounted, the optimisticdeletePersonalCardupdate removed the card from Onyx before navigation completed, causingPersonalCardDetailsPageto renderNotFoundPage.This change navigates explicitly to
ROUTES.SETTINGS_WALLETbefore deleting the card, matching the existing header back button behavior.Fixed Issues
$ #90848
PROPOSAL: #90848 (comment)
Tests
Offline tests
N/A
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)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
MacOS: Chrome / Safari
fix-90848-wallet-delete-card.webm
Made with Cursor