From 577774ad6a6e1facb5fa4e323985e8a9064484e9 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 6 Oct 2026 08:10:36 +0000 Subject: [PATCH] fix(app): the job bar and the connection state are live regions; error toasts interrupt - The job bar is a status bar for screen readers; it announces which job starts and when the queue empties (ShellViewModel.JobAnnouncement), never its progress ticks. - The status strip's connection text announces a change of server state. - Toast.IsError: error notices are announced at once; other notices queue. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC --- src/Titano.App/Sections/JobsViewModel.cs | 2 +- src/Titano.App/Shell/MainWindow.xaml | 12 ++++++++---- src/Titano.App/Shell/ShellViewModel.cs | 18 ++++++++++++++++-- src/Titano.Ui/Controls/JobBar.cs | 23 ++++++++++++++++++++++- src/Titano.Ui/Controls/Toasts.cs | 10 +++++++++- 5 files changed, 56 insertions(+), 9 deletions(-) diff --git a/src/Titano.App/Sections/JobsViewModel.cs b/src/Titano.App/Sections/JobsViewModel.cs index 3a7ab09a..393f156f 100644 --- a/src/Titano.App/Sections/JobsViewModel.cs +++ b/src/Titano.App/Sections/JobsViewModel.cs @@ -262,7 +262,7 @@ public sealed class JobsViewModel : SectionViewModel private void UpdateShell() { if (_model.Current is { } current) - Shell.SetJob(JobText.Bar(current), current.Fraction ?? 0, indeterminate: current.Fraction is null); + Shell.SetJob(JobText.Bar(current), current.Fraction ?? 0, indeterminate: current.Fraction is null, name: JobText.Name(current.Job)); else Shell.SetJob(null, 0); // The rail badge, the status strip and the Running chip count the same jobs: running or paused (Jobs.html). diff --git a/src/Titano.App/Shell/MainWindow.xaml b/src/Titano.App/Shell/MainWindow.xaml index a27115d2..d0fc17d4 100644 --- a/src/Titano.App/Shell/MainWindow.xaml +++ b/src/Titano.App/Shell/MainWindow.xaml @@ -4,6 +4,7 @@ xmlns:ui="clr-namespace:Titano.Ui.Controls;assembly=Titano.Ui" xmlns:l="clr-namespace:Titano.Ui.Localization;assembly=Titano.Ui" xmlns:shell="clr-namespace:Titano.App.Shell" + xmlns:infra="clr-namespace:Titano.App.Infrastructure" xmlns:s="clr-namespace:Titano.App.Sections" Title="{Binding WindowTitle}" Width="1440" Height="900" MinWidth="1200" MinHeight="760" @@ -63,10 +64,12 @@ - -