-
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
Fix different amount shown in pay buttons between report preview and expense report header #44838
Fix different amount shown in pay buttons between report preview and expense report header #44838
Conversation
@thesahindia 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] |
Additional video showing the consistent amount when there is a hold expense or all expenses are on hold. web.+.hold.mp4 |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-07-08.at.3.58.15.PM.movAndroid: mWeb ChromeScreen.Recording.2024-07-08.at.4.05.17.PM.moviOS: NativeScreen.Recording.2024-07-08.at.4.26.24.PM.moviOS: mWeb SafariScreen.Recording.2024-07-08.at.4.30.35.PM.movMacOS: Chrome / SafariScreen.Recording.2024-07-08.at.3.57.06.PM.movMacOS: DesktopScreen.Recording.2024-07-08.at.4.31.06.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.
Works well!
Looks like lint check failed. |
looks like just prettier so should hopefully be quick! |
Sorry, missed this. Prettier fixed. |
All yours @dangrous |
Hi! This looks fine but just wanted to make sure - can we confirm that there are no situations where the button should show something other than an amount? I'm thinking specifically of this logic in getDisplayAmount
I don't think there would be but wanted to check - I think that Otherwise looks great! |
@dangrous the pay amount logic in the expense report header doesn't have that logic either and the pay button won't show while scanning, so I believe we shouldn't need that. Also, it would be weird if we somehow return "Scanning" as it will be "Pay Receipt Scanning..." |
oh yeah true, I think we're good then! |
🚀 Deployed to staging by https://github.com/dangrous in version: 9.0.7-3 🚀
|
🚀 Cherry-picked to staging by https://github.com/thienlnam in version: 9.0.7-4 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to production by https://github.com/thienlnam in version: 9.0.7-8 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.0.8-6 🚀
|
Details
The amount shown in pay button of report preview and expense report header is different. This PR fix it.
Fixed Issues
$ #44158
PROPOSAL: #44158 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.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
Android: Native
android.mp4
Android: mWeb Chrome
android.mweb.mp4
iOS: Native
ios.mp4
iOS: mWeb Safari
ios.mweb.mp4
MacOS: Chrome / Safari
web.+.track.mp4
MacOS: Desktop
desktop.mp4