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 @@ -37,7 +37,7 @@ export default class AiBotHeaderIcon extends Component {
3737 get clickShouldRouteOutOfConversations () {
3838 return (
3939 ! this .navigationMenu .isHeaderDropdownMode &&
40- this .siteSettings .ai_enable_experimental_bot_ux &&
40+ this .siteSettings .ai_bot_enable_dedicated_ux &&
4141 this .sidebarState .currentPanel ? .key === AI_CONVERSATIONS_PANEL
4242 );
4343 }
@@ -48,7 +48,7 @@ export default class AiBotHeaderIcon extends Component {
4848 return this .router .transitionTo (` discovery.${ defaultHomepage ()} ` );
4949 }
5050
51- if (this .siteSettings .ai_enable_experimental_bot_ux ) {
51+ if (this .siteSettings .ai_bot_enable_dedicated_ux ) {
5252 return this .router .transitionTo (" discourse-ai-bot-conversations" );
5353 }
5454
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ export default {
1515 initialize ( ) {
1616 withPluginApi ( ( api ) => {
1717 const siteSettings = api . container . lookup ( "service:site-settings" ) ;
18- if ( ! siteSettings . ai_enable_experimental_bot_ux ) {
18+ if ( ! siteSettings . ai_bot_enable_dedicated_ux ) {
1919 return ;
2020 }
2121
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
335335 end
336336 end
337337
338- context "when `ai_enable_experimental_bot_ux ` is disabled" do
339- before { SiteSetting . ai_enable_experimental_bot_ux = false }
338+ context "when `ai_bot_enable_dedicated_ux ` is disabled" do
339+ before { SiteSetting . ai_bot_enable_dedicated_ux = false }
340340
341341 it "opens composer on bot click" do
342342 visit "/"
You can’t perform that action at this time.
0 commit comments