Closed john-patterson closed 4 years ago
Hey @john-patterson thanks for reporting the issue! How would you feel about #77 Which drops the sort options to simply two categories: "Sort by Relevance" and "Sort by Date" both descending.
@tohuynh want to quickly tackle this one?
@JacksonMaxfield I think it makes sense that I wouldn't want to sort by Committee name if I can already filter by it.
Relevancy sorting seems like it should always be done descending. I can't picture ever wanting to know what the least relevant hit is.
Maintaining Asc & Desc sort for dates seems to make sense, though. I could want to know when a topic was first mentioned and find the preliminary discussions around it, but I might also want to find the latest news on a topic.
Gotcha. At the bare minimum I think we can drop it to just the two sort options. I don't know how to design basically one option that is a single choice and one option that has sub choices. Will talk to UX designers about it and hopefully make a decision and have something updated later this week.
@JacksonMaxfield by no means a UX expert myself, but here are my ideas:
"Sort by relevancy descending" is just the default sort when no other sort is applied. If you don't like hiding that decision from the user, including a text blurb: "Currently sorting by most relevant" makes it explicit.
You could turn the UI for sorting based on date into three options: "Do not sort by date" (or "Sort by Relevancy"), "Sort by latest first," and "Sort by earliest first".
Sort by date can be a checkbox, a dropdown for Asc/Desc can appear if the checkbox is enabled.
The search result page could be more table-like. Relevancy percentage and date could be columns. Clicking the column header would sort by that column and add an up or down arrow indicating Asc or Desc. Clicking the header again would change between Asc and Desc and change the direction of the arrow on that column header. For simplicity, you can only ever sort by one column.
EDIT: I have some mocks.
(1) and (2) are reducible to this:
(3) I'm picturing something like this:
transitioning to
(4) I chose to sort on Relevancy and Meeting Name in this mockup purely for ease of getting a mock.
Here's no ordering:
Once you click "Relevancy", the screen becomes this. By Relevancy, ascending:
Once you click "Relevancy" again, the screen becomes this. By Relevancy, descending:
Once you click "Meeting Name", the screen becomes this. By Meeting Name, ascending:
And so on.
Woah! Thanks for these. I hadn't thought about simply including the third option of "Newest First" and "Oldest First" I think I like that idea the most. Keep's it simple. Will talk it over with the UX team and show them these.
Adding on to this, I think the list of sort options should probably be:
Alright update on this!
We are going to go with the following:
Most Relevant will be weighted by recency
Sound good?
Sounds good. The default is going to be Most Relevant. What do you think should happen if the users click 'Clear"? The default becomes selected or none is selected (but events are still sorted by Most relevant)?
I thought we were just going to go with the cdp-instance
implementation which is just radio buttons right? So there wouldn't be a clear button. Or can we have it be a dropdown instead of radio buttons? That way one is always selected
OK, currently I made it so that all the filter popups have Clear and Save buttons. I can change it so that SelectSorting Popup won't have Clear and Save buttons.
That would be perfect. Thanks! I will work on getting npm publishing setup.
Sounds good to me!
@john-patterson thanks for reporting the original issue. The changes are now deployed on the website. Thanks to @tohuynh for fixing :rocket:
System and Software
Page or Route
Description
When choosing a new sort from either a default or "Clear"ed state, no default sorting order is implied and neither radio button is selected. The "Save" button also does not validate that a sorting order was chosen to enable itself. If you "Save" without specifying an order, the sort has no effect on the data set.
Notes
Here are two suggestions to solve this, either:
or