From 32ff143b2165c95efb57bfa5f09f009f197fa493 Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Sun, 24 Nov 2024 10:11:56 +0100 Subject: [PATCH] Added configuration for preview feature visibility (#222) --- app/MindWork AI Studio/Pages/Settings.razor | 1 + .../Settings/ConfigurationSelectData.cs | 9 +++++++++ app/MindWork AI Studio/Settings/DataModel/DataApp.cs | 5 +++++ .../Settings/DataModel/PreviewVisibility.cs | 11 +++++++++++ app/MindWork AI Studio/packages.lock.json | 2 +- app/MindWork AI Studio/wwwroot/changelog/v0.9.22.md | 2 ++ 6 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 app/MindWork AI Studio/Settings/DataModel/PreviewVisibility.cs create mode 100644 app/MindWork AI Studio/wwwroot/changelog/v0.9.22.md diff --git a/app/MindWork AI Studio/Pages/Settings.razor b/app/MindWork AI Studio/Pages/Settings.razor index 9f7277d5..70c88162 100644 --- a/app/MindWork AI Studio/Pages/Settings.razor +++ b/app/MindWork AI Studio/Pages/Settings.razor @@ -186,6 +186,7 @@ + diff --git a/app/MindWork AI Studio/Settings/ConfigurationSelectData.cs b/app/MindWork AI Studio/Settings/ConfigurationSelectData.cs index 36123f79..faf66367 100644 --- a/app/MindWork AI Studio/Settings/ConfigurationSelectData.cs +++ b/app/MindWork AI Studio/Settings/ConfigurationSelectData.cs @@ -77,6 +77,15 @@ public static IEnumerable> Get yield return new("Toggle the sidebar: show the workspaces next to the chat when desired", WorkspaceDisplayBehavior.TOGGLE_SIDEBAR); yield return new("Sidebar is always visible: show the workspaces next to the chat all the time", WorkspaceDisplayBehavior.SIDEBAR_ALWAYS_VISIBLE); } + + public static IEnumerable> GetPreviewVisibility() + { + yield return new("All preview features are hidden", PreviewVisibility.NONE); + yield return new("Also show features ready for release; these should be stable", PreviewVisibility.RELEASE_CANDIDATE); + yield return new("Also show features in beta: these are almost ready for release; expect some bugs", PreviewVisibility.BETA); + yield return new("Also show features in alpha: these are in early development; expect bugs and missing features", PreviewVisibility.ALPHA); + yield return new("Show also prototype features: these are works in progress; expect bugs and missing features", PreviewVisibility.PROTOTYPE); + } public static IEnumerable> GetNavBehaviorData() { diff --git a/app/MindWork AI Studio/Settings/DataModel/DataApp.cs b/app/MindWork AI Studio/Settings/DataModel/DataApp.cs index f749c3ce..7740cd69 100644 --- a/app/MindWork AI Studio/Settings/DataModel/DataApp.cs +++ b/app/MindWork AI Studio/Settings/DataModel/DataApp.cs @@ -27,6 +27,11 @@ public sealed class DataApp /// The navigation behavior. /// public NavBehavior NavigationBehavior { get; set; } = NavBehavior.NEVER_EXPAND_USE_TOOLTIPS; + + /// + /// The visibility setting for previews features. + /// + public PreviewVisibility PreviewVisibility { get; set; } = PreviewVisibility.NONE; /// /// Should we preselect a provider for the entire app? diff --git a/app/MindWork AI Studio/Settings/DataModel/PreviewVisibility.cs b/app/MindWork AI Studio/Settings/DataModel/PreviewVisibility.cs new file mode 100644 index 00000000..67da2943 --- /dev/null +++ b/app/MindWork AI Studio/Settings/DataModel/PreviewVisibility.cs @@ -0,0 +1,11 @@ +namespace AIStudio.Settings.DataModel; + +public enum PreviewVisibility +{ + NONE = 0, + + RELEASE_CANDIDATE, + BETA, + ALPHA, + PROTOTYPE, +} \ No newline at end of file diff --git a/app/MindWork AI Studio/packages.lock.json b/app/MindWork AI Studio/packages.lock.json index f9149a37..fb697fd9 100644 --- a/app/MindWork AI Studio/packages.lock.json +++ b/app/MindWork AI Studio/packages.lock.json @@ -178,6 +178,6 @@ "contentHash": "FHNOatmUq0sqJOkTx+UF/9YK1f180cnW5FVqnQMvYUN0elp6wFzbtPSiqbo1/ru8ICp43JM1i7kKkk6GsNGHlA==" } }, - "net8.0/osx-x64": {} + "net8.0/osx-arm64": {} } } \ No newline at end of file diff --git a/app/MindWork AI Studio/wwwroot/changelog/v0.9.22.md b/app/MindWork AI Studio/wwwroot/changelog/v0.9.22.md new file mode 100644 index 00000000..df1cdfea --- /dev/null +++ b/app/MindWork AI Studio/wwwroot/changelog/v0.9.22.md @@ -0,0 +1,2 @@ +# v0.9.22, build 197 (2024-1x-xx xx:xx UTC) +- Added the possibility to configure preview feature visibility in the app settings. This is useful for users who want to test new features before they are officially released. \ No newline at end of file