Bring back spelling suggestions #1554
Coauthored with @SamJamCul
Back by popular demand!
We used to have spelling suggestions. We blogged about them as well
This works enables spelling suggestions on search/all finder only.
URLs to test
Show/hide spelling suggestion block and suggestions based on their availability server-side. Each suggestion string comes with a link, so we output it for the user to click and re-perform the search.
Update other elements to match new designs Server-side we add a CSS class that if there are any suggestions on user query, we show the suggestions block. By default it is hidden.
Because we use ajax to fetch new data when user performs a search or adds/removes filters, we also need to show any available suggestions. As the suggestion block is always there we show or hide it and insert new suggestion links. This only runs on search/all finder.