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

LF-4226: Clear filters on reset #3218

Closed
wants to merge 6 commits into from
Closed

Conversation

zagran
Copy link
Collaborator

@zagran zagran commented May 30, 2024

Description

Clear filter options, previously default value was used.

Jira link: https://lite-farm.atlassian.net/browse/LF-4226

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Passes test case
  • UI components visually reviewed on desktop view
  • UI components visually reviewed on mobile view
  • Other (please explain)

Checklist:

  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • The precommit and linting ran successfully
  • I have added or updated language tags for text that's part of the UI
  • I have added "MISSING" for all new language tags to languages I don't speak
  • I have added the GNU General Public License to all new files

@zagran zagran changed the title LF-4226 Clear filters on reset LF-4226: Clear filters on reset Jun 6, 2024
@zagran zagran marked this pull request as ready for review June 6, 2024 02:07
@zagran zagran requested review from a team as code owners June 6, 2024 02:07
@zagran zagran requested review from Duncan-Brain and kathyavini and removed request for a team June 6, 2024 02:07
@Duncan-Brain
Copy link
Collaborator

Thanks @zagran for taking a look here!

Reading the Jira ticket , I think what I was expecting was that when the user "clears all" filters that it returns to the default state of "all selected" instead of "none selected".

Its an awkward state because we want them all to be selected but not show the individual pills unless interacted with.

@zagran
Copy link
Collaborator Author

zagran commented Jun 12, 2024

Thanks @zagran for taking a look here!

Reading the Jira ticket , I think what I was expecting was that when the user "clears all" filters that it returns to the default state of "all selected" instead of "none selected".

Its an awkward state because we want them all to be selected but not show the individual pills unless interacted with.

I'll fix it then. Thank you for watching

Do I need to change something in the code? Since this is my first contribution, the code may not be perfect (or even not correct at all) - I don't want to add more mess or workarounds

@Duncan-Brain
Copy link
Collaborator

I think yes the code should be corrected. I can do the request changes button haha but most times I do not use it unless I know what to change.

Copy link
Collaborator

@Duncan-Brain Duncan-Brain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"All" should be selected when cleared. But no pills should be present.

@zagran zagran closed this Jul 10, 2024
@zagran
Copy link
Collaborator Author

zagran commented Jul 10, 2024

Returned this ticket to the Backlog. I don't understand the final requirements.

@zagran zagran deleted the LF-4226-clear-all-filters branch July 10, 2024 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants