From 06f5a473bb2b8bd68639e7b2eec2e6e97b224ab7 Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Sun, 17 May 2026 15:50:40 +0200 Subject: [PATCH] Added the username to the information page --- app/MindWork AI Studio/Layout/MainLayout.razor.cs | 2 ++ app/MindWork AI Studio/Pages/Information.razor | 1 + app/MindWork AI Studio/Pages/Information.razor.cs | 4 ++++ app/MindWork AI Studio/wwwroot/changelog/v26.5.5.md | 3 ++- 4 files changed, 9 insertions(+), 1 deletion(-) diff --git a/app/MindWork AI Studio/Layout/MainLayout.razor.cs b/app/MindWork AI Studio/Layout/MainLayout.razor.cs index a1659f34..a7a6a8df 100644 --- a/app/MindWork AI Studio/Layout/MainLayout.razor.cs +++ b/app/MindWork AI Studio/Layout/MainLayout.razor.cs @@ -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(); diff --git a/app/MindWork AI Studio/Pages/Information.razor b/app/MindWork AI Studio/Pages/Information.razor index b7f699a9..ae24887d 100644 --- a/app/MindWork AI Studio/Pages/Information.razor +++ b/app/MindWork AI Studio/Pages/Information.razor @@ -47,6 +47,7 @@ + @switch (HasAnyActiveEnvironment) { diff --git a/app/MindWork AI Studio/Pages/Information.razor.cs b/app/MindWork AI Studio/Pages/Information.razor.cs index 8f2192a5..10a6b614 100644 --- a/app/MindWork AI Studio/Pages/Information.razor.cs +++ b/app/MindWork AI Studio/Pages/Information.razor.cs @@ -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()) diff --git a/app/MindWork AI Studio/wwwroot/changelog/v26.5.5.md b/app/MindWork AI Studio/wwwroot/changelog/v26.5.5.md index 8a71d274..b517cf98 100644 --- a/app/MindWork AI Studio/wwwroot/changelog/v26.5.5.md +++ b/app/MindWork AI Studio/wwwroot/changelog/v26.5.5.md @@ -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. \ No newline at end of file