-
Notifications
You must be signed in to change notification settings - Fork 256
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
Backport #3367 to 8.x (Add a way to filter facets in the facets "more" modal) #3369
Conversation
46452d2
to
390d831
Compare
* Facet typeahead: back end This creates a new endpoint at /catalog/facet/<facet_name>/<query_fragment> Co-authored-by: Isha Sinha <[email protected]> * Facet typeahead: front end Co-authored-by: Christina Chortaria <[email protected]> * bundle exec i18n-tasks add-missing * Incorporate feedback from review Rather than two very similar controller actions for facets vs. facet_suggest, this commit combines them into a single controller action. --------- Co-authored-by: Isha Sinha <[email protected]> Co-authored-by: Christina Chortaria <[email protected]>
Co-authored-by: Chris Beer <[email protected]>
Co-authored-by: Chris Beer <[email protected]>
bc4e53b
to
efab330
Compare
* Make this feature opt-in. You can add suggest: true to your facet config in the catalog controller to start using it. * Use text_field_tag
efab330
to
2d91574
Compare
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.
This looks awesome! Thank you @sandbergja!
My only hesitation is about the translations and what our expectations are around including language translations, or just making sure the "no translation" error doesn't render in any languages.
// const basicFunction = (entry) => console.log(entry) | ||
// const debounced = debounce(basicFunction("I should only be called once")); | ||
// | ||
// debounced // does NOT print to the screen becase it is invoked again less than 200 milliseconds later |
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.
🎉
@@ -111,6 +111,9 @@ ar: | |||
sort: | |||
count: ترتيب رقمي | |||
index: ترتيب أبجدي | |||
suggest: |
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.
Is it expected that these be in the target language? Or is it ok to start with English and then have a future edit with the real translation?
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.
Thanks for pointing this out. It looks like I used the add_missing
task from i18n-tasks, when I should have used translate_missing
, which grabs a preliminary translation from Google Translate.
Co-authored-by: Max Kadel <[email protected]>
This pulls preliminary translations from the Google Cloud Translate API
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.
Thanks @sandbergja! Looks good! Happy to know about the "translate missing" task as well
Thanks @sandbergja 💯 -- this is such a useful feature and I'm glad to see it'll be available in 8.x! |
Backport the "more" facet modal filter feature to the 8.x series (see #3367 for the 9.x version)