BT: Migrate CHANGE_APPROVER#88361
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
| const [reportNextStep] = useOnyx(`${ONYXKEYS.COLLECTION.NEXT_STEP}${reportID}`); | ||
| const hasAutoAppliedRef = useRef(false); | ||
| const hasNavigatedToAddApproverRef = useRef(false); | ||
| const backPath = useDynamicBackPath(DYNAMIC_ROUTES.REPORT_CHANGE_APPROVER.path); |
There was a problem hiding this comment.
❌ CLEAN-REACT-PATTERNS-0 (docs)
This file compiles with React Compiler (verified via check-compiler.sh). The new useCallback wrapping goBack is redundant because React Compiler automatically memoizes closures based on their captured variables.
Remove the useCallback wrapper and use a plain function instead:
const goBack = () => {
Navigation.goBack(backPath);
};Reviewed at: d91fede | Please rate this suggestion with 👍 or 👎 to help us improve! Reactions are used to monitor reviewer efficiency.
There was a problem hiding this comment.
@mananjadhav We only need to update this. After that, I’ll approve the PR and we can merge.
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2026-04-21.at.14.16.55.mp4Android: mWeb ChromeScreen.Recording.2026-04-21.at.14.20.17.mp4iOS: HybridAppScreen.Recording.2026-04-21.at.14.24.12.mp4iOS: mWeb SafariScreen.Recording.2026-04-21.at.14.25.44.mp4MacOS: Chrome / SafariScreen.Recording.2026-04-21.at.14.10.23.mp4 |
|
🚧 @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.61-0 🚀
Bundle Size Analysis (Sentry): |
|
No help site changes are required. I reviewed the PR diff and the relevant help site articles. This PR is a purely internal navigation refactoring — migrating the The two help site articles that reference "Change approver" ( |
Explanation of Change
Fixed Issues
$ #83368
PROPOSAL:
Tests
Preconditions
Case 1:
DYNAMIC_ROUTES.REPORT_CHANGE_APPROVERr/<reportID>/change-approverwithout abackToparam).Case 2:
REPORT_CHANGE_APPROVER_ADD_APPROVERchange-approver/add).Offline tests
Same as Test Steps
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Same as Test 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
Android: Native
android-change-approver.mov
Android: mWeb Chrome
mweb-chrome-change-approver.mov
iOS: Native
ios-change-approver.mov
iOS: mWeb Safari
mweb-safari-change-approver.mov
MacOS: Chrome / Safari
web-change-approver.mov