Repository navigation
Fix optimistic created report shows infinite skeleton loading - #37269
Closed
bernhardoj wants to merge 3 commits into
Closed
bernhardoj wants to merge 3 commits into
bernhardoj wants to merge 3 commits into
Conversation
Contributor
Author
bernhardoj
commented
Feb 27, 2024
| } | ||
|
|
||
| fetchReportIfNeeded(); | ||
| }, [isHydrated]); |
Contributor
Author
There was a problem hiding this comment.
This change was added to solve an issue when creating a new workspace room, Chat Report is shown as the room name.
That's because the data is not ready yet here and the report name becomes Chat Report.
https://github.com/Expensify/App/blob/main/src/libs/actions/Report.ts#L552-L556
Contributor
Author
|
Even after this PR is merged, we will still have an extra OpenReport request because the report data is not immediately available. App/src/pages/home/ReportScreen.js Lines 355 to 362 in 668df99 One way to fix it is by using |
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Details
This PR makes the report screen renders immediately even when the report data is not available yet and we have a logic to overwrite the report data when the report Onyx is empty.
Fixed Issues
$ #35906
$ #37247
$ #37234
PROPOSAL:
Tests
Same as QA Steps
Offline tests
A. Same as QA Steps
B.
QA Steps
A.
B.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel so 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
New.Expensify.Dev.1.mp4
Screen.Recording.2024-02-27.at.17.53.51.mov
Android: mWeb Chrome
Screen.Recording.2024-02-27.at.16.05.34.mov
Screen.Recording.2024-02-27.at.17.51.05.mov
iOS: Native
Screen.Recording.2024-02-27.at.15.59.42.mov
Screen.Recording.2024-02-27.at.17.48.30.mov
iOS: mWeb Safari
Screen.Recording.2024-02-27.at.15.54.32.mov
Screen.Recording.2024-02-27.at.17.50.35.mov
MacOS: Chrome / Safari
Screen.Recording.2024-02-27.at.15.48.19.mov
Screen.Recording.2024-02-27.at.17.45.28.mov
MacOS: Desktop
Screen.Recording.2024-02-27.at.15.50.39.mov
Screen.Recording.2024-02-27.at.17.46.05.mov