-
Notifications
You must be signed in to change notification settings - Fork 3.2k
fix: always render the skeleton when fetching report actions #58654
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: always render the skeleton when fetching report actions #58654
Conversation
@thesahindia 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] |
@@ -347,7 +347,7 @@ function ReportActionsView({ | |||
}; | |||
}, [isTheFirstReportActionIsLinked]); | |||
|
|||
if (isLoadingInitialReportActions && visibleReportActions.length === 0 && !isOffline) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change effectively removes the more eager rendering pattern that showed us offline-available content immediately.
@adhorodyski can you please make sure to fill out the PR body thoroughly? In this case its not clear what has to be tested and what the C+ should test for |
Updated the reproduction steps, with these we were able to see the before/after 100% of the time. Let me know if I can be of any more help. |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid.movAndroid: mWeb Chromeandroid-web.moviOS: Nativeios.moviOS: mWeb Safariios-web.movMacOS: Chrome / Safariweb.movMacOS: Desktopdesktop.mov |
Changes work good |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! let's not CP this in the end as regression testing is actually quite far so do not want to cause any issues in production
✋ 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 🚀
|
@adhorodyski Found issue #58842 |
@izarutskaya |
🚀 Deployed to production by https://github.com/luacmartins in version: 9.1.16-4 🚀
|
Explanation of Change
This PR fixes rendering single expense reports by forcing the UI to stay on the skeleton for as long as the API command takes.
Fixed Issues
$ #58388
PROPOSAL: #58388 (comment)
Tests
The below guide shows how to reproducibly open up single expense reports. If you know other paths to do so, you can try them as well. The goal is to only render the final UI based on the API response (transaction missing locally), without an intermediary step of rendering offline-available data (that lacks the MoneyRequestView on the header).
Offline tests
N/A
QA Steps
Same as tests.
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop