codyswanner / Meme-Cataloger

Learning ReactJS and Django while building something that I want to use
1 stars 1 forks source link

Grey-out filters that have no results #61

Open codyswanner opened 3 months ago

codyswanner commented 3 months ago

In the filter menu (LeftDrawer), when a filter (or filters) is applied, for any remaining filters that would yield zero results when added, grey out these filters to show this without needing to click on them. This will highlight combinations that do have results and are therefore still relevant.

Bonus points: re-order the list of filters so that zero-result filters are moved to the bottom, and filters that will yield results when applied will rise to the top of the menu.

codyswanner commented 2 months ago

Doesn't HTML have an "inactive" attribute for input tags? Might be worth checking if MUI implements this on the checkboxes in some way, that might be the easiest way to get the desired effect here.

codyswanner commented 1 month ago

This should be done after #115. Removing from UI Refresh milestone and project.