Repository navigation
Shows a different message when approving/paying all hold expenses - #42736
Conversation
|
@mananjadhav 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] |
|
@bernhardoj @mananjadhav I just updated the QA steps in the OP with accurate ones that have been checked, please use those to test the PR, thanks! An important distinction is that these new test steps only ever create/deal with a single expense report. |
|
@jasperhuangg I have a few questions:
|
|
@bernhardoj I updated the testing steps with the expected behavior, let me know if you have any trouble. |
|
@jasperhuangg I think the test step is a little bit confusing because both users A and B are approving the report.
Also, we can't add more expense to an approved/submitted report. But I got the idea to hold one expense report.
And do you know what we should do about this question? I think it doesn't make sense to use the current message for a report that has all expenses on hold. |
|
@bernhardoj If the one-expense report is ready to paid, shouldn't the expenses on it be approved already (and not held)? |
|
Yes, but I can hold an approved request. I don't know if that's expected though. No error from BE when I tested it last time. If that's not expected, we can update the test step to turn off the approval setting, so the next step will be pay and not approve. |
This seems good, but any specific reason why BE doesn't throw the error @jasperhuangg ? |
|
I think we should still be able to hold approved requests based on what I'm seeing. I think updating the testing step to do that should be fine. Thanks for investigating. @bernhardoj |
|
Great! I think the last thing left is the case for more than 1 expense all on hold. I see that you previously answered it from the email, but looks like it's already been deleted.
@jasperhuangg Are we waiting for the team's confirmation for the wording/copy or is it an unintentional deletion? |
|
@bernhardoj Ah yes, I deleted it on purpose, I'm waiting for confirmation on what the correct wording should be, thanks. |
|
@bernhardoj Yeah, so we don't want any change to the existing modal copy in production when approving a report with a mix of held/unheld expenses. We only want to update the copy for reports where all expenses are held. |
|
@jasperhuangg Hmm, I think I'm a bit confused here 😅. If there is held and unheld expense, the copy won't change. I think what we want to know is the copy for
Should it be:
Or should we use copy 2 for both cases? |
|
Use copy 2 for both cases! |
|
Great, I updated the test step to use back my test step since it's easier to test multiple expenses. But I still need a copy for the but we use this for approve should I just change I will ask for a translation after this. |
|
@bernhardoj I think that's fine. Thanks for pushing this forward! |
|
@bernhardoj Can you resolve the conflicts? and did you post a message about the translation? |
|
Conflicts solved. Asked for translation confirmation here |
|
@jasperhuangg Could you help with the translations here (thread)? |
|
@bernhardoj We realized the translations we've been talking about are incorrect. Can you update the text to say: In the case where there is just 1 expense on the report? In all other cases we should use the existing copy. Sorry for the confusion, and thank you for your patience. |
|
Ah okay, so to confirm, A single expense on hold: I still think the multi expenses all on hold doesn't looks good though (which leads to the same 2nd question here 😅), but is the above correct? If it's correct, then the last thing I need is the |
|
@bernhardoj Will ask for clarification–I'm honestly kinda confused now as to what we want 😓 Thanks for your patience |
Yeah that's what @bernhardoj and I meant. Working on the checklist now. |
|
@mananjadhav Any updates on that checklist? |
|
@jasperhuangg Left with final testing. The rest of the items of the checklist are fine, so I'll finish it once the QA is done. |
|
We good here? |
|
@trjExpensify Still waiting on @mananjadhav to post the updated checklist. It looks like we ran into some conflicts too @bernhardoj, sorry that happened! |
|
Yeah I was able to test this on Web. I'll have the checklist ready by in a few hours/tomorrow. |
…-to-approve-all-hold-expenses
|
Conflicts fixed |
|
@mananjadhav Can we please get that checklist soon 🙇 we're running into conflicts almost every day |
|
Yes 😞 I am just finishing one PR and getting to this next! Sorry for the delay. |
Reviewer Checklist
Screenshots/Videos |
|
Just finished with the checklist, took a bit longer because had to test several test cases. @bernhardoj Can you resolve the conflicts please? |
…-to-approve-all-hold-expenses
|
Conflicts fixed |
jasperhuangg
left a comment
There was a problem hiding this comment.
Thank you guys for your patience and perseverance with this one!
|
✋ 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/jasperhuangg in version: 9.0.4-0 🚀
|
|
🚀 Cherry-picked to staging by https://github.com/tgolen in version: 9.0.4-5 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.0.5-13 🚀
|
|
🚀 Deployed to production by https://github.com/thienlnam in version: 9.0.6-8 🚀
|
















































Details
Currently, when we are trying to approve/pay a report that contains all hold expenses, the confirmation message isn't adjusted for all hold expenses. It still asks whether to approve what's on hold or all even though all are on hold. This PR updates the message accordingly.
Fixed Issues
$ #41613
PROPOSAL: #41613 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
Prerequisite: approval enabled
Approve what's not on hold, or approve the entire report.(unchanged)These expenses are on hold. Do you want to approve anyway?This expense is on hold. Do you want to approve anyway?Prerequisite: approval disabled
Pay what's not on hold, or pay the entire report.These expenses are on hold. Do you want to pay anyway?This expense is on hold. Do you want to pay anyway?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
approval enabled

approval disabled

Android: mWeb Chrome
approval enabled

approval disabled

iOS: Native
approval enabled

approval disabled

iOS: mWeb Safari
approval enabled

approval disabled

MacOS: Chrome / Safari
approval enabled

approval disabled

MacOS: Desktop
approval enabled

approval disabled
