Fix/74125 - Details report page is not scrollable#78977
Fix/74125 - Details report page is not scrollable#78977Valforte 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!
|
joekaufmanexpensify
left a comment
There was a problem hiding this comment.
Second try PR after reversion
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2026-01-14.at.18.39.13.android11.movAndroid: mWeb ChromeScreen.Recording.2026-01-14.at.16.55.32.android.c1.moviOS: HybridAppScreen.Recording.2026-01-14.at.21.12.31.ios.moviOS: mWeb SafariScreen.Recording.2026-01-14.at.18.45.45.ios.safari1.movMacOS: Chrome / SafariScreen.Recording.2026-01-14.at.16.47.26.web1.mov |
src/pages/home/ReportScreen.tsx
Outdated
| if ( | ||
| (!!prevTransactionThreadReportID && prevTransactionThreadReportID !== CONST.FAKE_REPORT_ID) || | ||
| !transactionThreadReportID || | ||
| (transactionThreadReportID === CONST.FAKE_REPORT_ID && !!prevTransactionThreadReportID) |
There was a problem hiding this comment.
Can you explain the root cause of the previous DB and why this change will resolve it? TY
There was a problem hiding this comment.
Do you think it's better if we split into variable like
const prevTransactionThreadReportIDWasValid = !!prevTransactionThreadReportID && prevTransactionThreadReportID !== CONST.FAKE_REPORT_ID;
const transactionThreadReportIDChangedToFake = transactionThreadReportID === CONST.FAKE_REPORT_ID && !!prevTransactionThreadReportID;
if (prevTransactionThreadReportIDWasValid || !transactionThreadReportID || transactionThreadReportIDChangedToFake)There was a problem hiding this comment.
Can you explain the root cause of the previous DB and why this change will resolve it? TY
The root cause of the previous DB issue is that when transactionThreadReportID changes from undefined to CONST.FAKE_REPORT_ID, we should allow the fetchReport function to trigger at that time. However, we prevented that action, so the transaction thread was not created
There was a problem hiding this comment.
Do you think it's better if we split into variable like
Yes, it makes sense to me as well.
|
I tested the PR on all platforms but I have an issue when upload recordings to GitHub. I will try it again tmr if there is any luck |
|
✋ 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.3.3-0 🚀
|
|
🚀 Deployed to production by https://github.com/francoisl in version: 9.3.3-8 🚀
|
Explanation of Change
This is a follow-up to PR #78283 because PR #78283 has been reverted.
Fixed Issues
$ #74125
PROPOSAL: #74125 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
Test 1:
Test 2:
Prerequisite: Account has at least one workspace.
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
Test 1:
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
Test 2:
test2.mp4