-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add backTo to many pages so it shows the correct screen below the RHP overlay #47990
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM and tests well 👍
@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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.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