[CP staging] Revert "[BATCH 2] Migrate Navigation usage, part 1"#92110
Conversation
|
@ikevin127 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] |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9276965d5d
ℹ️ About Codex in GitHub
Your team has set up Codex to 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 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| InteractionManager.runAfterInteractions(() => { | ||
| requestAnimationFrame(() => { | ||
| clearDeleteTransactionNavigateBackUrl(); | ||
| }); | ||
| }); |
There was a problem hiding this comment.
Wait for the navigation transition before clearing
When an expense deletion navigates away from this report, the screen loses focus as soon as the transition starts, but InteractionManager.runAfterInteractions is not tied to that just-started navigation transition. That can clear NVP_DELETE_TRANSACTION_NAVIGATE_BACK_URL while the deleted report is still visible during the closing animation, which is the Not Found flash this comment says we are avoiding; use the transition tracker/after-transition hook so the URL is cleared only after the navigation finishes.
Useful? React with 👍 / 👎.
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.
|
|
Kicking off an adhoc build to verify this fix. I was able to reproduce something close to the original issue on android. |
|
🚧 @neil-marcellini has triggered a test Expensify/App build. You can view the workflow run here. |
This comment has been minimized.
This comment has been minimized.
|
Ah damn, I have to test this on Android dev because the link won't open the Adhoc app |
|
Re-assigning to @mkhutornyi to help me test Android as requested here. I saw @ikevin127 was offline. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppandroid.movAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb Safari |
mkhutornyi
left a comment
There was a problem hiding this comment.
Approving based on #92110 (comment)
|
@marcochavezf 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] |
I just tested with the latest dev backend environment and it correctly generates the members workspace chat link. Maybe there's some kind of quirk because you are testing against the staging or production API. 2026-05-29_14-45-27.mp4 |
|
🚧 @neil-marcellini 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! 🧪🧪
|
…ker-batch-2 [No QA] Revert "[BATCH 2] Migrate Navigation usage, part 1" (cherry picked from commit e1bf6ce) (cherry-picked to staging by Julesssss)
|
🚀 Cherry-picked to staging by https://github.com/Julesssss in version: 9.3.89-4 🚀
Bundle Size Analysis (Sentry): |
|
🤖 Help site review: no changes required This PR reverts an internal navigation refactor (#88538) to restore the prior behavior of the workspace invite deep link for logged-out users. Why no docs updates are needed:
No draft help site PR has been opened. @neil-marcellini, please review the linked help site PR and confirm it reflects the current behavior. Then mark the linked help site PR |
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.3.89-7 🚀
|
|
🚀 Cherry-picked to staging by https://github.com/Julesssss in version: 9.3.90-0 🚀
Bundle Size Analysis (Sentry): |
|
🤖 Help site review: no documentation changes required. I reviewed the changes in this PR against the help site articles under The diff is entirely internal and has no documentation impact:
There are no new features, settings, tab/label changes, or user-facing behavior changes to document. Reverting simply restores the previously-correct invite deep-link navigation, which the existing help articles already reflect. No draft help site PR was created. @neil-marcellini, since no help site updates are needed for this change, there's no linked docs PR to review. If you believe a specific article should be updated, let me know which one and I'll take another look. |
|
🚀 Deployed to production by https://github.com/lakchote in version: 9.3.90-3 🚀
|
|
🚀 Cherry-picked to staging by https://github.com/Julesssss in version: 9.4.2-0 🚀
Bundle Size Analysis (Sentry): |
Help site review: no changes requiredI reviewed the changes in this PR against the help site files under Why: This PR is a code-only revert of #88538 ("[BATCH 2] Migrate Navigation usage, part 1"). All 20 changed files are internal There are no new or changed user-facing features, settings, tab names, button labels, or workflows. The PR returns behavior to its previously documented state rather than introducing anything new, so no help articles reference or describe any behavior altered by this change. Because no help site changes are required, I did not create a draft docs PR. @neil-marcellini, please review the linked help site PR and confirm it reflects the current behavior. Then mark the linked help site PR (Note: no help site PR was created, as no documentation changes were required for this code-only navigation revert.) |
|
🚀 Cherry-picked to staging by https://github.com/Julesssss in version: 9.4.4-1 🚀
Bundle Size Analysis (Sentry): |
|
🤖 No help site changes required. This PR reverts #88538 to fix a regression where logged-out users clicking a workspace invite link got stuck in an endless loading state instead of being redirected to the workspace chat. All changes are internal code only — navigation utilities, Session/Report/Task action modules, and inbox/report components. There are no new features, settings, tabs, button labels, or user-facing behavior changes. The revert simply restores the previously-correct deep-link navigation behavior, which already matches what the help site describes. Because nothing user-facing changed, no updates to @neil-marcellini, if you believe a specific help article is affected by this revert, let me know which one and I'll take another look. |
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.4.4-3 🚀
|


Explanation of Change
This reverts #88538 ("[BATCH 2] Migrate Navigation usage, part 1"), which introduced a regression causing an endless loading state instead of redirecting to the workspace chat when a logged-out user clicks the invite link in an invitation email.
The PR migrated Navigation usage across Session/Report/Task action modules and several inbox/report components. Reverting restores the prior navigation behavior so the invite deep link resolves correctly.
The merge commit was reverted with
git revert -m 1. The only conflict was inconfig/eslint/eslint.seatbelt.tsv, resolved by restoring the pre-PR grandfathered lint entries.Fixed Issues
$ #92047
PROPOSAL: #92047 (comment)
Tests
Offline tests
N/A — navigation revert, behavior is unchanged offline.
QA Steps
Same as Tests.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand 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