[CP Staging] Update SPEND_CATEGORY_SELECTOR entryScreens to use renamed screen#89544
[CP Staging] Update SPEND_CATEGORY_SELECTOR entryScreens to use renamed screen#89544mjasikowski merged 1 commit intomainfrom
Conversation
The categories settings screen was renamed from CATEGORIES_SETTINGS to DYNAMIC_CATEGORIES_SETTINGS in PR #88842, but the entryScreens array in SPEND_CATEGORY_SELECTOR was not updated. This caused the navigation guard to reject the route, showing the "Not Here" page. Co-authored-by: Michał Jasikowski <mjasikowski@users.noreply.github.com>
|
Tested and working fine |
|
The failing check ( Failing test: Why it's unrelated: This PR only changes This appears to be a pre-existing flaky test. Re-running the checks should resolve it. |
|
The failing ESLint check is unrelated to this PR. Failure: This PR only changes: This is a pre-existing lint issue on |
|
The failing ESLint check is unrelated to this PR. Failure: This PR only changes |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
|
@mjasikowski looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
|
Test failure is unrelated, not an emergency |
…Screens (cherry picked from commit 64c27ae) (cherry-picked to staging by francoisl)
|
🚀 Cherry-picked to staging by https://github.com/francoisl in version: 9.3.66-2 🚀
Bundle Size Analysis (Sentry): |
|
No help site changes are required for this PR. The change is a one-line internal navigation fix in |
|
🚧 @mjasikowski 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! 🧪🧪
|
Explanation of Change
PR #88842 renamed the categories settings screen from
CATEGORIES_SETTINGStoDYNAMIC_CATEGORIES_SETTINGSin the navigator, linking config, andWORKSPACE_TO_RHPmapping, but missed updating theentryScreensarray in theSPEND_CATEGORY_SELECTORdynamic route. This caused the navigation guard ingetStateFromPathto reject navigation to the spend category selector from the categories settings page, showing the "Not Here" page instead.This PR updates the stale screen reference in
SPEND_CATEGORY_SELECTOR.entryScreensto useSCREENS.WORKSPACE.DYNAMIC_CATEGORIES_SETTINGS.Fixed Issues
$ #89526
PROPOSAL: #89526 (comment)
Tests
Offline tests
QA Steps
Same as #89526
AI Tests
npm run typecheck— passednpm run lint-changed— passed (no lintable files changed)npm test -- --testPathPattern="ROUTES"— 3 suites, 32 tests passedPR 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