Flatten SCREENS.RIGHT_MODAL.SEARCH_REPORT#77809
Conversation
SCREENS.RIGHT_MODAL.SEARCH_REPORT
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
f5dd6c0 to
62d4052
Compare
| const singleRHPWidth = variables.sideBarWidth; | ||
| const getWideRHPWidth = (windowWidth: number) => variables.sideBarWidth + calculateReceiptPaneRHPWidth(windowWidth); | ||
|
|
||
| function SecondaryOverlay() { |
There was a problem hiding this comment.
Why do we need this function here if we already have SecondaryOverlay in WideRHPOverlayWrapper?
There was a problem hiding this comment.
It has different positions as it's displayed below the focused screen and this one isn't pressable. We might consider using different names for the secondary overlay displayed in the wrapper
There was a problem hiding this comment.
I think that's a good idea. Maybe add 'inner' and 'outer' to these component names?
| )} | ||
| {shouldRenderTertiaryOverlay && !shouldUseNarrowLayout && ( | ||
| {!shouldUseNarrowLayout && <SecondaryOverlay />} | ||
| {!shouldUseNarrowLayout && shouldRenderTertiaryOverlay && ( |
There was a problem hiding this comment.
Why couldn't we use the TertiaryOverlay component here?
|
Could you please remove |
|
@ZhenjaHorbach 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] |
de821d2 to
7bddff6
Compare
Reviewer Checklist
Screenshots/VideosAndroid: HybridApp2025-12-18.09.53.08.movAndroid: mWeb Chrome2025-12-18.09.53.08.moviOS: HybridApp2025-12-18.09.38.34.moviOS: mWeb Safari2025-12-18.09.42.30.movMacOS: Chrome / Safari2025-12-18.09.12.53.mov2025-12-18.09.24.31.mov |
bb51619 to
0e88d27
Compare
|
Overall, the changes look good |
0e88d27 to
b85c712
Compare
|
@ZhenjaHorbach conflicts solved and I adjusted a bit |
|
@WojtekBoman |
b85c712 to
59ebb1d
Compare
mountiny
left a comment
There was a problem hiding this comment.
Changes look good to me
|
I found a visual glitch after changing expenses using the arrows 2025-12-18.17.38.42.mov |
Screen.Recording.2025-12-19.at.10.39.17.mov@ZhenjaHorbach Should be ok now! |
mountiny
left a comment
There was a problem hiding this comment.
Changes since my last review look good, thanks for thorough testing @ZhenjaHorbach
|
We are skipping the React complier action here as this PR touches many files and we cannot fix the react complience in them in scope of these changes |
|
@mountiny looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
|
Explained above |
|
✋ 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.2.85-0 🚀
|
|
This caused #78239; however, reverting has a ton of conflicts. |
|
🚀 Deployed to production by https://github.com/marcaaron in version: 9.2.85-7 🚀
|
Explanation of Change
This PR simplifies the strucutre of the Report screen displayed in RHP by flattening the structure.
Previously this screen was nested in
ModalStackNavigatorbut due to the fact this screen can be displayed in Wide RHP, other screens can't be added to the same modal stack.To avoid unnecessary nesting, this screen has been moved higher in the navigation structure, simplifying it.
After flattening the structure, secondary overlays are no longer needed in
ModalStackNavigatorsoWideRHPOverlayWrapperwas created to take over this responsibility.Fixed Issues
$ #71821
This PR includes fixes for these regressions appeared after merging #75886
#77594
#77587
PROPOSAL:
Tests
Without a receipt
With a distance receipt
With an e-receipt receipt
With a pdf receipt
With a photo receipt
Offline tests
QA Steps
// 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))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: mWeb Chrome
iOS: Native
Screen.Recording.2025-12-17.at.12.11.12.mov
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2025-12-17.at.11.51.32.mov