fix(app): Server, Jobs, Settings, About and Welcome after the accessibility and RTL review

- Keyboard: Tab follows the visual order (toolbars, section list, dialog
  buttons), reaches every Jobs row button, stays inside the Welcome dialog
  (which opens focused); the Settings section list shows a focus ring.
- Screen readers: sync and job rows read as their sequence or job with the
  state as item status; row buttons name their row; filter chips are radio
  buttons; the connection state, errors, sync retries, update checks and
  self-test results are announced; Auto values are text, not dead buttons.
- Right to left: paths, addresses, templates, fingerprints, the job log, sizes
  and the logo stay left to right; numbers stay right-aligned.
- Layout: Jobs and sync headers line up with their rows (shared padding,
  shared actions column, constant scroll-bar gutter); toolbars wrap before
  anything is cut; Settings labels share a column as wide as the longest one;
  path rows give way instead of wrapping; conflict rows use the warning tint.
- Behaviour: Settings reloads the archive folder and default server set
  elsewhere; forgetting a certificate in Settings asks first and disconnects
  the session on it; transfers count in the Local only and Remote chips; the
  Workers readout counts this PC's workers; badge, status strip and Running
  chip agree; the admin link shows for administrators only; Reset section is
  gone from Advanced; empty states carry one action; shorter labels; the
  encoders a render node offers and the presets each encoder serves.

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:23:59 +00:00
1 parent baf3c6bddd
commit d80cb5f8a7
28 files changed
+801 -319

No files matched your search

+9 -2
View File
@@ -8,8 +8,8 @@ using Titano.Ui.Mvvm;
namespace Titano.App.Jobs;
/// <summary>A row action: label, tooltip and command (26-px row buttons, DESIGN §4 tables).</summary>
public sealed record JobAction(string Text, string ToolTip, ICommand Command, bool IsDestructive = false);
/// <summary>A row action: label, tooltip, the name screen readers hear (label and row) and command (26-px row buttons, DESIGN §4 tables).</summary>
public sealed record JobAction(string Text, string ToolTip, string AccessibleName, ICommand Command);
/// <summary>One row of the Jobs table (Jobs.html): kind, target, progress, speed, left, where, state, actions, log.</summary>
public sealed class JobRowViewModel : ObservableObject
@@ -36,6 +36,9 @@ public sealed class JobRowViewModel : ObservableObject
public string Target => _entry.Job.TargetLabel ?? string.Empty;
/// <summary>"Render · Harbour sunset → 4K HEVC": the row's name for screen readers.</summary>
public string AccessibleName => JobText.Name(_entry.Job);
/// <summary>Progress 0…1 (0 while unknown).</summary>
public double Progress => _entry.State == JobState.Done ? 1 : _entry.Fraction ?? 0;
@@ -81,12 +84,16 @@ public sealed class JobRowViewModel : ObservableObject
{
if (!Set(ref _isExpanded, value)) return;
OnPropertyChanged(nameof(ToggleToolTip));
OnPropertyChanged(nameof(ToggleName));
if (value) _ = _actions.LoadLogAsync(this);
}
}
public string ToggleToolTip => Loc.L(_isExpanded ? "Tooltips.Jobs.HideLog" : "Tooltips.Jobs.ShowLog");
/// <summary>"Show log: Render · Harbour sunset": the expander names its row.</summary>
public string ToggleName => Loc.L("Jobs.ActionFor", Loc.L(_isExpanded ? "Jobs.Log.Hide" : "Jobs.Log.Show"), AccessibleName);
/// <summary>The last lines of the job log, plus the live message while it runs.</summary>
public string LogText
{