mirror of
				https://github.com/MindWorkAI/AI-Studio.git
				synced 2025-10-31 06:40:20 +00:00 
			
		
		
		
	Monkey Work done. Created Dialog for every SettingsPanel. Now I need to remove the unnecessary SettingsPanels.
This commit is contained in:
		
							parent
							
								
									abb1e3f52d
								
							
						
					
					
						commit
						7cfe53b06f
					
				| @ -1,5 +1,5 @@ | ||||
| @attribute [Route(Routes.ASSISTANT_AGENDA)] | ||||
| @inherits AssistantBaseCore | ||||
| @inherits AssistantBaseCore<AIStudio.Dialogs.Settings.SettingsDialogAgenda> | ||||
| 
 | ||||
| <MudTextField T="string" @bind-Text="@this.inputName" Validation="@this.ValidateName" Label="Meeting Name" Adornment="Adornment.Start" AdornmentIcon="@Icons.Material.Filled.Tag" Variant="Variant.Outlined" Margin="Margin.Dense" UserAttributes="@USER_INPUT_ATTRIBUTES" HelperText="Name the meeting, seminar, etc." Placeholder="Weekly jour fixe" Class="mb-3"/> | ||||
| <MudTextField T="string" @bind-Text="@this.inputTopic" Validation="@this.ValidateTopic" Label="Topic" Adornment="Adornment.Start" AdornmentIcon="@Icons.Material.Filled.EventNote" Variant="Variant.Outlined" Margin="Margin.Dense" UserAttributes="@USER_INPUT_ATTRIBUTES" HelperText="Describe the topic of the meeting, seminar, etc. Is it about quantum computing, software engineering, or is it a general business meeting?" Placeholder="Project meeting" Class="mb-3"/> | ||||
|  | ||||
| @ -2,10 +2,11 @@ using System.Text; | ||||
| 
 | ||||
| using AIStudio.Chat; | ||||
| using AIStudio.Components.Settings; | ||||
| using AIStudio.Dialogs.Settings; | ||||
| 
 | ||||
| namespace AIStudio.Assistants.Agenda; | ||||
| 
 | ||||
| public partial class AssistantAgenda : AssistantBaseCore | ||||
| public partial class AssistantAgenda : AssistantBaseCore<SettingsDialogAgenda> | ||||
| { | ||||
|     public override Tools.Components Component => Tools.Components.AGENDA_ASSISTANT; | ||||
|      | ||||
|  | ||||
| @ -1,4 +1,5 @@ | ||||
| @using AIStudio.Chat | ||||
| @typeparam TSettings | ||||
| 
 | ||||
| <div class="inner-scrolling-context"> | ||||
| 
 | ||||
| @ -18,7 +19,7 @@ | ||||
|                         </MudText> | ||||
|                     </MudItem> | ||||
|                     <MudItem xs="2" Class="d-flex justify-end align-start"> | ||||
|                         <MudIconButton Variant="Variant.Filled" Icon="@Icons.Material.Filled.Settings" OnClick="() => this.NavigateToSettings()"/> | ||||
|                         <MudIconButton Variant="Variant.Filled" Icon="@Icons.Material.Filled.Settings" OnClick="() => this.OpenSettingsDialog()"/> | ||||
|                     </MudItem> | ||||
|                 </MudGrid> | ||||
| 
 | ||||
|  | ||||
| @ -1,5 +1,6 @@ | ||||
| using AIStudio.Chat; | ||||
| using AIStudio.Components.Settings; | ||||
| using AIStudio.Dialogs.Settings; | ||||
| using AIStudio.Provider; | ||||
| using AIStudio.Settings; | ||||
| using AIStudio.Tools.Services; | ||||
| @ -10,13 +11,18 @@ using MudBlazor.Utilities; | ||||
| 
 | ||||
| using Timer = System.Timers.Timer; | ||||
| 
 | ||||
| using DialogOptions = AIStudio.Dialogs.DialogOptions; | ||||
| 
 | ||||
| namespace AIStudio.Assistants; | ||||
| 
 | ||||
| public abstract partial class AssistantBase : ComponentBase, IMessageBusReceiver, IDisposable | ||||
| public abstract partial class AssistantBase<TSettings> : ComponentBase, IMessageBusReceiver, IDisposable where TSettings : IComponent | ||||
| { | ||||
|     [Inject] | ||||
|     protected SettingsManager SettingsManager { get; init; } = null!; | ||||
|      | ||||
|     [Inject] | ||||
|     private IDialogService DialogService { get; init; } = null!; | ||||
|      | ||||
|     [Inject] | ||||
|     protected IJSRuntime JsRuntime { get; init; } = null!; | ||||
| 
 | ||||
| @ -36,7 +42,7 @@ public abstract partial class AssistantBase : ComponentBase, IMessageBusReceiver | ||||
|     protected NavigationManager NavigationManager { get; init; } = null!; | ||||
|      | ||||
|     [Inject] | ||||
|     protected ILogger<AssistantBase> Logger { get; init; } = null!; | ||||
|     protected ILogger<AssistantBase<TSettings>> Logger { get; init; } = null!; | ||||
|      | ||||
|     [Inject] | ||||
|     private MudTheme ColorTheme { get; init; } = null!; | ||||
| @ -71,7 +77,7 @@ public abstract partial class AssistantBase : ComponentBase, IMessageBusReceiver | ||||
|     protected abstract Func<Task> SubmitAction { get; } | ||||
|      | ||||
|     protected abstract SettingsPanel SettingsPanel { get; } | ||||
| 
 | ||||
|      | ||||
|     protected virtual bool SubmitDisabled => false; | ||||
|      | ||||
|     private protected virtual RenderFragment? Body => null; | ||||
| @ -156,7 +162,7 @@ public abstract partial class AssistantBase : ComponentBase, IMessageBusReceiver | ||||
|      | ||||
|     #region Implementation of IMessageBusReceiver | ||||
| 
 | ||||
|     public string ComponentName => nameof(AssistantBase); | ||||
|     public string ComponentName => nameof(AssistantBase<TSettings>); | ||||
|      | ||||
|     public Task ProcessMessage<T>(ComponentBase? sendingComponent, Event triggeredEvent, T? data) | ||||
|     { | ||||
| @ -326,6 +332,13 @@ public abstract partial class AssistantBase : ComponentBase, IMessageBusReceiver | ||||
|         this.NavigationManager.NavigateTo(Routes.SETTINGS); | ||||
|     } | ||||
|      | ||||
|     protected async Task OpenSettingsDialog() | ||||
|     { | ||||
|         var dialogParameters = new DialogParameters(); | ||||
|          | ||||
|         await this.DialogService.ShowAsync<TSettings>("Open Settings", dialogParameters, DialogOptions.FULLSCREEN); | ||||
|     } | ||||
|      | ||||
|     protected Task SendToAssistant(Tools.Components destination, SendToButton sendToButton) | ||||
|     { | ||||
|         if (!destination.AllowSendTo()) | ||||
|  | ||||
| @ -7,7 +7,7 @@ namespace AIStudio.Assistants; | ||||
| // See https://stackoverflow.com/a/77300384/2258393 for why this class is necessary | ||||
| // | ||||
| 
 | ||||
| public abstract class AssistantBaseCore : AssistantBase | ||||
| public abstract class AssistantBaseCore<TSettings> : AssistantBase<TSettings> where TSettings : IComponent | ||||
| { | ||||
|     private protected sealed override RenderFragment Body => this.BuildRenderTree; | ||||
| 
 | ||||
|  | ||||
| @ -1,5 +1,5 @@ | ||||
| @attribute [Route(Routes.ASSISTANT_BIAS)] | ||||
| @inherits AssistantBaseCore | ||||
| @inherits AssistantBaseCore<AIStudio.Dialogs.Settings.SettingsDialogAssistantBias> | ||||
| 
 | ||||
| <MudText Typo="Typo.body1"> | ||||
|     <b>Links:</b> | ||||
|  | ||||
| @ -2,11 +2,12 @@ using System.Text; | ||||
| 
 | ||||
| using AIStudio.Chat; | ||||
| using AIStudio.Components.Settings; | ||||
| using AIStudio.Dialogs.Settings; | ||||
| using AIStudio.Settings.DataModel; | ||||
| 
 | ||||
| namespace AIStudio.Assistants.BiasDay; | ||||
| 
 | ||||
| public partial class BiasOfTheDayAssistant : AssistantBaseCore | ||||
| public partial class BiasOfTheDayAssistant : AssistantBaseCore<SettingsDialogAssistantBias> | ||||
| { | ||||
|     public override Tools.Components Component => Tools.Components.BIAS_DAY_ASSISTANT; | ||||
|      | ||||
|  | ||||
| @ -1,5 +1,5 @@ | ||||
| @attribute [Route(Routes.ASSISTANT_CODING)] | ||||
| @inherits AssistantBaseCore | ||||
| @inherits AssistantBaseCore<AIStudio.Dialogs.Settings.SettingsDialogCoding> | ||||
| 
 | ||||
| <MudExpansionPanels Class="mb-3"> | ||||
|     @for (var contextIndex = 0; contextIndex < this.codingContexts.Count; contextIndex++) | ||||
|  | ||||
| @ -1,9 +1,10 @@ | ||||
| using System.Text; | ||||
| using AIStudio.Components.Settings; | ||||
| using AIStudio.Dialogs.Settings; | ||||
| 
 | ||||
| namespace AIStudio.Assistants.Coding; | ||||
| 
 | ||||
| public partial class AssistantCoding : AssistantBaseCore | ||||
| public partial class AssistantCoding : AssistantBaseCore<SettingsDialogCoding> | ||||
| { | ||||
|     public override Tools.Components Component => Tools.Components.CODING_ASSISTANT; | ||||
|      | ||||
|  | ||||
| @ -1,5 +1,5 @@ | ||||
| @attribute [Route(Routes.ASSISTANT_EMAIL)] | ||||
| @inherits AssistantBaseCore | ||||
| @inherits AssistantBaseCore<AIStudio.Dialogs.Settings.SettingsDialogWritingEMails> | ||||
| 
 | ||||
| <MudTextSwitch Label="Is there a history, a previous conversation?" @bind-Value="@this.provideHistory" LabelOn="Yes, I provide the previous conversation" LabelOff="No, I don't provide a previous conversation" /> | ||||
| @if (this.provideHistory) | ||||
|  | ||||
| @ -2,10 +2,11 @@ using System.Text; | ||||
| 
 | ||||
| using AIStudio.Chat; | ||||
| using AIStudio.Components.Settings; | ||||
| using AIStudio.Dialogs.Settings; | ||||
| 
 | ||||
| namespace AIStudio.Assistants.EMail; | ||||
| 
 | ||||
| public partial class AssistantEMail : AssistantBaseCore | ||||
| public partial class AssistantEMail : AssistantBaseCore<SettingsDialogWritingEMails> | ||||
| { | ||||
|     public override Tools.Components Component => Tools.Components.EMAIL_ASSISTANT; | ||||
|      | ||||
|  | ||||
| @ -1,7 +1,7 @@ | ||||
| @attribute [Route(Routes.ASSISTANT_ERI)] | ||||
| @using AIStudio.Settings.DataModel | ||||
| @using MudExtensions | ||||
| @inherits AssistantBaseCore | ||||
| @inherits AssistantBaseCore<AIStudio.Dialogs.Settings.SettingsDialogERIServer> | ||||
| 
 | ||||
| <MudJustifiedText Typo="Typo.body1" Class="mb-3"> | ||||
|     You can imagine it like this: Hypothetically, when Wikipedia implemented the ERI, it would vectorize | ||||
|  | ||||
| @ -4,6 +4,7 @@ using System.Text.RegularExpressions; | ||||
| using AIStudio.Chat; | ||||
| using AIStudio.Components.Settings; | ||||
| using AIStudio.Dialogs; | ||||
| using AIStudio.Dialogs.Settings; | ||||
| using AIStudio.Settings.DataModel; | ||||
| 
 | ||||
| using Microsoft.AspNetCore.Components; | ||||
| @ -12,7 +13,7 @@ using DialogOptions = AIStudio.Dialogs.DialogOptions; | ||||
| 
 | ||||
| namespace AIStudio.Assistants.ERI; | ||||
| 
 | ||||
| public partial class AssistantERI : AssistantBaseCore | ||||
| public partial class AssistantERI : AssistantBaseCore<SettingsDialogERIServer> | ||||
| { | ||||
|     [Inject] | ||||
|     private HttpClient HttpClient { get; set; } = null!; | ||||
|  | ||||
| @ -1,5 +1,5 @@ | ||||
| @attribute [Route(Routes.ASSISTANT_GRAMMAR_SPELLING)] | ||||
| @inherits AssistantBaseCore | ||||
| @inherits AssistantBaseCore<AIStudio.Dialogs.Settings.SettingsDialogGrammarSpelling> | ||||
| 
 | ||||
| <MudTextField T="string" @bind-Text="@this.inputText" Validation="@this.ValidateText" AdornmentIcon="@Icons.Material.Filled.DocumentScanner" Adornment="Adornment.Start" Label="Your input to check" Variant="Variant.Outlined" Lines="6" AutoGrow="@true" MaxLines="12" Class="mb-3" UserAttributes="@USER_INPUT_ATTRIBUTES"/> | ||||
| <EnumSelection T="CommonLanguages" NameFunc="@(language => language.NameSelectingOptional())" @bind-Value="@this.selectedTargetLanguage" Icon="@Icons.Material.Filled.Translate" Label="Language" AllowOther="@true" OtherValue="CommonLanguages.OTHER" @bind-OtherInput="@this.customTargetLanguage" ValidateOther="@this.ValidateCustomLanguage" LabelOther="Custom language" /> | ||||
|  | ||||
| @ -1,9 +1,10 @@ | ||||
| using AIStudio.Chat; | ||||
| using AIStudio.Components.Settings; | ||||
| using AIStudio.Dialogs.Settings; | ||||
| 
 | ||||
| namespace AIStudio.Assistants.GrammarSpelling; | ||||
| 
 | ||||
| public partial class AssistantGrammarSpelling : AssistantBaseCore | ||||
| public partial class AssistantGrammarSpelling : AssistantBaseCore<SettingsDialogGrammarSpelling> | ||||
| { | ||||
|     public override Tools.Components Component => Tools.Components.GRAMMAR_SPELLING_ASSISTANT; | ||||
|      | ||||
|  | ||||
| @ -1,5 +1,5 @@ | ||||
| @attribute [Route(Routes.ASSISTANT_ICON_FINDER)] | ||||
| @inherits AssistantBaseCore | ||||
| @inherits AssistantBaseCore<AIStudio.Dialogs.Settings.SettingsDialogIconFinder> | ||||
| 
 | ||||
| <MudTextField T="string" @bind-Text="@this.inputContext" Validation="@this.ValidatingContext" AdornmentIcon="@Icons.Material.Filled.Description" Adornment="Adornment.Start" Label="Your context" Variant="Variant.Outlined" Lines="3" AutoGrow="@true" MaxLines="12" Class="mb-3" UserAttributes="@USER_INPUT_ATTRIBUTES"/> | ||||
| 
 | ||||
|  | ||||
| @ -1,8 +1,9 @@ | ||||
| using AIStudio.Components.Settings; | ||||
| using AIStudio.Dialogs.Settings; | ||||
| 
 | ||||
| namespace AIStudio.Assistants.IconFinder; | ||||
| 
 | ||||
| public partial class AssistantIconFinder : AssistantBaseCore | ||||
| public partial class AssistantIconFinder : AssistantBaseCore<SettingsDialogIconFinder> | ||||
| { | ||||
|     public override Tools.Components Component => Tools.Components.ICON_FINDER_ASSISTANT; | ||||
| 
 | ||||
|  | ||||
| @ -1,5 +1,5 @@ | ||||
| @attribute [Route(Routes.ASSISTANT_JOB_POSTING)] | ||||
| @inherits AssistantBaseCore | ||||
| @inherits AssistantBaseCore<AIStudio.Dialogs.Settings.SettingsDialogJobPostings> | ||||
| 
 | ||||
| <MudTextField T="string" @bind-Text="@this.inputCompanyName" Label="(Optional) The company name" Adornment="Adornment.Start" AdornmentIcon="@Icons.Material.Filled.Warehouse" Variant="Variant.Outlined" Margin="Margin.Dense" UserAttributes="@USER_INPUT_ATTRIBUTES" Class="mb-3"/> | ||||
| <MudTextField T="string" @bind-Text="@this.inputCountryLegalFramework" Label="Provide the country, where the company is located" Validation="@this.ValidateCountryLegalFramework" Adornment="Adornment.Start" AdornmentIcon="@Icons.Material.Filled.Flag" Variant="Variant.Outlined" Margin="Margin.Dense" UserAttributes="@USER_INPUT_ATTRIBUTES" Class="mb-3" HelperText="This is important to consider the legal framework of the country."/> | ||||
|  | ||||
| @ -1,9 +1,10 @@ | ||||
| using AIStudio.Chat; | ||||
| using AIStudio.Components.Settings; | ||||
| using AIStudio.Dialogs.Settings; | ||||
| 
 | ||||
| namespace AIStudio.Assistants.JobPosting; | ||||
| 
 | ||||
| public partial class AssistantJobPostings : AssistantBaseCore | ||||
| public partial class AssistantJobPostings : AssistantBaseCore<SettingsDialogJobPostings> | ||||
| { | ||||
|     public override Tools.Components Component => Tools.Components.JOB_POSTING_ASSISTANT; | ||||
|      | ||||
|  | ||||
| @ -1,5 +1,5 @@ | ||||
| @attribute [Route(Routes.ASSISTANT_LEGAL_CHECK)] | ||||
| @inherits AssistantBaseCore | ||||
| @inherits AssistantBaseCore<AIStudio.Dialogs.Settings.SettingsDialogLegalCheck> | ||||
| 
 | ||||
| @if (!this.SettingsManager.ConfigurationData.LegalCheck.HideWebContentReader) | ||||
| { | ||||
|  | ||||
| @ -1,9 +1,10 @@ | ||||
| using AIStudio.Chat; | ||||
| using AIStudio.Components.Settings; | ||||
| using AIStudio.Dialogs.Settings; | ||||
| 
 | ||||
| namespace AIStudio.Assistants.LegalCheck; | ||||
| 
 | ||||
| public partial class AssistantLegalCheck : AssistantBaseCore | ||||
| public partial class AssistantLegalCheck : AssistantBaseCore<SettingsDialogLegalCheck> | ||||
| { | ||||
|     public override Tools.Components Component => Tools.Components.LEGAL_CHECK_ASSISTANT; | ||||
|      | ||||
|  | ||||
| @ -1,5 +1,5 @@ | ||||
| @attribute [Route(Routes.ASSISTANT_MY_TASKS)] | ||||
| @inherits AssistantBaseCore | ||||
| @inherits AssistantBaseCore<AIStudio.Dialogs.Settings.SettingsDialogMyTasks> | ||||
| 
 | ||||
| <ProfileFormSelection Validation="@this.ValidateProfile" @bind-Profile="@this.currentProfile"/> | ||||
| <MudTextField T="string" @bind-Text="@this.inputText" Validation="@this.ValidatingText" AdornmentIcon="@Icons.Material.Filled.DocumentScanner" Adornment="Adornment.Start" Label="Text or email" Variant="Variant.Outlined" Lines="12" AutoGrow="@true" MaxLines="24" Class="mb-3" UserAttributes="@USER_INPUT_ATTRIBUTES"/> | ||||
|  | ||||
| @ -1,10 +1,11 @@ | ||||
| using AIStudio.Chat; | ||||
| using AIStudio.Components.Settings; | ||||
| using AIStudio.Dialogs.Settings; | ||||
| using AIStudio.Settings; | ||||
| 
 | ||||
| namespace AIStudio.Assistants.MyTasks; | ||||
| 
 | ||||
| public partial class AssistantMyTasks : AssistantBaseCore | ||||
| public partial class AssistantMyTasks : AssistantBaseCore<SettingsDialogMyTasks> | ||||
| { | ||||
|     public override Tools.Components Component => Tools.Components.MY_TASKS_ASSISTANT; | ||||
|      | ||||
|  | ||||
| @ -1,5 +1,5 @@ | ||||
| @attribute [Route(Routes.ASSISTANT_REWRITE)] | ||||
| @inherits AssistantBaseCore | ||||
| @inherits AssistantBaseCore<AIStudio.Dialogs.Settings.SettingsDialogRewrite> | ||||
| 
 | ||||
| <MudTextField T="string" @bind-Text="@this.inputText" Validation="@this.ValidateText" AdornmentIcon="@Icons.Material.Filled.DocumentScanner" Adornment="Adornment.Start" Label="Your input to improve" Variant="Variant.Outlined" Lines="6" AutoGrow="@true" MaxLines="12" Class="mb-3" UserAttributes="@USER_INPUT_ATTRIBUTES"/> | ||||
| <EnumSelection T="CommonLanguages" NameFunc="@(language => language.NameSelectingOptional())" @bind-Value="@this.selectedTargetLanguage" Icon="@Icons.Material.Filled.Translate" Label="Language" AllowOther="@true" OtherValue="CommonLanguages.OTHER" @bind-OtherInput="@this.customTargetLanguage" ValidateOther="@this.ValidateCustomLanguage" LabelOther="Custom language" /> | ||||
|  | ||||
| @ -1,9 +1,10 @@ | ||||
| using AIStudio.Chat; | ||||
| using AIStudio.Components.Settings; | ||||
| using AIStudio.Dialogs.Settings; | ||||
| 
 | ||||
| namespace AIStudio.Assistants.RewriteImprove; | ||||
| 
 | ||||
| public partial class AssistantRewriteImprove : AssistantBaseCore | ||||
| public partial class AssistantRewriteImprove : AssistantBaseCore<SettingsDialogRewrite> | ||||
| { | ||||
|     public override Tools.Components Component => Tools.Components.REWRITE_ASSISTANT; | ||||
|      | ||||
|  | ||||
| @ -1,5 +1,5 @@ | ||||
| @attribute [Route(Routes.ASSISTANT_SYNONYMS)] | ||||
| @inherits AssistantBaseCore | ||||
| @inherits AssistantBaseCore<AIStudio.Components.Settings.SettingsDialogSynonyms> | ||||
| 
 | ||||
| <MudTextField T="string" @bind-Text="@this.inputText" Validation="@this.ValidatingText" AdornmentIcon="@Icons.Material.Filled.Spellcheck" Adornment="Adornment.Start" Label="Your word or phrase" Variant="Variant.Outlined" Class="mb-3" UserAttributes="@USER_INPUT_ATTRIBUTES"/> | ||||
| <MudTextField T="string" @bind-Text="@this.inputContext" AdornmentIcon="@Icons.Material.Filled.Description" Adornment="Adornment.Start" Lines="2" AutoGrow="@false" Label="(Optional) The context for the given word or phrase" Variant="Variant.Outlined" Class="mb-3" UserAttributes="@USER_INPUT_ATTRIBUTES"/> | ||||
|  | ||||
| @ -3,7 +3,7 @@ using AIStudio.Components.Settings; | ||||
| 
 | ||||
| namespace AIStudio.Assistants.Synonym; | ||||
| 
 | ||||
| public partial class AssistantSynonyms : AssistantBaseCore | ||||
| public partial class AssistantSynonyms : AssistantBaseCore<SettingsDialogSynonyms> | ||||
| { | ||||
|     public override Tools.Components Component => Tools.Components.SYNONYMS_ASSISTANT; | ||||
|      | ||||
|  | ||||
| @ -1,5 +1,5 @@ | ||||
| @attribute [Route(Routes.ASSISTANT_SUMMARIZER)] | ||||
| @inherits AssistantBaseCore | ||||
| @inherits AssistantBaseCore<AIStudio.Dialogs.Settings.SettingsDialogTextSummarizer> | ||||
| 
 | ||||
| @if (!this.SettingsManager.ConfigurationData.TextSummarizer.HideWebContentReader) | ||||
| { | ||||
|  | ||||
| @ -1,9 +1,10 @@ | ||||
| using AIStudio.Chat; | ||||
| using AIStudio.Components.Settings; | ||||
| using AIStudio.Dialogs.Settings; | ||||
| 
 | ||||
| namespace AIStudio.Assistants.TextSummarizer; | ||||
| 
 | ||||
| public partial class AssistantTextSummarizer : AssistantBaseCore | ||||
| public partial class AssistantTextSummarizer : AssistantBaseCore<SettingsDialogTextSummarizer> | ||||
| { | ||||
|     public override Tools.Components Component => Tools.Components.TEXT_SUMMARIZER_ASSISTANT; | ||||
|      | ||||
|  | ||||
| @ -1,5 +1,5 @@ | ||||
| @attribute [Route(Routes.ASSISTANT_TRANSLATION)] | ||||
| @inherits AssistantBaseCore | ||||
| @inherits AssistantBaseCore<AIStudio.Dialogs.Settings.SettingsDialogTranslation> | ||||
| 
 | ||||
| @if (!this.SettingsManager.ConfigurationData.Translation.HideWebContentReader) | ||||
| { | ||||
|  | ||||
| @ -1,9 +1,10 @@ | ||||
| using AIStudio.Chat; | ||||
| using AIStudio.Components.Settings; | ||||
| using AIStudio.Dialogs.Settings; | ||||
| 
 | ||||
| namespace AIStudio.Assistants.Translation; | ||||
| 
 | ||||
| public partial class AssistantTranslation : AssistantBaseCore | ||||
| public partial class AssistantTranslation : AssistantBaseCore<SettingsDialogTranslation> | ||||
| { | ||||
|     public override Tools.Components Component => Tools.Components.TRANSLATION_ASSISTANT; | ||||
|      | ||||
|  | ||||
| @ -1,6 +1,7 @@ | ||||
| using System.Diagnostics.CodeAnalysis; | ||||
| 
 | ||||
| using AIStudio.Assistants; | ||||
| using AIStudio.Dialogs.Settings; | ||||
| using AIStudio.Provider; | ||||
| using AIStudio.Settings; | ||||
| 
 | ||||
| @ -11,7 +12,7 @@ namespace AIStudio.Components; | ||||
| public partial class ProviderSelection : ComponentBase | ||||
| { | ||||
|     [CascadingParameter] | ||||
|     public AssistantBase? AssistantBase { get; set; } | ||||
|     public AssistantBase<SettingsDialogProviders>? AssistantBase { get; set; } | ||||
|      | ||||
|     [Parameter] | ||||
|     public AIStudio.Settings.Provider ProviderSettings { get; set; } | ||||
|  | ||||
| @ -1,32 +0,0 @@ | ||||
| @using AIStudio.Settings | ||||
| @inherits SettingsPanelBase | ||||
| 
 | ||||
| <ExpansionPanel HeaderIcon="@Icons.Material.Filled.CalendarToday" HeaderText="Assistant: Agenda Options" IsExpanded="@this.IsExtended()"> | ||||
|     <MudPaper Class="pa-3 mb-8 border-dashed border rounded-lg"> | ||||
|         <ConfigurationOption OptionDescription="Preselect agenda options?" LabelOn="Agenda options are preselected" LabelOff="No agenda options are preselected" State="@(() => this.SettingsManager.ConfigurationData.Agenda.PreselectOptions)" StateUpdate="@(updatedState => this.SettingsManager.ConfigurationData.Agenda.PreselectOptions = updatedState)" OptionHelp="When enabled, you can preselect most agenda options. This is might be useful when you need to create similar agendas often."/> | ||||
|         <ConfigurationText OptionDescription="Preselect a name?" Disabled="@(() => !this.SettingsManager.ConfigurationData.Agenda.PreselectOptions)" Icon="@Icons.Material.Filled.Tag" Text="@(() => this.SettingsManager.ConfigurationData.Agenda.PreselectName)" TextUpdate="@(updatedText => this.SettingsManager.ConfigurationData.Agenda.PreselectName = updatedText)" /> | ||||
|         <ConfigurationText OptionDescription="Preselect a topic?" Disabled="@(() => !this.SettingsManager.ConfigurationData.Agenda.PreselectOptions)" Icon="@Icons.Material.Filled.EventNote" Text="@(() => this.SettingsManager.ConfigurationData.Agenda.PreselectTopic)" TextUpdate="@(updatedText => this.SettingsManager.ConfigurationData.Agenda.PreselectTopic = updatedText)" /> | ||||
|         <ConfigurationText OptionDescription="Preselect an objective?" Disabled="@(() => !this.SettingsManager.ConfigurationData.Agenda.PreselectOptions)" Icon="@Icons.Material.Filled.Flag" Text="@(() => this.SettingsManager.ConfigurationData.Agenda.PreselectObjective)" TextUpdate="@(updatedText => this.SettingsManager.ConfigurationData.Agenda.PreselectObjective = updatedText)" /> | ||||
|         <ConfigurationText OptionDescription="Preselect a moderator?" Disabled="@(() => !this.SettingsManager.ConfigurationData.Agenda.PreselectOptions)" Icon="@Icons.Material.Filled.Person3" Text="@(() => this.SettingsManager.ConfigurationData.Agenda.PreselectModerator)" TextUpdate="@(updatedText => this.SettingsManager.ConfigurationData.Agenda.PreselectModerator = updatedText)" /> | ||||
|         <ConfigurationText OptionDescription="Preselect a duration?" Disabled="@(() => !this.SettingsManager.ConfigurationData.Agenda.PreselectOptions)" Icon="@Icons.Material.Filled.Schedule" Text="@(() => this.SettingsManager.ConfigurationData.Agenda.PreselectDuration)" TextUpdate="@(updatedText => this.SettingsManager.ConfigurationData.Agenda.PreselectDuration = updatedText)" /> | ||||
|         <ConfigurationText OptionDescription="Preselect a start time?" Disabled="@(() => !this.SettingsManager.ConfigurationData.Agenda.PreselectOptions)" Icon="@Icons.Material.Filled.Schedule" Text="@(() => this.SettingsManager.ConfigurationData.Agenda.PreselectStartTime)" TextUpdate="@(updatedText => this.SettingsManager.ConfigurationData.Agenda.PreselectStartTime = updatedText)" /> | ||||
|         <ConfigurationOption OptionDescription="Preselect whether the participants should get to know each other" Disabled="@(() => !this.SettingsManager.ConfigurationData.Agenda.PreselectOptions)" LabelOn="Participants should get to know each other" LabelOff="Participants do not need to get to know each other" State="@(() => this.SettingsManager.ConfigurationData.Agenda.PreselectIntroduceParticipants)" StateUpdate="@(updatedState => this.SettingsManager.ConfigurationData.Agenda.PreselectIntroduceParticipants = updatedState)" /> | ||||
|         <ConfigurationSelect OptionDescription="Preselect the number of participants" Disabled="@(() => !this.SettingsManager.ConfigurationData.Agenda.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.Agenda.PreselectNumberParticipants)" Data="@ConfigurationSelectDataFactory.GetNumberParticipantsData()" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.Agenda.PreselectNumberParticipants = selectedValue)" OptionHelp="How many participants should be preselected?"/> | ||||
|         <ConfigurationOption OptionDescription="Preselect whether the participants should actively involved" Disabled="@(() => !this.SettingsManager.ConfigurationData.Agenda.PreselectOptions)" LabelOn="Participants should be actively involved" LabelOff="Participants do not need to be actively involved" State="@(() => this.SettingsManager.ConfigurationData.Agenda.PreselectActiveParticipation)" StateUpdate="@(updatedState => this.SettingsManager.ConfigurationData.Agenda.PreselectActiveParticipation = updatedState)" /> | ||||
|         <ConfigurationOption OptionDescription="Preselect whether the meeting is virtual" Disabled="@(() => !this.SettingsManager.ConfigurationData.Agenda.PreselectOptions)" LabelOn="Meeting is virtual" LabelOff="Meeting is in person" State="@(() => this.SettingsManager.ConfigurationData.Agenda.PreselectIsMeetingVirtual)" StateUpdate="@(updatedState => this.SettingsManager.ConfigurationData.Agenda.PreselectIsMeetingVirtual = updatedState)" /> | ||||
|         <ConfigurationText OptionDescription="Preselect a location?" Disabled="@(() => !this.SettingsManager.ConfigurationData.Agenda.PreselectOptions)" Icon="@Icons.Material.Filled.MyLocation" Text="@(() => this.SettingsManager.ConfigurationData.Agenda.PreselectLocation)" TextUpdate="@(updatedText => this.SettingsManager.ConfigurationData.Agenda.PreselectLocation = updatedText)" /> | ||||
|         <ConfigurationOption OptionDescription="Preselect whether there is a joint dinner" Disabled="@(() => !this.SettingsManager.ConfigurationData.Agenda.PreselectOptions)" LabelOn="There is a joint dinner" LabelOff="There is no joint dinner" State="@(() => this.SettingsManager.ConfigurationData.Agenda.PreselectJointDinner)" StateUpdate="@(updatedState => this.SettingsManager.ConfigurationData.Agenda.PreselectJointDinner = updatedState)" /> | ||||
|         <ConfigurationOption OptionDescription="Preselect whether there is a social event" Disabled="@(() => !this.SettingsManager.ConfigurationData.Agenda.PreselectOptions)" LabelOn="There is a social event" LabelOff="There is no social event" State="@(() => this.SettingsManager.ConfigurationData.Agenda.PreselectSocialActivity)" StateUpdate="@(updatedState => this.SettingsManager.ConfigurationData.Agenda.PreselectSocialActivity = updatedState)" /> | ||||
|         <ConfigurationOption OptionDescription="Preselect whether participants needs to arrive and depart" Disabled="@(() => !this.SettingsManager.ConfigurationData.Agenda.PreselectOptions)" LabelOn="Participants need to arrive and depart" LabelOff="Participants do not need to arrive and depart" State="@(() => this.SettingsManager.ConfigurationData.Agenda.PreselectArriveAndDepart)" StateUpdate="@(updatedState => this.SettingsManager.ConfigurationData.Agenda.PreselectArriveAndDepart = updatedState)" /> | ||||
|         <ConfigurationSlider T="int" OptionDescription="Preselect the approx. lunch time" Min="30" Max="120" Step="5" Unit="minutes" Disabled="@(() => !this.SettingsManager.ConfigurationData.Agenda.PreselectOptions)" Value="@(() => this.SettingsManager.ConfigurationData.Agenda.PreselectLunchTime)" ValueUpdate="@(updatedValue => this.SettingsManager.ConfigurationData.Agenda.PreselectLunchTime = updatedValue)" /> | ||||
|         <ConfigurationSlider T="int" OptionDescription="Preselect the approx. break time" Min="10" Max="60" Step="5" Unit="minutes" Disabled="@(() => !this.SettingsManager.ConfigurationData.Agenda.PreselectOptions)" Value="@(() => this.SettingsManager.ConfigurationData.Agenda.PreselectBreakTime)" ValueUpdate="@(updatedValue => this.SettingsManager.ConfigurationData.Agenda.PreselectBreakTime = updatedValue)" /> | ||||
|         <ConfigurationSelect OptionDescription="Preselect the agenda language" Disabled="@(() => !this.SettingsManager.ConfigurationData.Agenda.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.Agenda.PreselectedTargetLanguage)" Data="@ConfigurationSelectDataFactory.GetCommonLanguagesTranslationData()" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.Agenda.PreselectedTargetLanguage = selectedValue)" OptionHelp="Which agenda language should be preselected?"/> | ||||
|         @if (this.SettingsManager.ConfigurationData.Agenda.PreselectedTargetLanguage is CommonLanguages.OTHER) | ||||
|         { | ||||
|             <ConfigurationText OptionDescription="Preselect another agenda language" Disabled="@(() => !this.SettingsManager.ConfigurationData.Agenda.PreselectOptions)" Icon="@Icons.Material.Filled.Translate" Text="@(() => this.SettingsManager.ConfigurationData.Agenda.PreselectedOtherLanguage)" TextUpdate="@(updatedText => this.SettingsManager.ConfigurationData.Agenda.PreselectedOtherLanguage = updatedText)"/> | ||||
|         } | ||||
|         <ConfigurationMinConfidenceSelection Disabled="@(() => !this.SettingsManager.ConfigurationData.Agenda.PreselectOptions)" RestrictToGlobalMinimumConfidence="@true" SelectedValue="@(() => this.SettingsManager.ConfigurationData.Agenda.MinimumProviderConfidence)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.Agenda.MinimumProviderConfidence = selectedValue)"/> | ||||
|         <ConfigurationProviderSelection Component="Components.AGENDA_ASSISTANT" Data="@this.AvailableLLMProvidersFunc()" Disabled="@(() => !this.SettingsManager.ConfigurationData.Agenda.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.Agenda.PreselectedProvider)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.Agenda.PreselectedProvider = selectedValue)"/> | ||||
|         <ConfigurationSelect OptionDescription="Preselect one of your profiles?" Disabled="@(() => !this.SettingsManager.ConfigurationData.Agenda.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.Agenda.PreselectedProfile)" Data="@ConfigurationSelectDataFactory.GetProfilesData(this.SettingsManager.ConfigurationData.Profiles)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.Agenda.PreselectedProfile = selectedValue)" OptionHelp="Would you like to preselect one of your profiles?"/> | ||||
|     </MudPaper> | ||||
| </ExpansionPanel> | ||||
| @ -1,6 +0,0 @@ | ||||
| namespace AIStudio.Components.Settings; | ||||
| 
 | ||||
| public partial class SettingsPanelAgenda : SettingsPanelBase | ||||
| { | ||||
|     protected override SettingsPanel Type => SettingsPanel.ASSISTANT_AGENDA_PANEL; | ||||
| } | ||||
| @ -1,29 +0,0 @@ | ||||
| @using AIStudio.Settings | ||||
| @using AIStudio.Settings.DataModel | ||||
| @inherits SettingsPanelBase | ||||
| 
 | ||||
| <ExpansionPanel HeaderIcon="@Icons.Material.Filled.Psychology" HeaderText="Assistant: Bias of the Day" IsExpanded="@this.IsExtended()"> | ||||
| 
 | ||||
|     <ConfigurationOption OptionDescription="Restrict to one bias a day?" LabelOn="Yes, you can only retrieve one bias per day" LabelOff="No restriction. You can retrieve as many biases as you want per day." State="@(() => this.SettingsManager.ConfigurationData.BiasOfTheDay.RestrictOneBiasPerDay)" StateUpdate="@(updatedState => this.SettingsManager.ConfigurationData.BiasOfTheDay.RestrictOneBiasPerDay = updatedState)"/> | ||||
|      | ||||
|     <MudField Label="Statistics" Variant="Variant.Outlined" Class="mb-2"> | ||||
|         <MudText Typo="Typo.body1"> | ||||
|             You have learned about @this.SettingsManager.ConfigurationData.BiasOfTheDay.UsedBias.Count out of @BiasCatalog.ALL_BIAS.Count biases. | ||||
|         </MudText> | ||||
|         <MudButton Size="Size.Small" Variant="Variant.Filled" StartIcon="@Icons.Material.Filled.Restore" Color="Color.Error" OnClick="@(() => this.ResetBiasOfTheDayHistory())"> | ||||
|             Reset | ||||
|         </MudButton> | ||||
|     </MudField> | ||||
|      | ||||
|     <MudPaper Class="pa-3 mb-8 border-dashed border rounded-lg"> | ||||
|         <ConfigurationOption OptionDescription="Preselect options?" LabelOn="Options are preselected" LabelOff="No options are preselected" State="@(() => this.SettingsManager.ConfigurationData.BiasOfTheDay.PreselectOptions)" StateUpdate="@(updatedState => this.SettingsManager.ConfigurationData.BiasOfTheDay.PreselectOptions = updatedState)" OptionHelp="When enabled, you can preselect options. This is might be useful when you prefer a specific language or LLM model."/> | ||||
|         <ConfigurationSelect OptionDescription="Preselect the language" Disabled="@(() => !this.SettingsManager.ConfigurationData.BiasOfTheDay.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.BiasOfTheDay.PreselectedTargetLanguage)" Data="@ConfigurationSelectDataFactory.GetCommonLanguagesOptionalData()" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.BiasOfTheDay.PreselectedTargetLanguage = selectedValue)" OptionHelp="Which language should be preselected?"/> | ||||
|         @if (this.SettingsManager.ConfigurationData.BiasOfTheDay.PreselectedTargetLanguage is CommonLanguages.OTHER) | ||||
|         { | ||||
|             <ConfigurationText OptionDescription="Preselect another language" Disabled="@(() => !this.SettingsManager.ConfigurationData.BiasOfTheDay.PreselectOptions)" Icon="@Icons.Material.Filled.Translate" Text="@(() => this.SettingsManager.ConfigurationData.BiasOfTheDay.PreselectedOtherLanguage)" TextUpdate="@(updatedText => this.SettingsManager.ConfigurationData.BiasOfTheDay.PreselectedOtherLanguage = updatedText)"/> | ||||
|         } | ||||
|         <ConfigurationSelect OptionDescription="Preselect one of your profiles?" Disabled="@(() => !this.SettingsManager.ConfigurationData.BiasOfTheDay.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.BiasOfTheDay.PreselectedProfile)" Data="@ConfigurationSelectDataFactory.GetProfilesData(this.SettingsManager.ConfigurationData.Profiles)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.BiasOfTheDay.PreselectedProfile = selectedValue)" OptionHelp="Would you like to preselect one of your profiles?"/> | ||||
|         <ConfigurationMinConfidenceSelection Disabled="@(() => !this.SettingsManager.ConfigurationData.BiasOfTheDay.PreselectOptions)" RestrictToGlobalMinimumConfidence="@true" SelectedValue="@(() => this.SettingsManager.ConfigurationData.BiasOfTheDay.MinimumProviderConfidence)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.BiasOfTheDay.MinimumProviderConfidence = selectedValue)"/> | ||||
|         <ConfigurationProviderSelection Component="Components.BIAS_DAY_ASSISTANT" Data="@this.AvailableLLMProvidersFunc()" Disabled="@(() => !this.SettingsManager.ConfigurationData.BiasOfTheDay.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.BiasOfTheDay.PreselectedProvider)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.BiasOfTheDay.PreselectedProvider = selectedValue)"/> | ||||
|     </MudPaper> | ||||
| </ExpansionPanel> | ||||
| @ -1,18 +0,0 @@ | ||||
| @using AIStudio.Assistants.Coding | ||||
| @using AIStudio.Settings | ||||
| @inherits SettingsPanelBase | ||||
| 
 | ||||
| <ExpansionPanel HeaderIcon="@Icons.Material.Filled.Code" HeaderText="Assistant: Coding Options" IsExpanded="@this.IsExtended()"> | ||||
|     <MudPaper Class="pa-3 mb-8 border-dashed border rounded-lg"> | ||||
|         <ConfigurationOption OptionDescription="Preselect coding options?" LabelOn="Coding options are preselected" LabelOff="No coding options are preselected" State="@(() => this.SettingsManager.ConfigurationData.Coding.PreselectOptions)" StateUpdate="@(updatedState => this.SettingsManager.ConfigurationData.Coding.PreselectOptions = updatedState)" OptionHelp="When enabled, you can preselect the coding options. This is might be useful when you prefer a specific programming language or LLM model."/> | ||||
|         <ConfigurationOption OptionDescription="Preselect compiler messages?" Disabled="@(() => !this.SettingsManager.ConfigurationData.Coding.PreselectOptions)" LabelOn="Compiler messages are preselected" LabelOff="Compiler messages are not preselected" State="@(() => this.SettingsManager.ConfigurationData.Coding.PreselectCompilerMessages)" StateUpdate="@(updatedState => this.SettingsManager.ConfigurationData.Coding.PreselectCompilerMessages = updatedState)" /> | ||||
|         <ConfigurationSelect OptionDescription="Preselect a programming language" Disabled="@(() => !this.SettingsManager.ConfigurationData.Coding.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.Coding.PreselectedProgrammingLanguage)" Data="@ConfigurationSelectDataFactory.GetCommonCodingLanguagesData()" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.Coding.PreselectedProgrammingLanguage = selectedValue)" OptionHelp="Which programming language should be preselected for added contexts?"/> | ||||
|         @if (this.SettingsManager.ConfigurationData.Coding.PreselectedProgrammingLanguage is CommonCodingLanguages.OTHER) | ||||
|         { | ||||
|             <ConfigurationText OptionDescription="Preselect another programming language" Disabled="@(() => !this.SettingsManager.ConfigurationData.Coding.PreselectOptions)" Icon="@Icons.Material.Filled.Code" Text="@(() => this.SettingsManager.ConfigurationData.Coding.PreselectedOtherProgrammingLanguage)" TextUpdate="@(updatedText => this.SettingsManager.ConfigurationData.Coding.PreselectedOtherProgrammingLanguage = updatedText)"/> | ||||
|         } | ||||
|         <ConfigurationMinConfidenceSelection Disabled="@(() => !this.SettingsManager.ConfigurationData.Coding.PreselectOptions)" RestrictToGlobalMinimumConfidence="@true" SelectedValue="@(() => this.SettingsManager.ConfigurationData.Coding.MinimumProviderConfidence)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.Coding.MinimumProviderConfidence = selectedValue)"/> | ||||
|         <ConfigurationProviderSelection Component="Components.CODING_ASSISTANT" Data="@this.AvailableLLMProvidersFunc()" Disabled="@(() => !this.SettingsManager.ConfigurationData.Coding.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.Coding.PreselectedProvider)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.Coding.PreselectedProvider = selectedValue)"/> | ||||
|         <ConfigurationSelect OptionDescription="Preselect one of your profiles?" Disabled="@(() => !this.SettingsManager.ConfigurationData.Coding.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.Coding.PreselectedProfile)" Data="@ConfigurationSelectDataFactory.GetProfilesData(this.SettingsManager.ConfigurationData.Profiles)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.Coding.PreselectedProfile = selectedValue)" OptionHelp="Would you like to preselect one of your profiles?"/> | ||||
|     </MudPaper> | ||||
| </ExpansionPanel> | ||||
| @ -1,6 +0,0 @@ | ||||
| namespace AIStudio.Components.Settings; | ||||
| 
 | ||||
| public partial class SettingsPanelCoding : SettingsPanelBase | ||||
| { | ||||
|     protected override SettingsPanel Type => SettingsPanel.ASSISTANT_CODING_PANEL; | ||||
| } | ||||
| @ -1,15 +0,0 @@ | ||||
| @using AIStudio.Settings | ||||
| @inherits SettingsPanelBase | ||||
| 
 | ||||
| <ExpansionPanel HeaderIcon="@Icons.Material.Filled.Edit" HeaderText="Assistant: Grammar & Spelling Checker" IsExpanded="@this.IsExtended()"> | ||||
|     <MudPaper Class="pa-3 mb-8 border-dashed border rounded-lg"> | ||||
|         <ConfigurationOption OptionDescription="Preselect grammar & spell checker options?" LabelOn="Grammar & spell checker options are preselected" LabelOff="No grammar & spell checker options are preselected" State="@(() => this.SettingsManager.ConfigurationData.GrammarSpelling.PreselectOptions)" StateUpdate="@(updatedState => this.SettingsManager.ConfigurationData.GrammarSpelling.PreselectOptions = updatedState)" OptionHelp="When enabled, you can preselect the grammar & spell checker options. This is might be useful when you prefer a specific language or LLM model."/> | ||||
|         <ConfigurationSelect OptionDescription="Preselect the target language" Disabled="@(() => !this.SettingsManager.ConfigurationData.GrammarSpelling.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.GrammarSpelling.PreselectedTargetLanguage)" Data="@ConfigurationSelectDataFactory.GetCommonLanguagesOptionalData()" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.GrammarSpelling.PreselectedTargetLanguage = selectedValue)" OptionHelp="Which target language should be preselected?"/> | ||||
|         @if (this.SettingsManager.ConfigurationData.GrammarSpelling.PreselectedTargetLanguage is CommonLanguages.OTHER) | ||||
|         { | ||||
|             <ConfigurationText OptionDescription="Preselect another target language" Disabled="@(() => !this.SettingsManager.ConfigurationData.GrammarSpelling.PreselectOptions)" Icon="@Icons.Material.Filled.Translate" Text="@(() => this.SettingsManager.ConfigurationData.GrammarSpelling.PreselectedOtherLanguage)" TextUpdate="@(updatedText => this.SettingsManager.ConfigurationData.GrammarSpelling.PreselectedOtherLanguage = updatedText)"/> | ||||
|         } | ||||
|         <ConfigurationMinConfidenceSelection Disabled="@(() => !this.SettingsManager.ConfigurationData.GrammarSpelling.PreselectOptions)" RestrictToGlobalMinimumConfidence="@true" SelectedValue="@(() => this.SettingsManager.ConfigurationData.GrammarSpelling.MinimumProviderConfidence)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.GrammarSpelling.MinimumProviderConfidence = selectedValue)"/> | ||||
|         <ConfigurationProviderSelection Component="Components.GRAMMAR_SPELLING_ASSISTANT" Data="@this.AvailableLLMProvidersFunc()" Disabled="@(() => !this.SettingsManager.ConfigurationData.GrammarSpelling.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.GrammarSpelling.PreselectedProvider)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.GrammarSpelling.PreselectedProvider = selectedValue)"/> | ||||
|     </MudPaper> | ||||
| </ExpansionPanel> | ||||
| @ -1,6 +0,0 @@ | ||||
| namespace AIStudio.Components.Settings; | ||||
| 
 | ||||
| public partial class SettingsPanelGrammarSpelling : SettingsPanelBase | ||||
| { | ||||
|     protected override SettingsPanel Type => SettingsPanel.ASSISTANT_GRAMMAR_SPELLING_PANEL; | ||||
| } | ||||
| @ -1,11 +0,0 @@ | ||||
| @using AIStudio.Settings | ||||
| @inherits SettingsPanelBase | ||||
| 
 | ||||
| <ExpansionPanel HeaderIcon="@Icons.Material.Filled.FindInPage" HeaderText="Assistant: Icon Finder Options" IsExpanded="@this.IsExtended()"> | ||||
|     <MudPaper Class="pa-3 mb-8 border-dashed border rounded-lg"> | ||||
|         <ConfigurationOption OptionDescription="Preselect icon options?" LabelOn="Icon options are preselected" LabelOff="No icon options are preselected" State="@(() => this.SettingsManager.ConfigurationData.IconFinder.PreselectOptions)" StateUpdate="@(updatedState => this.SettingsManager.ConfigurationData.IconFinder.PreselectOptions = updatedState)" OptionHelp="When enabled, you can preselect the icon options. This is might be useful when you prefer a specific icon source or LLM model."/> | ||||
|         <ConfigurationSelect OptionDescription="Preselect the icon source" Disabled="@(() => !this.SettingsManager.ConfigurationData.IconFinder.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.IconFinder.PreselectedSource)" Data="@ConfigurationSelectDataFactory.GetIconSourcesData()" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.IconFinder.PreselectedSource = selectedValue)" OptionHelp="Which icon source should be preselected?"/> | ||||
|         <ConfigurationMinConfidenceSelection Disabled="@(() => !this.SettingsManager.ConfigurationData.IconFinder.PreselectOptions)" RestrictToGlobalMinimumConfidence="@true" SelectedValue="@(() => this.SettingsManager.ConfigurationData.IconFinder.MinimumProviderConfidence)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.IconFinder.MinimumProviderConfidence = selectedValue)"/> | ||||
|         <ConfigurationProviderSelection Component="Components.ICON_FINDER_ASSISTANT" Data="@this.AvailableLLMProvidersFunc()" Disabled="@(() => !this.SettingsManager.ConfigurationData.IconFinder.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.IconFinder.PreselectedProvider)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.IconFinder.PreselectedProvider = selectedValue)"/> | ||||
|     </MudPaper> | ||||
| </ExpansionPanel> | ||||
| @ -1,6 +0,0 @@ | ||||
| namespace AIStudio.Components.Settings; | ||||
| 
 | ||||
| public partial class SettingsPanelIconFinder : SettingsPanelBase | ||||
| { | ||||
|     protected override SettingsPanel Type => SettingsPanel.ASSISTANT_ICON_FINDER_PANEL; | ||||
| } | ||||
| @ -1,22 +0,0 @@ | ||||
| @using AIStudio.Settings | ||||
| @inherits SettingsPanelBase | ||||
| 
 | ||||
| <ExpansionPanel HeaderIcon="@Icons.Material.Filled.Work" HeaderText="Assistant: Job Postings" IsExpanded="@this.IsExtended()"> | ||||
|     <MudPaper Class="pa-3 mb-8 border-dashed border rounded-lg"> | ||||
|         <ConfigurationOption OptionDescription="Preselect job posting options?" LabelOn="Job posting options are preselected" LabelOff="No job posting options are preselected" State="@(() => this.SettingsManager.ConfigurationData.JobPostings.PreselectOptions)" StateUpdate="@(updatedState => this.SettingsManager.ConfigurationData.JobPostings.PreselectOptions = updatedState)" OptionHelp="When enabled, you can preselect some job posting options. This is might be useful when you prefer a specific LLM model."/> | ||||
|         <ConfigurationText OptionDescription="Preselect the company name?" Disabled="@(() => !this.SettingsManager.ConfigurationData.JobPostings.PreselectOptions)" Icon="@Icons.Material.Filled.Warehouse" Text="@(() => this.SettingsManager.ConfigurationData.JobPostings.PreselectedCompanyName)" TextUpdate="@(updatedText => this.SettingsManager.ConfigurationData.JobPostings.PreselectedCompanyName = updatedText)" /> | ||||
|         <ConfigurationText OptionDescription="Preselect some mandatory information about the job posting?" NumLines="6" Disabled="@(() => !this.SettingsManager.ConfigurationData.JobPostings.PreselectOptions)" Icon="@Icons.Material.Filled.TextSnippet" Text="@(() => this.SettingsManager.ConfigurationData.JobPostings.PreselectedMandatoryInformation)" TextUpdate="@(updatedText => this.SettingsManager.ConfigurationData.JobPostings.PreselectedMandatoryInformation = updatedText)" /> | ||||
|         <ConfigurationText OptionDescription="Preselect the job description?" NumLines="3" MaxLines="6" Disabled="@(() => !this.SettingsManager.ConfigurationData.JobPostings.PreselectOptions)" Icon="@Icons.Material.Filled.Settings" Text="@(() => this.SettingsManager.ConfigurationData.JobPostings.PreselectedJobDescription)" TextUpdate="@(updatedText => this.SettingsManager.ConfigurationData.JobPostings.PreselectedJobDescription = updatedText)" /> | ||||
|         <ConfigurationText OptionDescription="Preselect the job qualifications?" NumLines="3" MaxLines="6" Disabled="@(() => !this.SettingsManager.ConfigurationData.JobPostings.PreselectOptions)" Icon="@Icons.Material.Filled.Settings" Text="@(() => this.SettingsManager.ConfigurationData.JobPostings.PreselectedQualifications)" TextUpdate="@(updatedText => this.SettingsManager.ConfigurationData.JobPostings.PreselectedQualifications = updatedText)" /> | ||||
|         <ConfigurationText OptionDescription="Preselect the job responsibilities?" NumLines="3" MaxLines="6" Disabled="@(() => !this.SettingsManager.ConfigurationData.JobPostings.PreselectOptions)" Icon="@Icons.Material.Filled.Settings" Text="@(() => this.SettingsManager.ConfigurationData.JobPostings.PreselectedResponsibilities)" TextUpdate="@(updatedText => this.SettingsManager.ConfigurationData.JobPostings.PreselectedResponsibilities = updatedText)" /> | ||||
|         <ConfigurationText OptionDescription="Preselect the work location?" Disabled="@(() => !this.SettingsManager.ConfigurationData.JobPostings.PreselectOptions)" Icon="@Icons.Material.Filled.MyLocation" Text="@(() => this.SettingsManager.ConfigurationData.JobPostings.PreselectedWorkLocation)" TextUpdate="@(updatedText => this.SettingsManager.ConfigurationData.JobPostings.PreselectedWorkLocation = updatedText)" /> | ||||
|         <ConfigurationText OptionDescription="Preselect the country (legal framework)?" Disabled="@(() => !this.SettingsManager.ConfigurationData.JobPostings.PreselectOptions)" Icon="@Icons.Material.Filled.Flag" Text="@(() => this.SettingsManager.ConfigurationData.JobPostings.PreselectedCountryLegalFramework)" TextUpdate="@(updatedText => this.SettingsManager.ConfigurationData.JobPostings.PreselectedCountryLegalFramework = updatedText)" /> | ||||
|         <ConfigurationSelect OptionDescription="Preselect the language" Disabled="@(() => !this.SettingsManager.ConfigurationData.JobPostings.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.JobPostings.PreselectedTargetLanguage)" Data="@ConfigurationSelectDataFactory.GetCommonLanguagesOptionalData()" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.JobPostings.PreselectedTargetLanguage = selectedValue)" OptionHelp="Which target language should be preselected?"/> | ||||
|         @if (this.SettingsManager.ConfigurationData.JobPostings.PreselectedTargetLanguage is CommonLanguages.OTHER) | ||||
|         { | ||||
|             <ConfigurationText OptionDescription="Preselect another target language" Disabled="@(() => !this.SettingsManager.ConfigurationData.JobPostings.PreselectOptions)" Icon="@Icons.Material.Filled.Translate" Text="@(() => this.SettingsManager.ConfigurationData.JobPostings.PreselectOtherLanguage)" TextUpdate="@(updatedText => this.SettingsManager.ConfigurationData.JobPostings.PreselectOtherLanguage = updatedText)"/> | ||||
|         } | ||||
|         <ConfigurationMinConfidenceSelection Disabled="@(() => !this.SettingsManager.ConfigurationData.JobPostings.PreselectOptions)" RestrictToGlobalMinimumConfidence="@true" SelectedValue="@(() => this.SettingsManager.ConfigurationData.JobPostings.MinimumProviderConfidence)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.JobPostings.MinimumProviderConfidence = selectedValue)"/> | ||||
|         <ConfigurationProviderSelection Component="Components.JOB_POSTING_ASSISTANT" Data="@this.AvailableLLMProvidersFunc()" Disabled="@(() => !this.SettingsManager.ConfigurationData.JobPostings.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.JobPostings.PreselectedProvider)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.JobPostings.PreselectedProvider = selectedValue)"/> | ||||
|     </MudPaper> | ||||
| </ExpansionPanel> | ||||
| @ -1,6 +0,0 @@ | ||||
| namespace AIStudio.Components.Settings; | ||||
| 
 | ||||
| public partial class SettingsPanelJobPostings : SettingsPanelBase | ||||
| { | ||||
|     protected override SettingsPanel Type => SettingsPanel.ASSISTANT_JOB_POSTING_PANEL; | ||||
| } | ||||
| @ -1,14 +0,0 @@ | ||||
| @using AIStudio.Settings | ||||
| @inherits SettingsPanelBase | ||||
| 
 | ||||
| <ExpansionPanel HeaderIcon="@Icons.Material.Filled.Gavel" HeaderText="Assistant: Legal Check" IsExpanded="@this.IsExtended()"> | ||||
|     <ConfigurationOption OptionDescription="Hide the web content reader?" LabelOn="Web content reader is hidden" LabelOff="Web content reader is shown" State="@(() => this.SettingsManager.ConfigurationData.LegalCheck.HideWebContentReader)" StateUpdate="@(updatedState => this.SettingsManager.ConfigurationData.LegalCheck.HideWebContentReader = updatedState)" OptionHelp="When activated, the web content reader is hidden and cannot be used. As a result, the user interface becomes a bit easier to use."/> | ||||
|     <MudPaper Class="pa-3 mb-8 border-dashed border rounded-lg"> | ||||
|         <ConfigurationOption OptionDescription="Preselect legal check options?" LabelOn="Legal check options are preselected" LabelOff="No legal check options are preselected" State="@(() => this.SettingsManager.ConfigurationData.LegalCheck.PreselectOptions)" StateUpdate="@(updatedState => this.SettingsManager.ConfigurationData.LegalCheck.PreselectOptions = updatedState)" OptionHelp="When enabled, you can preselect some legal check options. This is might be useful when you prefer a specific LLM model."/> | ||||
|         <ConfigurationOption OptionDescription="Preselect the web content reader?" Disabled="@(() => !this.SettingsManager.ConfigurationData.LegalCheck.PreselectOptions || this.SettingsManager.ConfigurationData.LegalCheck.HideWebContentReader)" LabelOn="Web content reader is preselected" LabelOff="Web content reader is not preselected" State="@(() => this.SettingsManager.ConfigurationData.LegalCheck.PreselectWebContentReader)" StateUpdate="@(updatedState => this.SettingsManager.ConfigurationData.LegalCheck.PreselectWebContentReader = updatedState)" OptionHelp="When enabled, the web content reader is preselected. This is might be useful when you prefer to load legal content from the web very often."/> | ||||
|         <ConfigurationOption OptionDescription="Preselect the content cleaner agent?" Disabled="@(() => !this.SettingsManager.ConfigurationData.LegalCheck.PreselectOptions || this.SettingsManager.ConfigurationData.LegalCheck.HideWebContentReader)" LabelOn="Content cleaner agent is preselected" LabelOff="Content cleaner agent is not preselected" State="@(() => this.SettingsManager.ConfigurationData.LegalCheck.PreselectContentCleanerAgent)" StateUpdate="@(updatedState => this.SettingsManager.ConfigurationData.LegalCheck.PreselectContentCleanerAgent = updatedState)" OptionHelp="When enabled, the content cleaner agent is preselected. This is might be useful when you prefer to clean up the legal content before translating it."/> | ||||
|         <ConfigurationMinConfidenceSelection Disabled="@(() => !this.SettingsManager.ConfigurationData.LegalCheck.PreselectOptions)" RestrictToGlobalMinimumConfidence="@true" SelectedValue="@(() => this.SettingsManager.ConfigurationData.LegalCheck.MinimumProviderConfidence)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.LegalCheck.MinimumProviderConfidence = selectedValue)"/> | ||||
|         <ConfigurationProviderSelection Component="Components.LEGAL_CHECK_ASSISTANT" Data="@this.AvailableLLMProvidersFunc()" Disabled="@(() => !this.SettingsManager.ConfigurationData.LegalCheck.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.LegalCheck.PreselectedProvider)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.LegalCheck.PreselectedProvider = selectedValue)"/> | ||||
|         <ConfigurationSelect OptionDescription="Preselect one of your profiles?" Disabled="@(() => !this.SettingsManager.ConfigurationData.LegalCheck.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.LegalCheck.PreselectedProfile)" Data="@ConfigurationSelectDataFactory.GetProfilesData(this.SettingsManager.ConfigurationData.Profiles)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.LegalCheck.PreselectedProfile = selectedValue)" OptionHelp="Would you like to preselect one of your profiles?"/> | ||||
|     </MudPaper> | ||||
| </ExpansionPanel> | ||||
| @ -1,6 +0,0 @@ | ||||
| namespace AIStudio.Components.Settings; | ||||
| 
 | ||||
| public partial class SettingsPanelLegalCheck : SettingsPanelBase | ||||
| { | ||||
|     protected override SettingsPanel Type => SettingsPanel.ASSISTANT_LEGAL_CHECK_PANEL; | ||||
| } | ||||
| @ -1,16 +0,0 @@ | ||||
| @using AIStudio.Settings | ||||
| @inherits SettingsPanelBase | ||||
| 
 | ||||
| <ExpansionPanel HeaderIcon="@Icons.Material.Filled.Task" HeaderText="Assistant: My Tasks" IsExpanded="@this.IsExtended()"> | ||||
|     <MudPaper Class="pa-3 mb-8 border-dashed border rounded-lg"> | ||||
|         <ConfigurationOption OptionDescription="Preselect options?" LabelOn="Options are preselected" LabelOff="No options are preselected" State="@(() => this.SettingsManager.ConfigurationData.MyTasks.PreselectOptions)" StateUpdate="@(updatedState => this.SettingsManager.ConfigurationData.MyTasks.PreselectOptions = updatedState)" OptionHelp="When enabled, you can preselect options. This is might be useful when you prefer a specific language or LLM model."/> | ||||
|         <ConfigurationSelect OptionDescription="Preselect the language" Disabled="@(() => !this.SettingsManager.ConfigurationData.MyTasks.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.MyTasks.PreselectedTargetLanguage)" Data="@ConfigurationSelectDataFactory.GetCommonLanguagesOptionalData()" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.MyTasks.PreselectedTargetLanguage = selectedValue)" OptionHelp="Which language should be preselected?"/> | ||||
|         @if (this.SettingsManager.ConfigurationData.MyTasks.PreselectedTargetLanguage is CommonLanguages.OTHER) | ||||
|         { | ||||
|             <ConfigurationText OptionDescription="Preselect another language" Disabled="@(() => !this.SettingsManager.ConfigurationData.MyTasks.PreselectOptions)" Icon="@Icons.Material.Filled.Translate" Text="@(() => this.SettingsManager.ConfigurationData.MyTasks.PreselectOtherLanguage)" TextUpdate="@(updatedText => this.SettingsManager.ConfigurationData.MyTasks.PreselectOtherLanguage = updatedText)"/> | ||||
|         } | ||||
|         <ConfigurationSelect OptionDescription="Preselect one of your profiles?" Disabled="@(() => !this.SettingsManager.ConfigurationData.MyTasks.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.MyTasks.PreselectedProfile)" Data="@ConfigurationSelectDataFactory.GetProfilesData(this.SettingsManager.ConfigurationData.Profiles)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.MyTasks.PreselectedProfile = selectedValue)" OptionHelp="Would you like to preselect one of your profiles?"/> | ||||
|         <ConfigurationMinConfidenceSelection Disabled="@(() => !this.SettingsManager.ConfigurationData.MyTasks.PreselectOptions)" RestrictToGlobalMinimumConfidence="@true" SelectedValue="@(() => this.SettingsManager.ConfigurationData.MyTasks.MinimumProviderConfidence)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.MyTasks.MinimumProviderConfidence = selectedValue)"/> | ||||
|         <ConfigurationProviderSelection Component="Components.MY_TASKS_ASSISTANT" Data="@this.AvailableLLMProvidersFunc()" Disabled="@(() => !this.SettingsManager.ConfigurationData.MyTasks.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.MyTasks.PreselectedProvider)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.MyTasks.PreselectedProvider = selectedValue)"/> | ||||
|     </MudPaper> | ||||
| </ExpansionPanel> | ||||
| @ -1,6 +0,0 @@ | ||||
| namespace AIStudio.Components.Settings; | ||||
| 
 | ||||
| public partial class SettingsPanelMyTasks : SettingsPanelBase | ||||
| { | ||||
|     protected override SettingsPanel Type => SettingsPanel.ASSISTANT_MY_TASKS_PANEL; | ||||
| } | ||||
| @ -1,17 +0,0 @@ | ||||
| @using AIStudio.Settings | ||||
| @inherits SettingsPanelBase | ||||
| 
 | ||||
| <ExpansionPanel HeaderIcon="@Icons.Material.Filled.Edit" HeaderText="Assistant: Rewrite & Improve Text" IsExpanded="@this.IsExtended()"> | ||||
|     <MudPaper Class="pa-3 mb-8 border-dashed border rounded-lg"> | ||||
|         <ConfigurationOption OptionDescription="Preselect rewrite & improve text options?" LabelOn="Rewrite & improve text options are preselected" LabelOff="No rewrite & improve text options are preselected" State="@(() => this.SettingsManager.ConfigurationData.RewriteImprove.PreselectOptions)" StateUpdate="@(updatedState => this.SettingsManager.ConfigurationData.RewriteImprove.PreselectOptions = updatedState)" OptionHelp="When enabled, you can preselect the rewrite & improve text options. This is might be useful when you prefer a specific language or LLM model."/> | ||||
|         <ConfigurationSelect OptionDescription="Preselect the target language" Disabled="@(() => !this.SettingsManager.ConfigurationData.RewriteImprove.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.RewriteImprove.PreselectedTargetLanguage)" Data="@ConfigurationSelectDataFactory.GetCommonLanguagesOptionalData()" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.RewriteImprove.PreselectedTargetLanguage = selectedValue)" OptionHelp="Which target language should be preselected?"/> | ||||
|         @if (this.SettingsManager.ConfigurationData.RewriteImprove.PreselectedTargetLanguage is CommonLanguages.OTHER) | ||||
|         { | ||||
|             <ConfigurationText OptionDescription="Preselect another target language" Disabled="@(() => !this.SettingsManager.ConfigurationData.RewriteImprove.PreselectOptions)" Icon="@Icons.Material.Filled.Translate" Text="@(() => this.SettingsManager.ConfigurationData.RewriteImprove.PreselectedOtherLanguage)" TextUpdate="@(updatedText => this.SettingsManager.ConfigurationData.RewriteImprove.PreselectedOtherLanguage = updatedText)"/> | ||||
|         } | ||||
|         <ConfigurationSelect OptionDescription="Preselect a writing style" Disabled="@(() => !this.SettingsManager.ConfigurationData.RewriteImprove.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.RewriteImprove.PreselectedWritingStyle)" Data="@ConfigurationSelectDataFactory.GetWritingStyles4RewriteData()" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.RewriteImprove.PreselectedWritingStyle = selectedValue)" OptionHelp="Which writing style should be preselected?"/> | ||||
|         <ConfigurationSelect OptionDescription="Preselect a sentence structure" Disabled="@(() => !this.SettingsManager.ConfigurationData.RewriteImprove.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.RewriteImprove.PreselectedSentenceStructure)" Data="@ConfigurationSelectDataFactory.GetSentenceStructureData()" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.RewriteImprove.PreselectedSentenceStructure = selectedValue)" OptionHelp="Which voice should be preselected for the sentence structure?"/> | ||||
|         <ConfigurationMinConfidenceSelection Disabled="@(() => !this.SettingsManager.ConfigurationData.RewriteImprove.PreselectOptions)" RestrictToGlobalMinimumConfidence="@true" SelectedValue="@(() => this.SettingsManager.ConfigurationData.RewriteImprove.MinimumProviderConfidence)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.RewriteImprove.MinimumProviderConfidence = selectedValue)"/> | ||||
|         <ConfigurationProviderSelection Component="Components.REWRITE_ASSISTANT" Data="@this.AvailableLLMProvidersFunc()" Disabled="@(() => !this.SettingsManager.ConfigurationData.RewriteImprove.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.RewriteImprove.PreselectedProvider)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.RewriteImprove.PreselectedProvider = selectedValue)"/> | ||||
|     </MudPaper> | ||||
| </ExpansionPanel> | ||||
| @ -1,6 +0,0 @@ | ||||
| namespace AIStudio.Components.Settings; | ||||
| 
 | ||||
| public partial class SettingsPanelRewrite : SettingsPanelBase | ||||
| { | ||||
|     protected override SettingsPanel Type => SettingsPanel.ASSISTANT_REWRITE_PANEL; | ||||
| } | ||||
| @ -1,15 +0,0 @@ | ||||
| @using AIStudio.Settings | ||||
| @inherits SettingsPanelBase | ||||
| 
 | ||||
| <ExpansionPanel HeaderIcon="@Icons.Material.Filled.Spellcheck" HeaderText="Assistant: Synonyms" IsExpanded="@this.IsExtended()"> | ||||
|     <MudPaper Class="pa-3 mb-8 border-dashed border rounded-lg"> | ||||
|         <ConfigurationOption OptionDescription="Preselect synonym options?" LabelOn="Synonym options are preselected" LabelOff="No synonym options are preselected" State="@(() => this.SettingsManager.ConfigurationData.Synonyms.PreselectOptions)" StateUpdate="@(updatedState => this.SettingsManager.ConfigurationData.Synonyms.PreselectOptions = updatedState)" OptionHelp="When enabled, you can preselect synonym options. This is might be useful when you prefer a specific language or LLM model."/> | ||||
|         <ConfigurationSelect OptionDescription="Preselect the language" Disabled="@(() => !this.SettingsManager.ConfigurationData.Synonyms.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.Synonyms.PreselectedLanguage)" Data="@ConfigurationSelectDataFactory.GetCommonLanguagesOptionalData()" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.Synonyms.PreselectedLanguage = selectedValue)" OptionHelp="Which language should be preselected?"/> | ||||
|         @if (this.SettingsManager.ConfigurationData.Synonyms.PreselectedLanguage is CommonLanguages.OTHER) | ||||
|         { | ||||
|             <ConfigurationText OptionDescription="Preselect another language" Disabled="@(() => !this.SettingsManager.ConfigurationData.Synonyms.PreselectOptions)" Icon="@Icons.Material.Filled.Translate" Text="@(() => this.SettingsManager.ConfigurationData.Synonyms.PreselectedOtherLanguage)" TextUpdate="@(updatedText => this.SettingsManager.ConfigurationData.Synonyms.PreselectedOtherLanguage = updatedText)"/> | ||||
|         } | ||||
|         <ConfigurationMinConfidenceSelection Disabled="@(() => !this.SettingsManager.ConfigurationData.Synonyms.PreselectOptions)" RestrictToGlobalMinimumConfidence="@true" SelectedValue="@(() => this.SettingsManager.ConfigurationData.Synonyms.MinimumProviderConfidence)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.Synonyms.MinimumProviderConfidence = selectedValue)"/> | ||||
|         <ConfigurationProviderSelection Component="Components.SYNONYMS_ASSISTANT" Data="@this.AvailableLLMProvidersFunc()" Disabled="@(() => !this.SettingsManager.ConfigurationData.Synonyms.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.Synonyms.PreselectedProvider)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.Synonyms.PreselectedProvider = selectedValue)"/> | ||||
|     </MudPaper> | ||||
| </ExpansionPanel> | ||||
| @ -1,24 +0,0 @@ | ||||
| @using AIStudio.Assistants.TextSummarizer | ||||
| @using AIStudio.Settings | ||||
| @inherits SettingsPanelBase | ||||
| 
 | ||||
| <ExpansionPanel HeaderIcon="@Icons.Material.Filled.TextSnippet" HeaderText="Assistant: Text Summarizer Options" IsExpanded="@this.IsExtended()"> | ||||
|     <ConfigurationOption OptionDescription="Hide the web content reader?" LabelOn="Web content reader is hidden" LabelOff="Web content reader is shown" State="@(() => this.SettingsManager.ConfigurationData.TextSummarizer.HideWebContentReader)" StateUpdate="@(updatedState => this.SettingsManager.ConfigurationData.TextSummarizer.HideWebContentReader = updatedState)" OptionHelp="When activated, the web content reader is hidden and cannot be used. As a result, the user interface becomes a bit easier to use."/> | ||||
|     <MudPaper Class="pa-3 mb-8 border-dashed border rounded-lg"> | ||||
|         <ConfigurationOption OptionDescription="Preselect summarizer options?" LabelOn="Summarizer options are preselected" LabelOff="No summarizer options are preselected" State="@(() => this.SettingsManager.ConfigurationData.TextSummarizer.PreselectOptions)" StateUpdate="@(updatedState => this.SettingsManager.ConfigurationData.TextSummarizer.PreselectOptions = updatedState)" OptionHelp="When enabled, you can preselect the text summarizer options. This is might be useful when you prefer a specific language, complexity, or LLM."/> | ||||
|         <ConfigurationOption OptionDescription="Preselect the web content reader?" Disabled="@(() => !this.SettingsManager.ConfigurationData.TextSummarizer.PreselectOptions || this.SettingsManager.ConfigurationData.TextSummarizer.HideWebContentReader)" LabelOn="Web content reader is preselected" LabelOff="Web content reader is not preselected" State="@(() => this.SettingsManager.ConfigurationData.TextSummarizer.PreselectWebContentReader)" StateUpdate="@(updatedState => this.SettingsManager.ConfigurationData.TextSummarizer.PreselectWebContentReader = updatedState)" OptionHelp="When enabled, the web content reader is preselected. This is might be useful when you prefer to load content from the web very often."/> | ||||
|         <ConfigurationOption OptionDescription="Preselect the content cleaner agent?" Disabled="@(() => !this.SettingsManager.ConfigurationData.TextSummarizer.PreselectOptions || this.SettingsManager.ConfigurationData.TextSummarizer.HideWebContentReader)" LabelOn="Content cleaner agent is preselected" LabelOff="Content cleaner agent is not preselected" State="@(() => this.SettingsManager.ConfigurationData.TextSummarizer.PreselectContentCleanerAgent)" StateUpdate="@(updatedState => this.SettingsManager.ConfigurationData.TextSummarizer.PreselectContentCleanerAgent = updatedState)" OptionHelp="When enabled, the content cleaner agent is preselected. This is might be useful when you prefer to clean up the content before summarize it."/> | ||||
|         <ConfigurationSelect OptionDescription="Preselect the target language" Disabled="@(() => !this.SettingsManager.ConfigurationData.TextSummarizer.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.TextSummarizer.PreselectedTargetLanguage)" Data="@ConfigurationSelectDataFactory.GetCommonLanguagesData()" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.TextSummarizer.PreselectedTargetLanguage = selectedValue)" OptionHelp="Which target language should be preselected?"/> | ||||
|         @if (this.SettingsManager.ConfigurationData.TextSummarizer.PreselectedTargetLanguage is CommonLanguages.OTHER) | ||||
|         { | ||||
|             <ConfigurationText OptionDescription="Preselect another target language" Disabled="@(() => !this.SettingsManager.ConfigurationData.TextSummarizer.PreselectOptions)" Icon="@Icons.Material.Filled.Translate" Text="@(() => this.SettingsManager.ConfigurationData.TextSummarizer.PreselectedOtherLanguage)" TextUpdate="@(updatedText => this.SettingsManager.ConfigurationData.TextSummarizer.PreselectedOtherLanguage = updatedText)"/> | ||||
|         } | ||||
|         <ConfigurationSelect OptionDescription="Preselect the summarizer complexity" Disabled="@(() => !this.SettingsManager.ConfigurationData.TextSummarizer.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.TextSummarizer.PreselectedComplexity)" Data="@ConfigurationSelectDataFactory.GetComplexityData()" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.TextSummarizer.PreselectedComplexity = selectedValue)" OptionHelp="Which summarizer complexity should be preselected?"/> | ||||
|         @if(this.SettingsManager.ConfigurationData.TextSummarizer.PreselectedComplexity is Complexity.SCIENTIFIC_LANGUAGE_OTHER_EXPERTS) | ||||
|         { | ||||
|             <ConfigurationText OptionDescription="Preselect your expertise" Disabled="@(() => !this.SettingsManager.ConfigurationData.TextSummarizer.PreselectOptions)" Icon="@Icons.Material.Filled.Person" Text="@(() => this.SettingsManager.ConfigurationData.TextSummarizer.PreselectedExpertInField)" TextUpdate="@(updatedText => this.SettingsManager.ConfigurationData.TextSummarizer.PreselectedExpertInField = updatedText)"/> | ||||
|         } | ||||
|         <ConfigurationMinConfidenceSelection Disabled="@(() => !this.SettingsManager.ConfigurationData.TextSummarizer.PreselectOptions)" RestrictToGlobalMinimumConfidence="@true" SelectedValue="@(() => this.SettingsManager.ConfigurationData.TextSummarizer.MinimumProviderConfidence)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.TextSummarizer.MinimumProviderConfidence = selectedValue)"/> | ||||
|         <ConfigurationProviderSelection Component="Components.TEXT_SUMMARIZER_ASSISTANT" Data="@this.AvailableLLMProvidersFunc()" Disabled="@(() => !this.SettingsManager.ConfigurationData.TextSummarizer.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.TextSummarizer.PreselectedProvider)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.TextSummarizer.PreselectedProvider = selectedValue)"/> | ||||
|     </MudPaper> | ||||
| </ExpansionPanel> | ||||
| @ -1,6 +0,0 @@ | ||||
| namespace AIStudio.Components.Settings; | ||||
| 
 | ||||
| public partial class SettingsPanelTextSummarizer : SettingsPanelBase | ||||
| { | ||||
|     protected override SettingsPanel Type => SettingsPanel.ASSISTANT_TEXT_SUMMARIZER_PANEL; | ||||
| } | ||||
| @ -1,19 +0,0 @@ | ||||
| @using AIStudio.Settings | ||||
| @inherits SettingsPanelBase | ||||
| 
 | ||||
| <ExpansionPanel HeaderIcon="@Icons.Material.Filled.Email" HeaderText="Assistant: Writing E-Mails" IsExpanded="@this.IsExtended()"> | ||||
|     <MudPaper Class="pa-3 mb-8 border-dashed border rounded-lg"> | ||||
|         <ConfigurationOption OptionDescription="Preselect e-mail options?" LabelOn="E-Mail options are preselected" LabelOff="No e-mail options are preselected" State="@(() => this.SettingsManager.ConfigurationData.EMail.PreselectOptions)" StateUpdate="@(updatedState => this.SettingsManager.ConfigurationData.EMail.PreselectOptions = updatedState)" OptionHelp="When enabled, you can preselect the e-mail options. This is might be useful when you prefer a specific language or LLM model."/> | ||||
|         <ConfigurationText OptionDescription="Preselect a greeting?" Disabled="@(() => !this.SettingsManager.ConfigurationData.EMail.PreselectOptions)" Icon="@Icons.Material.Filled.Person" Text="@(() => this.SettingsManager.ConfigurationData.EMail.Greeting)" TextUpdate="@(updatedText => this.SettingsManager.ConfigurationData.EMail.Greeting = updatedText)" /> | ||||
|         <ConfigurationText OptionDescription="Preselect your name for the closing salutation?" Disabled="@(() => !this.SettingsManager.ConfigurationData.EMail.PreselectOptions)" Icon="@Icons.Material.Filled.Person" Text="@(() => this.SettingsManager.ConfigurationData.EMail.SenderName)" TextUpdate="@(updatedText => this.SettingsManager.ConfigurationData.EMail.SenderName = updatedText)" /> | ||||
|         <ConfigurationSelect OptionDescription="Preselect the target language" Disabled="@(() => !this.SettingsManager.ConfigurationData.EMail.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.EMail.PreselectedTargetLanguage)" Data="@ConfigurationSelectDataFactory.GetCommonLanguagesTranslationData()" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.EMail.PreselectedTargetLanguage = selectedValue)" OptionHelp="Which target language should be preselected?"/> | ||||
|         @if (this.SettingsManager.ConfigurationData.EMail.PreselectedTargetLanguage is CommonLanguages.OTHER) | ||||
|         { | ||||
|             <ConfigurationText OptionDescription="Preselect another target language" Disabled="@(() => !this.SettingsManager.ConfigurationData.EMail.PreselectOptions)" Icon="@Icons.Material.Filled.Translate" Text="@(() => this.SettingsManager.ConfigurationData.EMail.PreselectOtherLanguage)" TextUpdate="@(updatedText => this.SettingsManager.ConfigurationData.EMail.PreselectOtherLanguage = updatedText)"/> | ||||
|         } | ||||
|         <ConfigurationSelect OptionDescription="Preselect a writing style" Disabled="@(() => !this.SettingsManager.ConfigurationData.EMail.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.EMail.PreselectedWritingStyle)" Data="@ConfigurationSelectDataFactory.GetWritingStyles4EMailData()" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.EMail.PreselectedWritingStyle = selectedValue)" OptionHelp="Which writing style should be preselected?"/> | ||||
|         <ConfigurationMinConfidenceSelection Disabled="@(() => !this.SettingsManager.ConfigurationData.EMail.PreselectOptions)" RestrictToGlobalMinimumConfidence="@true" SelectedValue="@(() => this.SettingsManager.ConfigurationData.EMail.MinimumProviderConfidence)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.EMail.MinimumProviderConfidence = selectedValue)"/> | ||||
|         <ConfigurationProviderSelection Component="Components.EMAIL_ASSISTANT" Data="@this.AvailableLLMProvidersFunc()" Disabled="@(() => !this.SettingsManager.ConfigurationData.EMail.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.EMail.PreselectedProvider)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.EMail.PreselectedProvider = selectedValue)"/> | ||||
|         <ConfigurationSelect OptionDescription="Preselect one of your profiles?" Disabled="@(() => !this.SettingsManager.ConfigurationData.EMail.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.EMail.PreselectedProfile)" Data="@ConfigurationSelectDataFactory.GetProfilesData(this.SettingsManager.ConfigurationData.Profiles)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.EMail.PreselectedProfile = selectedValue)" OptionHelp="Would you like to preselect one of your profiles?"/> | ||||
|     </MudPaper> | ||||
| </ExpansionPanel> | ||||
| @ -1,6 +0,0 @@ | ||||
| namespace AIStudio.Components.Settings; | ||||
| 
 | ||||
| public partial class SettingsPanelWritingEMails : SettingsPanelBase | ||||
| { | ||||
|     protected override SettingsPanel Type => SettingsPanel.ASSISTANT_EMAIL_PANEL; | ||||
| } | ||||
| @ -0,0 +1,40 @@ | ||||
| @using AIStudio.Settings | ||||
| @inherits SettingsDialogBase | ||||
| 
 | ||||
| <MudDialog> | ||||
|     <TitleContent> | ||||
|         <MudText Typo="Typo.h6"><MudIcon Icon="@Icons.Material.Filled.CalendarToday" Class="mr-2" />Assistant: Agenda Options</MudText> | ||||
|     </TitleContent> | ||||
|     <DialogContent> | ||||
|         <MudPaper Class="pa-3 mb-8 border-dashed border rounded-lg"> | ||||
|             <ConfigurationOption OptionDescription="Preselect agenda options?" LabelOn="Agenda options are preselected" LabelOff="No agenda options are preselected" State="@(() => this.SettingsManager.ConfigurationData.Agenda.PreselectOptions)" StateUpdate="@(updatedState => this.SettingsManager.ConfigurationData.Agenda.PreselectOptions = updatedState)" OptionHelp="When enabled, you can preselect most agenda options. This is might be useful when you need to create similar agendas often."/> | ||||
|             <ConfigurationText OptionDescription="Preselect a name?" Disabled="@(() => !this.SettingsManager.ConfigurationData.Agenda.PreselectOptions)" Icon="@Icons.Material.Filled.Tag" Text="@(() => this.SettingsManager.ConfigurationData.Agenda.PreselectName)" TextUpdate="@(updatedText => this.SettingsManager.ConfigurationData.Agenda.PreselectName = updatedText)" /> | ||||
|             <ConfigurationText OptionDescription="Preselect a topic?" Disabled="@(() => !this.SettingsManager.ConfigurationData.Agenda.PreselectOptions)" Icon="@Icons.Material.Filled.EventNote" Text="@(() => this.SettingsManager.ConfigurationData.Agenda.PreselectTopic)" TextUpdate="@(updatedText => this.SettingsManager.ConfigurationData.Agenda.PreselectTopic = updatedText)" /> | ||||
|             <ConfigurationText OptionDescription="Preselect an objective?" Disabled="@(() => !this.SettingsManager.ConfigurationData.Agenda.PreselectOptions)" Icon="@Icons.Material.Filled.Flag" Text="@(() => this.SettingsManager.ConfigurationData.Agenda.PreselectObjective)" TextUpdate="@(updatedText => this.SettingsManager.ConfigurationData.Agenda.PreselectObjective = updatedText)" /> | ||||
|             <ConfigurationText OptionDescription="Preselect a moderator?" Disabled="@(() => !this.SettingsManager.ConfigurationData.Agenda.PreselectOptions)" Icon="@Icons.Material.Filled.Person3" Text="@(() => this.SettingsManager.ConfigurationData.Agenda.PreselectModerator)" TextUpdate="@(updatedText => this.SettingsManager.ConfigurationData.Agenda.PreselectModerator = updatedText)" /> | ||||
|             <ConfigurationText OptionDescription="Preselect a duration?" Disabled="@(() => !this.SettingsManager.ConfigurationData.Agenda.PreselectOptions)" Icon="@Icons.Material.Filled.Schedule" Text="@(() => this.SettingsManager.ConfigurationData.Agenda.PreselectDuration)" TextUpdate="@(updatedText => this.SettingsManager.ConfigurationData.Agenda.PreselectDuration = updatedText)" /> | ||||
|             <ConfigurationText OptionDescription="Preselect a start time?" Disabled="@(() => !this.SettingsManager.ConfigurationData.Agenda.PreselectOptions)" Icon="@Icons.Material.Filled.Schedule" Text="@(() => this.SettingsManager.ConfigurationData.Agenda.PreselectStartTime)" TextUpdate="@(updatedText => this.SettingsManager.ConfigurationData.Agenda.PreselectStartTime = updatedText)" /> | ||||
|             <ConfigurationOption OptionDescription="Preselect whether the participants should get to know each other" Disabled="@(() => !this.SettingsManager.ConfigurationData.Agenda.PreselectOptions)" LabelOn="Participants should get to know each other" LabelOff="Participants do not need to get to know each other" State="@(() => this.SettingsManager.ConfigurationData.Agenda.PreselectIntroduceParticipants)" StateUpdate="@(updatedState => this.SettingsManager.ConfigurationData.Agenda.PreselectIntroduceParticipants = updatedState)" /> | ||||
|             <ConfigurationSelect OptionDescription="Preselect the number of participants" Disabled="@(() => !this.SettingsManager.ConfigurationData.Agenda.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.Agenda.PreselectNumberParticipants)" Data="@ConfigurationSelectDataFactory.GetNumberParticipantsData()" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.Agenda.PreselectNumberParticipants = selectedValue)" OptionHelp="How many participants should be preselected?"/> | ||||
|             <ConfigurationOption OptionDescription="Preselect whether the participants should actively involved" Disabled="@(() => !this.SettingsManager.ConfigurationData.Agenda.PreselectOptions)" LabelOn="Participants should be actively involved" LabelOff="Participants do not need to be actively involved" State="@(() => this.SettingsManager.ConfigurationData.Agenda.PreselectActiveParticipation)" StateUpdate="@(updatedState => this.SettingsManager.ConfigurationData.Agenda.PreselectActiveParticipation = updatedState)" /> | ||||
|             <ConfigurationOption OptionDescription="Preselect whether the meeting is virtual" Disabled="@(() => !this.SettingsManager.ConfigurationData.Agenda.PreselectOptions)" LabelOn="Meeting is virtual" LabelOff="Meeting is in person" State="@(() => this.SettingsManager.ConfigurationData.Agenda.PreselectIsMeetingVirtual)" StateUpdate="@(updatedState => this.SettingsManager.ConfigurationData.Agenda.PreselectIsMeetingVirtual = updatedState)" /> | ||||
|             <ConfigurationText OptionDescription="Preselect a location?" Disabled="@(() => !this.SettingsManager.ConfigurationData.Agenda.PreselectOptions)" Icon="@Icons.Material.Filled.MyLocation" Text="@(() => this.SettingsManager.ConfigurationData.Agenda.PreselectLocation)" TextUpdate="@(updatedText => this.SettingsManager.ConfigurationData.Agenda.PreselectLocation = updatedText)" /> | ||||
|             <ConfigurationOption OptionDescription="Preselect whether there is a joint dinner" Disabled="@(() => !this.SettingsManager.ConfigurationData.Agenda.PreselectOptions)" LabelOn="There is a joint dinner" LabelOff="There is no joint dinner" State="@(() => this.SettingsManager.ConfigurationData.Agenda.PreselectJointDinner)" StateUpdate="@(updatedState => this.SettingsManager.ConfigurationData.Agenda.PreselectJointDinner = updatedState)" /> | ||||
|             <ConfigurationOption OptionDescription="Preselect whether there is a social event" Disabled="@(() => !this.SettingsManager.ConfigurationData.Agenda.PreselectOptions)" LabelOn="There is a social event" LabelOff="There is no social event" State="@(() => this.SettingsManager.ConfigurationData.Agenda.PreselectSocialActivity)" StateUpdate="@(updatedState => this.SettingsManager.ConfigurationData.Agenda.PreselectSocialActivity = updatedState)" /> | ||||
|             <ConfigurationOption OptionDescription="Preselect whether participants needs to arrive and depart" Disabled="@(() => !this.SettingsManager.ConfigurationData.Agenda.PreselectOptions)" LabelOn="Participants need to arrive and depart" LabelOff="Participants do not need to arrive and depart" State="@(() => this.SettingsManager.ConfigurationData.Agenda.PreselectArriveAndDepart)" StateUpdate="@(updatedState => this.SettingsManager.ConfigurationData.Agenda.PreselectArriveAndDepart = updatedState)" /> | ||||
|             <ConfigurationSlider T="int" OptionDescription="Preselect the approx. lunch time" Min="30" Max="120" Step="5" Unit="minutes" Disabled="@(() => !this.SettingsManager.ConfigurationData.Agenda.PreselectOptions)" Value="@(() => this.SettingsManager.ConfigurationData.Agenda.PreselectLunchTime)" ValueUpdate="@(updatedValue => this.SettingsManager.ConfigurationData.Agenda.PreselectLunchTime = updatedValue)" /> | ||||
|             <ConfigurationSlider T="int" OptionDescription="Preselect the approx. break time" Min="10" Max="60" Step="5" Unit="minutes" Disabled="@(() => !this.SettingsManager.ConfigurationData.Agenda.PreselectOptions)" Value="@(() => this.SettingsManager.ConfigurationData.Agenda.PreselectBreakTime)" ValueUpdate="@(updatedValue => this.SettingsManager.ConfigurationData.Agenda.PreselectBreakTime = updatedValue)" /> | ||||
|             <ConfigurationSelect OptionDescription="Preselect the agenda language" Disabled="@(() => !this.SettingsManager.ConfigurationData.Agenda.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.Agenda.PreselectedTargetLanguage)" Data="@ConfigurationSelectDataFactory.GetCommonLanguagesTranslationData()" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.Agenda.PreselectedTargetLanguage = selectedValue)" OptionHelp="Which agenda language should be preselected?"/> | ||||
|             @if (this.SettingsManager.ConfigurationData.Agenda.PreselectedTargetLanguage is CommonLanguages.OTHER) | ||||
|             { | ||||
|                 <ConfigurationText OptionDescription="Preselect another agenda language" Disabled="@(() => !this.SettingsManager.ConfigurationData.Agenda.PreselectOptions)" Icon="@Icons.Material.Filled.Translate" Text="@(() => this.SettingsManager.ConfigurationData.Agenda.PreselectedOtherLanguage)" TextUpdate="@(updatedText => this.SettingsManager.ConfigurationData.Agenda.PreselectedOtherLanguage = updatedText)"/> | ||||
|             } | ||||
|             <ConfigurationMinConfidenceSelection Disabled="@(() => !this.SettingsManager.ConfigurationData.Agenda.PreselectOptions)" RestrictToGlobalMinimumConfidence="@true" SelectedValue="@(() => this.SettingsManager.ConfigurationData.Agenda.MinimumProviderConfidence)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.Agenda.MinimumProviderConfidence = selectedValue)"/> | ||||
|             <ConfigurationProviderSelection Component="Components.AGENDA_ASSISTANT" Data="@this.AvailableLLMProvidersFunc()" Disabled="@(() => !this.SettingsManager.ConfigurationData.Agenda.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.Agenda.PreselectedProvider)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.Agenda.PreselectedProvider = selectedValue)"/> | ||||
|             <ConfigurationSelect OptionDescription="Preselect one of your profiles?" Disabled="@(() => !this.SettingsManager.ConfigurationData.Agenda.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.Agenda.PreselectedProfile)" Data="@ConfigurationSelectDataFactory.GetProfilesData(this.SettingsManager.ConfigurationData.Profiles)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.Agenda.PreselectedProfile = selectedValue)" OptionHelp="Would you like to preselect one of your profiles?"/> | ||||
|         </MudPaper> | ||||
|     </DialogContent> | ||||
|     <DialogActions> | ||||
|         <MudButton OnClick="@this.Close" Variant="Variant.Filled">Close</MudButton> | ||||
|     </DialogActions> | ||||
| </MudDialog> | ||||
| @ -0,0 +1,7 @@ | ||||
| using AIStudio.Dialogs.Settings; | ||||
| 
 | ||||
| namespace AIStudio.Dialogs.Settings; | ||||
| 
 | ||||
| public partial class SettingsDialogAgenda : SettingsDialogBase | ||||
| { | ||||
| } | ||||
| @ -0,0 +1,37 @@ | ||||
| @using AIStudio.Settings | ||||
| @using AIStudio.Settings.DataModel | ||||
| @inherits SettingsDialogBase | ||||
| <MudDialog> | ||||
|     <TitleContent> | ||||
|         <MudText Typo="Typo.h6"><MudIcon Icon="@Icons.Material.Filled.Psychology" Class="mr-2" />Assistant: Bias of the Day</MudText> | ||||
|     </TitleContent> | ||||
|     <DialogContent> | ||||
|         <MudField Label="Assistant: Bias of the Day" Variant="Variant.Outlined" Class="mb-4"> | ||||
|             <ConfigurationOption OptionDescription="Restrict to one bias a day?" LabelOn="Yes, you can only retrieve one bias per day" LabelOff="No restriction. You can retrieve as many biases as you want per day." State="@(() => this.SettingsManager.ConfigurationData.BiasOfTheDay.RestrictOneBiasPerDay)" StateUpdate="@(updatedState => this.SettingsManager.ConfigurationData.BiasOfTheDay.RestrictOneBiasPerDay = updatedState)"/> | ||||
|              | ||||
|             <MudField Label="Statistics" Variant="Variant.Outlined" Class="mb-2"> | ||||
|                 <MudText Typo="Typo.body1"> | ||||
|                     You have learned about @this.SettingsManager.ConfigurationData.BiasOfTheDay.UsedBias.Count out of @BiasCatalog.ALL_BIAS.Count biases. | ||||
|                 </MudText> | ||||
|                 <MudButton Size="Size.Small" Variant="Variant.Filled" StartIcon="@Icons.Material.Filled.Restore" Color="Color.Error" OnClick="@(() => this.ResetBiasOfTheDayHistory())"> | ||||
|                     Reset | ||||
|                 </MudButton> | ||||
|             </MudField> | ||||
|              | ||||
|             <MudPaper Class="pa-3 mb-8 border-dashed border rounded-lg"> | ||||
|                 <ConfigurationOption OptionDescription="Preselect options?" LabelOn="Options are preselected" LabelOff="No options are preselected" State="@(() => this.SettingsManager.ConfigurationData.BiasOfTheDay.PreselectOptions)" StateUpdate="@(updatedState => this.SettingsManager.ConfigurationData.BiasOfTheDay.PreselectOptions = updatedState)" OptionHelp="When enabled, you can preselect options. This is might be useful when you prefer a specific language or LLM model."/> | ||||
|                 <ConfigurationSelect OptionDescription="Preselect the language" Disabled="@(() => !this.SettingsManager.ConfigurationData.BiasOfTheDay.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.BiasOfTheDay.PreselectedTargetLanguage)" Data="@ConfigurationSelectDataFactory.GetCommonLanguagesOptionalData()" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.BiasOfTheDay.PreselectedTargetLanguage = selectedValue)" OptionHelp="Which language should be preselected?"/> | ||||
|                 @if (this.SettingsManager.ConfigurationData.BiasOfTheDay.PreselectedTargetLanguage is CommonLanguages.OTHER) | ||||
|                 { | ||||
|                     <ConfigurationText OptionDescription="Preselect another language" Disabled="@(() => !this.SettingsManager.ConfigurationData.BiasOfTheDay.PreselectOptions)" Icon="@Icons.Material.Filled.Translate" Text="@(() => this.SettingsManager.ConfigurationData.BiasOfTheDay.PreselectedOtherLanguage)" TextUpdate="@(updatedText => this.SettingsManager.ConfigurationData.BiasOfTheDay.PreselectedOtherLanguage = updatedText)"/> | ||||
|                 } | ||||
|                 <ConfigurationSelect OptionDescription="Preselect one of your profiles?" Disabled="@(() => !this.SettingsManager.ConfigurationData.BiasOfTheDay.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.BiasOfTheDay.PreselectedProfile)" Data="@ConfigurationSelectDataFactory.GetProfilesData(this.SettingsManager.ConfigurationData.Profiles)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.BiasOfTheDay.PreselectedProfile = selectedValue)" OptionHelp="Would you like to preselect one of your profiles?"/> | ||||
|                 <ConfigurationMinConfidenceSelection Disabled="@(() => !this.SettingsManager.ConfigurationData.BiasOfTheDay.PreselectOptions)" RestrictToGlobalMinimumConfidence="@true" SelectedValue="@(() => this.SettingsManager.ConfigurationData.BiasOfTheDay.MinimumProviderConfidence)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.BiasOfTheDay.MinimumProviderConfidence = selectedValue)"/> | ||||
|                 <ConfigurationProviderSelection Component="Components.BIAS_DAY_ASSISTANT" Data="@this.AvailableLLMProvidersFunc()" Disabled="@(() => !this.SettingsManager.ConfigurationData.BiasOfTheDay.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.BiasOfTheDay.PreselectedProvider)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.BiasOfTheDay.PreselectedProvider = selectedValue)"/> | ||||
|             </MudPaper> | ||||
|         </MudField> | ||||
|     </DialogContent> | ||||
|     <DialogActions> | ||||
|         <MudButton OnClick="@this.Close" Variant="Variant.Filled">Close</MudButton> | ||||
|     </DialogActions> | ||||
| </MudDialog> | ||||
| @ -2,9 +2,9 @@ using AIStudio.Dialogs; | ||||
| 
 | ||||
| using DialogOptions = AIStudio.Dialogs.DialogOptions; | ||||
| 
 | ||||
| namespace AIStudio.Components.Settings; | ||||
| namespace AIStudio.Dialogs.Settings; | ||||
| 
 | ||||
| public partial class SettingsPanelAssistantBias : SettingsPanelBase | ||||
| public partial class SettingsDialogAssistantBias : SettingsDialogBase | ||||
| { | ||||
|     private async Task ResetBiasOfTheDayHistory() | ||||
|     { | ||||
| @ -25,5 +25,4 @@ public partial class SettingsPanelAssistantBias : SettingsPanelBase | ||||
|         await this.MessageBus.SendMessage<bool>(this, Event.CONFIGURATION_CHANGED); | ||||
|     } | ||||
| 
 | ||||
|     protected override SettingsPanel Type => SettingsPanel.ASSISTANT_BIAS_OF_THE_DAY_PANEL; | ||||
| } | ||||
| @ -0,0 +1,26 @@ | ||||
| @using AIStudio.Assistants.Coding | ||||
| @using AIStudio.Settings | ||||
| @inherits SettingsDialogBase | ||||
| 
 | ||||
| <MudDialog> | ||||
|     <TitleContent> | ||||
|         <MudText Typo="Typo.h6"><MudIcon Icon="@Icons.Material.Filled.Code" Class="mr-2" />Assistant: Coding Options</MudText> | ||||
|     </TitleContent> | ||||
|     <DialogContent> | ||||
|         <MudPaper Class="pa-3 mb-8 border-dashed border rounded-lg"> | ||||
|             <ConfigurationOption OptionDescription="Preselect coding options?" LabelOn="Coding options are preselected" LabelOff="No coding options are preselected" State="@(() => this.SettingsManager.ConfigurationData.Coding.PreselectOptions)" StateUpdate="@(updatedState => this.SettingsManager.ConfigurationData.Coding.PreselectOptions = updatedState)" OptionHelp="When enabled, you can preselect the coding options. This is might be useful when you prefer a specific programming language or LLM model."/> | ||||
|             <ConfigurationOption OptionDescription="Preselect compiler messages?" Disabled="@(() => !this.SettingsManager.ConfigurationData.Coding.PreselectOptions)" LabelOn="Compiler messages are preselected" LabelOff="Compiler messages are not preselected" State="@(() => this.SettingsManager.ConfigurationData.Coding.PreselectCompilerMessages)" StateUpdate="@(updatedState => this.SettingsManager.ConfigurationData.Coding.PreselectCompilerMessages = updatedState)" /> | ||||
|             <ConfigurationSelect OptionDescription="Preselect a programming language" Disabled="@(() => !this.SettingsManager.ConfigurationData.Coding.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.Coding.PreselectedProgrammingLanguage)" Data="@ConfigurationSelectDataFactory.GetCommonCodingLanguagesData()" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.Coding.PreselectedProgrammingLanguage = selectedValue)" OptionHelp="Which programming language should be preselected for added contexts?"/> | ||||
|             @if (this.SettingsManager.ConfigurationData.Coding.PreselectedProgrammingLanguage is CommonCodingLanguages.OTHER) | ||||
|             { | ||||
|                 <ConfigurationText OptionDescription="Preselect another programming language" Disabled="@(() => !this.SettingsManager.ConfigurationData.Coding.PreselectOptions)" Icon="@Icons.Material.Filled.Code" Text="@(() => this.SettingsManager.ConfigurationData.Coding.PreselectedOtherProgrammingLanguage)" TextUpdate="@(updatedText => this.SettingsManager.ConfigurationData.Coding.PreselectedOtherProgrammingLanguage = updatedText)"/> | ||||
|             } | ||||
|             <ConfigurationMinConfidenceSelection Disabled="@(() => !this.SettingsManager.ConfigurationData.Coding.PreselectOptions)" RestrictToGlobalMinimumConfidence="@true" SelectedValue="@(() => this.SettingsManager.ConfigurationData.Coding.MinimumProviderConfidence)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.Coding.MinimumProviderConfidence = selectedValue)"/> | ||||
|             <ConfigurationProviderSelection Component="Components.CODING_ASSISTANT" Data="@this.AvailableLLMProvidersFunc()" Disabled="@(() => !this.SettingsManager.ConfigurationData.Coding.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.Coding.PreselectedProvider)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.Coding.PreselectedProvider = selectedValue)"/> | ||||
|             <ConfigurationSelect OptionDescription="Preselect one of your profiles?" Disabled="@(() => !this.SettingsManager.ConfigurationData.Coding.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.Coding.PreselectedProfile)" Data="@ConfigurationSelectDataFactory.GetProfilesData(this.SettingsManager.ConfigurationData.Profiles)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.Coding.PreselectedProfile = selectedValue)" OptionHelp="Would you like to preselect one of your profiles?"/> | ||||
|         </MudPaper> | ||||
|     </DialogContent> | ||||
|     <DialogActions> | ||||
|         <MudButton OnClick="@this.Close" Variant="Variant.Filled">Close</MudButton> | ||||
|     </DialogActions> | ||||
| </MudDialog> | ||||
| @ -0,0 +1,5 @@ | ||||
| namespace AIStudio.Dialogs.Settings; | ||||
| 
 | ||||
| public partial class SettingsDialogCoding : SettingsDialogBase | ||||
| { | ||||
| } | ||||
| @ -0,0 +1,23 @@ | ||||
| @using AIStudio.Settings | ||||
| @inherits SettingsDialogBase | ||||
| 
 | ||||
| <MudDialog> | ||||
|     <TitleContent> | ||||
|         <MudText Typo="Typo.h6"><MudIcon Icon="@Icons.Material.Filled.Edit" Class="mr-2" />Assistant: Grammar & Spelling Checker</MudText> | ||||
|     </TitleContent> | ||||
|     <DialogContent> | ||||
|         <MudPaper Class="pa-3 mb-8 border-dashed border rounded-lg"> | ||||
|             <ConfigurationOption OptionDescription="Preselect grammar & spell checker options?" LabelOn="Grammar & spell checker options are preselected" LabelOff="No grammar & spell checker options are preselected" State="@(() => this.SettingsManager.ConfigurationData.GrammarSpelling.PreselectOptions)" StateUpdate="@(updatedState => this.SettingsManager.ConfigurationData.GrammarSpelling.PreselectOptions = updatedState)" OptionHelp="When enabled, you can preselect the grammar & spell checker options. This is might be useful when you prefer a specific language or LLM model."/> | ||||
|             <ConfigurationSelect OptionDescription="Preselect the target language" Disabled="@(() => !this.SettingsManager.ConfigurationData.GrammarSpelling.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.GrammarSpelling.PreselectedTargetLanguage)" Data="@ConfigurationSelectDataFactory.GetCommonLanguagesOptionalData()" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.GrammarSpelling.PreselectedTargetLanguage = selectedValue)" OptionHelp="Which target language should be preselected?"/> | ||||
|             @if (this.SettingsManager.ConfigurationData.GrammarSpelling.PreselectedTargetLanguage is CommonLanguages.OTHER) | ||||
|             { | ||||
|                 <ConfigurationText OptionDescription="Preselect another target language" Disabled="@(() => !this.SettingsManager.ConfigurationData.GrammarSpelling.PreselectOptions)" Icon="@Icons.Material.Filled.Translate" Text="@(() => this.SettingsManager.ConfigurationData.GrammarSpelling.PreselectedOtherLanguage)" TextUpdate="@(updatedText => this.SettingsManager.ConfigurationData.GrammarSpelling.PreselectedOtherLanguage = updatedText)"/> | ||||
|             } | ||||
|             <ConfigurationMinConfidenceSelection Disabled="@(() => !this.SettingsManager.ConfigurationData.GrammarSpelling.PreselectOptions)" RestrictToGlobalMinimumConfidence="@true" SelectedValue="@(() => this.SettingsManager.ConfigurationData.GrammarSpelling.MinimumProviderConfidence)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.GrammarSpelling.MinimumProviderConfidence = selectedValue)"/> | ||||
|             <ConfigurationProviderSelection Component="Components.GRAMMAR_SPELLING_ASSISTANT" Data="@this.AvailableLLMProvidersFunc()" Disabled="@(() => !this.SettingsManager.ConfigurationData.GrammarSpelling.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.GrammarSpelling.PreselectedProvider)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.GrammarSpelling.PreselectedProvider = selectedValue)"/> | ||||
|         </MudPaper> | ||||
|     </DialogContent> | ||||
|     <DialogActions> | ||||
|         <MudButton OnClick="@this.Close">Close</MudButton> | ||||
|     </DialogActions> | ||||
| </MudDialog> | ||||
| @ -0,0 +1,5 @@ | ||||
| namespace AIStudio.Dialogs.Settings; | ||||
| 
 | ||||
| public partial class SettingsDialogGrammarSpelling : SettingsDialogBase | ||||
| { | ||||
| } | ||||
| @ -0,0 +1,19 @@ | ||||
| @using AIStudio.Settings | ||||
| @inherits SettingsDialogBase | ||||
| 
 | ||||
| <MudDialog> | ||||
|     <TitleContent> | ||||
|         <MudText Typo="Typo.h6"><MudIcon Icon="@Icons.Material.Filled.FindInPage" Class="mr-2" />Assistant: Icon Finder Options</MudText> | ||||
|     </TitleContent> | ||||
|     <DialogContent> | ||||
|         <MudPaper Class="pa-3 mb-8 border-dashed border rounded-lg"> | ||||
|             <ConfigurationOption OptionDescription="Preselect icon options?" LabelOn="Icon options are preselected" LabelOff="No icon options are preselected" State="@(() => this.SettingsManager.ConfigurationData.IconFinder.PreselectOptions)" StateUpdate="@(updatedState => this.SettingsManager.ConfigurationData.IconFinder.PreselectOptions = updatedState)" OptionHelp="When enabled, you can preselect the icon options. This is might be useful when you prefer a specific icon source or LLM model."/> | ||||
|             <ConfigurationSelect OptionDescription="Preselect the icon source" Disabled="@(() => !this.SettingsManager.ConfigurationData.IconFinder.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.IconFinder.PreselectedSource)" Data="@ConfigurationSelectDataFactory.GetIconSourcesData()" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.IconFinder.PreselectedSource = selectedValue)" OptionHelp="Which icon source should be preselected?"/> | ||||
|             <ConfigurationMinConfidenceSelection Disabled="@(() => !this.SettingsManager.ConfigurationData.IconFinder.PreselectOptions)" RestrictToGlobalMinimumConfidence="@true" SelectedValue="@(() => this.SettingsManager.ConfigurationData.IconFinder.MinimumProviderConfidence)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.IconFinder.MinimumProviderConfidence = selectedValue)"/> | ||||
|             <ConfigurationProviderSelection Component="Components.ICON_FINDER_ASSISTANT" Data="@this.AvailableLLMProvidersFunc()" Disabled="@(() => !this.SettingsManager.ConfigurationData.IconFinder.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.IconFinder.PreselectedProvider)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.IconFinder.PreselectedProvider = selectedValue)"/> | ||||
|         </MudPaper> | ||||
|     </DialogContent> | ||||
|     <DialogActions> | ||||
|         <MudButton OnClick="@this.Close">Close</MudButton> | ||||
|     </DialogActions> | ||||
| </MudDialog> | ||||
| @ -0,0 +1,5 @@ | ||||
| namespace AIStudio.Dialogs.Settings; | ||||
| 
 | ||||
