mirror of
				https://github.com/MindWorkAI/AI-Studio.git
				synced 2025-10-31 20:40:20 +00:00 
			
		
		
		
	Added configuration for preview feature visibility (#222)
This commit is contained in:
		
							parent
							
								
									90a1f681c5
								
							
						
					
					
						commit
						32ff143b21
					
				| @ -186,6 +186,7 @@ | |||||||
|             <ConfigurationOption OptionDescription="Enable spellchecking?" LabelOn="Spellchecking is enabled" LabelOff="Spellchecking is disabled" State="@(() => this.SettingsManager.ConfigurationData.App.EnableSpellchecking)" StateUpdate="@(updatedState => this.SettingsManager.ConfigurationData.App.EnableSpellchecking = updatedState)" OptionHelp="When enabled, spellchecking will be active in all input fields. Depending on your operating system, errors may not be visually highlighted, but right-clicking may still offer possible corrections." /> |             <ConfigurationOption OptionDescription="Enable spellchecking?" LabelOn="Spellchecking is enabled" LabelOff="Spellchecking is disabled" State="@(() => this.SettingsManager.ConfigurationData.App.EnableSpellchecking)" StateUpdate="@(updatedState => this.SettingsManager.ConfigurationData.App.EnableSpellchecking = updatedState)" OptionHelp="When enabled, spellchecking will be active in all input fields. Depending on your operating system, errors may not be visually highlighted, but right-clicking may still offer possible corrections." /> | ||||||
|             <ConfigurationSelect OptionDescription="Check for updates" SelectedValue="@(() => this.SettingsManager.ConfigurationData.App.UpdateBehavior)" Data="@ConfigurationSelectDataFactory.GetUpdateBehaviorData()" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.App.UpdateBehavior = selectedValue)" OptionHelp="How often should we check for app updates?"/> |             <ConfigurationSelect OptionDescription="Check for updates" SelectedValue="@(() => this.SettingsManager.ConfigurationData.App.UpdateBehavior)" Data="@ConfigurationSelectDataFactory.GetUpdateBehaviorData()" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.App.UpdateBehavior = selectedValue)" OptionHelp="How often should we check for app updates?"/> | ||||||
|             <ConfigurationSelect OptionDescription="Navigation bar behavior" SelectedValue="@(() => this.SettingsManager.ConfigurationData.App.NavigationBehavior)" Data="@ConfigurationSelectDataFactory.GetNavBehaviorData()" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.App.NavigationBehavior = selectedValue)" OptionHelp="Select the desired behavior for the navigation bar."/> |             <ConfigurationSelect OptionDescription="Navigation bar behavior" SelectedValue="@(() => this.SettingsManager.ConfigurationData.App.NavigationBehavior)" Data="@ConfigurationSelectDataFactory.GetNavBehaviorData()" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.App.NavigationBehavior = selectedValue)" OptionHelp="Select the desired behavior for the navigation bar."/> | ||||||
|  |             <ConfigurationSelect OptionDescription="Preview feature visibility" SelectedValue="@(() => this.SettingsManager.ConfigurationData.App.PreviewVisibility)" Data="@ConfigurationSelectDataFactory.GetPreviewVisibility()" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.App.PreviewVisibility = selectedValue)" OptionHelp="Do you want to show preview features in the app?"/> | ||||||
|             <ConfigurationProviderSelection Data="@this.availableProviders" SelectedValue="@(() => this.SettingsManager.ConfigurationData.App.PreselectedProvider)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.App.PreselectedProvider = selectedValue)" HelpText="@(() => "Would you like to set one provider as the default for the entire app? When you configure a different provider for an assistant, it will always take precedence.")"/> |             <ConfigurationProviderSelection Data="@this.availableProviders" SelectedValue="@(() => this.SettingsManager.ConfigurationData.App.PreselectedProvider)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.App.PreselectedProvider = selectedValue)" HelpText="@(() => "Would you like to set one provider as the default for the entire app? When you configure a different provider for an assistant, it will always take precedence.")"/> | ||||||
|             <ConfigurationSelect OptionDescription="Preselect one of your profiles?" SelectedValue="@(() => this.SettingsManager.ConfigurationData.App.PreselectedProfile)" Data="@ConfigurationSelectDataFactory.GetProfilesData(this.SettingsManager.ConfigurationData.Profiles)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.App.PreselectedProfile = selectedValue)" OptionHelp="Would you like to set one of your profiles as the default for the entire app? When you configure a different profile for an assistant, it will always take precedence."/> |             <ConfigurationSelect OptionDescription="Preselect one of your profiles?" SelectedValue="@(() => this.SettingsManager.ConfigurationData.App.PreselectedProfile)" Data="@ConfigurationSelectDataFactory.GetProfilesData(this.SettingsManager.ConfigurationData.Profiles)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.App.PreselectedProfile = selectedValue)" OptionHelp="Would you like to set one of your profiles as the default for the entire app? When you configure a different profile for an assistant, it will always take precedence."/> | ||||||
|         </ExpansionPanel> |         </ExpansionPanel> | ||||||
|  | |||||||
| @ -78,6 +78,15 @@ public static class ConfigurationSelectDataFactory | |||||||
|         yield return new("Sidebar is always visible: show the workspaces next to the chat all the time", WorkspaceDisplayBehavior.SIDEBAR_ALWAYS_VISIBLE); |         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() |     public static IEnumerable<ConfigurationSelectData<NavBehavior>> GetNavBehaviorData() | ||||||
|     { |     { | ||||||
|         yield return new("Navigation expands on mouse hover", NavBehavior.EXPAND_ON_HOVER); |         yield return new("Navigation expands on mouse hover", NavBehavior.EXPAND_ON_HOVER); | ||||||
|  | |||||||
| @ -28,6 +28,11 @@ public sealed class DataApp | |||||||
|     /// </summary> |     /// </summary> | ||||||
|     public NavBehavior NavigationBehavior { get; set; } = NavBehavior.NEVER_EXPAND_USE_TOOLTIPS; |     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> |     /// <summary> | ||||||
|     /// Should we preselect a provider for the entire app? |     /// Should we preselect a provider for the entire app? | ||||||
|     /// </summary> |     /// </summary> | ||||||
|  | |||||||
| @ -0,0 +1,11 @@ | |||||||
|  | namespace AIStudio.Settings.DataModel; | ||||||
|  | 
 | ||||||
|  | public enum PreviewVisibility | ||||||
|  | { | ||||||
|  |     NONE = 0, | ||||||
|  |      | ||||||
|  |     RELEASE_CANDIDATE, | ||||||
|  |     BETA, | ||||||
|  |     ALPHA, | ||||||
|  |     PROTOTYPE, | ||||||
|  | } | ||||||
| @ -178,6 +178,6 @@ | |||||||
|         "contentHash": "FHNOatmUq0sqJOkTx+UF/9YK1f180cnW5FVqnQMvYUN0elp6wFzbtPSiqbo1/ru8ICp43JM1i7kKkk6GsNGHlA==" |         "contentHash": "FHNOatmUq0sqJOkTx+UF/9YK1f180cnW5FVqnQMvYUN0elp6wFzbtPSiqbo1/ru8ICp43JM1i7kKkk6GsNGHlA==" | ||||||
|       } |       } | ||||||
|     }, |     }, | ||||||
|     "net8.0/osx-x64": {} |     "net8.0/osx-arm64": {} | ||||||
|   } |   } | ||||||
| } | } | ||||||
							
								
								
									
										2
									
								
								app/MindWork AI Studio/wwwroot/changelog/v0.9.22.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								app/MindWork AI Studio/wwwroot/changelog/v0.9.22.md
									
									
									
									
									
										Normal file
									
								
							| @ -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. | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user