-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Fix RBR in report preview doesn't disappear immediately after the report is paid #75993
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
base: main
Are you sure you want to change the base?
Fix RBR in report preview doesn't disappear immediately after the report is paid #75993
Conversation
|
@allroundexperts 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❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
trjExpensify
left a comment
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.
To confirm...
When the report is paid:
- The RBR/error message should be removed from the expense preview in the report preview component, the expense row in the multi-expense report view
- The error is still visible in-line the field in error on the transaction form
That's where we landed for violations in the paid state, right @JmillsExpensify @puneetlath @cead22?
|
@bernhardoj The RBR still appears in preview if approval workflow is off. Screen.Recording.2025-12-01.at.2.02.54.AM.mov |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2025-12-01.at.2.30.43.AM.movAndroid: mWeb ChromeScreen.Recording.2025-12-01.at.2.24.42.AM.moviOS: HybridAppScreen.Recording.2025-12-01.at.2.22.46.AM.moviOS: mWeb SafariScreen.Recording.2025-12-01.at.2.18.18.AM.movMacOS: Chrome / SafariScreen.Recording.2025-12-01.at.2.09.52.AM.mov |
…rom-report-preview
|
@allroundexperts it's not in the paid state, so the violation still shows. |
Explanation of Change
The settled status is not updated immediately because it's memoized and only changes when the reportID changes. This PR make sure it changes when the report status changes.
Fixed Issues
$ #74757
PROPOSAL: #74757 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
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
Android: Native
android.mp4
Android: mWeb Chrome
android.mweb.mp4
iOS: Native
ios.mp4
iOS: mWeb Safari
ios.mweb.mp4
MacOS: Chrome / Safari
web.mp4