-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 skeleton loading forever on options list when offline #18788
Conversation
@PauloGasparSv @parasharrajat One of you needs to 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] |
cc: @amyevans for review |
|
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-05-11.at.17.51.30.movMobile Web - ChromeScreen.Recording.2023-05-11.at.17.54.41.movMobile Web - SafariN/A can't test offline behavior correctly in the dev Simulator DesktopScreen.Recording.2023-05-11.at.17.58.56.moviOSN/A can't test offline behavior correctly in the dev Simulator AndroidScreen.Recording.2023-05-11.at.18.00.01.mov |
@aimane-chnaif can you add the screenshots for all platforms? |
doing them right now |
@PauloGasparSv @amyevans ready for review 🚀 |
Do you need the C+ review here? |
Please do if that's possible @rushatgabhane! |
Its me @parasharrajat Why everyone is tagging Rushat instead of me? 🤔 |
So sorry for that @parasharrajat 🤦 |
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.
LGTM, all yours @parasharrajat
I couldn't pick it up yesterday as it was very late for me. Checking it now. |
@aimane-chnaif can you please explain to me what has been done over this PR and what are we trying to change here? |
Full discussion is in https://expensify.slack.com/archives/C049HHMV9SM/p1683821308209489?thread_ts=1683794916.311659&cid=C049HHMV9SM Before this PR:
This PR updates logic:
|
Still LGTM Bump @parasharrajat @amyevans I think we should get 1+ review and tests on this before merging : ) |
reviewing now |
I couldn't repro the original issue on staging web but still reviewing this PR now anyway |
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.
Memo:
This PR uses ReportUtils::isReportDataReady
instead of isLoadingReportData
from the Onyx data so that data can be displayed when the data cannot be fetched under the offline condition.
Review:
All search pages display search results updated correctly. LGTM!
I haven't tested the changes on my local machine yet. Once I'm done with it, I'll merge the PR
Thks @hayata-suenaga!!! |
tested well! 🚀 Screen.Recording.2023-05-13.at.6.03.10.PM.mov |
fix skeleton loading forever on options list when offline (cherry picked from commit 365f43c)
…-18788 🍒 Cherry pick PR #18788 to staging 🍒
🚀 Cherry-picked to staging by https://github.com/hayata-suenaga in version: 1.3.13-4 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
ios was deployed also in the 13-5 version so I cancelled the workflow which was stuck |
🚀 Deployed to production by https://github.com/Beamanator in version: 1.3.13-5 🚀
|
🚀 Cherry-picked to staging by https://github.com/AndrewGable in version: 1.3.28-2 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to production by https://github.com/AndrewGable in version: 1.3.28-5 🚀
|
Details
show skeleton when personal details are not ready or
old logic: while loading reports data
new logic: only when reports data doesn't exist, no matter loading or not
Fixed Issues
$ #18781
PROPOSAL: Coming from https://expensify.slack.com/archives/C049HHMV9SM/p1683821308209489?thread_ts=1683794916.311659&cid=C049HHMV9SM
Tests
Offline tests
Same as Tests
QA Steps
Same as Tests
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)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
Web
Screen.Recording.2023-05-11.at.7.31.14.PM.mov
Mobile Web - Chrome
mchrome.mov
Mobile Web - Safari
msafari.mov
Desktop
desktop.mov
iOS
ios.mov
Android
android.mov