Added the username to the information page

This commit is contained in:
Thorsten Sommer 2026-05-17 15:50:40 +02:00
parent 0d2ce4a091
commit 06f5a473bb
Signed by untrusted user who does not match committer: tsommer
GPG Key ID: 371BBA77A02C0108
4 changed files with 9 additions and 1 deletions

View File

@ -83,7 +83,9 @@ public partial class MainLayout : LayoutComponentBase, IMessageBusReceiver, ILan
// Read the user language from Rust:
//
var userLanguage = await this.RustService.ReadUserLanguage();
var userName = await this.RustService.ReadUserName();
this.Logger.LogInformation($"The OS says '{userLanguage}' is the user language.");
this.Logger.LogInformation($"The OS says '{userName}' is the username.");
// Ensure that all settings are loaded:
await this.SettingsManager.LoadSettings();

View File

@ -47,6 +47,7 @@
<MudListItem T="string" Icon="@Icons.Material.Outlined.Widgets" Text="@MudBlazorVersion"/>
<MudListItem T="string" Icon="@Icons.Material.Outlined.Memory" Text="@TauriVersion"/>
<MudListItem T="string" Icon="@Icons.Material.Outlined.Translate" Text="@this.OSLanguage"/>
<MudListItem T="string" Icon="@Icons.Material.Outlined.AccountCircle" Text="@this.OSUserName"/>
<MudListItem T="string" Icon="@Icons.Material.Outlined.Business">
@switch (HasAnyActiveEnvironment)
{

View File

@ -40,6 +40,7 @@ public partial class Information : MSGComponentBase
private static string TB(string fallbackEN) => I18N.I.T(fallbackEN, typeof(Information).Namespace, nameof(Information));
private string osLanguage = string.Empty;
private string osUserName = string.Empty;
private static string VersionApp => $"MindWork AI Studio: v{META_DATA.Version} (commit {META_DATA.AppCommitHash}, build {META_DATA.BuildNum}, {META_DATA_ARCH.Architecture.ToRID().ToUserFriendlyName()})";
@ -49,6 +50,8 @@ public partial class Information : MSGComponentBase
private string OSLanguage => $"{T("User-language provided by the OS")}: '{this.osLanguage}'";
private string OSUserName => $"{T("Username provided by the OS")}: '{this.osUserName}'";
private string VersionRust => $"{T("Used Rust compiler")}: v{META_DATA.RustVersion}";
private string VersionDotnetRuntime => $"{T("Used .NET runtime")}: v{META_DATA.DotnetVersion}";
@ -128,6 +131,7 @@ public partial class Information : MSGComponentBase
this.RefreshEnterpriseConfigurationState();
this.osLanguage = await this.RustService.ReadUserLanguage();
this.osUserName = await this.RustService.ReadUserName();
this.logPaths = await this.RustService.GetLogPaths();
await foreach (var (label, value) in this.DatabaseClient.GetDisplayInfo())

View File

@ -1,6 +1,7 @@
# v26.5.5, build 240 (2026-05-xx xx:xx UTC)
- Released the voice recording and transcription for all users. You no longer need to enable a preview feature to configure transcription providers, select a transcription provider, or use dictation.
- Added support for organization-managed ERI servers in configuration plugins, so admins can preconfigure external data sources for users.
- Added the username to the information page to make organization support easier when users share their screen.
- Improved the app's security foundation with major modernization of the native runtime and its internal communication layer. This work is mostly invisible during everyday use, but it replaces older components that no longer received the security updates we require. We also continued updating security-sensitive dependencies so AI Studio stays on a healthier, better maintained base.
- Improved the Pandoc management and detection process to make it more reliable.
- Fixed the Pandoc installation, which could fail and prevent AI Studio from installing its local Pandoc dependency.
@ -10,4 +11,4 @@
- Upgraded Tauri to v2.11.1.
- Upgraded PDFium to v148.0.7763.0.
- Upgraded Qdrant to v1.18.0.
- Upgraded other dependencies as well.
- Upgraded other dependencies as well.