-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[HOLD for payment 2024-07-24] [$250] Submit expense - "Hold" option is not present in report details page #44470
Comments
Triggered auto assignment to @aldo-expensify ( |
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
|
@aldo-expensify FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors |
ProposalPlease re-state the problem that we are trying to solve in this issue."Hold" option is not present in report details page What is the root cause of that problem?Line 2749 in eb83809
On this code, if the current action is not MoneyRequestAction, it directly return return {canHoldRequest: false, canUnholdRequest: false};
But in this case, the current actionName is "REPORTPREVIEW", its childReportName is "IOU", and childMoneyRequestCount is 1 It need to show "Hold" in this case What changes do you think we should make in order to solve the problem?https://github.com/Expensify/App/blob/eb83809486784265a4aba70a9ed0436dd3f29bbe/src/libs/ReportUtils.ts#L2749C10-L2760 What alternative solutions did you explore? (Optional) |
Triggered auto assignment to @MitchExpensify ( |
|
Triggered auto assignment to Design team member for new feature review - @dannymcclain ( |
From looking at the code: App/src/pages/ReportDetailsPage.tsx Lines 628 to 639 in 64c6624
I don't think this was ever implemented and it doesn't seem to be part of the initial designs (original issue: #31300). @robertjchen do you think we want to add this hold button in the report details? Or should we just close this? |
I tested this proposal and it doesn't seem to help... the HOLD button doesn't appear in the report details because the code is completely missing from there I think |
I think the Here's a mock for the expense details showing the hold button: |
ProposalPlease re-state the problem that we are trying to solve in this issue.Submit expense - "Hold" option is not present in report details page. What is the root cause of that problem?This happens because
App/src/pages/ReportDetailsPage.tsx Lines 447 to 448 in e24cf4d
Why do canHoldRequest and canUnholdRequest show as false? This is because isMoneyRequestAction becomes true because this is a report preview action. Also, moneyRequestReportID will always be 0 for report preview since it is using Lines 2750 to 2759 in e24cf4d
What changes do you think we should make in order to solve the problem?Add a report preview action check and update the
Note that Then, Lines 2784 to 2785 in e24cf4d
We can either remove the reimbursable check or ensure that it is present in the backend data. Or, we can make it a conditional check only for non-preview actions. Next, we need to remove the |
📣 @nkdengineer 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
Triggered auto assignment to @sakluger ( |
Reassigning while I'm leave (PR is on staging) 🙇 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.7-8 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2024-07-24. 🎊 For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
Regression Test Proposal
Do we agree 👍 or 👎 |
@brunovjk you don't think that we should add a regression test for this one? |
Yeah, I think we want to include this in our regression tests. Those steps look good! |
Summarizing payment on this issue: Contributor: @nkdengineer $250, paid via Upwork |
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.2-0
Reproducible in staging?: Y
Reproducible in production?: No
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
The "Hold" option should be present on the report details page
Actual Result:
After submitting a single expense in the workspace chat, the 'Hold' option appears in IOU when clicking the three dots. However, the "Hold" option is not present on the report details page
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6525289_1719412383105.Screen_Recording_2024-06-26_at_5.13.22_AM.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @saklugerThe text was updated successfully, but these errors were encountered: