Hide GBR on pending transactions#53039
Conversation
|
Hi @akinwale, I’m currently working on mocking data to test this PR. However, to ensure proper validation, we’ll ultimately need to use the correct data from the backend for testing. Do you know of any way to mock a card expense on the New Dot? |
@cretadn22 I am not sure. Can you ask in the #expensify-open-source channel on Slack? |
|
@johnmlee101 Please hold off on reviewing this. I accidentally approved thinking it was a different PR. |
|
Asking here: https://expensify.slack.com/archives/C01GTK53T8Q/p1732719302806679 But there are no response |
|
@akinwale Should I do on this PR? Or I will use mock data to test |
|
@cretadn22 Feel free to use mock data to test. You can try making use of a |
|
Command to mock test: Testing offline is necessary to prevent data updates from the backend |
|
@akinwale Could you review this PR? |
@cretadn22 In which file do you add this as a |
|
@akinwale You can use any file as long as the mock data is imported before testing. Additionally, ensure offline mode is enabled to prevent the backend from overwriting the mock data. |
|
@akinwale what's the next step here, can we get this over the line this week? Thanks! |
|
I'll review this today. |
|
@cretadn22 I have been trying to test this but I have not been able to produce the expected result. Could you please provide a detailed step by step guide on how to test using the provided |
|
We need to trigger a re-render of the LHN to accurately reflect the new mock data Screen.Recording.2024-12-31.at.11.09.46.mp4 |
|
@akinwale let me know when you manage to test! |
|
I'll retest today and should hopefully be able to wrap this up. |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb Chrome53039-android-chrome.mp4iOS: NativeiOS: mWeb Safari53039-ios-safari.mp4MacOS: Chrome / Safari53039-web.mp4MacOS: Desktop53039-desktop.mp4 |
|
@johnmlee101 This is ready for your review. |
|
✋ 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/johnmlee101 in version: 9.0.82-0 🚀
|
1 similar comment
|
🚀 Deployed to staging by https://github.com/johnmlee101 in version: 9.0.82-0 🚀
|
|
@johnmlee101 @akinwale our QA team can't test the card expense. Could this be verified internally? |
|
🚀 Deployed to production by https://github.com/thienlnam in version: 9.0.82-12 🚀
|
|
|
||
| // Has a child report that is awaiting action (e.g. approve, pay, add bank account) from current user | ||
| if (optionOrReport.hasOutstandingChildRequest) { | ||
| if (optionOrReport.hasOutstandingChildRequest && !hasOnlyPendingTransactions) { |
Explanation of Change
Fixed Issues
$ #52315
PROPOSAL: #52315 (comment)
Tests
Offline tests
QA Steps
Prerequisite: Auto approval limit set for $1000 and Receipt required set for $200
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
[Screen102.webm](https://github.com/user-attachments/assets/3c0f573a-936e-4167-bd9b-dff8f9163ba6)Android: mWeb Chrome
[Screen101.webm](https://github.com/user-attachments/assets/ed210946-d21d-4af1-9e81-57c171200d2b)iOS: Native
Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2024-12-16.at.23.27.07.mp4
iOS: mWeb Safari
Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2024-12-16.at.23.26.47.mp4
MacOS: Chrome / Safari
Screen.Recording.2024-12-12.at.00.50.38.mov
MacOS: Desktop
Screen.Recording.2024-12-12.at.00.49.08.mov