-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Use stateNum to determine report state #23700
Conversation
This makes sense to me |
I can review this |
Thanks @allroundexperts |
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-07-28.at.3.25.36.PM.movMobile Web - ChromeScreen.Recording.2023-07-28.at.3.37.57.PM.movMobile Web - SafariScreen.Recording.2023-07-28.at.3.43.42.PM.movDesktopScreen.Recording.2023-07-28.at.3.33.25.PM.moviOSScreen.Recording.2023-07-28.at.4.02.34.PM.movAndroidScreen.Recording.2023-07-28.at.4.13.21.PM.mov |
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.
@allroundexperts did you finish the review for this one? |
@Julesssss I got distracted. Have completed the checklist. For completeness, I found two issues which might not be related.
|
@AndrewGable 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] |
🎯 @allroundexperts, thanks for reviewing and testing this PR! 🎉 An E/App issue has been created to issue payment here: #23786. |
Thanks for testing, i think those are fine and will be tackled later. @AndrewGable @Gonals all yours. |
I think we can merge this since we got 2 approvals and Alberto is going ooo and Andrew is focused on Receipt Scanning. |
✋ 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/luacmartins in version: 1.3.48-0 🚀
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.3.48-5 🚀
|
🚀 Deployed to staging by https://github.com/luacmartins in version: 1.3.49-0 🚀
|
🚀 Deployed to production by https://github.com/Beamanator in version: 1.3.49-3 🚀
|
Details
We introduced the ability to delete requests and with that $0 reports might become more common. When deleting the last request in a report, we shouldn't show
paid
and the checkmark to users, so instead of using thehasOutstandingIOU
property, we should use the report state to determine if the report has been paid or notcc @mountiny @Julesssss @nkuoch
Fixed Issues
https://github.com/Expensify/Expensify/issues/302985 (partial)
Tests
+ > Request money
paid
and there's no green checkmark visible<user> owes $0.00
Offline tests
N/A
QA Steps
Same as tests
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android