Added the choice between formal and informal address to the whole app (#1200)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-11-13 10:16:56 +01:00
1 parent 382db4b8d0
commit c9a376f742
342 files changed
+14378 -1893

No files matched your search

@@ -1,7 +1,6 @@
using AIStudio.Assistants.BeyondFactsLab;
using AIStudio.Provider;
using AIStudio.Settings;
using AIStudio.Tools.PluginSystem;
using AIStudio.Tools.Rust;
using Microsoft.AspNetCore.Components;
@@ -19,12 +18,6 @@ public partial class SettingsDialogBeyondFactsLab : SettingsDialogBase
[Inject]
private ILogger<SettingsDialogBeyondFactsLab> Logger { get; init; } = null!;
/// <summary>
/// Whether the language of the app tells a formal address from an informal one, so that the form of address
/// is a choice at all.
/// </summary>
private bool offersFormOfAddress;
/// <summary>
/// Whether the settings for the further development of the lab are unfolded.
/// </summary>
@@ -46,13 +39,6 @@ public partial class SettingsDialogBeyondFactsLab : SettingsDialogBase
/// </summary>
private bool ArePromptOverridesLockedOff => IsPromptOverridesLocked && !this.SettingsManager.ConfigurationData.BeyondFactsLab.AllowPromptOverrides;
/// <inheritdoc />
protected override async Task OnInitializedAsync()
{
await base.OnInitializedAsync();
this.offersFormOfAddress = (await this.SettingsManager.GetActiveLanguagePlugin()).HasInformalAddress();
}
/// <summary>
/// Shows the minimum confidence which applies, never one below the floor of the lab.
/// </summary>