Optimize opening expense report#60182
Closed
martasudol wants to merge 6 commits into
Closed
Conversation
|
@MarioExpensify 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] |
Contributor
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
MarioExpensify
suggested changes
Apr 25, 2025
| const displayNameTexts = screen.queryAllByLabelText(hintText, {includeHiddenElements: true}); | ||
| expect(displayNameTexts).toHaveLength(2); | ||
| expect((displayNameTexts.at(0)?.props?.style as TextStyle)?.fontWeight).toBe(FontUtils.fontWeight.normal); | ||
| expect((displayNameTexts.at(0)?.props?.style as TextStyle)?.fontWeight).toBe(FontUtils.fontWeight.bold); |
Contributor
There was a problem hiding this comment.
Why was this test affected with the change?
Contributor
There was a problem hiding this comment.
Might be not, does it pass on main?
Contributor
There was a problem hiding this comment.
Yes, it is currently passing in main
16 tasks
Contributor
|
@martasudol from this comment you left, please let me know if we should merge this one or not. |
Contributor
|
@martasudol friendly bump |
Contributor
Author
|
@MarioExpensify this issue is a different case (with beta So let's close this issue 🤞 |
Contributor
Author
|
Already fixed in #60884 |
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.
Explanation of Change
The change removes the conditional logic that created different versions of
optimisticReportinopenReportmethod based on whether the report had actions. Now, we always populateoptimisticReportwith all existing report data from Onyx, regardless of action presence. This ensures a consistent user experience where data remains visible throughout the loading process, particularly benefiting users with large data volumes.Fixed Issues
$#60712
PROPOSAL:
Tests
Reportstab.Offline tests
Same as Tests.
QA Steps
Same as Tests.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.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 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
https://github.com/user-attachments/assets/8e9f1377-95b5-4c28-b45a-28c3f907fb69Android: mWeb Chrome
https://github.com/user-attachments/assets/d428c993-d813-4c28-b066-bc6145758899iOS: Native
https://github.com/user-attachments/assets/2f825b7c-94cc-4a44-9714-d0c7ac63cac5iOS: mWeb Safari
https://github.com/user-attachments/assets/5faaf574-10dd-47db-9e43-0eafcfcff3adMacOS: Chrome / Safari
https://github.com/user-attachments/assets/1492e154-8e04-48fe-b598-afc90b3e17bdMacOS: Desktop
https://github.com/user-attachments/assets/9b9a2bea-0606-454e-887f-c7b286c0c3a8Before this change (clear repro):
before_changes.mov
After this change:
after_changes.mov