From f43137e067e009ebc5c4192463fc287a6818aa35 Mon Sep 17 00:00:00 2001 From: Roman Rizzi Date: Thu, 27 Mar 2025 16:46:35 -0300 Subject: [PATCH] UX: Show AI bot toggles in the AI bot options section (#1229) --- .../components/ai-persona-editor.gjs | 38 +++++++++---------- .../components/ai-persona-list-editor.gjs | 2 +- config/locales/client.en.yml | 5 ++- 3 files changed, 24 insertions(+), 21 deletions(-) diff --git a/assets/javascripts/discourse/components/ai-persona-editor.gjs b/assets/javascripts/discourse/components/ai-persona-editor.gjs index 4810d5aa..a4222a90 100644 --- a/assets/javascripts/discourse/components/ai-persona-editor.gjs +++ b/assets/javascripts/discourse/components/ai-persona-editor.gjs @@ -283,25 +283,6 @@ export default class PersonaEditor extends Component { />
- - - - - - - - + + + + + + + + {{#if @model.isNew}}
{{i18n "discourse_ai.ai_persona.ai_bot.save_first"}}
{{else}} diff --git a/assets/javascripts/discourse/components/ai-persona-list-editor.gjs b/assets/javascripts/discourse/components/ai-persona-list-editor.gjs index a8da1e2d..69cadec1 100644 --- a/assets/javascripts/discourse/components/ai-persona-list-editor.gjs +++ b/assets/javascripts/discourse/components/ai-persona-list-editor.gjs @@ -61,7 +61,7 @@ export default class AiPersonaListEditor extends Component { {{i18n "discourse_ai.ai_persona.name"}} - {{i18n "discourse_ai.ai_persona.enabled"}} + {{i18n "discourse_ai.ai_persona.list.enabled"}} diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml index a7105cc9..324f59b3 100644 --- a/config/locales/client.en.yml +++ b/config/locales/client.en.yml @@ -307,9 +307,12 @@ en: rag_conversation_chunks_help: "The number of chunks to use for the RAG model searches. Increase to increase the amount of context the AI can use." persona_description: "Personas are a powerful feature that allows you to customize the behavior of the AI engine in your Discourse forum. They act as a 'system message' that guides the AI's responses and interactions, helping to create a more personalized and engaging user experience." + list: + enabled: "AI Bot?" + ai_bot: title: "AI bot options" - save_first: "AI bot options will become available once you save the persona." + save_first: "More AI bot options will become available once you save the persona." rag: title: "RAG"