-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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-12-11] [$250] Expense - On creating split expense via QAB, instead of next&save button split expense shown #52386
Comments
Triggered auto assignment to @adelekennedy ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Expense - On creating split expense via QAB, instead of next&save button split expense shown What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?
What alternative solutions did you explore? (Optional)
Result |
Edited by proposal-police: This proposal was edited at 2024-11-19 08:52:22 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Expense - On creating split expense via QAB, instead of next&save button split expense shown What is the root cause of that problem?We will only return the save or next button if the skipConfirmation is false App/src/pages/iou/MoneyRequestAmountForm.tsx Lines 234 to 244 in cd3f30f
Since we split the expense from QAB, we pass skipConfirmation true here App/src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.tsx Lines 271 to 274 in cd3f30f
Lines 386 to 392 in cd3f30f
What changes do you think we should make in order to solve the problem?We should pass skipConfirmation false App/src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.tsx Lines 271 to 274 in cd3f30f
We can also do the same approach for other request if needed What alternative solutions did you explore? (Optional)We can pass skipConfirmation false if it's manual/distance split App/src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.tsx Lines 271 to 274 in cd3f30f
case CONST.QUICK_ACTIONS.SPLIT_MANUAL:
case CONST.QUICK_ACTIONS.SPLIT_DISTANCE:
selectOption(() => IOU.startMoneyRequest(CONST.IOU.TYPE.SPLIT, quickActionReportID, undefined, false), true);
return;
case CONST.QUICK_ACTIONS.SPLIT_SCAN:
selectOption(() => IOU.startMoneyRequest(CONST.IOU.TYPE.SPLIT, quickActionReportID, undefined, true), true);
return; |
ProposalPlease re-state the problem that we are trying to solve in this issue.When creating split expense from QAB, Split Expense is shown on the amount page Button instead of next/save. What is the root cause of that problem?When we select split bill from QAB, we pass skipConfirmation as true. App/src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.tsx Lines 271 to 273 in 058b3af
If it's true, then we show Split Expense as the text. App/src/pages/iou/MoneyRequestAmountForm.tsx Lines 234 to 245 in 058b3af
However, pressing the button won't split the expense immediately and instead going to the confirm page. If we look at this comment, we only want to skip split if it's unconfigurable, and only scan is unconfigurable. App/src/pages/iou/request/step/IOURequestStepAmount.tsx Lines 181 to 183 in 058b3af
This means that we shouldn't skip confirmation for the manual amount. What changes do you think we should make in order to solve the problem?Since we only want to skip split scan expense, we can remove this code for split scan because it's inside the manual amount page. App/src/pages/iou/request/step/IOURequestStepAmount.tsx Lines 180 to 201 in 058b3af
And then update App/src/pages/iou/request/step/IOURequestStepAmount.tsx Lines 78 to 84 in 058b3af
|
Job added to Upwork: https://www.upwork.com/jobs/~021858387880530531401 |
external |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mollfpr ( |
Thank you guys for the proposals!
@Krishna2323 The RCA should be clear in pointing out what's the start of the problem to the end. Here are some follow questions for your RCA.
What check do we need to do?
Also, the solution is not related to the main problem where the @NJ-2020 Your solution works only for the case when the QAB split expense is pressed. Is not working if we navigate to split manual from QAB split receipt/scan.
@bernhardoj What's the initial reason for having the split scan on the manual amount page? I'm okay to remove it as long we have confirmed that the logic won't be used. |
The alternative solution from @Krishna2323 and solution from @bernhardoj pretty much have the same approach to solving the issue, but they are ignoring the fact that |
@mollfpr What do you mean by that?, I think when we split manual from QAB receipt/scan, the amount menu is not displayed, because the receipt is not yet scanned And also if I submit split scan expense, and then go to expense details > amount, the submit button showing the correct title which is Alternatively we can do this App/src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.tsx Lines 271 to 274 in cd3f30f
case CONST.QUICK_ACTIONS.SPLIT_MANUAL:
case CONST.QUICK_ACTIONS.SPLIT_DISTANCE:
selectOption(() => IOU.startMoneyRequest(CONST.IOU.TYPE.SPLIT, quickActionReportID, undefined, false), true);
return;
case CONST.QUICK_ACTIONS.SPLIT_SCAN:
selectOption(() => IOU.startMoneyRequest(CONST.IOU.TYPE.SPLIT, quickActionReportID, undefined, true), true);
return; // we will skip the confirmation page if it's split scan Proposal Updated
|
@NJ-2020 Let me know the result with your solution of this step case:
Could you confirm if the text is shown next & save? |
@NJ-2020 Here's there result I've got when trying your solution. The text still shows split expense. Screen.Recording.2024-11-19.at.16.09.35.mp4The reason why this happens is because when selecting QAB split receipt where it has the |
I mentioned it here that we pass skipConfirmation as true and it's not wrong. All QAB should pass it as true, Including this distance QAB. App/src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.tsx Lines 275 to 277 in 058b3af
The
App/src/pages/iou/request/step/IOURequestStepAmount.tsx Lines 78 to 84 in 058b3af
|
@bernhardoj Yes you did mention it in the RCA, but in your solution, you leave it as is.
Could you elaborate this? Is other button quick actions without |
I'm saying every QAB should pass the App/src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.tsx Lines 271 to 273 in 445fc42
Otherwise, this will happen which you mentioned in your comment.
|
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@mollfpr @adelekennedy this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
I think we can move forward now. The proposal from @bernhardoj has more explanation on the RCA and I think it has the correct RCA. So the proposal looks good to me! 🎀 👀 🎀 C+ reviewed! |
PR is ready cc: @mollfpr |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.70-9 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-12-11. 🎊 For reference, here are some details about the assignees on this issue:
|
@mollfpr @adelekennedy @mollfpr The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button] |
Payment Summary
BugZero Checklist (@adelekennedy)
|
BugZero Checklist:
Bug classificationSource of bug:
Where bug was reported:
Who reported the bug:
Regression Test Proposal Template
Regression Test ProposalPrecondition:Test:Do we agree 👍 or 👎 |
@mollfpr for the steps above! |
Contributor: @bernhardoj owed $250.00 via NewDot |
Requested in ND. |
$250 approved for @bernhardoj |
@mollfpr, @stitesExpensify, @bernhardoj, @adelekennedy Whoops! This issue is 2 days overdue. Let's get this updated quick! |
BugZero Checklist:
Bug classificationSource of bug:
Where bug was reported:
Who reported the bug:
Regression Test ProposalPrecondition:
Test:
Do we agree 👍 or 👎 |
$250 approved for @mollfpr |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 9.0.60-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Y
Issue reported by: Applause Internal Team
Action Performed:
Pre:condition:
Steps:
Expected Result:
On creating split expense via QAB, instead of next&save button, split expense button must not be shown.
Actual Result:
On creating split expense via QAB, instead of next&save button, split expense button is shown.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6662094_1731384329996.Screenrecorder-2024-11-12-09-31-56-914.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @adelekennedyThe text was updated successfully, but these errors were encountered: