-
Notifications
You must be signed in to change notification settings - Fork 0
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
Improve Search Autocomplete UI #4
Conversation
app/view_models/workarea/storefront/search_autocomplete_product_view_model.rb
Outdated
Show resolved
Hide resolved
app/view_models/workarea/storefront/search_autocomplete_view_model.rb
Outdated
Show resolved
Hide resolved
app/controllers/workarea/storefront/searches_controller.decorator
Outdated
Show resolved
Hide resolved
app/view_models/workarea/storefront/search_autocomplete_view_model.rb
Outdated
Show resolved
Hide resolved
app/view_models/workarea/storefront/search_autocomplete_view_model.rb
Outdated
Show resolved
Hide resolved
app/view_models/workarea/storefront/search_autocomplete_view_model.rb
Outdated
Show resolved
Hide resolved
def trending_searches | ||
@trending_searches ||= begin | ||
Workarea::Insights::TrendingSearches.current.results.map do |v| | ||
v['query_id'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The query_id
helps group similar queries (e.g. shirts
and shirt
), so we'll want to use the full query string to avoid output like red_shirt
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't seem like this is resolved? You'll want to output the query_string
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@meowsus looks like this is still outputting query_id
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Derf. Missed this.
65ccc4f
to
c0b7d44
Compare
def trending_searches | ||
@trending_searches ||= begin | ||
Workarea::Insights::TrendingSearches.current.results.map do |v| | ||
v['query_id'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't seem like this is resolved? You'll want to output the query_string
.
...ets/stylesheets/workarea/storefront/search_autocomplete/components/_search_autocomplete.scss
Outdated
Show resolved
Hide resolved
I think you need to wrap the route in a
for comparison, here's the route coming out of base:
|
@tubbo that is a good, but unrelated catch. can you open a separate PR? |
def trending_searches | ||
@trending_searches ||= begin | ||
Workarea::Insights::TrendingSearches.current.results.map do |v| | ||
v['query_id'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@meowsus looks like this is still outputting query_id
cc68f06
to
5ff1118
Compare
This PR uncovered a bug in base that @bencrouse is fixing currently. Once it's merged I'll hit the build again. (workarea-commerce/workarea#228) |
* Hide UI when input is empty * Add contentable area to UI * Display Trending Products/Searches when no results are available * Add append point for content search SEARCHAUTO-1
5ff1118
to
4ae448f
Compare
No description provided.