From 1f0adc76bb339f110073de8de33810865b3e35ca Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 6 Oct 2026 21:10:45 +0000 Subject: [PATCH] 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 @@