-
Notifications
You must be signed in to change notification settings - Fork 40
DEV: Move semantic search out of connector to component #906
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 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.