Fix/74125 - Details report page is not scrollable#78283
Fix/74125 - Details report page is not scrollable#78283Valforte merged 3 commits intoExpensify:mainfrom
Conversation
|
@hoangzinh 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!
|
| const prevTransactionThreadReportID = usePrevious(transactionThreadReportID); | ||
| useEffect(() => { | ||
| if (!!prevTransactionThreadReportID || !transactionThreadReportID) { | ||
| if ((!!prevTransactionThreadReportID && prevTransactionThreadReportID !== CONST.FAKE_REPORT_ID) || !transactionThreadReportID || transactionThreadReportID === CONST.FAKE_REPORT_ID) { |
There was a problem hiding this comment.
@dmkt9 do you prefer your alternative solution over the main solution? #74125 (comment)
There was a problem hiding this comment.
Yes. Because previously you also asked about determining whether reportActions are fully loaded or not: #74125 (comment).
I also find the use of the CREAT action quite interesting, but it seems a bit hacky. Therefore, I think using an alternative solution would be more appropriate.
There was a problem hiding this comment.
@dmkt9 do you mind adding a comment to explain for this change?
There was a problem hiding this comment.
@hoangzinh Sure. I’ve added comments to explain why it’s needed.
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2025-12-26.at.16.27.52.android.movAndroid: mWeb ChromeScreen.Recording.2025-12-26.at.16.24.23.android.chrome.moviOS: HybridAppScreen.Recording.2025-12-26.at.16.50.22.moviOS: mWeb SafariScreen.Recording.2025-12-26.at.16.35.02.ios.safari.movMacOS: Chrome / SafariScreen.Recording.2025-12-26.at.16.02.19.web.mov |
|
✋ 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/Valforte in version: 9.2.93-0 🚀
|
|
🚀 Deployed to production by https://github.com/arosiclair in version: 9.2.93-1 🚀
|
Fix/74125 - Details report page is not scrollable
|
@dmkt9 PR is reverted. Please start to work on a new PR. |
Explanation of Change
After the user performs 'Clear cache and refresh' (or logs in again) and returns to the workspace chat to open an approved report that has never been opened before, the user cannot scroll the detail report page.
The reason is that the app only calls the
openReportAPI to create a newTransactionThreadReport, but does not call theopenReportAPI again to fetch data for the currently opened report. As a result, the report remains in a state where the data has not finished loading, and scrolling is not possibleFixed Issues
$ #74125
PROPOSAL: #74125 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
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.native.mp4
Android: mWeb Chrome
android.mweb.mp4
iOS: Native
ios.native.mp4
iOS: mWeb Safari
ios.mweb.mp4
MacOS: Chrome / Safari
mac.web.mp4