fix(app): shell follows RTL from startup; welcome keeps the keyboard; accessible dialogs and errors

- The rail grows with the longest label (128-200 px); the first-run dialog disables the shell behind it
  and focuses its chosen option; toasts stay above it; F6 reaches the newest toast.
- Confirm and login dialogs are named by their heading, focus the safe button, announce sign-in errors.
- Error toasts say what happened only for catalog sentences (ErrorText); other details stay in the log.
- Window title, queued-jobs text (plural) and the pause button name come from resources.
- Logs, paths and templates in the client styles stay left to right.

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:22:42 +00:00
1 parent 3f8464aabc
commit a92120fb0d
12 files changed
+150 -53

No files matched your search

+27 -9
View File
@@ -14,8 +14,23 @@
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<!-- Navigation rail: full names, collapsible to icons (BRIEF §12.1). -->
<Border x:Name="Rail" Background="{DynamicResource Brush.Chrome}" Width="128" ui:NavRail.IsCollapsed="{Binding IsRailCollapsed}">
<!-- Navigation rail: full names, collapsible to icons (BRIEF §12.1). Expanded it is at least 128 px and grows with
the longest label of the language (up to 200 px); collapsed it is 48 px of icons. While the first-run dialog is
open the shell behind it takes no input. -->
<Border x:Name="Rail" Background="{DynamicResource Brush.Chrome}" ui:NavRail.IsCollapsed="{Binding IsRailCollapsed}"
IsEnabled="{Binding IsShellEnabled}">
<Border.Style>
<Style TargetType="Border">
<Setter Property="MinWidth" Value="128" />
<Setter Property="MaxWidth" Value="200" />
<Style.Triggers>
<DataTrigger Binding="{Binding IsRailCollapsed}" Value="True">
<Setter Property="MinWidth" Value="0" />
<Setter Property="Width" Value="48" />
</DataTrigger>
</Style.Triggers>
</Style>
</Border.Style>
<DockPanel Margin="8,8,8,8" LastChildFill="False">
<Button DockPanel.Dock="Top" Style="{StaticResource Button.IconSubtle}" HorizontalAlignment="Left" Margin="0,0,0,6"
ui:ButtonIcon.Glyph="{StaticResource Icon.Menu}" Command="{Binding ToggleRailCommand}"
@@ -41,7 +56,7 @@
</DockPanel>
</Border>
<Grid Grid.Column="1">
<Grid Grid.Column="1" IsEnabled="{Binding IsShellEnabled}">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
@@ -50,7 +65,7 @@
<!-- Job bar (DESIGN §4): current job, progress, time left, pause; "Ready" when idle, hidden when idle in the editor. -->
<ui:JobBar Text="{Binding JobText}" Progress="{Binding JobProgress}" IsActive="{Binding IsJobActive}" IsIndeterminate="{Binding IsJobIndeterminate}"
StopCommand="{Binding StopJobCommand}" StopToolTip="{l:Loc Tooltips.Shell.PauseJob}" ActionGlyph="{StaticResource Icon.Pause}"
StopCommand="{Binding StopJobCommand}" StopToolTip="{l:Loc Tooltips.Shell.PauseJob}" StopName="{l:Loc Shell.JobBar.Pause}" ActionGlyph="{StaticResource Icon.Pause}"
Visibility="{Binding IsJobBarVisible, Converter={StaticResource BoolToVisibility}}" />
<ContentControl Grid.Row="1" Content="{Binding Current}" Focusable="False" />
@@ -65,14 +80,17 @@
<TextBlock Text="{Binding JobsText}" VerticalAlignment="Center" />
</StackPanel>
</Border>
<ui:ToastHost x:Name="Toasts" Grid.Row="0" Grid.RowSpan="3" />
</Grid>
<!-- First run (Welcome.html): the shell dimmed behind one dialog. -->
<Grid Grid.ColumnSpan="2" Visibility="{Binding IsWelcomeOpen, Converter={StaticResource BoolToVisibility}}">
<!-- First run (Welcome.html): the shell dimmed behind one dialog that keeps the keyboard. -->
<Grid x:Name="WelcomeOverlay" Grid.ColumnSpan="2" Visibility="{Binding IsWelcomeOpen, Converter={StaticResource BoolToVisibility}}"
KeyboardNavigation.TabNavigation="Cycle" KeyboardNavigation.ControlTabNavigation="Cycle" KeyboardNavigation.DirectionalNavigation="Contained">
<Border Background="{DynamicResource Brush.Scrim}" />
<s:WelcomeView DataContext="{Binding Welcome}" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="0,114,0,0" />
<s:WelcomeView DataContext="{Binding Welcome}" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="0,114,0,0"
AutomationProperties.Name="{l:Loc Shell.Welcome.Title}" />
</Grid>
<!-- Above the first-run dialog too, so a card inserted meanwhile can still be acted on (Welcome.html). -->
<ui:ToastHost x:Name="Toasts" Grid.ColumnSpan="2" />
</Grid>
</ui:TitanoWindow>