| public partial class SettingsDialogIconFinder : SettingsDialogBase | ||||
| { | ||||
| } | ||||
| @ -0,0 +1,30 @@ | ||||
| @using AIStudio.Settings | ||||
| @inherits SettingsDialogBase | ||||
| 
 | ||||
| <MudDialog> | ||||
|     <TitleContent> | ||||
|         <MudText Typo="Typo.h6"><MudIcon Icon="@Icons.Material.Filled.Work" Class="mr-2" />Assistant: Job Postings</MudText> | ||||
|     </TitleContent> | ||||
|     <DialogContent> | ||||
|         <MudPaper Class="pa-3 mb-8 border-dashed border rounded-lg"> | ||||
|             <ConfigurationOption OptionDescription="Preselect job posting options?" LabelOn="Job posting options are preselected" LabelOff="No job posting options are preselected" State="@(() => this.SettingsManager.ConfigurationData.JobPostings.PreselectOptions)" StateUpdate="@(updatedState => this.SettingsManager.ConfigurationData.JobPostings.PreselectOptions = updatedState)" OptionHelp="When enabled, you can preselect some job posting options. This is might be useful when you prefer a specific LLM model."/> | ||||
|             <ConfigurationText OptionDescription="Preselect the company name?" Disabled="@(() => !this.SettingsManager.ConfigurationData.JobPostings.PreselectOptions)" Icon="@Icons.Material.Filled.Warehouse" Text="@(() => this.SettingsManager.ConfigurationData.JobPostings.PreselectedCompanyName)" TextUpdate="@(updatedText => this.SettingsManager.ConfigurationData.JobPostings.PreselectedCompanyName = updatedText)" /> | ||||
|             <ConfigurationText OptionDescription="Preselect some mandatory information about the job posting?" NumLines="6" Disabled="@(() => !this.SettingsManager.ConfigurationData.JobPostings.PreselectOptions)" Icon="@Icons.Material.Filled.TextSnippet" Text="@(() => this.SettingsManager.ConfigurationData.JobPostings.PreselectedMandatoryInformation)" TextUpdate="@(updatedText => this.SettingsManager.ConfigurationData.JobPostings.PreselectedMandatoryInformation = updatedText)" /> | ||||
|             <ConfigurationText OptionDescription="Preselect the job description?" NumLines="3" MaxLines="6" Disabled="@(() => !this.SettingsManager.ConfigurationData.JobPostings.PreselectOptions)" Icon="@Icons.Material.Filled.Settings" Text="@(() => this.SettingsManager.ConfigurationData.JobPostings.PreselectedJobDescription)" TextUpdate="@(updatedText => this.SettingsManager.ConfigurationData.JobPostings.PreselectedJobDescription = updatedText)" /> | ||||
|             <ConfigurationText OptionDescription="Preselect the job qualifications?" NumLines="3" MaxLines="6" Disabled="@(() => !this.SettingsManager.ConfigurationData.JobPostings.PreselectOptions)" Icon="@Icons.Material.Filled.Settings" Text="@(() => this.SettingsManager.ConfigurationData.JobPostings.PreselectedQualifications)" TextUpdate="@(updatedText => this.SettingsManager.ConfigurationData.JobPostings.PreselectedQualifications = updatedText)" /> | ||||
|             <ConfigurationText OptionDescription="Preselect the job responsibilities?" NumLines="3" MaxLines="6" Disabled="@(() => !this.SettingsManager.ConfigurationData.JobPostings.PreselectOptions)" Icon="@Icons.Material.Filled.Settings" Text="@(() => this.SettingsManager.ConfigurationData.JobPostings.PreselectedResponsibilities)" TextUpdate="@(updatedText => this.SettingsManager.ConfigurationData.JobPostings.PreselectedResponsibilities = updatedText)" /> | ||||
|             <ConfigurationText OptionDescription="Preselect the work location?" Disabled="@(() => !this.SettingsManager.ConfigurationData.JobPostings.PreselectOptions)" Icon="@Icons.Material.Filled.MyLocation" Text="@(() => this.SettingsManager.ConfigurationData.JobPostings.PreselectedWorkLocation)" TextUpdate="@(updatedText => this.SettingsManager.ConfigurationData.JobPostings.PreselectedWorkLocation = updatedText)" /> | ||||
|             <ConfigurationText OptionDescription="Preselect the country (legal framework)?" Disabled="@(() => !this.SettingsManager.ConfigurationData.JobPostings.PreselectOptions)" Icon="@Icons.Material.Filled.Flag" Text="@(() => this.SettingsManager.ConfigurationData.JobPostings.PreselectedCountryLegalFramework)" TextUpdate="@(updatedText => this.SettingsManager.ConfigurationData.JobPostings.PreselectedCountryLegalFramework = updatedText)" /> | ||||
|             <ConfigurationSelect OptionDescription="Preselect the language" Disabled="@(() => !this.SettingsManager.ConfigurationData.JobPostings.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.JobPostings.PreselectedTargetLanguage)" Data="@ConfigurationSelectDataFactory.GetCommonLanguagesOptionalData()" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.JobPostings.PreselectedTargetLanguage = selectedValue)" OptionHelp="Which target language should be preselected?"/> | ||||
|             @if (this.SettingsManager.ConfigurationData.JobPostings.PreselectedTargetLanguage is CommonLanguages.OTHER) | ||||
|             { | ||||
|                 <ConfigurationText OptionDescription="Preselect another target language" Disabled="@(() => !this.SettingsManager.ConfigurationData.JobPostings.PreselectOptions)" Icon="@Icons.Material.Filled.Translate" Text="@(() => this.SettingsManager.ConfigurationData.JobPostings.PreselectOtherLanguage)" TextUpdate="@(updatedText => this.SettingsManager.ConfigurationData.JobPostings.PreselectOtherLanguage = updatedText)"/> | ||||
|             } | ||||
|             <ConfigurationMinConfidenceSelection Disabled="@(() => !this.SettingsManager.ConfigurationData.JobPostings.PreselectOptions)" RestrictToGlobalMinimumConfidence="@true" SelectedValue="@(() => this.SettingsManager.ConfigurationData.JobPostings.MinimumProviderConfidence)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.JobPostings.MinimumProviderConfidence = selectedValue)"/> | ||||
|             <ConfigurationProviderSelection Component="Components.JOB_POSTING_ASSISTANT" Data="@this.AvailableLLMProvidersFunc()" Disabled="@(() => !this.SettingsManager.ConfigurationData.JobPostings.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.JobPostings.PreselectedProvider)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.JobPostings.PreselectedProvider = selectedValue)"/> | ||||
|         </MudPaper> | ||||
|     </DialogContent> | ||||
|     <DialogActions> | ||||
|         <MudButton OnClick="@this.Close">Close</MudButton> | ||||
|     </DialogActions> | ||||
| </MudDialog> | ||||
| @ -0,0 +1,5 @@ | ||||
| namespace AIStudio.Dialogs.Settings; | ||||
| 
 | ||||
