From 9fc7eaff99bffe5e6d056e12ba07e7547fed0995 Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Thu, 4 Jun 2026 16:24:40 +0200 Subject: [PATCH] Added support for hiding the quick start guide (#794) --- app/MindWork AI Studio/Pages/Home.razor | 9 ++++++--- app/MindWork AI Studio/Pages/Home.razor.cs | 4 ++++ app/MindWork AI Studio/Plugins/configuration/plugin.lua | 5 +++-- app/MindWork AI Studio/Settings/DataModel/DataApp.cs | 5 +++++ .../Tools/PluginSystem/PluginConfiguration.cs | 3 +++ .../Tools/PluginSystem/PluginFactory.Loading.cs | 4 ++++ app/MindWork AI Studio/wwwroot/changelog/v26.6.1.md | 1 + 7 files changed, 26 insertions(+), 5 deletions(-) diff --git a/app/MindWork AI Studio/Pages/Home.razor b/app/MindWork AI Studio/Pages/Home.razor index eae947ab..abf7ffb7 100644 --- a/app/MindWork AI Studio/Pages/Home.razor +++ b/app/MindWork AI Studio/Pages/Home.razor @@ -34,9 +34,12 @@ - - - + @if (this.SettingsManager.ConfigurationData.App.ShowQuickStartGuide) + { + + + + } diff --git a/app/MindWork AI Studio/Pages/Home.razor.cs b/app/MindWork AI Studio/Pages/Home.razor.cs index 40431683..b44724d0 100644 --- a/app/MindWork AI Studio/Pages/Home.razor.cs +++ b/app/MindWork AI Studio/Pages/Home.razor.cs @@ -71,6 +71,10 @@ public partial class Home : MSGComponentBase this.InitializeAdvantagesItems(); await this.InvokeAsync(this.StateHasChanged); break; + + case Event.CONFIGURATION_CHANGED: + await this.InvokeAsync(this.StateHasChanged); + break; } } diff --git a/app/MindWork AI Studio/Plugins/configuration/plugin.lua b/app/MindWork AI Studio/Plugins/configuration/plugin.lua index e53511ce..070952ce 100644 --- a/app/MindWork AI Studio/Plugins/configuration/plugin.lua +++ b/app/MindWork AI Studio/Plugins/configuration/plugin.lua @@ -204,12 +204,13 @@ CONFIG["SETTINGS"] = {} -- but users can still choose another start page in the app settings. -- CONFIG["SETTINGS"]["DataApp.StartPage.AllowUserOverride"] = true +-- Configure whether the quick start guide is shown on the welcome page. +-- CONFIG["SETTINGS"]["DataApp.ShowQuickStartGuide"] = false + -- Configure the user permission to add providers: --- Allowed values are: true, false -- CONFIG["SETTINGS"]["DataApp.AllowUserToAddProvider"] = false -- Configure whether administration settings are visible in the UI: --- Allowed values are: true, false -- CONFIG["SETTINGS"]["DataApp.ShowAdminSettings"] = true -- Configure the visibility of preview features: diff --git a/app/MindWork AI Studio/Settings/DataModel/DataApp.cs b/app/MindWork AI Studio/Settings/DataModel/DataApp.cs index 388c4d3c..42bfdfac 100644 --- a/app/MindWork AI Studio/Settings/DataModel/DataApp.cs +++ b/app/MindWork AI Studio/Settings/DataModel/DataApp.cs @@ -57,6 +57,11 @@ public sealed class DataApp(Expression>? configSelection = n /// public StartPage StartPage { get; set; } = ManagedConfiguration.Register(configSelection, n => n.StartPage, StartPage.HOME); + /// + /// Should the quick start guide be visible on the home page? + /// + public bool ShowQuickStartGuide { get; set; } = ManagedConfiguration.Register(configSelection, n => n.ShowQuickStartGuide, true); + /// /// The visibility setting for previews features. /// diff --git a/app/MindWork AI Studio/Tools/PluginSystem/PluginConfiguration.cs b/app/MindWork AI Studio/Tools/PluginSystem/PluginConfiguration.cs index 20e34231..11116fd9 100644 --- a/app/MindWork AI Studio/Tools/PluginSystem/PluginConfiguration.cs +++ b/app/MindWork AI Studio/Tools/PluginSystem/PluginConfiguration.cs @@ -153,6 +153,9 @@ public sealed class PluginConfiguration(bool isInternal, LuaState state, PluginT // Config: what should be the start page? ManagedConfiguration.TryProcessConfiguration(x => x.App, x => x.StartPage, this.Id, settingsTable, dryRun); + + // Config: show quick start guide on the home page? + ManagedConfiguration.TryProcessConfiguration(x => x.App, x => x.ShowQuickStartGuide, this.Id, settingsTable, dryRun); // Config: allow the user to add providers? ManagedConfiguration.TryProcessConfiguration(x => x.App, x => x.AllowUserToAddProvider, this.Id, settingsTable, dryRun); diff --git a/app/MindWork AI Studio/Tools/PluginSystem/PluginFactory.Loading.cs b/app/MindWork AI Studio/Tools/PluginSystem/PluginFactory.Loading.cs index cdcfd738..e076a842 100644 --- a/app/MindWork AI Studio/Tools/PluginSystem/PluginFactory.Loading.cs +++ b/app/MindWork AI Studio/Tools/PluginSystem/PluginFactory.Loading.cs @@ -213,6 +213,10 @@ public static partial class PluginFactory // Check for the start page: if(ManagedConfiguration.IsConfigurationLeftOver(x => x.App, x => x.StartPage, AVAILABLE_PLUGINS)) wasConfigurationChanged = true; + + // Check for the quick start guide visibility: + if(ManagedConfiguration.IsConfigurationLeftOver(x => x.App, x => x.ShowQuickStartGuide, AVAILABLE_PLUGINS)) + wasConfigurationChanged = true; // Check for users allowed to added providers: if(ManagedConfiguration.IsConfigurationLeftOver(x => x.App, x => x.AllowUserToAddProvider, AVAILABLE_PLUGINS)) diff --git a/app/MindWork AI Studio/wwwroot/changelog/v26.6.1.md b/app/MindWork AI Studio/wwwroot/changelog/v26.6.1.md index 4826a7f8..ecdb4c5e 100644 --- a/app/MindWork AI Studio/wwwroot/changelog/v26.6.1.md +++ b/app/MindWork AI Studio/wwwroot/changelog/v26.6.1.md @@ -1,5 +1,6 @@ # v26.6.1, build 241 (2026-06-xx xx:xx UTC) - Added support for up to 100 thousand enterprise configuration slots, using fixed-width slot names such as `config_00000` while keeping the existing first ten slot names compatible. +- Added an enterprise configuration option to hide the quick start guide on the welcome page. - Added support for managed custom root certificate bundles and host allowlists for external HTTPS requests, helping Flatpak deployments connect to organization-internal services with private root CAs while keeping built-in cloud provider endpoints on system trust. - Added support for reading enterprise policy files from a Flatpak provisioning extension. - Added startup path and Linux package type details to the information page to make support easier.