fix(uploader): follow right-to-left languages, name and reach every control by keyboard

Uploader:
- Mirror the main window, the confirmation dialog and the tray menu for ar/he/fa/ur; keep paths, addresses,
  file names, the fingerprint, the brand mark and media glyphs left to right.
- Queue rows take keyboard focus, are named "file · state" for screen readers, and Enter retries a failed
  file; a "✕ n failed" link jumps to the first failure; the list follows the upload near its top.
- Focus moves into the settings panel (Tab cycles inside) and back to the gear, to Browse after sign-in and
  to the refused field after a failed one; activity changes and sign-in errors are announced.
- A wrong address or password marks its field (error border, message in the tooltip); Retry only where it
  can help; session-ended toasts offer Sign in; the form stays visible while its own sign-in runs.
- Watch chips and the add button wrap and shorten long paths; target choices wrap with their fields; the
  settings panel uses the side-panel width with wrapping labels; disabled controls say why.
- The window opens at 760x700 (min 630 high) so the per-file list shows five rows; --capture adds an
  Arabic pass.

Setup:
- Every stage has a default and a cancel button (safe action first), the keyboard moves to the new
  default and outcomes are announced; the title-bar Close is disabled while files are written.
- "Remove my data" measures the user data folder and shows the plan (largest entries, total) before
  Uninstall can run; the tooltip names backups and the uploader queue.
- Folder field before Browse in Tab order; paths and file names left to right; disabled tooltips say why.

Both: byte units come from the language (Common.Size.*).

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:14:54 +00:00
1 parent 6e01995f7e
commit 1187c36d66
32 files changed
+1145 -227

No files matched your search

@@ -41,6 +41,7 @@ public sealed class WatchFolderViewModel : ObservableObject
{
if (!Set(ref _intervalSeconds, value)) return;
OnPropertyChanged(nameof(Text));
OnPropertyChanged(nameof(IntervalText));
OnPropertyChanged(nameof(ToolTip));
OnPropertyChanged(nameof(MenuOptions));
}
@@ -56,12 +57,16 @@ public sealed class WatchFolderViewModel : ObservableObject
}
}
/// <summary>"D:\Cam\Roof · every 1 min".</summary>
/// <summary>"D:\Cam\Roof · every 1 min": the chip's accessible name.</summary>
public string Text => Loc.L("Uploader.Watch.Chip", Path, Interval(IntervalSeconds));
public string ToolTip => IsAvailable == false ? Loc.L("Tooltips.Uploader.WatchFolderMissing", Interval(IntervalSeconds))
/// <summary>"every 1 min", shown after the path, which the chip draws left to right on its own and may shorten.</summary>
public string IntervalText => Loc.L("Uploader.Watch.Interval", Interval(IntervalSeconds));
/// <summary>The full path (the chip may shorten it), then the folder's state and interval.</summary>
public string ToolTip => LeftToRight(Path) + " · " + (IsAvailable == false ? Loc.L("Tooltips.Uploader.WatchFolderMissing", Interval(IntervalSeconds))
: IsNetwork ? Loc.L("Tooltips.Uploader.WatchFolderNetwork", Interval(IntervalSeconds))
: Loc.L("Tooltips.Uploader.WatchFolder", Interval(IntervalSeconds));
: Loc.L("Tooltips.Uploader.WatchFolder", Interval(IntervalSeconds)));
public IReadOnlyList<WatchMenuOption> MenuOptions =>
[
@@ -75,4 +80,7 @@ public sealed class WatchFolderViewModel : ObservableObject
];
private static string Interval(int seconds) => UploaderText.Duration(TimeSpan.FromSeconds(seconds), Loc.Culture);
/// <summary>Embeds a path left to right (LRE … PDF) so a right-to-left tooltip does not reorder its separators.</summary>
private static string LeftToRight(string text) => "\u202A" + text + "\u202C";
}