-
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
fix: update next step for approver #42018
Conversation
@dukenv0307 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] |
@dukenv0307 ready for review again |
@dominictb Ah I see, code looks good. I'll start to review in a few hours |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-05-14.at.11.38.40.movAndroid: mWeb Chromeweb-resize.mp4iOS: NativeScreen.Recording.2024-05-14.at.11.37.32.moviOS: mWeb Safariweb-resize.mp4MacOS: Chrome / SafariScreen.Recording.2024-05-14.at.11.14.08.movMacOS: DesktopScreen.Recording.2024-05-14.at.11.41.31.mov |
@dominictb Can you add |
@dominictb @mountiny I found the bug if the approver is admin. Next steps change from web-resize.mp4 |
@dukenv0307 even after signing out and back/ opening the report again, does the backend return "no further action" for that report? It might be because of a reimburser set up, maybe. Is the approver, the admin and the submitter the same user? Can you please list out these steps in a numbered list where you saw this bug? |
Prerequisite: Have a collect workspace with admin, approver, and employee. Approver and admin is the same user, submitter is someone else
|
@dukenv0307 I mean if the approver (admin) clicks on |
@dominictb Yes, the approver (admin) can pay the request Screen.Recording.2024-05-15.at.10.14.57.mov |
@mountiny what do u think in this case? |
@mountiny could we have someone on the BE team to check this case mentioned by @dukenv0307? |
@dominictb @dukenv0307 I think we have to fix this in scope fo this issue as basically we are just moving this problem along the chain. When the user is an approver and admin at the same time, after approving the report, the next steps should instruct them to pay the report as the next step. @dukenv0307 can you confirm what is returned from the backend as the next step in this case (approver/ admin is the same user) and admin approves the report first without paying |
will give an update in a hour |
@mountiny @dominictb BE return ![]() |
Cool in that case I think we can go ahead with this PR |
Thanks @mountiny. Code looks good and tests well, we're go to merge |
@mountiny pls help approve and merge this one. Thanks! |
@mountiny let's merge this PR. Thanks! |
@mountiny It shouldn't be held by merge freeze |
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.
Thanks
✋ 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/mountiny in version: 1.4.77-0 🚀
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.4.77-11 🚀
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.4.77-11 🚀
|
Details
Fixed Issues
$ #41614
PROPOSAL: #41614 (comment)
Tests
Prerequisite: Have a collect workspace with admin, approver, and employee.
Offline tests
QA Steps
Prerequisite: Have a collect workspace with admin, approver, and employee.
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
anative-8MB.mp4
Android: mWeb Chrome
aweb-8MB.mp4
iOS: Native
ina-8MB.mp4
iOS: mWeb Safari
ios-web-8MB.mp4
MacOS: Chrome / Safari
web-8MB.mp4
MacOS: Desktop
desktop-8MB.mp4