migrate REPORT_SETTINGS_NOTIFICATION_PREFERENCES#85308
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] |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 98ee341e22
ℹ️ 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".
| title={notificationPreference} | ||
| description={translate('notificationPreferencesPage.label')} | ||
| onPress={() => Navigation.navigate(ROUTES.REPORT_SETTINGS_NOTIFICATION_PREFERENCES.getRoute(report.reportID, navigateBackTo))} | ||
| onPress={() => Navigation.navigate(createDynamicRoute(DYNAMIC_ROUTES.NOTIFICATION_PREFERENCES.path))} |
There was a problem hiding this comment.
Open notification preferences via report-settings route
This now appends notification-preferences to the current ProfilePage URL, so from a profile route (a/:accountID) it generates a/<accountID>/notification-preferences. That path is not registered for the notification-preferences screen (it is configured under report settings), so tapping this menu item from ProfilePage lands on an unresolved route instead of opening the report notification preference UI.
Useful? React with 👍 / 👎.
| keyForList: preference, | ||
| isSelected: preference === currentNotificationPreference, | ||
| })); | ||
| const backPath = useDynamicBackPath(DYNAMIC_ROUTES.ADDRESS_COUNTRY.path); |
There was a problem hiding this comment.
Use the notification suffix when deriving back path
This page derives backPath with ADDRESS_COUNTRY.path (country) instead of the page’s own notification-preferences suffix. useDynamicBackPath() only removes the suffix when it matches the current URL tail, so on this screen it returns the current path unchanged; as a result, Navigation.goBack(backPath) targets the same route and the back action (including after selecting an option) fails to leave the screen.
Useful? React with 👍 / 👎.
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
…T_SETTINGS_NOTIFICATION_PREFERENCES
Screen.Recording.2026-03-16.at.08.40.44.mov@collectioneur I encountered this issue. I think it’s the same as the one we discussed previously. I just wanted to inform you so you’re aware. |
JmillsExpensify
left a comment
There was a problem hiding this comment.
Part of an existing initiative. LGTM.
|
@huult The PR for parameter propagation has already hit staging, so everything should be working now 👍 |
…T_SETTINGS_NOTIFICATION_PREFERENCES
…T_SETTINGS_NOTIFICATION_PREFERENCES
|
@mananjadhav This PR is ready for review |
|
@huult Can you resolve the conflicts please? |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppandroid-bt-notif.movAndroid: mWeb Chromemweb-chrome-bt-notify.moviOS: HybridAppiOS: mWeb Safarimweb-safari-bt-notif.movMacOS: Chrome / Safariweb-bt-notif.mov |
mananjadhav
left a comment
There was a problem hiding this comment.
Issues with my iOS remote build but tested on all platforms. Good to merge when the conflicts are resolved.
…T_SETTINGS_NOTIFICATION_PREFERENCES
@mananjadhav Resolved! |
…T_SETTINGS_NOTIFICATION_PREFERENCES
…T_SETTINGS_NOTIFICATION_PREFERENCES
|
🚧 @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! 🧪🧪
|
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/mjasikowski in version: 9.3.54-0 🚀
Bundle Size Analysis (Sentry): |
|
No help site changes are required for this PR. This is a purely internal navigation refactor — it migrates the |
|
Deploy Blocker #87302 was identified to be related to this PR. |
Explanation of Change
Fixed Issues
$ #83368
PROPOSAL:
Tests
Same QA step
Offline tests
QA Steps
Case 1:
Case 2:
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
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari