-
-
Notifications
You must be signed in to change notification settings - Fork 66
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 with filters #227
base: main
Are you sure you want to change the base?
Search with filters #227
Conversation
Great start to this @LEstradioto! I don't think we necessarily need to support filtering JSON columns or associated models with attributes yet, but it would be good to have those improvements for boolean and date/datetime columns. |
Thanks for feedback. Added support for boolean and date/datetime Flatpickr needed some adjustments and Ive removed this dropdown controller, since this PR adds pure css dropdown, and later we could add to mobile menu too Next TODO is: Filters do not maintain state when user filters and then sorts. I will fix later on filter-state.2.mp4 |
ok its done 😄 |
What do you think about changing the filter button’s color or adding a visual indicator to show when filtering is active? |
great idea! I'll add that |
Actually |
Can we avoid using Flatpickr? 🙏🙏 It's not accessible at all. I wonder if a native input is enough. Otherwise, I'd suggest using Duet Date Picker. |
@brunoprietog yeah! I think date and datetime-local inputs should be fine? Rails also has the date time select fields but they're kind of a pain to use. |
Yes! |
Even though flatpickr auto-deactivates on mobile, would be way better to apply native + pure css solution, if any... |
Update:
Should I remove flatpickr completely from madmin ? @excid3 if so, in another PR or add to this? |
@LEstradioto I'll do it separately I'm surprised data-turbo-temporary didn't work. I may take a look and see if I can get it going. |
This is maybe a start to search filtering (if needed to)
Works on sqlite, should be no problem for others
Would appreciate feedbacks 🙏
filters-start.mp4
Making this as draft as Idk where the project stands on this filtering idea
And it might need adjustments
Future improvements: