-
Notifications
You must be signed in to change notification settings - Fork 6
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
Conversation
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
b18906c
to
4bd94e1
Compare
There was a problem hiding this 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)
8653b7b
to
48818ff
Compare
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. |
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.