| public partial class SettingsDialogJobPostings : SettingsDialogBase | ||||
| { | ||||
| } | ||||
| @ -0,0 +1,21 @@ | ||||
| @using AIStudio.Settings | ||||
| @inherits SettingsDialogBase | ||||
| <MudDialog> | ||||
|     <TitleContent> | ||||
|         <MudText Typo="Typo.h6"><MudIcon Icon="@Icons.Material.Filled.Gavel" Class="mr-2" />Assistant: Legal Check</MudText> | ||||
|     </TitleContent> | ||||
|     <DialogContent> | ||||
|         <ConfigurationOption OptionDescription="Hide the web content reader?" LabelOn="Web content reader is hidden" LabelOff="Web content reader is shown" State="@(() => this.SettingsManager.ConfigurationData.LegalCheck.HideWebContentReader)" StateUpdate="@(updatedState => this.SettingsManager.ConfigurationData.LegalCheck.HideWebContentReader = updatedState)" OptionHelp="When activated, the web content reader is hidden and cannot be used. As a result, the user interface becomes a bit easier to use."/> | ||||
|         <MudPaper Class="pa-3 mb-8 border-dashed border rounded-lg"> | ||||
|             <ConfigurationOption OptionDescription="Preselect legal check options?" LabelOn="Legal check options are preselected" LabelOff="No legal check options are preselected" State="@(() => this.SettingsManager.ConfigurationData.LegalCheck.PreselectOptions)" StateUpdate="@(updatedState => this.SettingsManager.ConfigurationData.LegalCheck.PreselectOptions = updatedState)" OptionHelp="When enabled, you can preselect some legal check options. This is might be useful when you prefer a specific LLM model."/> | ||||
|             <ConfigurationOption OptionDescription="Preselect the web content reader?" Disabled="@(() => !this.SettingsManager.ConfigurationData.LegalCheck.PreselectOptions || this.SettingsManager.ConfigurationData.LegalCheck.HideWebContentReader)" LabelOn="Web content reader is preselected" LabelOff="Web content reader is not preselected" State="@(() => this.SettingsManager.ConfigurationData.LegalCheck.PreselectWebContentReader)" StateUpdate="@(updatedState => this.SettingsManager.ConfigurationData.LegalCheck.PreselectWebContentReader = updatedState)" OptionHelp="When enabled, the web content reader is preselected. This is might be useful when you prefer to load legal content from the web very often."/> | ||||
|             <ConfigurationOption OptionDescription="Preselect the content cleaner agent?" Disabled="@(() => !this.SettingsManager.ConfigurationData.LegalCheck.PreselectOptions || this.SettingsManager.ConfigurationData.LegalCheck.HideWebContentReader)" LabelOn="Content cleaner agent is preselected" LabelOff="Content cleaner agent is not preselected" State="@(() => this.SettingsManager.ConfigurationData.LegalCheck.PreselectContentCleanerAgent)" StateUpdate="@(updatedState => this.SettingsManager.ConfigurationData.LegalCheck.PreselectContentCleanerAgent = updatedState)" OptionHelp="When enabled, the content cleaner agent is preselected. This is might be useful when you prefer to clean up the legal content before translating it."/> | ||||
|             <ConfigurationMinConfidenceSelection Disabled="@(() => !this.SettingsManager.ConfigurationData.LegalCheck.PreselectOptions)" RestrictToGlobalMinimumConfidence="@true" SelectedValue="@(() => this.SettingsManager.ConfigurationData.LegalCheck.MinimumProviderConfidence)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.LegalCheck.MinimumProviderConfidence = selectedValue)"/> | ||||
|             <ConfigurationProviderSelection Component="Components.LEGAL_CHECK_ASSISTANT" Data="@this.AvailableLLMProvidersFunc()" Disabled="@(() => !this.SettingsManager.ConfigurationData.LegalCheck.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.LegalCheck.PreselectedProvider)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.LegalCheck.PreselectedProvider = selectedValue)"/> | ||||
|             <ConfigurationSelect OptionDescription="Preselect one of your profiles?" Disabled="@(() => !this.SettingsManager.ConfigurationData.LegalCheck.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.LegalCheck.PreselectedProfile)" Data="@ConfigurationSelectDataFactory.GetProfilesData(this.SettingsManager.ConfigurationData.Profiles)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.LegalCheck.PreselectedProfile = selectedValue)" OptionHelp="Would you like to preselect one of your profiles?"/> | ||||
|         </MudPaper> | ||||
|     </DialogContent> | ||||
|     <DialogActions> | ||||
|         <MudButton OnClick="@this.Close">Close</MudButton> | ||||
|     </DialogActions> | ||||
| </MudDialog> | ||||
| @ -0,0 +1,5 @@ | ||||
| namespace AIStudio.Dialogs.Settings; | ||||
| 
 | ||||
