You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2024-08-14] [$250] Search - Delete modal message changes to ".. these expenses" briefly when clicking Cancel #45447
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.EngineeringExternalAdded to denote the issue can be worked on by a contributorWeeklyKSv2
Issue found when validating #45143 Version Number: 9.0.7-4 Reproducible in staging?: y Reproducible in production?: n 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 Expensify/Expensify Issue URL: Issue reported by: applause internal team Slack conversation:
Action Performed:
Precondition:
User has at least one unpaid expense.
Go to staging.new.expensify.com
Go to Search.
Click on the checkbox next to one expense (one only, important)
Click on the dropdown.
Click Delete.
Note that the modal message is "Are you sure that you want to delete this expense?"
Click Cancel.
Note that the modal message changes to "Are you sure that you want to delete these expenses?" quickly before it disappears.
Expected Result:
The delete modal message should be consistent and not change when clicking Cancel button.
Actual Result:
The delete modal message changes from "Are you sure that you want to delete this expense?" to "Are you sure that you want to delete these expenses?" after clicking Cancel button.
This issue only happens when one expense is selected.
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
👋 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:
Identify the pull request that introduced this issue and revert it.
Please re-state the problem that we are trying to solve in this issue.
The delete modal message changes from "Are you sure that you want to delete this expense?" to "Are you sure that you want to delete these expenses?" after clicking Cancel button.
What is the root cause of that problem?
The delete modal message is "Are you sure that you want to delete this expense?" or "Are you sure that you want to delete these expenses?" based on the count value:
Here, when the modal is still displayed for a while before fully disappearing, the modal is displayed as "Are you sure that you want to delete these expenses?".
What changes do you think we should make in order to solve the problem?
changed the title [-][$250] Search - Delete modal message changes to ".. these expenses" briefly when clicking Cancel[/-][+][HOLD for payment 2024-08-14] [$250] Search - Delete modal message changes to ".. these expenses" briefly when clicking Cancel[/+]on Aug 7, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.17-2 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve 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:
[@abdulrahuman5196] The PR that introduced the bug has been identified. Link to the PR:
[@abdulrahuman5196] 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. Link to comment:
[@abdulrahuman5196] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
[@abdulrahuman5196] Determine if we should create a regression test for this bug.
[@abdulrahuman5196] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
[@slafortune] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
The PR that introduced the bug has been identified. Link to the PR:
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. Link to comment:
A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
@abdulrahuman5196 Role C+ is due payment through NewDot Manual Requests - $250 @bernhardoj Role Contributor requires payment through NewDot Manual Requests - $250
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.EngineeringExternalAdded to denote the issue can be worked on by a contributorWeeklyKSv2
Activity
melvin-bot commentedon Jul 16, 2024
Triggered auto assignment to @slafortune (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.melvin-bot commentedon Jul 16, 2024
Triggered auto assignment to @robertjchen (
DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.github-actions commentedon Jul 16, 2024
👋 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:
neonbhai commentedon Jul 16, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Search - Delete modal message changes to ".. these expenses" briefly when clicking Cancel
What is the root cause of that problem?
When deletign expenses we clear the selected items.
App/src/components/Search/SearchListWithHeader.tsx
Lines 69 to 77 in 7d58aa6
This changes the translation from pural to singular notation for a second. This causes the text change
What changes do you think we should make in order to solve the problem?
We will clear selected options after we have hidden the modal here
Krishna2323 commentedon Jul 16, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Search - Delete modal message changes to ".. these expenses" briefly when clicking Cancel
What is the root cause of that problem?
The delete options are cleared before the close animation happens.
App/src/components/Search/SearchListWithHeader.tsx
Lines 62 to 65 in 7d58aa6
What changes do you think we should make in order to solve the problem?
Use interaction manager to clear delete options after animation.
Do the same with
handleOnSelectDeleteOptionfunction.App/src/components/Search/SearchListWithHeader.tsx
Lines 57 to 60 in 7d58aa6
What alternative solutions did you explore? (Optional)
We can use
setTimeoutinstead ofInteractionManager.tienifr commentedon Jul 16, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
The delete modal message is "Are you sure that you want to delete this expense?" or "Are you sure that you want to delete these expenses?" based on the count value:
App/src/languages/en.ts
Line 714 in 7d58aa6
In case of the bug, when selecting one transaction, then click on "Delete" button in header, the delete modal is displayed. Here, we call:
App/src/components/Search/SearchListWithHeader.tsx
Line 58 in 7d58aa6
so the
selectedItemsToDelete.lengthis1, so "Are you sure that you want to delete this expense?" is displayed.Then if we click on "Cancel" button, we call:
App/src/components/Search/SearchListWithHeader.tsx
Line 63 in 7d58aa6
so the
selectedItemsToDelete.lengthis0.Here, when the modal is still displayed for a while before fully disappearing, the modal is displayed as "Are you sure that you want to delete these expenses?".
What changes do you think we should make in order to solve the problem?
App/src/components/Search/SearchListWithHeader.tsx
Line 63 in 7d58aa6
because the
selectedItemsToDeleteis already reset to the new value once we open the modal:App/src/components/Search/SearchListWithHeader.tsx
Line 58 in 7d58aa6
What alternative solutions did you explore? (Optional)
NA
28 remaining items
bernhardoj commentedon Jul 24, 2024
PR is ready
cc: @abdulrahuman5196
[-][$250] Search - Delete modal message changes to ".. these expenses" briefly when clicking Cancel[/-][+][HOLD for payment 2024-08-14] [$250] Search - Delete modal message changes to ".. these expenses" briefly when clicking Cancel[/+]melvin-bot commentedon Aug 7, 2024
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Aug 7, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.17-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 2024-08-14. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Aug 7, 2024
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:
abdulrahuman5196 commentedon Aug 14, 2024
https://github.com/Expensify/App/pull/45143/files#r1717120388
Yes.
slafortune commentedon Aug 14, 2024
@abdulrahuman5196 Role C+ is due payment through NewDot Manual Requests - $250
@bernhardoj Role Contributor requires payment through NewDot Manual Requests - $250
JmillsExpensify commentedon Aug 14, 2024
$250 approved for @abdulrahuman5196
bernhardoj commentedon Aug 15, 2024
Requested in ND.
JmillsExpensify commentedon Aug 21, 2024
$250 approved for @bernhardoj