This repository was archived by the owner on Jul 22, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +20
-9
lines changed Expand file tree Collapse file tree 5 files changed +20
-9
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ export default class AiBotHeaderIcon extends Component {
3939 get clickShouldRouteOutOfConversations () {
4040 return (
4141 ! this .navigationMenu .isHeaderDropdownMode &&
42- this .siteSettings .ai_enable_experimental_bot_ux &&
42+ this .siteSettings .ai_bot_enable_dedicated_ux &&
4343 this .sidebarState .currentPanel ? .key === AI_CONVERSATIONS_PANEL
4444 );
4545 }
@@ -50,7 +50,7 @@ export default class AiBotHeaderIcon extends Component {
5050 return this .router .transitionTo (` discovery.${ defaultHomepage ()} ` );
5151 }
5252
53- if (this .siteSettings .ai_enable_experimental_bot_ux ) {
53+ if (this .siteSettings .ai_bot_enable_dedicated_ux ) {
5454 return this .router .transitionTo (" discourse-ai-bot-conversations" );
5555 }
5656
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ export default {
1616 initialize ( ) {
1717 withPluginApi ( ( api ) => {
1818 const siteSettings = api . container . lookup ( "service:site-settings" ) ;
19- if ( ! siteSettings . ai_enable_experimental_bot_ux ) {
19+ if ( ! siteSettings . ai_bot_enable_dedicated_ux ) {
2020 return ;
2121 }
2222
Original file line number Diff line number Diff line change @@ -386,7 +386,8 @@ discourse_ai:
386386 ai_rag_images_enabled :
387387 default : false
388388 hidden : true
389- ai_enable_experimental_bot_ux :
390- default : false
389+
390+ ai_bot_enable_dedicated_ux :
391+ default : true
391392 client : true
392393
Original file line number Diff line number Diff line change 1+ # frozen_string_literal: true
2+ class RenamedExperimentalAiBotSetting < ActiveRecord ::Migration [ 7.2 ]
3+ def up
4+ execute "UPDATE site_settings SET name = 'ai_bot_enable_dedicated_ux' WHERE name = 'ai_enable_experimental_bot_ux'"
5+ end
6+
7+ def down
8+ execute "UPDATE site_settings SET name = 'ai_enable_experimental_bot_ux' WHERE name = 'ai_bot_enable_dedicated_ux'"
9+ end
10+ end
Original file line number Diff line number Diff line change 9797 pm . custom_fields [ DiscourseAi ::AiBot ::TOPIC_AI_BOT_PM_FIELD ] = "t"
9898 pm . save!
9999
100- SiteSetting . ai_enable_experimental_bot_ux = true
100+ SiteSetting . ai_bot_enabled_dedicated_ux = true
101101 SiteSetting . ai_bot_enabled = true
102102 SiteSetting . navigation_menu = "sidebar"
103103 Jobs . run_immediately!
109109 before { SiteSetting . glimmer_post_stream_mode = value }
110110
111111 context "when glimmer_post_stream_mode=#{ value } " do
112- context "when `ai_enable_experimental_bot_ux ` is enabled" do
112+ context "when `ai_bot_enable_dedicated_ux ` is enabled" do
113113 it "allows uploading files to a new conversation" do
114114 ai_pm_homepage . visit
115115 expect ( ai_pm_homepage ) . to have_homepage
342342 end
343343 end
344344
345- context "when `ai_enable_experimental_bot_ux ` is disabled" do
346- before { SiteSetting . ai_enable_experimental_bot_ux = false }
345+ context "when `ai_bot_enable_dedicated_ux ` is disabled" do
346+ before { SiteSetting . ai_bot_enable_dedicated_ux = false }
347347
348348 it "opens composer on bot click" do
349349 visit "/"
You can’t perform that action at this time.
0 commit comments