Added configuration for preview feature visibility (#222)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2024-11-24 10:11:56 +01:00
1 parent 90a1f681c5
commit 32ff143b21
6 files changed
+29 -1

No files matched your search

@@ -77,6 +77,15 @@ public static class ConfigurationSelectDataFactory
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<ConfigurationSelectData<PreviewVisibility>> 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<ConfigurationSelectData<NavBehavior>> GetNavBehaviorData()
{
@@ -27,6 +27,11 @@ public sealed class DataApp
/// The navigation behavior.
/// </summary>
public NavBehavior NavigationBehavior { get; set; } = NavBehavior.NEVER_EXPAND_USE_TOOLTIPS;
/// <summary>
/// The visibility setting for previews features.
/// </summary>
public PreviewVisibility PreviewVisibility { get; set; } = PreviewVisibility.NONE;
/// <summary>
/// Should we preselect a provider for the entire app?
@@ -0,0 +1,11 @@
namespace AIStudio.Settings.DataModel;
public enum PreviewVisibility
{
NONE = 0,
RELEASE_CANDIDATE,
BETA,
ALPHA,
PROTOTYPE,
}