| public partial class SettingsDialogLegalCheck : SettingsDialogBase | ||||
| { | ||||
| } | ||||
| @ -0,0 +1,24 @@ | ||||
| @using AIStudio.Settings | ||||
| @inherits SettingsDialogBase | ||||
| 
 | ||||
| <MudDialog> | ||||
|     <TitleContent> | ||||
|         <MudText Typo="Typo.h6"><MudIcon Icon="@Icons.Material.Filled.Task" Class="mr-2" />Assistant: My Tasks</MudText> | ||||
|     </TitleContent> | ||||
|     <DialogContent> | ||||
|         <MudPaper Class="pa-3 mb-8 border-dashed border rounded-lg"> | ||||
|             <ConfigurationOption OptionDescription="Preselect options?" LabelOn="Options are preselected" LabelOff="No options are preselected" State="@(() => this.SettingsManager.ConfigurationData.MyTasks.PreselectOptions)" StateUpdate="@(updatedState => this.SettingsManager.ConfigurationData.MyTasks.PreselectOptions = updatedState)" OptionHelp="When enabled, you can preselect options. This is might be useful when you prefer a specific language or LLM model."/> | ||||
|             <ConfigurationSelect OptionDescription="Preselect the language" Disabled="@(() => !this.SettingsManager.ConfigurationData.MyTasks.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.MyTasks.PreselectedTargetLanguage)" Data="@ConfigurationSelectDataFactory.GetCommonLanguagesOptionalData()" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.MyTasks.PreselectedTargetLanguage = selectedValue)" OptionHelp="Which language should be preselected?"/> | ||||
|             @if (this.SettingsManager.ConfigurationData.MyTasks.PreselectedTargetLanguage is CommonLanguages.OTHER) | ||||
|             { | ||||
|                 <ConfigurationText OptionDescription="Preselect another language" Disabled="@(() => !this.SettingsManager.ConfigurationData.MyTasks.PreselectOptions)" Icon="@Icons.Material.Filled.Translate" Text="@(() => this.SettingsManager.ConfigurationData.MyTasks.PreselectOtherLanguage)" TextUpdate="@(updatedText => this.SettingsManager.ConfigurationData.MyTasks.PreselectOtherLanguage = updatedText)"/> | ||||
|             } | ||||
|             <ConfigurationSelect OptionDescription="Preselect one of your profiles?" Disabled="@(() => !this.SettingsManager.ConfigurationData.MyTasks.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.MyTasks.PreselectedProfile)" Data="@ConfigurationSelectDataFactory.GetProfilesData(this.SettingsManager.ConfigurationData.Profiles)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.MyTasks.PreselectedProfile = selectedValue)" OptionHelp="Would you like to preselect one of your profiles?"/> | ||||
|             <ConfigurationMinConfidenceSelection Disabled="@(() => !this.SettingsManager.ConfigurationData.MyTasks.PreselectOptions)" RestrictToGlobalMinimumConfidence="@true" SelectedValue="@(() => this.SettingsManager.ConfigurationData.MyTasks.MinimumProviderConfidence)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.MyTasks.MinimumProviderConfidence = selectedValue)"/> | ||||
|             <ConfigurationProviderSelection Component="Components.MY_TASKS_ASSISTANT" Data="@this.AvailableLLMProvidersFunc()" Disabled="@(() => !this.SettingsManager.ConfigurationData.MyTasks.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.MyTasks.PreselectedProvider)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.MyTasks.PreselectedProvider = selectedValue)"/> | ||||
|         </MudPaper> | ||||
|     </DialogContent> | ||||
|     <DialogActions> | ||||
|         <MudButton OnClick="@this.Close">Close</MudButton> | ||||
|     </DialogActions> | ||||
| </MudDialog> | ||||
| @ -0,0 +1,5 @@ | ||||
| namespace AIStudio.Dialogs.Settings; | ||||
| 
 | ||||
