You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To enable better debugging of filtered search, and a better explanation of what happened for people searching we need to describe what the results are in a better way.
Currently, above the search results, it shows this:
We should break down what's being searched for and display a readable explanation of it. Something along the lines of this:
Results for “test” where [Last commit date] [is >] [2021-01-01], [Number of stars] [is >] [500], and [Platform] [is compatible with] [iOS and macOS]
We should use styling to separate the different bits of that sentence surrounded by square brackets, so make sure each clause is wrapped in a span. I can help with the styling when it comes to that.
We could either display this in a sentence format or as a set of rows below the results line. Something along the lines of this:
If there is no actual search term, it should say "Results for all packages" where ...
The text was updated successfully, but these errors were encountered:
100% agreed, and this is something I tried to capture in my original PR by "Update the search results page to show the filters separate to the search terms". This is very much needed but I didn't want to inflate what was already there.
I think the steps here would be to add something like this to the search results response object:
{
query: {
term: "dave is bored of reviewing james' code",
filters: [
{ key: "updated", operator: "exact", value: "2020-01-01" }, // object style - OR -
{ key: "Last commit date", operator: "=", value: "2020-01-01" }, // object view model style - OR -
"Last commit date on exactly 2020-01-01" // full view model style
]
}
}
As to the displaying of this data, I prefer the second (rows) idea you have above.
To enable better debugging of filtered search, and a better explanation of what happened for people searching we need to describe what the results are in a better way.
Currently, above the search results, it shows this:
We should break down what's being searched for and display a readable explanation of it. Something along the lines of this:
We should use styling to separate the different bits of that sentence surrounded by square brackets, so make sure each clause is wrapped in a span. I can help with the styling when it comes to that.
We could either display this in a sentence format or as a set of rows below the results line. Something along the lines of this:
If there is no actual search term, it should say "Results for all packages" where ...
The text was updated successfully, but these errors were encountered: