-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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 #55150
Hide pay button if submit button is visible #55150
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] |
@shubham1206agra Please check out the description > tests section. Also regarding Changed files ESLint check, I fixed all of the errors in |
@shubham1206agra I resolved lint issues once more, this time it was caused by new imports rule 😅 |
Reviewer Checklist
Screenshots/Videos |
We did not find an internal engineer to review this PR, trying to assign a random engineer to #54538 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
✋ 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.87-0 🚀
|
Th PR seem to be failing with the original KI 1737165389747.MacOS_Chrome-55150.mp4 |
Well the original KI was just for the header, but we should definitely fix that as well. Starting slack thread. |
🚀 Deployed to production by https://github.com/Beamanator in version: 9.0.87-3 🚀
|
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:
Tests
Create a trip with steps from this PR [vip-travel] Create Trip Details Screen #52823
Go to trip room.
Click on the expense preview
Verify that only
Submit
button is visibleVerify 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