Repository navigation
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 |
|
✋ 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 Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.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