-
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 2023-08-21] Web - Inconsistency: Delete confirmation is not shown when deleting Money Request #23858
Comments
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open
|
Triggered auto assignment to @pecanoro ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.There is no confirmation modal when deleting a money request action. What is the root cause of that problem?There is no confirmation modal in the when deleting a money request action in What changes do you think we should make in order to solve the problem?We should add
in WorkSpaceInitialPage herehttps://github.com/Expensify/App/blob/eb020063789091eb2e3086b5b54af3ead8436645/src/components/MoneyRequestHeader.js#L90C9-L90C9 in MoneyRequestHeader as well
<ConfirmModal
title={props.translate('moneyrequest.common.delete')}
isVisible={isDeleteModalOpen}
onConfirm={confirmDeleteAndHideModal}
onCancel={() => setIsDeleteModalOpen(false)}
prompt={props.translate('moneyrequest.common.deleteConfirmation')}
confirmText={props.translate('common.delete')}
cancelText={props.translate('common.cancel')}
danger
/> Add the relevant phrases in en.js and es.js const [isDeleteModalOpen, setIsDeleteModalOpen] = useState(false); Change this here const confirmDeleteAndHideModal = useCallback(() => {
IOU.deleteMoneyRequest(parentReportAction.originalMessage.IOUTransactionID, parentReportAction, true);
setIsDeleteModalOpen(false);
}, [parentReportAction]); and change this here App/src/components/MoneyRequestHeader.js Line 79 in eb02006
to onSelected: () => setIsDeleteModalOpen(true), We can do the same in Task page as well when canceling a task to show confirmation and at other places as applicable this way. What alternative solutions did you explore? (Optional) |
ProposalI think this shouldn't be a deploy blocker because it's new feature and didn't block user from using the app 🤔 Please re-state the problem that we are trying to solve in this issue.Web - Inconsistency: Delete confirmation is not shown when deleting Money Request What is the root cause of that problem?We don't show the confirm modal before deleting a money request in here: App/src/components/MoneyRequestHeader.js Lines 65 to 67 in eb02006
What changes do you think we should make in order to solve the problem?We can reuse the const deleteTransaction = useCallback(() => {
// IOU.deleteMoneyRequest(parentReportAction.originalMessage.IOUTransactionID, parentReportAction, true);
ReportActionContextMenu.showDeleteModal(parentReportAction.originalMessage.IOUTransactionID, parentReportAction, true);
}, [parentReportAction]); What alternative solutions did you explore? (Optional)N/A ResultScreen.Recording.2023-07-30.at.08.50.31.mov |
This is not even a bug, right? This functionality has never existed 😄 |
Triggered auto assignment to @alexpensify ( |
Triggered auto assignment to Design team member for new feature review - @shawnborton ( |
@mountiny @luacmartins Should we have a delete confirmation modal for money requests? |
I believe we had: Screen.Recording.2023-07-31.at.17.18.27.movWe just forget to add it to this new feature |
@luacmartins I am not sure how this was planned in the design doc now but it makes send to keep it consistent |
Agree, if we had this before then let's keep the confirm modal. |
Sounds good! Let's add the confirmation modal back! I can take this on if you'd like @pecanoro |
@luacmartins As do you want to fix it? I can stay as the CME if we are having a contributor fix it. |
Sure that works too! Just thought I'd offer to fix it myself since this is related to the functionality I worked on. |
Sure! I will assign you so you can fix it, I can always review the PR 😄 |
@pecanoro at this point, we are waiting for proposals - right? |
@alexpensify I'm gonna work on the fix myself. |
PR here |
Thank you @luacmartins for the update here! |
@luacmartins - it looks like the PR merged, can you share what actions are remaining here? Thanks! |
@alexpensify we're just missing payment: @daveSeife - reporting bonus |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.53-2 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 2023-08-21. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue:
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
@luacmartins I'm an contributor from an expert agency (Software Mansion) so I'm actually not eligible to payment |
Ah thanks for the reminder! So I think we only have the reporting bonus payment to @daveSeife |
Sounds like a plan! I'll prepare accordingly for the August 21 payment day. |
Here is the payment summary:
Upwork Job: https://www.upwork.com/jobs/~011c0a2bbb8d3512ee *If applicable, the bonuses will be applied on the final payment Extra Notes regarding payment: N/A |
@daveSeife - I've prepared the payment in Upwork. Please accept and I can complete the required process. |
Accepted. Thank you! |
Thanks! I've closed the job in Upwork and am going to close this GH too |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Notice that Delete confirmation is not shown
Expected Result:
Delete confirmation is shown
Actual Result:
Delete confirmation is not shown when deleting Money Request
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.47.2
Reproducible in staging?: y
Reproducible in production?: "Delete" button is not functional. in production
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Test94.Deletrequest-1.mp4
Recording.3988.mp4
Expensify/Expensify Issue URL:
Issue reported by: @daveSeife
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1690624169287459
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: