-
Notifications
You must be signed in to change notification settings - Fork 24
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
DEV: Move semantic search out of connector to component #906
base: main
Are you sure you want to change the base?
Conversation
import I18n from "I18n"; | ||
import AiIndicatorWave from "./ai-indicator-wave"; | ||
|
||
export default class AiFullPageSemanticSearch extends Component { |
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.
We're updating the name of Semantic Search -> AI search (see /t/141433
), so maybe we can change this while we're at it to:
export default class AiFullPageSemanticSearch extends Component { | |
export default class AiFullPageSearch extends Component { |
import icon from "discourse-common/helpers/d-icon"; | ||
import I18n from "I18n"; | ||
import AiIndicatorWave from "../../components/ai-indicator-wave"; | ||
import AIFullPageSemanticSearch from "discourse/plugins/discourse-ai/discourse/components/ai-full-page-semantic-search"; |
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.
Based on my previous comment, and maybe we can use relative path as it's more concise?
import AIFullPageSemanticSearch from "discourse/plugins/discourse-ai/discourse/components/ai-full-page-semantic-search"; | |
import AiFullPageSearch from "../../components/ai-full-page-search"; |
import icon from "discourse-common/helpers/d-icon"; | ||
import I18n from "I18n"; | ||
import AiIndicatorWave from "../../components/ai-indicator-wave"; | ||
import AIFullPageSemanticSearch from "discourse/plugins/discourse-ai/discourse/components/ai-full-page-semantic-search"; | ||
|
||
export default class SemanticSearch extends Component { |
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.
export default class SemanticSearch extends Component { | |
export default class AiSearch extends Component { |
</div> | ||
</div> | ||
{{/if}} | ||
<AIFullPageSemanticSearch @outletArgs={{@outletArgs}} /> |
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.
<AIFullPageSemanticSearch @outletArgs={{@outletArgs}} /> | |
<AiFullPageSearch @outletArgs={{@outletArgs}} /> |
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.
Overall, LGTM, but some small requests
@markvanlan where are we on this? |
This PR allows the semantic search component to be rendered by another plugin, rather than being defined in the connector, which limits it's usage.