fix: share with my accountant from the header - #67020
Beamanator merged 1 commit into
Conversation
|
@hoangzinh 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] |
Screen.Recording.1404-05-02.at.7.33.32.AM.mp4 |
|
@nabi-ebrahimi thank you for quickly making a PR. Can you explain bug and your solution to fix the bug? |
@hoangzinh We missed adding the I added the active route as |
|
|
||
| const goToDetailsPage = useCallback(() => { | ||
| navigateToDetailsPage(report, Navigation.getReportRHPActiveRoute()); | ||
| navigateToDetailsPage(report, Navigation.getActiveRoute()); |
There was a problem hiding this comment.
I have a concern about whether it will cause any regression.
There was a problem hiding this comment.
We missed adding the backTo param when opening the RHP for these two places
Your RCA is not really correct, we already have backTo param with Navigation.getReportRHPActiveRoute currently
There was a problem hiding this comment.
@hoangzinh Thanks for the review.
The getReportRHPActiveRoute function currently passes backTo only for the SearchReport screen. However, since we open the RHP from multiple places within the Report screen, we would need to pass backTo from there as well. That said, we don’t require backTo for those cases. Therefore, I decided not to check for Report as well in the following function. We only need to handle backTo for those two specific cases.
App/src/libs/Navigation/helpers/isReportOpenInRHP.ts
Lines 5 to 15 in fe85b37
The getReportRHPActiveRoute function is used in multiple places, so any changes to it may introduce regressions.
App/src/libs/Navigation/Navigation.ts
Lines 135 to 143 in fe85b37
So I simply replaced it with getActiveRoute in the two places where it's needed.
|
@nabi-ebrahimi Thanks for explanation. Can you:
|
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2025-07-27.at.12.53.55.android.movAndroid: mWeb ChromeScreen.Recording.2025-07-27.at.10.53.29.android.chrome.moviOS: HybridAppScreen.Recording.2025-07-27.at.13.01.02.moviOS: mWeb SafariScreen.Recording.2025-07-27.at.12.58.16.ios.safari.movMacOS: Chrome / SafariScreen.Recording.2025-07-27.at.10.44.14.web.movMacOS: DesktopScreen.Recording.2025-07-27.at.10.46.22.desktop.mov |
|
Please also upload new recordings with new changes in this PR, instead of the previous PR, against the new test steps. |
|
@hoangzinh Thanks, I updated the test steps and records. |
hoangzinh
left a comment
There was a problem hiding this comment.
LGTM. Thanks @nabi-ebrahimi
Beamanator
left a comment
There was a problem hiding this comment.
Thanks, and thanks @hoangzinh for the great review!
|
🚀 Deployed to staging by https://github.com/Beamanator in version: 9.1.88-0 🚀
|
|
🚀 Deployed to production by https://github.com/grgia in version: 9.1.88-3 🚀
|
Explanation of Change
Fixed Issues
$ #63117
PROPOSAL: #63117 (comment)
Follow up #65998
Tests
Offline tests
Same as Tests
QA Steps
Same as Tests
// TODO: These must be filled out, or the issue title must include "[No QA]."
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))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
Screen.Recording.1404-05-08.at.12.05.13.PM.mov
Android: mWeb Chrome
Screen.Recording.1404-05-07.at.9.01.38.PM.mov
iOS: Native
Screen.Recording.1404-05-08.at.12.08.12.PM.mov
iOS: mWeb Safari
Screen.Recording.1404-05-07.at.9.12.29.PM.mov
MacOS: Chrome / Safari
Screen.Recording.1404-05-07.at.8.58.05.PM.mov
MacOS: Desktop
Screen.Recording.1404-05-07.at.9.18.47.PM.mov