mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-05-21 07:32:15 +00:00
Added the username to the information page
This commit is contained in:
parent
0d2ce4a091
commit
06f5a473bb
@ -83,7 +83,9 @@ public partial class MainLayout : LayoutComponentBase, IMessageBusReceiver, ILan
|
|||||||
// Read the user language from Rust:
|
// Read the user language from Rust:
|
||||||
//
|
//
|
||||||
var userLanguage = await this.RustService.ReadUserLanguage();
|
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 '{userLanguage}' is the user language.");
|
||||||
|
this.Logger.LogInformation($"The OS says '{userName}' is the username.");
|
||||||
|
|
||||||
// Ensure that all settings are loaded:
|
// Ensure that all settings are loaded:
|
||||||
await this.SettingsManager.LoadSettings();
|
await this.SettingsManager.LoadSettings();
|
||||||
|
|||||||
@ -47,6 +47,7 @@
|
|||||||
<MudListItem T="string" Icon="@Icons.Material.Outlined.Widgets" Text="@MudBlazorVersion"/>
|
<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.Memory" Text="@TauriVersion"/>
|
||||||
<MudListItem T="string" Icon="@Icons.Material.Outlined.Translate" Text="@this.OSLanguage"/>
|
<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">
|
<MudListItem T="string" Icon="@Icons.Material.Outlined.Business">
|
||||||
@switch (HasAnyActiveEnvironment)
|
@switch (HasAnyActiveEnvironment)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -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 static string TB(string fallbackEN) => I18N.I.T(fallbackEN, typeof(Information).Namespace, nameof(Information));
|
||||||
|
|
||||||
private string osLanguage = string.Empty;
|
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()})";
|
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 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 VersionRust => $"{T("Used Rust compiler")}: v{META_DATA.RustVersion}";
|
||||||
|
|
||||||
private string VersionDotnetRuntime => $"{T("Used .NET runtime")}: v{META_DATA.DotnetVersion}";
|
private string VersionDotnetRuntime => $"{T("Used .NET runtime")}: v{META_DATA.DotnetVersion}";
|
||||||
@ -128,6 +131,7 @@ public partial class Information : MSGComponentBase
|
|||||||
this.RefreshEnterpriseConfigurationState();
|
this.RefreshEnterpriseConfigurationState();
|
||||||
|
|
||||||
this.osLanguage = await this.RustService.ReadUserLanguage();
|
this.osLanguage = await this.RustService.ReadUserLanguage();
|
||||||
|
this.osUserName = await this.RustService.ReadUserName();
|
||||||
this.logPaths = await this.RustService.GetLogPaths();
|
this.logPaths = await this.RustService.GetLogPaths();
|
||||||
|
|
||||||
await foreach (var (label, value) in this.DatabaseClient.GetDisplayInfo())
|
await foreach (var (label, value) in this.DatabaseClient.GetDisplayInfo())
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
# v26.5.5, build 240 (2026-05-xx xx:xx UTC)
|
# 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.
|
- 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 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 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.
|
- 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.
|
- Fixed the Pandoc installation, which could fail and prevent AI Studio from installing its local Pandoc dependency.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user