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:
28 files changed
+801
-319
No files matched your search
@@ -77,6 +77,18 @@ public sealed class ServerSession : ObservableObject, ITrustStore, IDisposable
|
||||
OnAllPropertiesChanged();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Forgets a trusted certificate once the user confirmed it (Server screen and Settings › Server alike); the session
|
||||
/// that relies on it is closed first. True when it was forgotten.
|
||||
/// </summary>
|
||||
public bool ConfirmForget(string fingerprint, IAppDialogs dialogs)
|
||||
{
|
||||
if (!dialogs.Confirm(ForgetRequest(fingerprint))) return false;
|
||||
if (IsConnected && string.Equals(TrustOf(_flow.Info?.TlsFingerprint)?.Fingerprint, fingerprint, StringComparison.OrdinalIgnoreCase)) Disconnect();
|
||||
Forget(fingerprint);
|
||||
return true;
|
||||
}
|
||||
|
||||
// ---------------- Session ----------------
|
||||
|
||||
/// <summary>Resumes the saved session at start; stays signed out quietly when it cannot be reused.</summary>
|
||||
@@ -196,11 +208,27 @@ public sealed class ServerSession : ObservableObject, ITrustStore, IDisposable
|
||||
ActionToolTip = Loc.L("Tooltips.Server.Trust"),
|
||||
};
|
||||
|
||||
/// <summary>Splits the 32-byte SHA-256 fingerprint into two lines of 16 bytes.</summary>
|
||||
/// <summary>The destructive question before a trusted certificate is forgotten, with its fingerprint.</summary>
|
||||
public static ConfirmRequest ForgetRequest(string fingerprint) => new()
|
||||
{
|
||||
Heading = Loc.L("Server.Certificate.Title"),
|
||||
Message = Loc.L("Server.Certificate.Message"),
|
||||
Detail = FormatFingerprint(fingerprint),
|
||||
DetailToolTip = Loc.L("Tooltips.Server.Fingerprint"),
|
||||
SafeText = Loc.L("Server.Certificate.Keep"),
|
||||
SafeToolTip = Loc.L("Tooltips.Server.KeepTrust"),
|
||||
ActionText = Loc.L("Server.Certificate.Forget"),
|
||||
ActionToolTip = Loc.L("Tooltips.Server.ForgetTrust"),
|
||||
IsDestructive = true,
|
||||
};
|
||||
|
||||
/// <summary>Splits the 32-byte SHA-256 fingerprint into two lines of 16 bytes, each kept left to right.</summary>
|
||||
public static string FormatFingerprint(string fingerprint)
|
||||
{
|
||||
var bytes = fingerprint.Split(':');
|
||||
return bytes.Length <= 16 ? fingerprint : string.Join(':', bytes.Take(16)) + "\n" + string.Join(':', bytes.Skip(16));
|
||||
return bytes.Length <= 16
|
||||
? Formatting.LeftToRight(fingerprint)
|
||||
: Formatting.LeftToRight(string.Join(':', bytes.Take(16))) + "\n" + Formatting.LeftToRight(string.Join(':', bytes.Skip(16)));
|
||||
}
|
||||
|
||||
/// <summary>"9A:3C:71:E0:…" for the status line.</summary>
|
||||
|
||||
Reference in new issue
Block a user