-
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-10-11] [$250] Saved search - Unable to delete saved search using Enter key #49492
Comments
Triggered auto assignment to @OfstadC ( |
We think that this bug might be related to #wave-collect - Release 2 |
@OfstadC 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 |
Job added to Upwork: https://www.upwork.com/jobs/~021836866373768762286 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @akinwale ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Saved search - Unable to delete saved search using Enter key What is the root cause of that problem?The yes button has App/src/components/ConfirmContent.tsx Line 202 in 25450d9
App/src/components/ConfirmContent.tsx Line 230 in 25450d9
Which would activate listening of Enter key via KeyboardShortcutComponent App/src/components/Button/index.tsx Lines 324 to 326 in 25450d9
But KeyboardShortcutComponent but key listening is active only if the current screen is focused App/src/components/Button/index.tsx Line 166 in 25450d9
but in our case the screen that holds the confirm modal is not focused What changes do you think we should make in order to solve the problem?To deal with this kind of exceptions we can allow App/src/components/Button/index.tsx Line 166 in 25450d9
and pass down App/src/components/ConfirmModal.tsx Line 126 in 25450d9
to ConfirmContent > The two confirm buttons ( with pressOnEnter) inside Confrim Content > KeyboardShortcutComponent What alternative solutions did you explore? (Optional)BTW we can also pass the |
Edited by proposal-police: This proposal was edited at 2024-09-20 03:52:48 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
and its "Delete" button just listen to the "ENTER" event if its parent screen is focused: App/src/components/Button/index.tsx Line 166 in 25450d9
What changes do you think we should make in order to solve the problem?
function DeleteConfirmModal() {
const {translate} = useLocalize();
const [hashToDelete] = useOnyx(ONYXKEYS.HASH_TO_DELETE);
const handleDelete = () => {
SearchActions.deleteSavedSearch(hashToDelete);
Onyx.set(ONYXKEYS.HASH_TO_DELETE, null);
SearchActions.clearAdvancedFilters();
Navigation.navigate(
ROUTES.SEARCH_CENTRAL_PANE.getRoute({
query: SearchUtils.buildCannedSearchQuery(CONST.SEARCH.DATA_TYPES.EXPENSE, CONST.SEARCH.STATUS.EXPENSE.ALL),
}),
);
};
return (
<ConfirmModal
title={translate('search.deleteSavedSearch')}
onConfirm={handleDelete}
onCancel={() => Onyx.set(ONYXKEYS.HASH_TO_DELETE, null)}
isVisible={!!hashToDelete}
prompt={translate('search.deleteSavedSearchConfirm')}
confirmText={translate('common.delete')}
cancelText={translate('common.cancel')}
danger
/>
);
}
function useDeleteSavedSearch() {
const showDeleteModal = (hash: number) => {
Onyx.set(ONYXKEYS.HASH_TO_DELETE, hash);
};
return {showDeleteModal};
}
export {useDeleteSavedSearch, DeleteConfirmModal};
App/src/pages/Search/SearchTypeMenu.tsx Line 253 in b0ce206
to: App/src/components/Search/index.tsx Line 434 in 25450d9
What alternative solutions did you explore? (Optional)
const ConfirmDeleteModalContext = createContext({
showModal: ()=>{},
isVisible: false
}) instead of using Onyxkey as main solution. |
@akinwale Could you please review the proposals by EOD tomorrow? Thank you! |
Friendly bump @akinwale 😃 |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Current assignee @bondydaa is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
📣 @akinwale 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @FitseTLT 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
Deployed yesterday so I believe payment should be issued 2024-10-09 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.44-12 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-10-11. 🎊 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:
|
@akinwale could you please complete the BZ checklist above? Thank you! |
@akinwale Please complete BZ checklist today so I can issue payment tomorrow. Thank you! |
Not a regression.
Regression Test Steps
Do we agree 👍 or 👎? |
@OfstadC Done! |
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.38-0
Reproducible in staging?: Y
Reproducible in production?: Y
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
User should be able to delete saved search using Enter key.
Actual Result:
User is not able to delete saved search using Enter key.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6608671_1726738796850.bandicam_2024-09-19_17-36-43-268.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @OfstadCThe text was updated successfully, but these errors were encountered: