Add backTo to many pages so it shows the correct screen below the RHP overlay#47990
Conversation
|
@rayane-djouah 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] |
|
Additional video for other pages: Report settings: web.settings.mp4Money request view data: web.money.request.data.mp4Profile from message: web.profile.mp4Report field: web.report.field.mp4New task page: web.task.mp4 |
|
For this, I didn't add the
which opens the hold educational again. |
luacmartins
left a comment
There was a problem hiding this comment.
Left a small comment
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid_native.mp4Android: mWeb Chromeandroid_mweb_chrome.mp4iOS: NativeSimulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2024-09-20.at.01.21.33.mp4iOS: mWeb SafariSimulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2024-09-20.at.01.19.52.mp4MacOS: Chrome / SafariScreen.Recording.2024-09-20.at.1.15.45.AM.movScreen.Recording.2024-09-21.at.11.14.29.PM.movScreen.Recording.2024-09-21.at.11.23.49.PM.movMacOS: DesktopScreen.Recording.2024-09-20.at.1.17.42.AM.mov |
|
After merging with main, the page without params will now return undefined if we access |
|
@bernhardoj - We still need to add
Note that in #47690 we will be adding the chat type to search, therefore more report-related routes will be accessible from RHP, therefore I think we need to add the
wdyt? |
|
Please merge latest main. Thanks! |
I would prefer to wait for it to be merged so I can test it. In the meantime, I'll add more backTo to these pages
|
web.mp4 |
rayane-d
left a comment
There was a problem hiding this comment.
Let's add backTo param to FLAG_COMMENT route
|
@bernhardoj we also have conflicts |
|
I think we can keep it optional, otherwise I need to re-check all ROUTES to see which backTo can be optional or not. backTo by pattern is also optional.
Fixed. |
|
Confirmed that #47990 (review) is fixed 👍 |
@luacmartins Do you agree? |
|
@bernhardoj we have conflicts |
|
Fixed |
|
I don't see how this PR could be causing the failing tests. I also noticed that the tests were already failing on the main branch for some merge commits (e.g., #49606), so this might be a flaky test. |
|
Those tests seem broken on main too. Seeing the same on other PRs. |
|
@luacmartins this is ready for final review if you agree that we can keep the |
|
@bernhardoj we have conflicts. |
|
@luacmartins conflicts fixed |
|
Yes, we can keep the backTo param optional. ESLint errors are unrelated. Merging. |
|
@luacmartins looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
|
✋ 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/luacmartins in version: 9.0.41-0 🚀
|
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.0.41-10 🚀
|
Details
While we open a page from report RHP, refreshing will show the report screen below the report RHP instead of the search page. This PR fixes it.
Fixed Issues
$ #46773
PROPOSAL: #46773 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
Prerequisite: the account never dismisses hold educational page/modal yet
Web/Desktop
Android/iOS/mWeb
Can't see page behind the RHP, so just make sure the hold educational modal still shows normally
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.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
androi.mp4
Android: mWeb Chrome
android.mweb.mp4
iOS: Native
ios.mp4
iOS: mWeb Safari
ios.mweb.mp4
MacOS: Chrome / Safari
web.mp4
MacOS: Desktop
desktop.mp4