fix(uploader): visible password error, no sign-in from the settings panel, installer screenshots in CI

- A refused password draws the Error border over the password box, so it stays visible while the box has
  focus (the shared template paints its focus border over the box's own).
- Enter in the settings panel no longer triggers the sign-in form's default button underneath.
- Queue rows the list has not realized are named by their file name; the retry arrow is not mirrored.
- CI's Screenshots step also runs Titano.Setup.exe --capture.
- Smoke test: the password box shows no error before use; Sign in is the default only outside the panel.

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-05 22:07:47 +00:00
1 parent e5ecc5080b
commit 833a638c03
4 files changed
+45 -18

No files matched your search

+30 -17
View File
@@ -188,20 +188,15 @@
ToolTip="{l:Loc Tooltips.Uploader.User}" AutomationProperties.Name="{l:Loc Uploader.Connect.User}" />
<TextBlock Grid.Row="3" Text="{l:Loc Uploader.Connect.Password}" Style="{StaticResource Text.Label}" Margin="0,12,12,0" />
<!-- The password box has no binding to validate: a wrong password colours its border from the view model. -->
<PasswordBox x:Name="Password" Grid.Row="3" Grid.Column="1" Margin="0,12,0,0" PasswordChanged="OnPasswordChanged"
ToolTip="{Binding PasswordToolTip}" AutomationProperties.Name="{l:Loc Uploader.Connect.Password}">
<PasswordBox.Style>
<Style TargetType="PasswordBox" BasedOn="{StaticResource {x:Type PasswordBox}}">
<Setter Property="BorderBrush" Value="{DynamicResource Brush.Error}" />
<Style.Triggers>
<DataTrigger Binding="{Binding PasswordError}" Value="{x:Null}">
<Setter Property="BorderBrush" Value="{DynamicResource Brush.Stroke}" />
</DataTrigger>
</Style.Triggers>
</Style>
</PasswordBox.Style>
</PasswordBox>
ToolTip="{Binding PasswordToolTip}" AutomationProperties.Name="{l:Loc Uploader.Connect.Password}" />
<!--
A wrong password: the Error border (DESIGN §4), drawn over the box because the password box has no binding
to validate and its template paints the focus border over its own; the message is the tooltip.
-->
<Border x:Name="PasswordErrorRing" Grid.Row="3" Grid.Column="1" Margin="0,12,0,0" BorderBrush="{DynamicResource Brush.Error}" BorderThickness="1"
CornerRadius="{StaticResource Radius.Control}" SnapsToDevicePixels="True" IsHitTestVisible="False"
Visibility="{Binding PasswordError, Converter={x:Static ui:NullToCollapsedConverter.Instance}}" />
<Border Grid.Row="4" Grid.Column="1" Margin="0,12,0,0" Padding="10,6,6,6" CornerRadius="{StaticResource Radius.Control}" Background="{DynamicResource Brush.ErrorSubtle}"
Visibility="{Binding ErrorText, Converter={x:Static ui:NullToCollapsedConverter.Instance}}">
@@ -213,9 +208,23 @@
</DockPanel>
</Border>
<Button Grid.Row="5" Grid.Column="1" Margin="0,20,0,0" HorizontalAlignment="Left" Style="{StaticResource Button.Primary}" MinWidth="120"
IsDefault="{Binding IsVisible, RelativeSource={RelativeSource Self}}"
Content="{l:Loc Uploader.Connect.SignIn}" Command="{Binding SignInCommand}" ToolTip="{l:Loc Tooltips.Uploader.SignIn}" />
<!-- Enter signs in while the form is on screen, but not from the settings panel drawn over it. -->
<Button Grid.Row="5" Grid.Column="1" Margin="0,20,0,0" HorizontalAlignment="Left" MinWidth="120"
Content="{l:Loc Uploader.Connect.SignIn}" Command="{Binding SignInCommand}" ToolTip="{l:Loc Tooltips.Uploader.SignIn}">
<Button.Style>
<Style TargetType="Button" BasedOn="{StaticResource Button.Primary}">
<Setter Property="IsDefault" Value="True" />
<Style.Triggers>
<Trigger Property="IsVisible" Value="False">
<Setter Property="IsDefault" Value="False" />
</Trigger>
<DataTrigger Binding="{Binding DataContext.IsSettingsOpen, RelativeSource={RelativeSource AncestorType=Window}}" Value="True">
<Setter Property="IsDefault" Value="False" />
</DataTrigger>
</Style.Triggers>
</Style>
</Button.Style>
</Button>
</Grid>
</StackPanel>
</Grid>
@@ -413,8 +422,12 @@
</MultiBinding>
</ui:StatusGlyph.ToolTip>
</ui:StatusGlyph>
<!-- Mouse shortcut; keyboard users press Enter on the row, so the button is not a tab stop of its own. -->
<!--
Mouse shortcut; keyboard users press Enter on the row, so the button is not a tab stop of its own.
The retry arrow turns clockwise, like a clock, in every language: it is not mirrored.
-->
<Button Grid.Column="3" Style="{StaticResource Button.IconSubtle}" Width="26" Height="26" MinWidth="26" Margin="4,0,0,0" IsTabStop="False"
FlowDirection="LeftToRight"
ui:ButtonIcon.Glyph="{StaticResource Icon.Retry}" CommandParameter="{Binding}"
Command="{Binding DataContext.RetryItemCommand, RelativeSource={RelativeSource AncestorType=ListBox}}"
Visibility="{Binding State, Converter={x:Static s:FailedToVisibleConverter.Instance}}"