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 @@
+ ToolTip="{Binding RailToggleToolTip}" AutomationProperties.Name="{Binding RailToggleName}" />
diff --git a/src/Titano.App/Shell/ShellViewModel.cs b/src/Titano.App/Shell/ShellViewModel.cs
index e53faa1a..9e9df006 100644
--- a/src/Titano.App/Shell/ShellViewModel.cs
+++ b/src/Titano.App/Shell/ShellViewModel.cs
@@ -121,11 +121,15 @@ public sealed class ShellViewModel : LocalizedViewModel
if (!Set(ref _isRailCollapsed, value)) return;
_settings.RailCollapsed = value;
OnPropertyChanged(nameof(RailToggleToolTip));
+ OnPropertyChanged(nameof(RailToggleName));
}
}
public string RailToggleToolTip => Loc.L(IsRailCollapsed ? "Tooltips.Shell.ExpandRail" : "Tooltips.Shell.CollapseRail");
+ /// The rail button's accessible name: two words, the sentence is its tooltip.
+ public string RailToggleName => Loc.L(IsRailCollapsed ? "Shell.Nav.Expand" : "Shell.Nav.Collapse");
+
/// The sequence the editor opens (set by the Library and the Jobs screen).
public Guid? CurrentSequenceId
{
diff --git a/tests/Titano.App.Tests/Archive/ArchiveScreenSmokeTests.cs b/tests/Titano.App.Tests/Archive/ArchiveScreenSmokeTests.cs
index a9428ce6..30829764 100644
--- a/tests/Titano.App.Tests/Archive/ArchiveScreenSmokeTests.cs
+++ b/tests/Titano.App.Tests/Archive/ArchiveScreenSmokeTests.cs
@@ -55,6 +55,8 @@ public sealed class ArchiveScreenSmokeTests
AssertEveryButtonIsNamed(app);
Assert.Contains(archive.SetText, AutomationProperties.GetName(SetButton(app)));
foreach (var row in TreeItems(app)) Assert.NotNull(row.FocusVisualStyle, "a tree row shows keyboard focus");
+ Assert.Equal(Loc.L("Archive.Tree.Collapse"), AutomationProperties.GetName(ButtonFor(app, archive.TreeRows[1].ToggleCommand)),
+ "the open year's expander has a short name; the sentence is its tooltip");
var sequence = archive.TreeRows.First(r => r.Node.Kind == TreeNodeKind.Sequence);
Assert.Contains(sequence.Title, sequence.RowToolTip);
diff --git a/tests/Titano.App.Tests/Windows/ScreenSmokeTests.cs b/tests/Titano.App.Tests/Windows/ScreenSmokeTests.cs
index 4706a418..06d376f6 100644
--- a/tests/Titano.App.Tests/Windows/ScreenSmokeTests.cs
+++ b/tests/Titano.App.Tests/Windows/ScreenSmokeTests.cs
@@ -218,6 +218,9 @@ public sealed class ScreenSmokeTests
Assert.Equal(Loc.L("Tooltips.Window.Minimize"), AutomationProperties.GetName(captions.Single(b => b.Command == SystemCommands.MinimizeWindowCommand)));
Assert.Equal(Loc.L("Tooltips.Window.Maximize"), AutomationProperties.GetName(captions.Single(b => b.Command == SystemCommands.MaximizeWindowCommand)));
Assert.Equal(Loc.L("Tooltips.Window.Close"), AutomationProperties.GetName(captions.Single(b => b.Command == SystemCommands.CloseWindowCommand)));
+ var railToggle = Descendants