[CP Staging] Fix - 'Expense - Report RHP re-renders every time clicking Create expense'#85213
Conversation
|
@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] |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
Reviewer Checklist
Screenshots/VideosAndroid: HybridApp2026-03-13.11.49.46.movAndroid: mWeb Chrome2026-03-13.11.47.06.moviOS: HybridApp2026-03-13.11.49.46.moviOS: mWeb Safari2026-03-13.11.47.06.movMacOS: Chrome / Safari2026-03-13.11.40.57.mov |
|
Small comment in the description for this issue
Instead |
|
@GCyganek |
on it, sorry! |
|
LGTM! |
|
@mountiny wanna review before we merge? |
…p-layout-shift [CP Staging] Fix - 'Expense - Report RHP re-renders every time clicking Create expense' (cherry picked from commit 07f05b1) (cherry-picked to staging by luacmartins)
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Cherry-picked to staging by https://github.com/luacmartins in version: 9.3.37-5 🚀
|
|
🚧 @mountiny has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
CP was passed by QA team, comment |
|
🚀 Deployed to production by https://github.com/cristipaval in version: 9.3.37-10 🚀
|
|
🚀 Cherry-picked to staging by https://github.com/luacmartins in version: 9.3.38-0 🚀
|
|
🚀 Deployed to production by https://github.com/cristipaval in version: 9.3.38-4 🚀
|
Explanation of Change
Replacing the
scrollIntoView()with the mobile version ofscrollToTab()logic to fix the weird layout shift whenCreate distance/Track distanceis opened from RHPFixed Issues
$ #85155
PROPOSAL: N/A
Tests
IMPORTANT: opening
Create expensewithPer diemfrom RHP is not fixed here as it's not related to the scrollable tab selector and is already reproducible on productionPrecondition -
Have a report with a couple of expenses(at least two)
Offline tests
QA Steps
Same as tests
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
order of tabs was changed just for testing
Screen.Recording.2026-03-13.at.11.14.12.mov
Android: mWeb Chrome
iOS: Native
order of tabs was changed just for testing
Screen.Recording.2026-03-13.at.11.11.43.mov
iOS: mWeb Safari
MacOS: Chrome / Safari
order of tabs was changed just for testing
Screen.Recording.2026-03-13.at.11.05.29.mov