| public partial class SettingsDialogMyTasks : SettingsDialogBase | ||||
| { | ||||
| } | ||||
| @ -0,0 +1,25 @@ | ||||
| @using AIStudio.Settings | ||||
| @inherits SettingsDialogBase | ||||
| 
 | ||||
| <MudDialog> | ||||
|     <TitleContent> | ||||
|         <MudText Typo="Typo.h6"><MudIcon Icon="@Icons.Material.Filled.Edit" Class="mr-2" />Assistant: Rewrite & Improve Text</MudText> | ||||
|     </TitleContent> | ||||
|     <DialogContent> | ||||
|         <MudPaper Class="pa-3 mb-8 border-dashed border rounded-lg"> | ||||
|             <ConfigurationOption OptionDescription="Preselect rewrite & improve text options?" LabelOn="Rewrite & improve text options are preselected" LabelOff="No rewrite & improve text options are preselected" State="@(() => this.SettingsManager.ConfigurationData.RewriteImprove.PreselectOptions)" StateUpdate="@(updatedState => this.SettingsManager.ConfigurationData.RewriteImprove.PreselectOptions = updatedState)" OptionHelp="When enabled, you can preselect the rewrite & improve text options. This is might be useful when you prefer a specific language or LLM model."/> | ||||
|             <ConfigurationSelect OptionDescription="Preselect the target language" Disabled="@(() => !this.SettingsManager.ConfigurationData.RewriteImprove.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.RewriteImprove.PreselectedTargetLanguage)" Data="@ConfigurationSelectDataFactory.GetCommonLanguagesOptionalData()" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.RewriteImprove.PreselectedTargetLanguage = selectedValue)" OptionHelp="Which target language should be preselected?"/> | ||||
|             @if (this.SettingsManager.ConfigurationData.RewriteImprove.PreselectedTargetLanguage is CommonLanguages.OTHER) | ||||
|             { | ||||
|                 <ConfigurationText OptionDescription="Preselect another target language" Disabled="@(() => !this.SettingsManager.ConfigurationData.RewriteImprove.PreselectOptions)" Icon="@Icons.Material.Filled.Translate" Text="@(() => this.SettingsManager.ConfigurationData.RewriteImprove.PreselectedOtherLanguage)" TextUpdate="@(updatedText => this.SettingsManager.ConfigurationData.RewriteImprove.PreselectedOtherLanguage = updatedText)"/> | ||||
|             } | ||||
|             <ConfigurationSelect OptionDescription="Preselect a writing style" Disabled="@(() => !this.SettingsManager.ConfigurationData.RewriteImprove.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.RewriteImprove.PreselectedWritingStyle)" Data="@ConfigurationSelectDataFactory.GetWritingStyles4RewriteData()" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.RewriteImprove.PreselectedWritingStyle = selectedValue)" OptionHelp="Which writing style should be preselected?"/> | ||||
|             <ConfigurationSelect OptionDescription="Preselect a sentence structure" Disabled="@(() => !this.SettingsManager.ConfigurationData.RewriteImprove.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.RewriteImprove.PreselectedSentenceStructure)" Data="@ConfigurationSelectDataFactory.GetSentenceStructureData()" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.RewriteImprove.PreselectedSentenceStructure = selectedValue)" OptionHelp="Which voice should be preselected for the sentence structure?"/> | ||||
|             <ConfigurationMinConfidenceSelection Disabled="@(() => !this.SettingsManager.ConfigurationData.RewriteImprove.PreselectOptions)" RestrictToGlobalMinimumConfidence="@true" SelectedValue="@(() => this.SettingsManager.ConfigurationData.RewriteImprove.MinimumProviderConfidence)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.RewriteImprove.MinimumProviderConfidence = selectedValue)"/> | ||||
|             <ConfigurationProviderSelection Component="Components.REWRITE_ASSISTANT" Data="@this.AvailableLLMProvidersFunc()" Disabled="@(() => !this.SettingsManager.ConfigurationData.RewriteImprove.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.RewriteImprove.PreselectedProvider)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.RewriteImprove.PreselectedProvider = selectedValue)"/> | ||||
|         </MudPaper> | ||||
|     </DialogContent> | ||||
|     <DialogActions> | ||||
|         <MudButton OnClick="@this.Close" Variant="Variant.Filled">Close</MudButton> | ||||
|     </DialogActions> | ||||
| </MudDialog> | ||||
| @ -0,0 +1,5 @@ | ||||
| namespace AIStudio.Dialogs.Settings; | ||||
| 
 | ||||
| public partial class SettingsDialogRewrite : SettingsDialogBase | ||||
| { | ||||
| } | ||||
| @ -0,0 +1,23 @@ | ||||
| @using AIStudio.Settings | ||||
| @inherits SettingsDialogBase | ||||
| 
 | ||||
| <MudDialog> | ||||
|     <TitleContent> | ||||
|         <MudText Typo="Typo.h6"><MudIcon Icon="@Icons.Material.Filled.Spellcheck" Class="mr-2" />Assistant: Synonyms</MudText> | ||||
|     </TitleContent> | ||||
|     <DialogContent> | ||||
|         <MudPaper Class="pa-3 mb-8 border-dashed border rounded-lg"> | ||||
|             <ConfigurationOption OptionDescription="Preselect synonym options?" LabelOn="Synonym options are preselected" LabelOff="No synonym options are preselected" State="@(() => this.SettingsManager.ConfigurationData.Synonyms.PreselectOptions)" StateUpdate="@(updatedState => this.SettingsManager.ConfigurationData.Synonyms.PreselectOptions = updatedState)" OptionHelp="When enabled, you can preselect synonym options. This is might be useful when you prefer a specific language or LLM model."/> | ||||
|             <ConfigurationSelect OptionDescription="Preselect the language" Disabled="@(() => !this.SettingsManager.ConfigurationData.Synonyms.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.Synonyms.PreselectedLanguage)" Data="@ConfigurationSelectDataFactory.GetCommonLanguagesOptionalData()" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.Synonyms.PreselectedLanguage = selectedValue)" OptionHelp="Which language should be preselected?"/> | ||||
|             @if (this.SettingsManager.ConfigurationData.Synonyms.PreselectedLanguage is CommonLanguages.OTHER) | ||||
|             { | ||||
|                 <ConfigurationText OptionDescription="Preselect another language" Disabled="@(() => !this.SettingsManager.ConfigurationData.Synonyms.PreselectOptions)" Icon="@Icons.Material.Filled.Translate" Text="@(() => this.SettingsManager.ConfigurationData.Synonyms.PreselectedOtherLanguage)" TextUpdate="@(updatedText => this.SettingsManager.ConfigurationData.Synonyms.PreselectedOtherLanguage = updatedText)"/> | ||||
|             } | ||||
|             <ConfigurationMinConfidenceSelection Disabled="@(() => !this.SettingsManager.ConfigurationData.Synonyms.PreselectOptions)" RestrictToGlobalMinimumConfidence="@true" SelectedValue="@(() => this.SettingsManager.ConfigurationData.Synonyms.MinimumProviderConfidence)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.Synonyms.MinimumProviderConfidence = selectedValue)"/> | ||||
|             <ConfigurationProviderSelection Component="Components.SYNONYMS_ASSISTANT" Data="@this.AvailableLLMProvidersFunc()" Disabled="@(() => !this.SettingsManager.ConfigurationData.Synonyms.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.Synonyms.PreselectedProvider)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.Synonyms.PreselectedProvider = selectedValue)"/> | ||||
|         </MudPaper> | ||||
|     </DialogContent> | ||||
|     <DialogActions> | ||||
|         <MudButton OnClick="@this.Close" Variant="Variant.Filled">Close</MudButton> | ||||
|     </DialogActions> | ||||
| </MudDialog> | ||||
| @ -1,6 +1,6 @@ | ||||
| namespace AIStudio.Components.Settings; | ||||
| 
 | ||||
