Remove reportID param from dismissModal function#58191
Remove reportID param from dismissModal function#58191mountiny merged 9 commits intoExpensify:mainfrom
Conversation
7fc4118 to
ace1346
Compare
|
@alitoshmatov 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] |
|
Does this need a design review or this mostly technical? |
It's mostly technical, it fixes two issues mentioned in the PR description related to transition between screens |
|
@alitoshmatov What is holding you back, can you please review the PR? |
|
@mountiny Sorry for missing this. Could we reassign it? I was only operating at half capacity this week. cc: @WojtekBoman |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb Chromeandroid-web-1.movandroid-web-2.moviOS: Nativeios-1.movios-2.moviOS: mWeb Safariios-web-1.movios-web-2.movMacOS: Chrome / Safariweb.movMacOS: Desktopweb.mov |
src/libs/actions/IOU.ts
Outdated
| if (isSearchTopmostFullScreenRoute() || !activeReportID) { | ||
| Navigation.dismissModal(); | ||
| } else { | ||
| Navigation.dismissModalWithReport({reportID: activeReportID}); |
There was a problem hiding this comment.
Minor comment
This condition is used very often
Maybe we should make a separate function for this ?
|
Android works good ✅ |
|
@WojtekBoman |
@mountiny |
|
🚧 @mountiny has triggered a test app build. You can view the workflow run here. |
|
Builds are failed @WojtekBoman |
|
Lets sync with main and I will retry the builds then |
cf93159 to
d0bd658
Compare
|
🚧 @mountiny has triggered a test app build. You can view the workflow run here. |
|
Conflicts solved :) @ZhenjaHorbach I excluded a separate function according to this comment. About android, I checked it and it seems to work fine Screen.Recording.2025-03-19.at.15.52.06.mov |
Nice |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪
|
|
Yeah |
|
LGTM ! |
mountiny
left a comment
There was a problem hiding this comment.
LGTM, couple questions only
… memebers page when inviting a user
d0bd658 to
d1e930a
Compare
|
@mountiny I replied to all comments and resolved conflicts, it's ready to merge :) |
|
✋ 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/mountiny in version: 9.1.16-0 🚀
|
|
🚀 Deployed to production by https://github.com/luacmartins in version: 9.1.16-4 🚀
|
Explanation of Change
This PR removes a reportID param from the
dismissModalfunction. NowdismissModalWithReportis responsible for closing the modal and navigating to a specific report. With this change, the responsibilities of both functions are well defined.Changes introduced by this PR:
now
dismissModalis used only to close the modal without any additional actions.now when we want to close the modal and open the report we need to use the
dismissModalWithReportfunction which accepts an options object as a parameter. We can pass either thereportor thereportIDfield to this function (you can't pass both).Previously, when we closed a modal window on a small screen, we performed two actions:
It works the same way on the wide layout, but on the narrow layout in this case only one action is performed: the modal navigator is replaced by a new split navigator. With this change only one animation is visible on the screen. It's possible after changes introduced by this PR, the split navigator on a narrow layout doesn't need to have a sidebar screen.
Fixed Issues
$ #56799
$ #56871
PROPOSAL:
Tests
Login with any account
Create a new workspace
Go to workspace settings > Overview>Click Invite
Choose any account > Invite
Verify that only one transition has been performed on screen
Verify that no errors appear in the JS console
Offline tests
QA Steps
Same as tests
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))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.2025-03-11.at.09.58.55.mov
Screen.Recording.2025-03-11.at.08.30.07.mov
Android: mWeb Chrome
Screen.Recording.2025-03-11.at.10.01.53.mov
Screen.Recording.2025-03-11.at.10.00.52.mov
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2025-03-12.at.07.24.41.mov
MacOS: Desktop
Screen.Recording.2025-03-12.at.07.30.29.mov