Fix : Cards - In let's double check everything page, tapping device back button directs to cards page#73122
Fix : Cards - In let's double check everything page, tapping device back button directs to cards page#73122M00rish wants to merge 43 commits intoExpensify:mainfrom
Conversation
… on step change in onyx
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
@M00rish can you please check the ESLint and tests before we move forward with the adhoc build? |
|
fixed but main is failing as well. |
heyjennahay
left a comment
There was a problem hiding this comment.
No concern with product change
|
👋 @Ollyws can you review please, there some activity on this logic these days, if conflicts appear again, will resolve after you review thanks! |
|
@Ollyws I’m interested in taking this over. Will try to start reviewing tomorrow. |
|
Reviewing... |
|
@M00rish could you please resolve the conflicts? Thanks! |
|
sure will resolve this today |
|
@M00rish the navigation flow is still broken on mWeb. The screen transitions from left to right when using the device back button, and from right to left when using the app back button. The steps are also not in sync — sometimes it navigates to the next step instead of the previous one when using the device back button, and in worse cases it skips multiple steps when going back. Also, @MarioExpensify, I want to confirm that we’re okay with the new UX behavior where screens transition left to right (or vice versa) during navigation. Previously, only the step changed and no screen was added or removed (no screen transition). Monosnap.screencast.2025-12-16.11-17-36.mp4Monosnap.screencast.2025-12-16.11-56-44.mp4 |
the navigation hook is linked to onyx state, it's not always starting from the beginning in main, sometimes it skips depending on the onyx state, will review and comeback...
will check it. |
|
this work was done here already, so i think can be closed by now. |
|
Okay, closing the PR and the issue. Thank you for your work on this @M00rish. |
Explanation of Change
this change transforms the
assigncardandaddNewCardflow into routes/screen based flows instead of regular functional component steps to solve back button exiting the whole flow instead of going back to previous step.Fixed Issues
$ #60018
PROPOSAL:
proposal
Tests
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
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
Android: Native
Expensify.Adhoc.mp4
Android: mWeb Chrome
Android_web.mp4
iOS: Native
iOS.webm
iOS: mWeb Safari
webios.mp4
MacOS: Chrome / Safari
Web.webm
Details