-
Notifications
You must be signed in to change notification settings - Fork 506
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
Organism -> Search/Filter/Sort #2657
Comments
@justinscherer @Erioldoesdesign Does the search run the query after each letter is typed or should we put a 1 (or 2, 3...) second delay on the query or should there be a button to search once you've finished typing? |
A few more questions:
|
@Erioldoesdesign @justinscherer Link to QA: |
Testing in Chrome Version 67.0.3396.87 FE QA notes:
^^^ Justin's designs actually show two different styles of these buttons you can see in the designs above. I think the button style is better that the grey link text/ blue link text version so no changes here but goo to flag the design inconsistency (sorry Justin!)
This css I did may break things elsewhere so worth checking over from FE. Illustrates the need for smaller 'black box' inside checkboxes though.
Also the sort/filter list appears in one long vertical. In the designs there are two vertical columns of a maximum of 4 checkboxes (either parent category or child category) per column. THIS IS GREAT WORK. I hope my QA notes aren't too heavy and are clear and understandable :heartemoji: |
This is great @Erioldoesdesign!! Thank you. There are so many states with this component and it helps to have a QA. As you noticed, I made some "executive" decisions that I meant to communicate (default buttons instead of "gray" and "purple" left and right buttons for better consistency, one long column of checkboxes for better scaling). Your notes are very thorough and clear. I will comb through these and make the changes. |
@crcommons omg I didn't answer your questions...sorry!
I would go with after each letter is typed with a delay. It's a typical and expected user journey now for most users. Though, question: for users with slow connections, are we adding to the load time?
I picked up on the different filter/sort buttons in the design. I think that was just a design file error. We get UI 'blindness' sometimes and miss these things! I would say the user would delete the text in the search bar (it should stay active) and the search results should reset. Either that or we need a 'clear search' button/text link This is one for @justinscherer to have a think about. Good point! so if there are no results for a search term? We need to display text that says as much. Another consideration for @justinscherer I would say. (Sorry to load you up with @ mention's Justin...) |
@Erioldoesdesign If we have a delayed query, it would affect slow connections in that it would fire off requests to the API whenever a user paused while typing. So I would recommend a search button perhaps. We definitely need some way to clear the filters and sort, and need to decide how to clear the search (depending on which search implementation we use). |
great catch. Let's keep the link style for the CTAs in both sort and filter windows.
When the user submits a query and the results are listed, clicking on the text in the search bar will highlight all of the text. They can then delete it as they wish.
Nice catch. Lets say "We didn't find anything that matches your search." in 14px Lato regular in |
@sethburtonhall talked me out of this one. Let's use buttons. Sorry for the flip-flop |
@Erioldoesdesign I have integrated your feedback. Moving back into Design QA pipeline for final approval. |
@justinscherer So if a user has selected a variety of sorts, filters, and a search, they'll have to go through and remove each one individually? There won't be a way to clear the search completely? |
Great point. The "Cancel" should be a "Clear all" and clicking outside the box or on the sort/filter boxes would do what "Cancel" does...i.e. closes the filter/sort pane without making any changes. |
QA:
left and right padding between the text and the inside edges of all buttons should be checkboxes should have border of open sort pane should be checkboxes and buttons should all be unclicked checkboxes have a 1px border of min height for the open sort/filter box is 225px border radius of open filter pane is 2px not 3px |
In the results list, the leading on the detail text for each row item should be |
@justinscherer I made all revisions except two column checkbox/radio. I am still working on this but I wanted to highlight @Erioldoesdesign's comment from above to make sure.
|
@Erioldoesdesign
You're right about this. However, I think the benefit of not having eternal 1 column lists outweighs the risk of losing the indent when there's a parent with a tonne of children. The many children use case feels like an edge case to me, but of course I have zero data or testing to back that up... What do you think? |
Definitely keen to not have an eternal single column. Perhaps there's something code-wise that can override the layout if this were to occur? Like a rule that always has child categories display in the same 'column' as the parent and then the next parent would carry on the 2-column format? Sounds a bit complicated but not impossible to my rudimentary understanding of code! |
Sounds good to me. Let's see what @sethburtonhall and/or @Angamanga says when they're back. |
Everything looks good here to me apart from this issue around double/two column checkbox list in the expanded filter dropdown... @sethburtonhall Can you take a look at my comment above and see if you can have a dig around to find a potential "rule that always has child categories display in the same 'column' as the parent and then the next parent would carry on the 2-column format" If it's a no then I believe Justin still wants the 2-column view. |
Updating this ticket with a comment from our design sync today in that we're going with a single column of checkboxes for sort and filter as the 2-column, max 4 items proved difficult to layout with anomalies for checkbox lists of uneven numbers. Moving back into ready for FE because I believe @sethburtonhall is currently working on what we discussed |
This is ready for QA here |
This looks fly. Closing this ticket :D |
Analysis
Our current search/filter/sort component has gone through a lot of surgery over the last 6 months and the scars are showing. Beyond some pesky UI bugs that we haven't fixed yet, the need to include CTAs for saving searches and the sheer number and variability and logic of things to filter by has made this component a complete mess to use.
We desperately need to iron out our data model and the experience of Collections, saved searches, parent/children categories, and surveys, HXL tags. A different issue for a different day...
It's also not clear what our search actually searches for...
^^on some level, all of these data constructions are doing the same thing.
Inspiration
I fully stole a lot of how these filters work from AirBnB
Solution
Zero state
Sort open
Sort on
Filter open
Filter on
Rationale
Ultimately this inherits most of the styles from #2655 and #2789
I stole the idea of baking it into an anchored modal window and having different modal sizes for sort/filter from AirBnB as seen above.
Part of the trouble we have now is that the search/sort/filter mechanism is embedded in the top bar and doesn't feel like it directly controls the data being displayed. To mitigate this, I baked it into a data list #2665
I made creative use of our button styles to achieve on/active states, which I also stole.
The text was updated successfully, but these errors were encountered: