From 37ed91500dd675b6f5971a1805323985134d26fa Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 6 Oct 2026 20:55:50 +0000 Subject: [PATCH 1/8] fix(ui): kit follow-ups for lists, chart contrast, activation and RTL bars - ListBox (and the Library card grid) get a theme template that keeps their fill when disabled; ListView keeps the system GridView template. - BarChart, HeatmapStrip, SeriesChart and TimelineBands draw their labels in TextMuted; heatmap cells without data take the Stroke tone. - Category charts show the hand cursor and take the keyboard (arrows, Home, End, Enter, Space) only while an activation handler is attached to them; the keyboard item is outlined, read out and exposed as ItemStatus. - Horizontal bar charts and stacked bars start on the reading side in right-to-left languages; vertical bars, heatmaps and time axes stay LTR. - Archive drops its local list template, Focus.Inset copy, chart brush aliases and the redundant FlowDirection on the template box. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC --- src/Titano.App/Sections/ArchiveView.xaml | 46 +------ src/Titano.Ui/Themes/Controls.xaml | 31 ++++- src/Titano.Ui/Themes/Visuals.xaml | 4 +- src/Titano.Ui/Titano.Ui.csproj | 3 + src/Titano.Ui/Visuals/BarChart.cs | 129 ++++++++++--------- src/Titano.Ui/Visuals/DrawingElement.cs | 155 ++++++++++++++++++++++- src/Titano.Ui/Visuals/HeatmapStrip.cs | 83 +++++++----- src/Titano.Ui/Visuals/SeriesChart.cs | 4 +- src/Titano.Ui/Visuals/StackedBar.cs | 86 ++++++------- src/Titano.Ui/Visuals/TimelineBands.cs | 6 +- 10 files changed, 350 insertions(+), 197 deletions(-) diff --git a/src/Titano.App/Sections/ArchiveView.xaml b/src/Titano.App/Sections/ArchiveView.xaml index 7eaada7b..097be791 100644 --- a/src/Titano.App/Sections/ArchiveView.xaml +++ b/src/Titano.App/Sections/ArchiveView.xaml @@ -8,36 +8,6 @@ xmlns:infra="clr-namespace:Titano.App.Infrastructure" xmlns:shell="clr-namespace:Titano.App.Shell"> - - - - - - - + + - diff --git a/src/Titano.Ui/Themes/Visuals.xaml b/src/Titano.Ui/Themes/Visuals.xaml index 1290aae3..fbd1aa86 100644 --- a/src/Titano.Ui/Themes/Visuals.xaml +++ b/src/Titano.Ui/Themes/Visuals.xaml @@ -29,8 +29,10 @@ - + From 432076920638a65ead3ebb85778b2d775c980e37 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 6 Oct 2026 21:03:37 +0000 Subject: [PATCH 5/8] fix(ui): activatable charts draw their own keyboard outline BarChart, StackedBar and HeatmapStrip outline the bar, segment or cell the keyboard is on, so the element-wide system focus rectangle is turned off. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC --- src/Titano.Ui/Themes/Visuals.xaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/Titano.Ui/Themes/Visuals.xaml b/src/Titano.Ui/Themes/Visuals.xaml index fbd1aa86..0ca4266d 100644 --- a/src/Titano.Ui/Themes/Visuals.xaml +++ b/src/Titano.Ui/Themes/Visuals.xaml @@ -151,6 +151,19 @@ + + + + + + + From 7d9b0a800ffb32773f5626879d5393ba4a05aaa8 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 6 Oct 2026 21:03:37 +0000 Subject: [PATCH 6/8] test(ui): disabled lists, chart tones, activation, RTL bars, failure toasts, icon names - Visuals: a disabled list and the card grid keep their fill, a ListView keeps its column headers; chart labels are TextMuted and months without data the Stroke tone; charts show the hand and take the keyboard only with a handler; arrows, Home, Enter and Space choose and activate a bar; category bars start on the reading side in Arabic while months stay left to right. - Screens: every visible icon-only button or segment has a name and a tooltip; a failed archive action raises an error toast, a notice does not. - Uploader: an unexpected error raises an error toast. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC --- .../Uploader/UploaderScreenSmokeTests.cs | 6 + .../Visuals/VisualsSmokeTests.cs | 206 ++++++++++++++++++ .../Windows/ScreenSmokeTests.cs | 27 +++ 3 files changed, 239 insertions(+) diff --git a/tests/Titano.App.Tests/Uploader/UploaderScreenSmokeTests.cs b/tests/Titano.App.Tests/Uploader/UploaderScreenSmokeTests.cs index fd3c9230..19e25822 100644 --- a/tests/Titano.App.Tests/Uploader/UploaderScreenSmokeTests.cs +++ b/tests/Titano.App.Tests/Uploader/UploaderScreenSmokeTests.cs @@ -83,6 +83,12 @@ public sealed class UploaderScreenSmokeTests await screen.SettleAsync(); screen.AssertIconButtonsNamed("settings"); vm.IsSettingsOpen = false; + + // A failure interrupts the screen reader (assertive) instead of waiting its turn. + Toast? shown = null; + vm.PendingToasts.CollectionChanged += (_, e) => shown ??= e.NewItems?.OfType().FirstOrDefault(); + vm.ReportError(new InvalidOperationException("The queue file cannot be read")); + Assert.True(Assert.NotNull(shown).IsError, "an unexpected error is announced at once"); }); [Test] diff --git a/tests/Titano.App.Tests/Visuals/VisualsSmokeTests.cs b/tests/Titano.App.Tests/Visuals/VisualsSmokeTests.cs index 1f1ef2a9..1d45d857 100644 --- a/tests/Titano.App.Tests/Visuals/VisualsSmokeTests.cs +++ b/tests/Titano.App.Tests/Visuals/VisualsSmokeTests.cs @@ -1,10 +1,14 @@ using System.Collections.ObjectModel; using System.Diagnostics; +using System.Globalization; using System.Windows; +using System.Windows.Automation.Peers; using System.Windows.Controls; +using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Threading; +using Titano.Core.Localization; using Titano.Testing; using Titano.Ui.Controls; using Titano.Ui.Theming; @@ -127,6 +131,153 @@ public sealed class VisualsSmokeTests Assert.Equal(412, strip.CurrentIndex); }); + [Test] + public void ListsKeepTheirFillWhenDisabled() => WpfHost.Run(() => + { + var surface = ColorOf("Brush.Surface"); + foreach (var list in new[] { new ListBox(), new ListBox { Style = (Style)Application.Current.FindResource("ListBox.Cards") } }) + { + list.Background = (Brush)Application.Current.FindResource("Brush.Surface"); + list.ItemsSource = new[] { "Harbour sunset" }; + list.IsEnabled = false; + var bitmap = Render(list, 200, 100); + Assert.NotNull(VisualTreeHelper.GetChild(list, 0) as Border, "the theme's list frame"); + Assert.True(Near(PixelAt(bitmap, 100, 95), surface, 1), "a disabled list keeps its fill instead of the system's white"); + } + + // A list view keeps the system template, which carries the column headers. + var view = new ListView { ItemsSource = new[] { "Harbour sunset" }, View = new GridView { Columns = { new GridViewColumn { Header = "Title" } } } }; + Render(view, 200, 100); + Assert.NotNull(FindChild(view), "the column header row"); + }); + + [Test] + public void ChartLabelsAreMutedAndMonthsWithoutDataTakeTheStrokeTone() => WpfHost.Run(() => + { + foreach (var theme in new[] { AppTheme.Dark, AppTheme.Light }) + { + ThemeManager.Apply(theme); + var (muted, faint, stroke, card) = (ColorOf("Brush.TextMuted"), ColorOf("Brush.TextFaint"), ColorOf("Brush.Stroke"), ColorOf("Brush.Card")); + + // Zero values draw no bars: what remains is the labels. + var bars = Covered(Render(new BarChart { Items = [new ChartItem("Canon EOS R6", 0), new ChartItem("Nikon Z 8", 0)], ShowValues = false }, 300, 60)); + Assert.NotEmpty(bars); + Assert.True(bars.All(c => Near(c, muted)), $"bar labels are TextMuted in {theme}, not TextFaint ({faint})"); + + var months = new[] { "J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D" }; + var empty = new ChartRow("2027", Enumerable.Repeat(double.NaN, 12).ToArray()); + var heatmap = Covered(Render(new HeatmapStrip { Rows = [empty], ColumnLabels = months, ShowScale = false }, 400, 60)); + Assert.Contains(heatmap, c => Near(c, stroke)); + Assert.False(heatmap.Any(c => Near(c, card) && !Near(c, stroke)), $"months without data are not the card colour in {theme}"); + Assert.True(heatmap.All(c => Near(c, stroke) || Near(c, muted)), $"heatmap labels are TextMuted in {theme}"); + } + ThemeManager.Apply(AppTheme.Dark); + }); + + [Test] + public void ChartsTakeTheHandAndTheKeyboardOnlyWhileSomethingHandlesActivation() => WpfHost.Run(() => + { + var items = new[] { new ChartItem("2025", 2), new ChartItem("2026", 1) }; + var bars = new BarChart { Items = items }; + var stacked = new StackedBar { Items = items }; + var heatmap = new HeatmapStrip { Rows = [new ChartRow("2026", [1, 2, 3])], ColumnLabels = ["J", "F", "M"] }; + ChartItemEventHandler handler = (_, _) => { }; + var charts = new (DrawingElement Chart, Action Attach, Action Detach)[] + { + (bars, () => bars.ItemActivated += handler, () => bars.ItemActivated -= handler), + (stacked, () => stacked.ItemActivated += handler, () => stacked.ItemActivated -= handler), + (heatmap, () => heatmap.CellActivated += handler, () => heatmap.CellActivated -= handler), + }; + foreach (var (chart, attach, detach) in charts) + { + Render(chart, 300, 80); + var name = chart.GetType().Name; + Assert.False(ShowsHand(chart), $"{name}: no hand cursor while nothing handles a click"); + Assert.False(chart.Focusable, $"{name}: no tab stop while nothing handles Enter"); + attach(); + Assert.True(ShowsHand(chart), $"{name}: the hand over an item once a handler is attached"); + Assert.True(chart.Focusable, $"{name}: the keyboard reaches it once a handler is attached"); + detach(); + Assert.False(ShowsHand(chart), $"{name}: no hand once the handler is gone"); + Assert.False(chart.Focusable, $"{name}: no tab stop once the handler is gone"); + } + }); + + [Test] + public void TheKeyboardChoosesAndActivatesABar() => WpfHost.Run(() => + { + var bars = new BarChart { Items = [new ChartItem("2024", 3), new ChartItem("2025", 2), new ChartItem("2026", 1)] }; + var host = new Border { Child = bars }; + var window = new Window + { + Content = host, + Width = 320, + Height = 160, + WindowStyle = WindowStyle.None, + WindowStartupLocation = WindowStartupLocation.Manual, + Left = -20000, + Top = -20000, + ShowActivated = false, + ShowInTaskbar = false, + }; + window.Show(); + try + { + window.UpdateLayout(); + var bubbled = new List(); + host.AddHandler(BarChart.ItemActivatedEvent, new ChartItemEventHandler((_, e) => bubbled.Add(e.Row))); + Press(bars, Key.Enter); + Assert.Empty(bubbled, "Enter does nothing while no handler is attached to the chart"); + + var rows = new List(); + bars.ItemActivated += (_, e) => rows.Add(e.Row); + Press(bars, Key.Down); + Press(bars, Key.Down); + Press(bars, Key.Down); + Press(bars, Key.Enter); + Press(bars, Key.Home); + Press(bars, Key.Space); + Assert.SequenceEqual([2, 0], rows, "Down stops at the last bar; Home goes back to the first"); + Assert.Contains("2024", UIElementAutomationPeer.CreatePeerForElement(bars).GetItemStatus()); + } + finally + { + window.Close(); + } + }); + + [Test] + public void CategoryBarsStartOnTheReadingSideWhileMonthsKeepTheirOrder() => WpfHost.Run(() => + { + var accent = ColorOf("Brush.Accent"); + var culture = Loc.Culture; + try + { + foreach (var (language, rightToLeft) in new[] { ("en", false), ("ar", true) }) + { + Loc.SetCulture(CultureInfo.GetCultureInfo(language)); + // Rows 22 px apart: the short second bar (y 26–40) grows from the labels' side. + var bars = Render(new BarChart { Items = [new ChartItem("A", 4), new ChartItem("B", 1)], ShowValues = false }, 300, 44); + var (left, right) = Extent(bars, accent, 33); + Assert.True(rightToLeft ? left > 150 : right < 150 && right > 0, $"{language}: the short bar spans {left}–{right}"); + + // The largest segment comes first, on the reading side. + var stacked = Render(new StackedBar { Items = [new ChartItem("A", 3), new ChartItem("B", 1)], ShowLegend = false }, 300, 12); + (left, right) = Extent(stacked, accent, 6); + Assert.True(rightToLeft ? left > 60 && right >= 296 : left is >= 0 and <= 3 && right < 240, $"{language}: the first segment spans {left}–{right}"); + + // The full month (January) stays on the left: months are a time axis. + var months = Render(new HeatmapStrip { Rows = [new ChartRow("2026", [5, 0, 0, 0])], ColumnLabels = ["1", "2", "3", "4"], ShowScale = false }, 300, 60); + (left, right) = Extent(months, accent, 31); + Assert.True(left > 0 && right < 150, $"{language}: January spans {left}–{right}"); + } + } + finally + { + Loc.SetCulture(culture); + } + }); + private static IEnumerable<(string Name, FrameworkElement Element, double Width, double Height)> Samples() { var n = 120_000; @@ -235,6 +386,61 @@ public sealed class VisualsSmokeTests return bitmap; } + private static Color ColorOf(string key) => ((SolidColorBrush)Application.Current.FindResource(key)).Color; + + private static Color PixelAt(BitmapSource bitmap, int x, int y) + { + var pixel = new byte[4]; + bitmap.CopyPixels(new Int32Rect(x, y, 1, 1), pixel, 4, 0); + return Color.FromArgb(pixel[3], pixel[2], pixel[1], pixel[0]); + } + + /// The colours drawn at least two-thirds opaque, un-premultiplied: text edges keep the colour of their brush. + private static List Covered(BitmapSource bitmap) + { + var stride = bitmap.PixelWidth * 4; + var pixels = new byte[stride * bitmap.PixelHeight]; + bitmap.CopyPixels(pixels, stride, 0); + var colours = new List(); + for (var i = 0; i < pixels.Length; i += 4) + { + var a = pixels[i + 3]; + if (a < 170) continue; + colours.Add(Color.FromRgb((byte)(pixels[i + 2] * 255 / a), (byte)(pixels[i + 1] * 255 / a), (byte)(pixels[i] * 255 / a))); + } + return colours; + } + + private static bool Near(Color a, Color b, int tolerance = 12) => + Math.Abs(a.R - b.R) <= tolerance && Math.Abs(a.G - b.G) <= tolerance && Math.Abs(a.B - b.B) <= tolerance; + + /// First and last x of row drawn in at full opacity; (−1, −1) when none. + private static (int Left, int Right) Extent(BitmapSource bitmap, Color colour, int y) + { + var (left, right) = (-1, -1); + for (var x = 0; x < bitmap.PixelWidth; x++) + { + var pixel = PixelAt(bitmap, x, y); + if (pixel.A != 255 || !Near(pixel, colour, 2)) continue; + if (left < 0) left = x; + right = x; + } + return (left, right); + } + + private static bool ShowsHand(DrawingElement chart) + { + for (var y = 0.0; y < chart.ActualHeight; y += 2) + { + for (var x = 0.0; x < chart.ActualWidth; x += 2) + if (chart.CursorAt(new Point(x, y)) == Cursors.Hand) return true; + } + return false; + } + + private static void Press(UIElement target, Key key) => + target.RaiseEvent(new KeyEventArgs(Keyboard.PrimaryDevice, PresentationSource.FromVisual(target)!, 0, key) { RoutedEvent = Keyboard.KeyDownEvent }); + private static RenderTargetBitmap Render(FrameworkElement element, double width, double height) { var host = Host(element); diff --git a/tests/Titano.App.Tests/Windows/ScreenSmokeTests.cs b/tests/Titano.App.Tests/Windows/ScreenSmokeTests.cs index 49784149..4706a418 100644 --- a/tests/Titano.App.Tests/Windows/ScreenSmokeTests.cs +++ b/tests/Titano.App.Tests/Windows/ScreenSmokeTests.cs @@ -1,8 +1,10 @@ +using System.IO; using System.Windows; using System.Windows.Automation; using System.Windows.Automation.Peers; using System.Windows.Automation.Provider; using System.Windows.Controls; +using System.Windows.Controls.Primitives; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; @@ -197,6 +199,12 @@ public sealed class ScreenSmokeTests await app.ExpectAsync("library-toast-done"); Assert.True(ran, "the action ran"); Assert.Equal(0, host.Toasts.Count, "the toast closes once its action has run"); + + // A failure interrupts the screen reader (assertive); a notice waits its turn. + Assert.False(await ArchiveActions.TryAsync(app.Shell, _ => throw new IOException("The archive drive is gone"))); + Assert.True(host.Toasts.Single().IsError, "a failed archive action is announced at once"); + app.Shell.Notify("Harbour sunset rendered"); + Assert.False(host.Toasts[^1].IsError, "a notice is announced in turn"); }); [Test] @@ -308,10 +316,22 @@ public sealed class ScreenSmokeTests luminance[theme] = MeanLuminance(bitmap); Assert.Greater(Distinct(bitmap), 8, $"{screen} drew almost nothing in {theme}"); } + AssertIconOnlyControlsNamed(screen); Assert.Less(luminance[AppTheme.Dark], luminance[AppTheme.Light], $"{screen}: the light theme is not lighter than the dark one"); ThemeManager.Apply(AppTheme.Dark); } + /// DESIGN §4: every visible icon-only button or segment has an accessible name and a tooltip. + public void AssertIconOnlyControlsNamed(string screen) + { + foreach (var control in FindAll().Where(c => c.IsVisible && IsIconOnly(c))) + { + var name = AutomationProperties.GetName(control); + Assert.False(string.IsNullOrWhiteSpace(name), $"{screen}: an icon-only {control.GetType().Name} bound to {(control as ButtonBase)?.Command} has no name"); + Assert.True(control.ToolTip is not null, $"{screen}: '{name}' has no tooltip"); + } + } + public List FindAll() where T : DependencyObject { @@ -351,6 +371,13 @@ public sealed class ScreenSmokeTests return bitmap; } + private static bool IsIconOnly(Control control) => control switch + { + SegmentedItem segment => segment.Content is null && segment.Glyph is not null, + ButtonBase button => button.Content is null && ButtonIcon.GetGlyph(button) is not null, + _ => false, + }; + private static byte[] Pixels(BitmapSource bitmap) { var pixels = new byte[bitmap.PixelWidth * bitmap.PixelHeight * 4]; From d3af89fc270ba8eb9feb5eb9e01a4797012ebc89 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 6 Oct 2026 21:05:17 +0000 Subject: [PATCH 7/8] test(editor): run the right-to-left optimise line test in a serial class It switches the UI language, which a class running in parallel with others must not do. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC --- .../Editor/EditorSmokeTests.cs | 22 +++++++++++++++++++ .../Editor/EditorTextTests.cs | 19 ---------------- 2 files changed, 22 insertions(+), 19 deletions(-) diff --git a/tests/Titano.App.Tests/Editor/EditorSmokeTests.cs b/tests/Titano.App.Tests/Editor/EditorSmokeTests.cs index 613014b6..137b5ef2 100644 --- a/tests/Titano.App.Tests/Editor/EditorSmokeTests.cs +++ b/tests/Titano.App.Tests/Editor/EditorSmokeTests.cs @@ -1,3 +1,4 @@ +using System.Globalization; using System.Windows; using System.Windows.Controls; using System.Windows.Media; @@ -9,6 +10,7 @@ using Titano.App.Infrastructure; using Titano.App.Sections; using Titano.App.Shell; using Titano.App.Tests.Windows; +using Titano.Core.Advice; using Titano.Core.Export; using Titano.Core.Localization; using Titano.Core.Model; @@ -32,6 +34,26 @@ public sealed class EditorSmokeTests { private static readonly AppTheme[] Themes = [AppTheme.Dark, AppTheme.Light]; + /// Here rather than with the other texts: it switches the UI language, which only a serial class may do. + [Test] + public void AnOptimiseLinePointsFromTheOldValueToTheNewOneInEitherReadingDirection() + { + var change = new SettingChange(AdvisorParameters.DeflickerWindow, 21, 41, "reason", []); + try + { + Loc.SetCulture(CultureInfo.GetCultureInfo("en")); + Assert.Equal("Deflicker window: 21 frames → 41 frames", EditorText.Change(change)); + Loc.SetCulture(CultureInfo.GetCultureInfo("ar")); + Assert.Equal(Loc.L("Editor.Optimise.ChangeRtl", Loc.L("Editor.Exposure.Window"), Loc.Plural("Editor.Value.Frames", 21), Loc.Plural("Editor.Value.Frames", 41)), + EditorText.Change(change), "Arabic reads the old value first, from the right"); + Assert.Contains("←", EditorText.Change(change)); + } + finally + { + Loc.SetCulture(CultureInfo.GetCultureInfo("en")); + } + } + [Test] public Task EverySectionOfTheEditorRendersInBothThemes() => ScreenHost.RunAsync(async () => { diff --git a/tests/Titano.App.Tests/Editor/EditorTextTests.cs b/tests/Titano.App.Tests/Editor/EditorTextTests.cs index 166be194..cf5df466 100644 --- a/tests/Titano.App.Tests/Editor/EditorTextTests.cs +++ b/tests/Titano.App.Tests/Editor/EditorTextTests.cs @@ -1,4 +1,3 @@ -using System.Globalization; using Titano.App.Editor; using Titano.Core.Advice; using Titano.Core.Imaging; @@ -37,24 +36,6 @@ public sealed class EditorTextTests Assert.Equal("3 frames", EditorText.Value(AdvisorParameters.Excluded, new[] { 1, 2, 3 })); } - [Test] - public void AnOptimiseLinePointsFromTheOldValueToTheNewOneInEitherReadingDirection() - { - var change = new SettingChange(AdvisorParameters.DeflickerWindow, 21, 41, "reason", []); - Assert.Equal("Deflicker window: 21 frames → 41 frames", EditorText.Change(change)); - try - { - Loc.SetCulture(CultureInfo.GetCultureInfo("ar")); - Assert.Equal(Loc.L("Editor.Optimise.ChangeRtl", Loc.L("Editor.Exposure.Window"), Loc.Plural("Editor.Value.Frames", 21), Loc.Plural("Editor.Value.Frames", 41)), - EditorText.Change(change), "Arabic reads the old value first, from the right"); - Assert.Contains("←", EditorText.Change(change)); - } - finally - { - Loc.SetCulture(CultureInfo.GetCultureInfo("en")); - } - } - [Test] public void CropMarginsKeepAtLeastATenthOfTheFrame() { From 1f0adc76bb339f110073de8de33810865b3e35ca Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 6 Oct 2026 21:10:45 +0000 Subject: [PATCH 8/8] fix(app): short accessible names for the rail and archive-year toggles Both icon-only buttons used their tooltip sentence as their name. They now read "Collapse navigation" / "Expand navigation" (Shell.Nav.Collapse, Shell.Nav.Expand) and "Hide year" / "Show year" (Archive.Tree.Collapse, Archive.Tree.Expand); the sentences stay their tooltips. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC --- i18n/en/Archive.resx | 2 ++ i18n/en/Shell.resx | 2 ++ i18n/it/Archive.it.resx | 2 ++ i18n/it/Shell.it.resx | 2 ++ src/Titano.App/Archive/ArchiveRowViewModels.cs | 3 +++ src/Titano.App/Sections/ArchiveView.xaml | 2 +- src/Titano.App/Shell/MainWindow.xaml | 2 +- src/Titano.App/Shell/ShellViewModel.cs | 4 ++++ tests/Titano.App.Tests/Archive/ArchiveScreenSmokeTests.cs | 2 ++ tests/Titano.App.Tests/Windows/ScreenSmokeTests.cs | 3 +++ 10 files changed, 22 insertions(+), 2 deletions(-) diff --git a/i18n/en/Archive.resx b/i18n/en/Archive.resx index e4b67ce1..893f89e8 100644 --- a/i18n/en/Archive.resx +++ b/i18n/en/Archive.resx @@ -191,6 +191,8 @@ Rebuild index… Scan Verify + Hide year + Show year Archive tree Undated Health diff --git a/i18n/en/Shell.resx b/i18n/en/Shell.resx index af382003..47ad54db 100644 --- a/i18n/en/Shell.resx +++ b/i18n/en/Shell.resx @@ -12,6 +12,8 @@ Ready · {0} jobs queued{0} count About Archive + Collapse navigation + Expand navigation Import Jobs Library diff --git a/i18n/it/Archive.it.resx b/i18n/it/Archive.it.resx index 9e0854be..487216a7 100644 --- a/i18n/it/Archive.it.resx +++ b/i18n/it/Archive.it.resx @@ -185,6 +185,8 @@ Ricostruisci indice… Scansiona Verifica + Nascondi anno + Mostra anno Albero dell'archivio Senza data Stato diff --git a/i18n/it/Shell.it.resx b/i18n/it/Shell.it.resx index cea2f212..4e62588a 100644 --- a/i18n/it/Shell.it.resx +++ b/i18n/it/Shell.it.resx @@ -11,6 +11,8 @@ Pronto · {0} attività in coda Informazioni Archivio + Riduci navigazione + Espandi navigazione Importa Attività Libreria diff --git a/src/Titano.App/Archive/ArchiveRowViewModels.cs b/src/Titano.App/Archive/ArchiveRowViewModels.cs index 639e7e51..0656c581 100644 --- a/src/Titano.App/Archive/ArchiveRowViewModels.cs +++ b/src/Titano.App/Archive/ArchiveRowViewModels.cs @@ -24,6 +24,9 @@ public sealed class ArchiveTreeRowViewModel(ArchiveTreeNode node, ArchiveAvailab public string ToggleToolTip => Loc.L(Node.IsExpanded ? "Tooltips.Archive.Collapse" : "Tooltips.Archive.Expand"); + /// The expander's accessible name: two words, the sentence is its tooltip. + public string ToggleName => Loc.L(Node.IsExpanded ? "Archive.Tree.Collapse" : "Archive.Tree.Expand"); + /// /// The full title (the tree trims it) and its figures; a year also says how the keyboard opens and closes it, with /// the arrow keys swapped in a right-to-left layout. diff --git a/src/Titano.App/Sections/ArchiveView.xaml b/src/Titano.App/Sections/ArchiveView.xaml index 097be791..15c67227 100644 --- a/src/Titano.App/Sections/ArchiveView.xaml +++ b/src/Titano.App/Sections/ArchiveView.xaml @@ -305,7 +305,7 @@