Repository navigation
Preserve Search report links after workspace-member sign-in - #105710
Conversation
The six new regression cases intentionally fail until replay supports\nworkspace members whose onboarding flag remains false.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
@codex review |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
Codex Review: Didn't find any major issues. Bravo. Reviewed commit: ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
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 adds a new |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safarichrome.mp4 |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 roryabraham 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/roryabraham in version: 9.5.31-0 🚀
|
|
No help site update needed — this fixes report and comment links opening after sign-in, restoring expected behavior without introducing a new workflow or making existing guidance incorrect. |
|
🚀 Deployed to staging by https://github.com/roryabraham in version: 9.5.31-0 🚀
|
|
🚀 Deployed to production by https://github.com/blimpich in version: 9.5.31-4 🚀
Bundle Size Analysis (Sentry): |
Explanation of Change
Opening a Search report link while signed out could leave workspace members on Spend after signing in, rather than opening the report. These members don't need to complete onboarding, but the deep-link handler was still waiting for
hasCompletedGuidedSetupFlowto become true.This change opens the requested report once the member has signed in and navigation is ready, keeping any linked comment and query parameters. It still waits for an onboarding flow that's already open, and clears pending links on sign-out so they can't reopen for another account.
Fixed Issues
$ #105211
PROPOSAL: N/A
Tests
Set up the accounts and invoice
For local testing, set
SKIP_ONBOARDING=falsein.env./search/view/or/search/r/asINVOICE_REPORT_ID./r/<reportID>/<reportActionID>. Save those two IDs asCOMMENT_REPORT_IDandCOMMENT_ACTION_ID; the comment's report ID can differ from the invoice's report ID.Check links opened while signed out
Prefix each path below with the app's base URL and replace the IDs with the values saved above. Paste the full URL into the address bar rather than navigating through the app.
/search/r/INVOICE_REPORT_IDand sign in as Member./search/view/INVOICE_REPORT_ID, and sign in as Member. Verify the same invoice opens./search/view/COMMENT_REPORT_ID/COMMENT_ACTION_ID, and sign in as Member. Verify “Deep-link test comment” is visible and highlighted.Check existing behavior
/r/COMMENT_REPORT_ID/COMMENT_ACTION_ID, and sign in as Member. Verify the comment opens in Inbox./search/view/COMMENT_REPORT_ID/COMMENT_ACTION_ID?backTo=search%3Fq%3Dtype%3Ainvoice. Verify the comment opens and the URL retains thebackToparameter.Offline tests
None.
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
Android: Native
Not tested.
Android: mWeb Chrome
Not tested.
iOS: Native
Not tested.
iOS: mWeb Safari
Not tested.
MacOS: Chrome / Safari
Each pair shows the same workspace member opening the same invoice link before and after the change.
Search invoice report — before
red-member-invoice-search-r.webm
Search invoice report — after
green-member-invoice-search-r.webm
Search view — before
red-member-invoice-view.webm
Search view — after
green-member-invoice-view.webm
Linked comment, wide layout — before
red-member-invoice-view-action.webm
Linked comment, wide layout — after
green-member-invoice-view-action.webm
Linked comment, narrow layout — before
red-member-invoice-view-action-narrow.webm
Linked comment, narrow layout — after
green-member-invoice-view-action-narrow.webm