2025-01-05 14:11:15 +00:00
@inherits SettingsPanelBase
2025-04-27 07:03:42 +00:00
<ExpansionPanel HeaderIcon="@Icons.Material.Filled.Person4" HeaderText="@T("Configure Profiles")">
<MudText Typo="Typo.h4" Class="mb-3">
@T("Your Profiles")
</MudText>
2025-01-05 14:11:15 +00:00
<MudJustifiedText Typo="Typo.body1" Class="mb-3">
2025-04-27 07:03:42 +00:00
@T("Store personal data about yourself in various profiles so that the AIs know your personal context. This saves you from having to explain your context each time, for example, in every chat. When you have different roles, you can create a profile for each role.")
2025-01-05 14:11:15 +00:00
</MudJustifiedText>
<MudJustifiedText Typo="Typo.body1" Class="mb-3">
2025-04-27 07:03:42 +00:00
@T("Are you a project manager in a research facility? You might want to create a profile for your project management activities, one for your scientific work, and a profile for when you need to write program code. In these profiles, you can record how much experience you have or which methods you like or dislike using. Later, you can choose when and where you want to use each profile.")
2025-01-05 14:11:15 +00:00
</MudJustifiedText>
<MudTable Items="@this.SettingsManager.ConfigurationData.Profiles" Hover="@true" Class="border-dashed border rounded-lg">
<ColGroup>
<col style="width: 3em;"/>
<col/>
<col style="width: 40em;"/>
</ColGroup>
<HeaderContent>
<MudTh>#</MudTh>
2025-04-27 07:03:42 +00:00
<MudTh>@T("Profile Name")</MudTh>
<MudTh>@T("Actions")</MudTh>
2025-01-05 14:11:15 +00:00
</HeaderContent>
<RowTemplate>
<MudTd>@context.Num</MudTd>
<MudTd>@context.Name</MudTd>
2025-03-29 17:40:17 +00:00
<MudTd>
<MudStack Row="true" Class="mb-2 mt-2" Wrap="Wrap.Wrap">
<MudButton Variant="Variant.Filled" Color="Color.Info" StartIcon="@Icons.Material.Filled.Edit" OnClick="() => this.EditProfile(context)">
2025-04-27 07:03:42 +00:00
@T("Edit")
2025-03-29 17:40:17 +00:00
</MudButton>
<MudButton Variant="Variant.Filled" Color="Color.Error" StartIcon="@Icons.Material.Filled.Delete" OnClick="() => this.DeleteProfile(context)">
2025-04-27 07:03:42 +00:00
@T("Delete")
2025-03-29 17:40:17 +00:00
</MudButton>
</MudStack>
2025-01-05 14:11:15 +00:00
</MudTd>
</RowTemplate>
</MudTable>
@if(this.SettingsManager.ConfigurationData.Profiles.Count == 0)
{
2025-04-27 07:03:42 +00:00
<MudText Typo="Typo.h6" Class="mt-3">
@T("No profiles configured yet.")
</MudText>
2025-01-05 14:11:15 +00:00
}
<MudButton Variant="Variant.Filled" Color="@Color.Primary" StartIcon="@Icons.Material.Filled.AddRoad" Class="mt-3 mb-6" OnClick="@this.AddProfile">
2025-04-27 07:03:42 +00:00
@T("Add Profile")
2025-01-05 14:11:15 +00:00
</MudButton>
</ExpansionPanel>