-
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
Hide approved button if report on policy that's on "instant submit" and "Submit and closed" mode #35470
Conversation
…vedBtnIfInstantSubmitAndClosed
Will review tomorrow, sorry for the delay! |
…vedBtnIfInstantSubmitAndClosed
no prob at all! i was out yesterday anyway. merged main cuz it seems like a LOT OF SHTUFF went down recently lol |
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.
Code LGTM 👍
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
Web-e PR on staging! 💪 Now to figure out why performance tests are failing 🤔 |
I think it just needs another merge of main, they were fixed there a few hours ago 😄 |
aah ok!! ANOTHER main merge incoming 😅 |
…vedBtnIfInstantSubmitAndClosed
Sweeeeet they passed!! Hoping web will get to prod soonish so we can get this bad boi merged before the weekend 🙏 |
Looks like https://github.com/Expensify/Web-Expensify/pull/40718 is on prod so I'll remove the hold and merge 🙌 |
✋ 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/amyevans in version: 1.4.39-0 🚀
|
🚀 Deployed to production by https://github.com/Beamanator in version: 1.4.39-8 🚀
|
Details
Approver shouldn't be able to "Approve" an expense report IFF the report's policy is a Collect Policy, on "Instant Submit" reporting frequency, with "Submit & Close" approval mode. Otherwise we want to enable this.
Fixed Issues
$ Related to https://github.com/Expensify/Expensify/issues/364086
Tests
isPolicyExpenseChatEnabled
set to true (SO)instant
Submit and Close
(on the policy settings "members" page)Waiting for <admin> to pay these expenses. You can still add expenses while the report is Processing.
You marked this report as manually reimbursed. This report will be reimbursed outside of Expensify
but this is a known bug, being addressed in [$500] IOU - 'You marked this report...' message only appears on the second visit to IOU report #34003Offline tests
Can't really test offline, we don't have the ability to change a workspace's auto reporting frequency or approval mode in NewDot yet (planned for wave8) so all we can test here is data loaded from the server, so must be online
QA Steps
Same as above
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)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label 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: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Employee:
Admin:
MacOS: Desktop