Repository navigation
Remove useOnyx loading status reads from wallet card, personal card, Travel CVV and transaction import pages - #107417
Conversation
… CVV and transaction import pages
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
|
@nkdengineer I wasn't able to test Travel CVV cause I don't have Expensify Travel card. Maybe you have it? |
|
@nkdengineer 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] |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
No product review needed. |
I didn't have. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2026-11-20.at.22.01.50.movAndroid: mWeb ChromeScreen.Recording.2026-11-20.at.21.59.57.moviOS: HybridAppScreen.Recording.2026-11-20.at.21.58.53.moviOS: mWeb SafariScreen.Recording.2026-11-20.at.22.00.32.movMacOS: Chrome / SafariScreen.Recording.2026-11-20.at.21.58.32.mov |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 mountiny 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! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/mountiny in version: 9.5.53-0 🚀
|
|
No help site update needed — this PR only removes redundant loading-state checks, without adding features, changing documented workflows, or making existing article instructions incorrect. |
|
🚀 Deployed to production by https://github.com/arosiclair in version: 9.5.53-3 🚀
Bundle Size Analysis (Sentry): |
Explanation of Change
This continues the Settings cleanup from #107290. This part covers the Wallet pages: the Expensify card and add to digital wallet pages, the personal card pages, Travel CVV and the transaction import pages.
After startup,
useOnyxonly returnsloadingfor a key with nothing cached while anOnyx.mergefor it is pending, and in that state the value isundefined. None of these pages hit that:ADD_NEW_PERSONAL_CARD, and nothing writes it before navigating there. The first step change callsclearAddNewPersonalCardFlow, which writes the key withOnyx.setbefore the step is merged, so the key is already cached when the merge runs.IMPORTED_SPREADSHEET.ImportSpreadsheetwrites it withOnyx.setand navigates only after that resolves, so the value is already cached when the page renders. The import settings are merged earlier in the flow, and the spreadsheet upload page reads the key only when a statement is picked.CARD_LIST,ACCOUNT,NVP_PRIVATE_LOCK_ACCOUNT_DETAILS,NVP_EXPENSIFY_COMPANY_CARDS_CUSTOM_NAMESandNVP_SAVED_CSV_COLUMN_LAYOUT_LIST.So I removed the related loading checks, the metadata variables and the loaders.
Fixed Issues
$ #104583
PROPOSAL:
Tests
Expensify card:
Add personal card:
Personal card:
Import transactions:
Travel CVV:
Offline tests
Same, as in Tests section
QA Steps
Same, as in Tests section
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)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.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.mp4
iOS: Native
ios.mov
MacOS: Chrome / Safari
web.mp4