Add RBR to Search action button#52333
Conversation
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / Safarivd.movMacOS: Desktop |
|
@Pujan92 bump for review |
|
@luacmartins Review text doesn't persist and it instantly turns to Paid, is it fine? Screen.Recording.2024-12-11.at.18.50.49.movI think device A should not go offline bcoz when we turn online it fetches the data again, instead only throttling the speed enough to Pay on both windows and it persists the Review button. If you think the same then we need to update the test step. vd.mov |
|
Ah yea, that's expected since it'll fetch the new result. I agree that your suggestion should fix it and updated the tests accordingly. I was having trouble with that in my local environment, but maybe I just wasn't fast enough even with the throttled local network |
|
Resolved conflicts |
|
@arosiclair 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] |
|
✋ 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/arosiclair in version: 9.0.76-0 🚀
|
|
@luacmartins This PR is failing because of issue #54128 The issue is reproducible in: Google Pixel 8, Android 14, Chrome bug.mp4 |
|
Thanks! I demoted that issue and I think we're good to check it off since it's a small edge case. |
|
🚀 Deployed to production by https://github.com/grgia in version: 9.0.76-12 🚀
|
|
|
||
| // We need to check both options for a falsy value since the transaction might not have an error but the report associated with it might | ||
| // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing | ||
| if (transaction?.hasError || report.hasError) { |
There was a problem hiding this comment.
hasError does not update with Onyx updates which caused #54161
Explanation of Change
Shows an RBR and the review button if there's an error with the request
Fixed Issues
$ #53495
Tests
Pre-requisite: an expense that can be approved and paid
Paidand the other showsReviewbutton with an RBROffline tests
N/A
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
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop