-
-
Notifications
You must be signed in to change notification settings - Fork 826
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
UI filter builder #3515
UI filter builder #3515
Conversation
I encountered this bug that wouldn't allow me to specify another filter. Anytime I used the drop down it would send me back to the performers filter. I also noticed that the submit button is inconsistently placed on a few of the filter menus. It's not clear if this was intentional: |
Criterion selection bug should be fixed. Thanks for the report. Yeah, there's a style discrepancy there currently. I wanted to add the confirm button to the input control, but this breaks down when you have a between modifier and need two fields. I can move it out into a separate button to be consistent, but I want to confirm that this is the best approach from a UX point of view. The alternatives are:
I chose this solution based on playing around with the ebay filter UI. |
Sorry, I forgot to get back to this. That makes sense. Yeah, I was leaning toward having the button on the input field, but I see that challenge with that when dealing with the between modifiers. I think consistent placement would be best, so the user always knows where to find the button without much thought. So perhaps the button could just stay below the input fields. I also confirmed that your latest push addresses the issue I mentioned earlier. |
I agree, it looks better imo, and is more consistent with the mobile view: The applicable element is scrolled into view when clicking on a criterion from outside the filter dialog. This behaviour is not triggered when clicking on the pill from inside the dialog, since I couldn't get the scrolling function to consistently scroll to the correct position. |
Will this UI work well when #2692 gets addressed? (We need multiple filters on the same property like tags) |
This looks a lot better and functions as I would have expected. |
I don't think it will preclude it from working. The UI design can be iterated on as part of the work on that anyway. |
In terms of looks, this is amazing - infinitely better than before. I do think the confirm button is a bit annoying though, I can definitely see myself forgetting to click it and then losing the filter after clicking Apply. It also looks kinda out of place on its own line, and is basically just an extra unnecessary click imo. I get the hesitance to update while typing, but do the extra rerenders really make that much of a difference? Even if debouncing the updates is necessary, I think that would be a much nicer experience than having to confirm each field manually. Three other minor issues I found:
The Stash ID issue actually ended up being fixed as a byproduct of the quick and dirty change I made to get a feel for the dialog without the confirm button (basically just replace all the And then the last improvement I can think of would be to validate the date/time/duration/etc inputs, but that can definitely be done later in a separate PR. |
Thanks for the feedback. I've removed the confirm buttons, the value is now updated as typed. Stash ID and hierarchical filters should be fixed, and I've fixed the placeholder text on the timestamp filter. |
Lovely, looks great. I'm still seeing the hierarchical issue for Studios and Tags though, the fix seems to have only affected Performers and Movies. |
Thanks, the other criteria should be fixed now. |
Replaces the add filter dialog with an edit filter dialog. This allows adding/editing filter criterion all at once:
Mobile view presents the criteria list only, then shifts to the criterion editor when a criterion is selected, with a back button to return to the criteria list.
Also adds the criteria count as a pill to the filter button, and adds the Clear All button to the main view as well.
Closes #949