Skip to content
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

Search - "Save search" is shown when no category is displayed #52361

Closed
3 of 8 tasks
IuliiaHerets opened this issue Nov 12, 2024 · 10 comments
Closed
3 of 8 tasks

Search - "Save search" is shown when no category is displayed #52361

IuliiaHerets opened this issue Nov 12, 2024 · 10 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering

Comments

@IuliiaHerets
Copy link

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: v9.0.60-0
Reproducible in staging?: Y
Reproducible in production?: N
Issue was found when executing this PR: #52102
Email or phone of affected tester (no customers): applausetester+ds@applause.expensifail.com
Issue reported by: Applause Internal Team

Action Performed:

  1. Go to staging.new.expensify.com
  2. Log in with a new account.
  3. Create a new workspace.
  4. Go to workspace settings
  5. Go to search > filters > Select a category and save search
  6. Delete the workspace
  7. Go to search > filters
  8. Notice that "Save search" is shown even if no category is displayed and no item is selected.

Expected Result:

"Save search" is not shown when there is no item selected.

Actual Result:

"Save search" is shown even if there is no category displayed and no item is selected.

Workaround:

Unknown

Platforms:

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6661988_1731374707602.Screen_Recording_2024-11-12_at_4.06.37_at_night.mp4

View all open jobs on GitHub

@IuliiaHerets IuliiaHerets added DeployBlockerCash This issue or pull request should block deployment Bug Something is broken. Auto assigns a BugZero manager. labels Nov 12, 2024
Copy link

melvin-bot bot commented Nov 12, 2024

Triggered auto assignment to @isabelastisser (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.

Copy link

melvin-bot bot commented Nov 12, 2024

Triggered auto assignment to @MonilBhavsar (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

@melvin-bot melvin-bot bot added the Daily KSv2 label Nov 12, 2024
Copy link

melvin-bot bot commented Nov 12, 2024

💬 A slack conversation has been started in #expensify-open-source

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Nov 12, 2024
Copy link
Contributor

👋 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:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@Kicu
Copy link
Member

Kicu commented Nov 12, 2024

I will try to fix this. However I think there is no obvious solution to this edge case, because the saved search exists and it has certain data saved with it.
On one hand if there are no categories in the system then the picker should not be displayed. On the other hand if a category was saved with this "saved search" then we should display it.

I don't know what is the cleanest solution. What do you think about this @luacmartins ?

@MonilBhavsar
Copy link
Contributor

I think if there are no categories, we can still display a category picker, but may be disable it, so user can know that they can filter through categories.
Makes sense to display saved search.

@MonilBhavsar
Copy link
Contributor

I think we can demote it from blocker since it's an edge case

@MonilBhavsar MonilBhavsar added Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Nov 12, 2024
@MonilBhavsar
Copy link
Contributor

@Kicu I'll assign this issue to you, if you don't mind

@luacmartins luacmartins self-assigned this Nov 12, 2024
@luacmartins
Copy link
Contributor

TBH I think we should just close this. The filter is always available to the user via the typed query so they could technically still search for something like category:blah. The point of hiding the filter in the UI is to de-clutter and give users options that make sense, but I don't think we need to clean up previously saved searches. That behavior is not exclusive to showing/hiding the filter, it would also happen if they saved a search with a category that no longer exists -- for that, the user can update the search themselves if they want to.

@luacmartins
Copy link
Contributor

Gonna close this for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering
Projects
None yet
Development

No branches or pull requests

5 participants