-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Hide pay button if submit button is visible #55503
Hide pay button if submit button is visible #55503
Conversation
@shubham1206agra 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] |
@blazejkustra If the report was approved, why should we show submit button here? |
You mean the screenshot from the description? I used test data there to verify that logic works as expected. Sorry 🙇 edit: changed to a real one |
Reviewer Checklist
Screenshots/Videos |
✋ 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/blimpich in version: 9.0.89-0 🚀
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 9.0.89-8 🚀
|
Explanation of Change
This issue occurred because the user was a submitter and an admin (approver) at the same time. A simple fix is to hide settlement button whenever submit button is visible, this works because:
Fixed Issues
$ #54538
PROPOSAL: N/A
Tests
Create a trip with steps from this PR [vip-travel] Create Trip Details Screen #52823
Go to trip room.
Verify that only
Submit
button is only visible on report previewVerify that other reports (money requests, receipts etc) are unaffected by this change. @shubham1206agra can you think of any edge cases here?
Offline tests
N/A
QA Steps
Same as tests
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)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
Check MacOS: Chrome / Safari
Android: mWeb Chrome
Check MacOS: Chrome / Safari
iOS: Native
Check MacOS: Chrome / Safari
iOS: mWeb Safari
Check MacOS: Chrome / Safari
MacOS: Chrome / Safari
MacOS: Desktop
Check MacOS: Chrome / Safari