fix: broken card feed missing currentStep causing infinite loading#79291
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
chrispader
left a comment
There was a problem hiding this comment.
LGTM! Thanks @ikevin127 for the quick workaround fix!
|
🚧 @carlosmiceli has triggered a test Expensify/App build. You can view the workflow run here. |
This comment has been minimized.
This comment has been minimized.
|
🚧 @carlosmiceli 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! 🧪🧪
|
…7-brokenCardFeed
|
@Julesssss 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: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 88990a6b9c
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
fix: broken card feed missing currentStep causing infinite loading (cherry picked from commit 8ef22e0) (cherry-picked to staging by roryabraham)
|
🚀 Cherry-picked to staging by https://github.com/roryabraham in version: 9.2.99-7 🚀
|
|
🚀 Deployed to production by https://github.com/francoisl in version: 9.2.99-8 🚀
|
|
🚀 Cherry-picked to staging by https://github.com/roryabraham in version: 9.3.0-0 🚀
|
|
🚀 Deployed to production by https://github.com/francoisl in version: 9.3.0-8 🚀
|
Explanation of Change
The issue was caused by missing
currentStepinitialization in the OnyxASSIGN_CARDkey when navigating to theBrokenCardFeedConnectionPagedue to BYOC implementation - commite5379f72d29("re-arrange assign card flow") addingBrokenCardFeedConnectionPage.tsx.Problem: When
currentStepisundefined(not set), the default case is hit, showingLoadingPageindefinitely.Contrast with Working Flow: In the normal assign card flow via
useAssignCard.ts- the working flow first setscurrentStep, then navigates. The broken flow navigates without settingcurrentStep.Proposed Changes
WorkspaceCompanyCardsTableHeaderButtons.tsxsetAssignCardStepAndDatafrom@userActions/CompanyCardsgetPlaidInstitutionIdfrom@libs/CardUtilsopenBankConnectionfunction:setAssignCardStepAndData({currentStep: initialStep})to seed Onyx data@carlosmiceli
Fixed Issues
https://github.com/Expensify/Expensify/issues/570675
PROPOSAL:
Tests
Card feed connection is broken. Please log into your bank...).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
Screen.Recording.2026-01-10.at.19.11.29.mov