-
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-08-14] [$250] Search - Delete modal message changes to ".. these expenses" briefly when clicking Cancel #45447
Comments
Triggered auto assignment to @slafortune ( |
Triggered auto assignment to @robertjchen ( |
👋 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:
|
ProposalPlease 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 |
ProposalPlease 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. const handleOnCancelConfirmModal = () => {
setDeleteExpensesConfirmModalVisible(false);
InteractionManager.runAfterInteractions(() => {
setSelectedItemsToDelete([]);
});
}; Do the same with App/src/components/Search/SearchListWithHeader.tsx Lines 57 to 60 in 7d58aa6
What alternative solutions did you explore? (Optional)We can use |
ProposalPlease re-state the problem that we are trying to solve in this issue.
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)NA |
ProposalPlease re-state the problem that we are trying to solve in this issue.Delete modal confirmation message text changes from "...this expense..." to "...these expenses..." when closing the modal. What is the root cause of that problem?The title depends on the selected item to delete count. App/src/components/Search/SearchListWithHeader.tsx Lines 194 to 199 in 7d58aa6
When we press Cancel, it will clear the selected item to delete and set the modal visibility to false. App/src/components/Search/SearchListWithHeader.tsx Lines 62 to 65 in 7d58aa6
This makes the selected item to delete count become 0 and the plural form is used while the modal is still animating to close. What changes do you think we should make in order to solve the problem?Clears the selected item to delete when the modal is fully hidden instead of cancelling the modal.
|
@robertjchen, @slafortune Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Job added to Upwork: https://www.upwork.com/jobs/~01086f676b97015a4f |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @abdulrahuman5196 ( |
@bernhardoj 's proposal here #45447 (comment) looks good and works well. Using 🎀 👀 🎀 |
Current assignee @robertjchen is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
I tried to add
but the bug can be reproduced: Screen.Recording.2024-07-24.at.17.34.09.mov@bernhardoj Can you help confirm if your solution works well. |
Yes, it works well. web.mp4Pretty sure @abdulrahuman5196 have tested it too. |
This comment was marked as outdated.
This comment was marked as outdated.
@bernhardoj Ah, I got it, after trying to refresh the browser a few times, your solution works from my side. |
Sounds good, thanks for testing- let's go with @bernhardoj 's proposal 👍 |
📣 @abdulrahuman5196 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
PR is ready |
|
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:
|
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:
|
https://github.com/Expensify/App/pull/45143/files#r1717120388
Yes.
|
@abdulrahuman5196 Role C+ is due payment through NewDot Manual Requests - $250 |
$250 approved for @abdulrahuman5196 |
Requested in ND. |
$250 approved for @bernhardoj |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
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:
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?
Screenshots/Videos
Bug6543389_1721092571591.20240716_091035.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @slafortuneThe text was updated successfully, but these errors were encountered: