Feature: Hold expense in one transaction view v2#43618
Conversation
…ld-one-transaction-view-v2
…ld-one-transaction-view-v2
…ld-one-transaction-view-v2
|
What's going on here? Is it ready to be reviewed? |
|
It'll be in several hours. I'm working on the solution for #43203 which is the last blocker we have here. |
|
@shawnborton @dukenv0307 One of you needs to 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 I asked some questions here for clarifications before your review. |
…ld-one-transaction-view-v2
|
@dukenv0307 Latest expectation: #39989 (comment). Ready for review! |
|
code looks good, start to test... |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeweb-resize.mp4Android: mWeb ChromeScreen.Recording.2024-06-21.at.10.31.11.moviOS: Nativeweb-resize.mp4iOS: mWeb SafariScreen.Recording.2024-06-21.at.10.29.54.movMacOS: Chrome / Safariweb-resize.mp4MacOS: Desktopweb-resize.mp4 |
|
Videos above look good to me. |
luacmartins
left a comment
There was a problem hiding this comment.
@tienifr we have conflicts
…ld-one-transaction-view-v2
|
Conflicts are fixed, is this ready for re-review? |
NikkiWines
left a comment
There was a problem hiding this comment.
Looks good as long as it's expected that the user can submit the report while the expense is on hold (which seems odd to me) 👍
|
@tienifr conflicts |
…ld-one-transaction-view-v2
|
✋ 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/luacmartins in version: 9.0.2-0 🚀
|
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.0.3-7 🚀
|
|
I think I need to link here to a discussion in this PR about why it had to be reverted ("The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake."). What should I link to? |
|
@carlosmiceli usually you'd add a link to the regression issue it caused |
|
Right, that's already added (first list item), it says that there should also be a link to the comments on the problem it caused discussed here. Maybe it's not mandatory to add such a link if there was no such conversation? |
|
I think what you're looking for is a comment on this PR saying something like:
|
|
Correct! If there's not one, what's the procedure? |
|
This PR caused this regression because it wasn't checking if the report is an invoice report before adding the |
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.0.5-13 🚀
|
|
|
||
| const getStatusBarProps: () => MoneyRequestHeaderStatusBarProps | undefined = () => { | ||
| if (hasOnlyHeldExpenses) { | ||
| return {title: translate('violations.hold'), description: translate('iou.expensesOnHold'), danger: true}; |
There was a problem hiding this comment.
Coming from this issue #65725 , here for description, We could have made a minor improvement here by checking if the transaction length is greater than 1. If so, we should use the plural IOU hold message; otherwise, we use the singular message.
Details
Second attempt to implement hold expense in one transaction view feature after the revert.
Fixed Issues
$ #39989
PROPOSAL: #39989 (comment)
Tests
Holdbanner appears in report headerHoldbanner disappears in report headerSubmitbutton appears in both report preview and report headerOffline tests
NA
QA Steps
Holdbanner appears in report headerHoldbanner disappears in report headerSubmitbutton appears in both report preview and report headerPR 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
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2024-06-20.at.19.40.11-compressed.mov
MacOS: Desktop
Screen.Recording.2024-05-21.at.14.07.39-compressed.mov