fix(app): shell follows RTL from startup; welcome keeps the keyboard; accessible dialogs and errors

- The rail grows with the longest label (128-200 px); the first-run dialog disables the shell behind it
  and focuses its chosen option; toasts stay above it; F6 reaches the newest toast.
- Confirm and login dialogs are named by their heading, focus the safe button, announce sign-in errors.
- Error toasts say what happened only for catalog sentences (ErrorText); other details stay in the log.
- Window title, queued-jobs text (plural) and the pause button name come from resources.
- Logs, paths and templates in the client styles stay left to right.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
Claude committed 2026-10-03 17:22:42 +00:00
1 parent 3f8464aabc
commit a92120fb0d
12 files changed
+150 -53

No files matched your search

+10 -6
View File
@@ -85,12 +85,17 @@ public sealed class ShellViewModel : LocalizedViewModel
get => _welcome;
private set
{
if (Set(ref _welcome, value)) OnPropertyChanged(nameof(IsWelcomeOpen));
if (!Set(ref _welcome, value)) return;
OnPropertyChanged(nameof(IsWelcomeOpen));
OnPropertyChanged(nameof(IsShellEnabled));
}
}
public bool IsWelcomeOpen => _welcome is not null;
/// <summary>The rail and the sections take input only while no first-run dialog covers them.</summary>
public bool IsShellEnabled => _welcome is null;
public SectionViewModel Current
{
get => _current;
@@ -105,7 +110,7 @@ public sealed class ShellViewModel : LocalizedViewModel
}
}
public string WindowTitle => Current == Library ? "Titano" : "Titano — " + Current.Title;
public string WindowTitle => Current == Library ? Loc.L("Shell.AppName") : Loc.L("Shell.WindowTitle", Loc.L("Shell.AppName"), Current.Title);
public bool IsRailCollapsed
{
@@ -160,7 +165,7 @@ public sealed class ShellViewModel : LocalizedViewModel
// ---- Job bar ----
public string JobText => _jobActive && _jobText is not null
? _jobText
: _queuedCount > 0 ? Loc.L("Shell.JobBar.Ready", _queuedCount) : Loc.L("Shell.JobBar.Idle");
: _queuedCount > 0 ? Loc.Plural("Shell.JobBar.Ready", _queuedCount) : Loc.L("Shell.JobBar.Idle");
public double JobProgress { get => _jobProgress; private set => Set(ref _jobProgress, value); }
public bool IsJobActive
@@ -250,14 +255,13 @@ public sealed class ShellViewModel : LocalizedViewModel
ActionCommand = action is null ? null : new RelayCommand(action),
});
/// <summary>Errors are one sentence saying what happened plus one action (BRIEF §0.2 rule 6).</summary>
/// <summary>Errors are one sentence saying what happened plus one action (BRIEF §0.2 rule 6); the details go to the log.</summary>
public void ReportError(Exception ex)
{
Log.Error("ui", "Operation failed", ex);
ShowToast(new Toast
{
Title = Loc.L("Errors.Unexpected"),
Message = ex.Message,
Title = ErrorText.For(ex),
ActionText = Loc.L("Common.OpenLogs"),
ActionToolTip = Loc.L("Tooltips.Common.OpenLogs"),
ActionCommand = new RelayCommand(() => ShellActions.Reveal(Services.Environment.LogDirectory)),