-
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
Invoice - Send invoice button appears in Reports empty state when invited member is not an admin #54562
Comments
Triggered auto assignment to @anmurali ( |
Edited by proposal-police: This proposal was edited at 2024-12-25 14:58:57 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Invoice - Send invoice button appears in Reports empty state when invited member is not an admin What is the root cause of that problem?We are not check if a user can send invoice before displaying the button here App/src/pages/Search/EmptySearchView.tsx Lines 195 to 205 in 12e0941
What changes do you think we should make in order to solve the problem?We should check if user can send invoice check we use here
and only display the button if the can send invoice What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?What alternative solutions did you explore? (Optional) |
Edited by proposal-police: This proposal was edited at 2024-12-25 15:08:51 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Send invoice button appears in Reports empty state when invited member is not an admin What is the root cause of that problem?
App/src/pages/Search/EmptySearchView.tsx Lines 176 to 187 in 12e0941
What changes do you think we should make in order to solve the problem?
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?What alternative solutions did you explore? (Optional)We can use App/src/pages/Search/SearchTypeMenu.tsx Line 100 in 12e0941
Invoice option will be displayed only when there are invoices for a non-admin user |
Added an alternative solution |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 9.0.78-2
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Yes
If this was caught during regression testing, add the test name, ID and link from TestRail: Exp
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Device used: Mac 15.0 / Chrome
App Component: Search
Action Performed:
Precondition:
Expected Result:
Send invoice button should not appear for User B since User B is not an admin of the invited workspace.
Actual Result:
Send invoice button appears for User B when User B is not an admin of the invited workspace. It opens not here page.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6702000_1735113983672.20241225_160207.mp4
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: