Handle Escape key navigation in WorkspaceNavigator#86849
Conversation
|
@mananjadhav 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: HybridApp2026-04-01.11.03.31.moviOS: mWeb Safari2026-04-01.10.59.34.movMacOS: Chrome / Safari2026-04-01.10.55.38.mov |
af313bc to
40b0ac9
Compare
|
Nice job, LGTM 🚀 |
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.
|
|
LGTM! |
|
🚧 @luacmartins 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! 🧪🧪
|
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
…kspaces-navigator Handle Escape key navigation in WorkspaceNavigator (cherry picked from commit 7e16b25) (cherry-picked to staging by luacmartins)
|
🚀 Cherry-picked to staging by https://github.com/luacmartins in version: 9.3.51-4 🚀
Bundle Size Analysis (Sentry): |
|
No help site changes are required for this PR. This PR is a pure navigation bug fix — it corrects the Escape key regression inside the Workspaces tab caused by the I reviewed the help site articles under
|
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.3.51-10 🚀
|
|
🚀 Cherry-picked to staging by https://github.com/luacmartins in version: 9.3.52-0 🚀
Bundle Size Analysis (Sentry): |
|
No help site changes are required for this PR. This is a bug fix for Escape key navigation within the WorkspaceNavigator — no new features, settings, UI labels, or user-facing flows are introduced. The existing help site docs don't document Escape key navigation behavior, so there's nothing to update. |
|
🚀 Deployed to production by https://github.com/roryabraham in version: 9.3.52-9 🚀
|
cc: @ZhenjaHorbach
Explanation of Change
The Escape key behavior inside the Workspaces tab was broken after WorkspaceNavigator was introduced. Pressing Escape no longer navigated back correctly because the handler wasn't aware of the new navigator structure. This change fixes the regression by teaching the Escape handler to pop routes within WorkspaceNavigator appropriately — falling back to popping the entire WorkspaceNavigator from the root stack when it contains only a single route.
Fixed Issues
$ #86785
PROPOSAL:
Tests
Offline tests
QA Steps
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
MacOS: Chrome / Safari
Screen.Recording.2026-04-01.at.10.22.29.mov