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

feat: better filter ux #207

Merged
merged 5 commits into from
Aug 28, 2024
Merged

feat: better filter ux #207

merged 5 commits into from
Aug 28, 2024

Conversation

Loxeris
Copy link
Member

@Loxeris Loxeris commented Aug 27, 2024

Makes it easier to see whether a filter is applied or not.

Filters are now green when they are applied and grey when they are not.
Moreover, an info box warns you when some filter changes are not applied.

@Loxeris Loxeris requested a review from aldbr August 27, 2024 08:18
Makes it easier to see whether a filter is applied or not and how to apply it.
i.e. when opening or closing a group

+ some optimization to some useEffect dependencies
Copy link
Collaborator

@aldbr aldbr left a comment

Choose a reason for hiding this comment

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

It looks good, I just have minor comments:

  • how hard would it be to unit test the new logic? (checking that the info appears, checking the presence and the colors of the chips?)
  • when I (i) create filters, (ii) apply them, (iii) remove one of them, I have the message but the remaining chips stay green. Is it expected? It is fine to me, as there is the info, but I am just wondering how "complex" it would be to paint them back in grey? (without involving too much code just for that)

@Loxeris
Copy link
Member Author

Loxeris commented Aug 27, 2024

  • when I (i) create filters, (ii) apply them, (iii) remove one of them, I have the message but the remaining chips stay green. Is it expected? It is fine to me, as there is the info, but I am just wondering how "complex" it would be to paint them back in grey? (without involving too much code just for that)

It is expected, as it seemed more intuitive to me to keep them green since they still have an effect on the table data. Painting them back to grey would need a bit of work but could probably be done pretty quickly

@aldbr
Copy link
Collaborator

aldbr commented Aug 28, 2024

It is expected, as it seemed more intuitive to me to keep them green since they still have an effect on the table data. Painting them back to grey would need a bit of work but could probably be done pretty quickly

I think you are right. Let's keep it like this.

@aldbr aldbr merged commit 7297b4e into DIRACGrid:main Aug 28, 2024
10 checks passed
@Loxeris Loxeris deleted the feat_better_filter_ux branch August 28, 2024 07:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants