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: cd4ccdb401
ℹ️ 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".
| entryScreens: [], | ||
| }, | ||
| REPORT_SETTINGS_VISIBILITY: { | ||
| path: 'settings/visibility', |
There was a problem hiding this comment.
Use a visibility suffix that is relative to current screen
createDynamicRoute() appends the provided suffix to the current URL (src/libs/Navigation/helpers/dynamicRoutesUtils/createDynamicRoute.ts), so using settings/visibility here produces .../settings/settings/visibility when the user taps Visibility from Report Settings (r/:reportID/settings). That path then fails dynamic-route resolution in getStateFromPath() because stripping the suffix leaves r/:reportID/settings (focused screen SCREENS.REPORT_SETTINGS.ROOT, which is not allowed in this route’s entryScreens), so this flow can route users to an invalid/not-found state instead of the visibility page.
Useful? React with 👍 / 👎.
|
|
||
| const goBack = () => { | ||
| goBackToDetailsPage(report, route.params.backTo); | ||
| goBackToDetailsPage(report, backPath); |
There was a problem hiding this comment.
Pass a backTo value instead of a full route path
useDynamicBackPath() returns the parent route (for example r/:id/settings?backTo=...), but goBackToDetailsPage() treats its second argument as a backTo query value and wraps it via ROUTES.REPORT_SETTINGS.getRoute(reportID, backTo) (src/libs/ReportUtils.ts). Passing the full path here nests/encodes the settings URL into backTo, which can make post-save/back navigation target the wrong route and break normal back-stack behavior.
Useful? React with 👍 / 👎.
Explanation of Change
Fixed Issues
$ #83368
PROPOSAL:
Tests
Same QA step
Offline tests
QA Steps
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