| public partial class SettingsPanelSynonyms : SettingsPanelBase | ||||
| public partial class SettingsDialogSynonyms : SettingsPanelBase | ||||
| { | ||||
|     protected override SettingsPanel Type => SettingsPanel.ASSISTANT_SYNONYMS_PANEL; | ||||
| } | ||||
| @ -0,0 +1,32 @@ | ||||
| @using AIStudio.Assistants.TextSummarizer | ||||
| @using AIStudio.Settings | ||||
| @inherits SettingsDialogBase | ||||
| 
 | ||||
| <MudDialog> | ||||
|     <TitleContent> | ||||
|         <MudText Typo="Typo.h6"><MudIcon Icon="@Icons.Material.Filled.TextSnippet" Class="mr-2" />Assistant: Text Summarizer Options</MudText> | ||||
|     </TitleContent> | ||||
|     <DialogContent> | ||||
|         <ConfigurationOption OptionDescription="Hide the web content reader?" LabelOn="Web content reader is hidden" LabelOff="Web content reader is shown" State="@(() => this.SettingsManager.ConfigurationData.TextSummarizer.HideWebContentReader)" StateUpdate="@(updatedState => this.SettingsManager.ConfigurationData.TextSummarizer.HideWebContentReader = updatedState)" OptionHelp="When activated, the web content reader is hidden and cannot be used. As a result, the user interface becomes a bit easier to use."/> | ||||
|         <MudPaper Class="pa-3 mb-8 border-dashed border rounded-lg"> | ||||
|             <ConfigurationOption OptionDescription="Preselect summarizer options?" LabelOn="Summarizer options are preselected" LabelOff="No summarizer options are preselected" State="@(() => this.SettingsManager.ConfigurationData.TextSummarizer.PreselectOptions)" StateUpdate="@(updatedState => this.SettingsManager.ConfigurationData.TextSummarizer.PreselectOptions = updatedState)" OptionHelp="When enabled, you can preselect the text summarizer options. This is might be useful when you prefer a specific language, complexity, or LLM."/> | ||||
|             <ConfigurationOption OptionDescription="Preselect the web content reader?" Disabled="@(() => !this.SettingsManager.ConfigurationData.TextSummarizer.PreselectOptions || this.SettingsManager.ConfigurationData.TextSummarizer.HideWebContentReader)" LabelOn="Web content reader is preselected" LabelOff="Web content reader is not preselected" State="@(() => this.SettingsManager.ConfigurationData.TextSummarizer.PreselectWebContentReader)" StateUpdate="@(updatedState => this.SettingsManager.ConfigurationData.TextSummarizer.PreselectWebContentReader = updatedState)" OptionHelp="When enabled, the web content reader is preselected. This is might be useful when you prefer to load content from the web very often."/> | ||||
|             <ConfigurationOption OptionDescription="Preselect the content cleaner agent?" Disabled="@(() => !this.SettingsManager.ConfigurationData.TextSummarizer.PreselectOptions || this.SettingsManager.ConfigurationData.TextSummarizer.HideWebContentReader)" LabelOn="Content cleaner agent is preselected" LabelOff="Content cleaner agent is not preselected" State="@(() => this.SettingsManager.ConfigurationData.TextSummarizer.PreselectContentCleanerAgent)" StateUpdate="@(updatedState => this.SettingsManager.ConfigurationData.TextSummarizer.PreselectContentCleanerAgent = updatedState)" OptionHelp="When enabled, the content cleaner agent is preselected. This is might be useful when you prefer to clean up the content before summarize it."/> | ||||
|             <ConfigurationSelect OptionDescription="Preselect the target language" Disabled="@(() => !this.SettingsManager.ConfigurationData.TextSummarizer.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.TextSummarizer.PreselectedTargetLanguage)" Data="@ConfigurationSelectDataFactory.GetCommonLanguagesData()" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.TextSummarizer.PreselectedTargetLanguage = selectedValue)" OptionHelp="Which target language should be preselected?"/> | ||||
|             @if (this.SettingsManager.ConfigurationData.TextSummarizer.PreselectedTargetLanguage is CommonLanguages.OTHER) | ||||
|             { | ||||
|                 <ConfigurationText OptionDescription="Preselect another target language" Disabled="@(() => !this.SettingsManager.ConfigurationData.TextSummarizer.PreselectOptions)" Icon="@Icons.Material.Filled.Translate" Text="@(() => this.SettingsManager.ConfigurationData.TextSummarizer.PreselectedOtherLanguage)" TextUpdate="@(updatedText => this.SettingsManager.ConfigurationData.TextSummarizer.PreselectedOtherLanguage = updatedText)"/> | ||||
|             } | ||||
|             <ConfigurationSelect OptionDescription="Preselect the summarizer complexity" Disabled="@(() => !this.SettingsManager.ConfigurationData.TextSummarizer.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.TextSummarizer.PreselectedComplexity)" Data="@ConfigurationSelectDataFactory.GetComplexityData()" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.TextSummarizer.PreselectedComplexity = selectedValue)" OptionHelp="Which summarizer complexity should be preselected?"/> | ||||
|             @if(this.SettingsManager.ConfigurationData.TextSummarizer.PreselectedComplexity is Complexity.SCIENTIFIC_LANGUAGE_OTHER_EXPERTS) | ||||
|             { | ||||
|                 <ConfigurationText OptionDescription="Preselect your expertise" Disabled="@(() => !this.SettingsManager.ConfigurationData.TextSummarizer.PreselectOptions)" Icon="@Icons.Material.Filled.Person" Text="@(() => this.SettingsManager.ConfigurationData.TextSummarizer.PreselectedExpertInField)" TextUpdate="@(updatedText => this.SettingsManager.ConfigurationData.TextSummarizer.PreselectedExpertInField = updatedText)"/> | ||||
|             } | ||||
|             <ConfigurationMinConfidenceSelection Disabled="@(() => !this.SettingsManager.ConfigurationData.TextSummarizer.PreselectOptions)" RestrictToGlobalMinimumConfidence="@true" SelectedValue="@(() => this.SettingsManager.ConfigurationData.TextSummarizer.MinimumProviderConfidence)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.TextSummarizer.MinimumProviderConfidence = selectedValue)"/> | ||||
|             <ConfigurationProviderSelection Component="Components.TEXT_SUMMARIZER_ASSISTANT" Data="@this.AvailableLLMProvidersFunc()" Disabled="@(() => !this.SettingsManager.ConfigurationData.TextSummarizer.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.TextSummarizer.PreselectedProvider)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.TextSummarizer.PreselectedProvider = selectedValue)"/> | ||||
|         </MudPaper> | ||||
|     </DialogContent> | ||||
|     <DialogActions> | ||||
|         <MudButton OnClick="@this.Close" Variant="Variant.Filled">Close</MudButton> | ||||
|     </DialogActions> | ||||
| </MudDialog> | ||||
| @ -0,0 +1,5 @@ | ||||
| namespace AIStudio.Dialogs.Settings; | ||||
| 
 | ||||
| public partial class SettingsDialogTextSummarizer : SettingsDialogBase | ||||
| { | ||||
| } | ||||
| @ -0,0 +1,27 @@ | ||||
| @using AIStudio.Settings | ||||
| @inherits SettingsDialogBase | ||||
| 
 | ||||
| <MudDialog> | ||||
|     <TitleContent> | ||||
|         <MudText Typo="Typo.h6"><MudIcon Icon="@Icons.Material.Filled.Email" Class="mr-2" />Assistant: Writing E-Mails</MudText> | ||||
|     </TitleContent> | ||||
|     <DialogContent>     | ||||
|         <MudPaper Class="pa-3 mb-8 border-dashed border rounded-lg"> | ||||
|             <ConfigurationOption OptionDescription="Preselect e-mail options?" LabelOn="E-Mail options are preselected" LabelOff="No e-mail options are preselected" State="@(() => this.SettingsManager.ConfigurationData.EMail.PreselectOptions)" StateUpdate="@(updatedState => this.SettingsManager.ConfigurationData.EMail.PreselectOptions = updatedState)" OptionHelp="When enabled, you can preselect the e-mail options. This is might be useful when you prefer a specific language or LLM model."/> | ||||
|             <ConfigurationText OptionDescription="Preselect a greeting?" Disabled="@(() => !this.SettingsManager.ConfigurationData.EMail.PreselectOptions)" Icon="@Icons.Material.Filled.Person" Text="@(() => this.SettingsManager.ConfigurationData.EMail.Greeting)" TextUpdate="@(updatedText => this.SettingsManager.ConfigurationData.EMail.Greeting = updatedText)"/> | ||||
|             <ConfigurationText OptionDescription="Preselect your name for the closing salutation?" Disabled="@(() => !this.SettingsManager.ConfigurationData.EMail.PreselectOptions)" Icon="@Icons.Material.Filled.Person" Text="@(() => this.SettingsManager.ConfigurationData.EMail.SenderName)" TextUpdate="@(updatedText => this.SettingsManager.ConfigurationData.EMail.SenderName = updatedText)"/> | ||||
|             <ConfigurationSelect OptionDescription="Preselect the target language" Disabled="@(() => !this.SettingsManager.ConfigurationData.EMail.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.EMail.PreselectedTargetLanguage)" Data="@ConfigurationSelectDataFactory.GetCommonLanguagesTranslationData()" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.EMail.PreselectedTargetLanguage = selectedValue)" OptionHelp="Which target language should be preselected?"/> | ||||
|             @if (this.SettingsManager.ConfigurationData.EMail.PreselectedTargetLanguage is CommonLanguages.OTHER) | ||||
|             { | ||||
|                 <ConfigurationText OptionDescription="Preselect another target language" Disabled="@(() => !this.SettingsManager.ConfigurationData.EMail.PreselectOptions)" Icon="@Icons.Material.Filled.Translate" Text="@(() => this.SettingsManager.ConfigurationData.EMail.PreselectOtherLanguage)" TextUpdate="@(updatedText => this.SettingsManager.ConfigurationData.EMail.PreselectOtherLanguage = updatedText)"/> | ||||
|             } | ||||
|             <ConfigurationSelect OptionDescription="Preselect a writing style" Disabled="@(() => !this.SettingsManager.ConfigurationData.EMail.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.EMail.PreselectedWritingStyle)" Data="@ConfigurationSelectDataFactory.GetWritingStyles4EMailData()" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.EMail.PreselectedWritingStyle = selectedValue)" OptionHelp="Which writing style should be preselected?"/> | ||||
|             <ConfigurationMinConfidenceSelection Disabled="@(() => !this.SettingsManager.ConfigurationData.EMail.PreselectOptions)" RestrictToGlobalMinimumConfidence="@true" SelectedValue="@(() => this.SettingsManager.ConfigurationData.EMail.MinimumProviderConfidence)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.EMail.MinimumProviderConfidence = selectedValue)"/> | ||||
|             <ConfigurationProviderSelection Component="Components.EMAIL_ASSISTANT" Data="@this.AvailableLLMProvidersFunc()" Disabled="@(() => !this.SettingsManager.ConfigurationData.EMail.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.EMail.PreselectedProvider)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.EMail.PreselectedProvider = selectedValue)"/> | ||||
|             <ConfigurationSelect OptionDescription="Preselect one of your profiles?" Disabled="@(() => !this.SettingsManager.ConfigurationData.EMail.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.EMail.PreselectedProfile)" Data="@ConfigurationSelectDataFactory.GetProfilesData(this.SettingsManager.ConfigurationData.Profiles)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.EMail.PreselectedProfile = selectedValue)" OptionHelp="Would you like to preselect one of your profiles?"/> | ||||
|         </MudPaper> | ||||
|     </DialogContent> | ||||
|     <DialogActions> | ||||
|         <MudButton OnClick="@this.Close" Variant="Variant.Filled">Close</MudButton> | ||||
|     </DialogActions> | ||||
| </MudDialog> | ||||
| @ -0,0 +1,5 @@ | ||||
| namespace AIStudio.Dialogs.Settings; | ||||
| 
 | ||||
| public partial class SettingsDialogWritingEMails : SettingsDialogBase | ||||
| { | ||||
| } | ||||
| @ -8,4 +8,6 @@ public partial class Assistants : ComponentBase | ||||
| { | ||||
|     [Inject] | ||||
|     public SettingsManager SettingsManager { get; set; } = null!; | ||||
|      | ||||
|     //TODO: On click aus AssistantBase.razor.cs -> private method mit hardcoded T | ||||
| } | ||||
| @ -8,36 +8,36 @@ | ||||
|     <InnerScrolling> | ||||
|         <CascadingValue Value="@this"> | ||||
|             <MudExpansionPanels Class="mb-3" MultiExpansion="@false"> | ||||
|                 <SettingsPanelProviders @bind-AvailableLLMProviders="@this.availableLLMProviders"/> | ||||
|                 <SettingsDialogProviders @bind-AvailableLLMProviders="@this.availableLLMProviders"/> | ||||
| 
 | ||||
|                 @if (PreviewFeatures.PRE_RAG_2024.IsEnabled(this.SettingsManager)) | ||||
|                 { | ||||
|                     <SettingsPanelEmbeddings AvailableLLMProvidersFunc="() => this.availableLLMProviders" @bind-AvailableEmbeddingProviders="@this.availableEmbeddingProviders"/> | ||||
|                     <SettingsPanelDataSources AvailableLLMProvidersFunc="() => this.availableLLMProviders" AvailableEmbeddingsFunc="() => this.availableEmbeddingProviders" @bind-AvailableDataSources="@this.availableDataSources"/> | ||||
|                 } | ||||
|                 <SettingsPanelProfiles AvailableLLMProvidersFunc="() => this.availableLLMProviders"/> | ||||
|                 <SettingsDialogProfiles AvailableLLMProvidersFunc="() => this.availableLLMProviders"/> | ||||
|                 <SettingsPanelApp AvailableLLMProvidersFunc="() => this.availableLLMProviders"/> | ||||
|                 <SettingsPanelChat AvailableLLMProvidersFunc="() => this.availableLLMProviders"/> | ||||
|                 <SettingsPanelWorkspaces AvailableLLMProvidersFunc="() => this.availableLLMProviders"/> | ||||
|                 <SettingsPanelIconFinder AvailableLLMProvidersFunc="() => this.availableLLMProviders"/> | ||||
|                 <SettingsDialogWorkspaces AvailableLLMProvidersFunc="() => this.availableLLMProviders"/> | ||||
|                 <SettingsDialogIconFinder AvailableLLMProvidersFunc="() => this.availableLLMProviders"/> | ||||
|                 <SettingsPanelTranslation AvailableLLMProvidersFunc="() => this.availableLLMProviders"/> | ||||
|                 <SettingsPanelCoding AvailableLLMProvidersFunc="() => this.availableLLMProviders"/> | ||||
|                 <SettingsDialogCoding AvailableLLMProvidersFunc="() => this.availableLLMProviders"/> | ||||
| 
 | ||||
|                 @if (PreviewFeatures.PRE_RAG_2024.IsEnabled(this.SettingsManager)) | ||||
|                 { | ||||
|                     <SettingsPanelERIServer AvailableLLMProvidersFunc="() => this.availableLLMProviders"/> | ||||
|                     <SettingsDialogERIServer AvailableLLMProvidersFunc="() => this.availableLLMProviders"/> | ||||
|                 } | ||||
| 
 | ||||
|                 <SettingsPanelTextSummarizer AvailableLLMProvidersFunc="() => this.availableLLMProviders"/> | ||||
|                 <SettingsPanelAgenda AvailableLLMProvidersFunc="() => this.availableLLMProviders"/> | ||||
|                 <SettingsPanelGrammarSpelling AvailableLLMProvidersFunc="() => this.availableLLMProviders"/> | ||||
|                 <SettingsPanelRewrite AvailableLLMProvidersFunc="() => this.availableLLMProviders"/> | ||||
|                 <SettingsPanelWritingEMails AvailableLLMProvidersFunc="() => this.availableLLMProviders"/> | ||||
|                 <SettingsPanelJobPostings AvailableLLMProvidersFunc="() => this.availableLLMProviders"/> | ||||
|                 <SettingsPanelLegalCheck AvailableLLMProvidersFunc="() => this.availableLLMProviders"/> | ||||
|                 <SettingsPanelSynonyms AvailableLLMProvidersFunc="() => this.availableLLMProviders"/> | ||||
|                 <SettingsPanelMyTasks AvailableLLMProvidersFunc="() => this.availableLLMProviders"/> | ||||
|                 <SettingsPanelAssistantBias AvailableLLMProvidersFunc="() => this.availableLLMProviders"/> | ||||
|                 <SettingsDialogTextSummarizer AvailableLLMProvidersFunc="() => this.availableLLMProviders"/> | ||||
|                 <SettingsDialogAgenda AvailableLLMProvidersFunc="() => this.availableLLMProviders"/> | ||||
|                 <SettingsDialogGrammarSpelling AvailableLLMProvidersFunc="() => this.availableLLMProviders"/> | ||||
|                 <SettingsDialogRewrite AvailableLLMProvidersFunc="() => this.availableLLMProviders"/> | ||||
|                 <SettingsDialogWritingEMails AvailableLLMProvidersFunc="() => this.availableLLMProviders"/> | ||||
|                 <SettingsDialogJobPostings AvailableLLMProvidersFunc="() => this.availableLLMProviders"/> | ||||
|                 <SettingsDialogLegalCheck AvailableLLMProvidersFunc="() => this.availableLLMProviders"/> | ||||
|                 <SettingsDialogSynonyms AvailableLLMProvidersFunc="() => this.availableLLMProviders"/> | ||||
|                 <SettingsDialogMyTasks AvailableLLMProvidersFunc="() => this.availableLLMProviders"/> | ||||
|                 <SettingsDialogAssistantBias AvailableLLMProvidersFunc="() => this.availableLLMProviders"/> | ||||
| 
 | ||||
|                 @if (PreviewFeatures.PRE_RAG_2024.IsEnabled(this.SettingsManager)) | ||||
|                 { | ||||
|  | ||||
| @ -43,4 +43,5 @@ public enum Event | ||||
|      | ||||
|     // Setting events: | ||||
|     SWITCH_TO_SETTINGS_PANEL, | ||||
|     SWITCH_TO_SETTINGS_DIALOG, | ||||
| } | ||||
| @ -1,4 +1,5 @@ | ||||
| using AIStudio.Assistants; | ||||
| using AIStudio.Dialogs.Settings; | ||||
| 
 | ||||
| namespace AIStudio.Tools; | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user