-
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-07-24] iOS - Search - Empty modal is shown when tapping on "0 selected" dropdown #45445
Comments
Triggered auto assignment to @techievivek ( |
Triggered auto assignment to @abekkala ( |
👋 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.iOS - Search - Empty modal is shown when tapping on "0 selected" dropdown What is the root cause of that problem?Modal is set to true even if
What changes do you think we should make in order to solve the problem?Return from the function without calling onPress={() => {
if (!itemsLength) {
return;
}
openMenu();
}} What alternative solutions did you explore? (Optional)Instead of returning empty options when App/src/components/Search/SearchPageHeader.tsx Lines 49 to 53 in 7d58aa6
App/src/components/Search/SearchPageHeader.tsx Lines 101 to 117 in 7d58aa6
|
ProposalPlease re-state the problem that we are trying to solve in this issue.iOS - Search - Empty modal is shown when tapping on "0 selected" dropdown What is the root cause of that problem?We don't set What changes do you think we should make in order to solve the problem?We will set isMobileSelectionModeActive as false on this page, if the selected items are cleared with a useEffect: useEffect(() => {
if (isEmptyObject(selectedItems)){
setIsMobileSelectionModeActive?.(false);
}
}, [selectedItems]) This would remove the checkmarks from the screen as the user would be expecting when they are trying deselect everything. |
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?
<Button
...
isDisabled={options.length === 0}
shouldShowRightIcon={options.length !== 0}
/> ResultWhat alternative solutions did you explore? (Optional)
or update: App/src/pages/Search/SearchSelectedNarrow.tsx Lines 49 to 57 in 7d58aa6
to:
Result
|
Will take this over since Vivek is offline |
This was added from a recent PR since it's not reproducible on production right? Was someone able to find the linked PR? |
Thanks for the proposals everyone! @dominictb's main proposal looks good to me. The disabling of the button is a more common pattern that we usually make use of in our app. @dominictb Can you create the PR real quick since this is a deploy blocker? 🎀 👀 🎀 C+ reviewed |
Current assignee @thienlnam is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
We're going with @dominictb's proposal, and will spin up the PR since you're offline - we'll still compensate you |
@thienlnam Thanks for creating a quick PR. I am not online at that time. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.7-8 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-07-24. 🎊 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:
|
PAYMENT SUMMARY FOR JULY 24
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.8-6 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-07-25. 🎊 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:
|
PAYMENT SUMMARY FOR JULY 24
|
@dominictb payment sent and contract ended - thank you! 🎉 |
Checklist
Regression TestPre-req: Make sure that the user has at least one expense.
Verify that there should not be any dropdown when no expense is selected Do we 👍 or 👎 ? |
$250 approved for @allroundexperts |
Re-opening for the regression test. |
QA GH for regression test created. |
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.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: n/a
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:
There should not be any dropdown when no expense is selected.
Actual Result:
There is a "0 selected" dropdown when no expense is selected, which opens an empty modal when tapped.
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6543329_1721086768147.RPReplay_Final1721086632.mp4
View all open jobs on GitHub
Issue Owner
Current Issue Owner: @abekkalaThe text was updated successfully, but these errors were encountered: