discourse/plugins/discourse-ai/assets/stylesheets/modules/embeddings/common
Kris 96a419887f
UX: show message explaining AI added search results (#38743)
Received a few pieces of feedback that the auto-inclusion of semantic
search results by the AI plugin can be a little confusing, so this adds
a message that explains that it's happening.

Full page search... "No exact matches, but here are some related
results." This required adding a new plugin outlet
`full-page-search-before-results`. :

<img width="434" alt="image"
src="https://github.com/user-attachments/assets/77793843-762b-424b-beef-e7d1ff7c0481"
/>

Header search... "N match found - showing related results": 

<img width="340" alt="image"
src="https://github.com/user-attachments/assets/5df5988b-b586-4fce-9b85-30a25098105d"
/>



I've also added a loading state and hide the 0 results state from the
full page search when searching while AI is enabled. These changes help
keep the UI less "janky" by avoiding some content shifts and a brief
flash of the 0 results state.
2026-03-19 18:08:17 -04:00
..
ai-embedding-editor.scss
semantic-related-topics.scss
semantic-search.scss UX: show message explaining AI added search results (#38743) 2026-03-19 18:08:17 -04:00