feat(setup): --capture renders every setup stage, uninstall plan and Arabic layout
The installer had no screenshot mode, so CI could not review its stages. Titano.Setup.exe --capture <dir> builds a small sample installer in a temporary folder and renders install options, programs running, installing, installed, failed and uninstall with the "Remove my data" plan, in the dark and light themes and in Arabic (mirrored). Nothing is installed, removed or registered. Also: uploader smoke tests (names, focusable rows, no premature errors, right-to-left islands), and watch chips cap the path itself because the button template measures content without a width limit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
6 files changed
+415
-6
No files matched your search
@@ -184,7 +184,7 @@
|
||||
</ItemsControl>
|
||||
|
||||
<TextBlock Grid.Row="2" Text="{l:Loc Uploader.Connect.User}" Style="{StaticResource Text.Label}" Margin="0,12,12,0" />
|
||||
<TextBox Grid.Row="2" Grid.Column="1" Margin="0,12,0,0" Text="{Binding Username, UpdateSourceTrigger=PropertyChanged}" ui:Field.Glyph="{StaticResource Icon.User}"
|
||||
<TextBox x:Name="UserBox" Grid.Row="2" Grid.Column="1" Margin="0,12,0,0" Text="{Binding Username, UpdateSourceTrigger=PropertyChanged}" ui:Field.Glyph="{StaticResource Icon.User}"
|
||||
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" />
|
||||
@@ -353,7 +353,7 @@
|
||||
</ItemsControl.ItemsPanel>
|
||||
<ItemsControl.ItemTemplate>
|
||||
<DataTemplate DataType="{x:Type s:WatchFolderViewModel}">
|
||||
<Button Style="{StaticResource Button.Chip}" MaxWidth="260" Margin="0,0,10,4" Click="OnWatchChipClick" ToolTip="{Binding ToolTip}"
|
||||
<Button Style="{StaticResource Button.Chip}" Margin="0,0,10,4" Click="OnWatchChipClick" ToolTip="{Binding ToolTip}"
|
||||
AutomationProperties.Name="{Binding Text}">
|
||||
<Button.ContextMenu>
|
||||
<ContextMenu ItemsSource="{Binding MenuOptions}" ItemContainerStyle="{StaticResource WatchMenuItem}" />
|
||||
@@ -363,7 +363,9 @@
|
||||
Fill="{DynamicResource Brush.TextFaint}" />
|
||||
<TextBlock DockPanel.Dock="Right" Text="{Binding IntervalText}" VerticalAlignment="Center" />
|
||||
<TextBlock DockPanel.Dock="Right" Text="·" Foreground="{DynamicResource Brush.TextFaint}" Margin="6,0" VerticalAlignment="Center" />
|
||||
<TextBlock Text="{Binding Path}" FlowDirection="LeftToRight" HorizontalAlignment="Left" TextTrimming="CharacterEllipsis" VerticalAlignment="Center" />
|
||||
<!-- The button template lays content out without a width limit, so the path carries its own. -->
|
||||
<TextBlock Text="{Binding Path}" MaxWidth="180" FlowDirection="LeftToRight" HorizontalAlignment="Left" TextTrimming="CharacterEllipsis"
|
||||
VerticalAlignment="Center" />
|
||||
</DockPanel>
|
||||
</Button>
|
||||
<DataTemplate.Triggers>
|
||||
|
||||
@@ -147,8 +147,9 @@ public sealed partial class MainWindow : TitanoWindow
|
||||
switch (e.PropertyName)
|
||||
{
|
||||
case nameof(MainViewModel.CurrentItem) when _vm.CurrentItem is { } item && !ItemList.IsKeyboardFocusWithin:
|
||||
// Follow the upload unless the user is reading the list with the keyboard.
|
||||
ScrollNearTop(item);
|
||||
// Follow the upload unless the user is reading the list with the keyboard; a list that has just
|
||||
// appeared has its scroll viewer once it is laid out.
|
||||
Dispatcher.BeginInvoke(DispatcherPriority.Loaded, () => ScrollNearTop(item));
|
||||
break;
|
||||
// Raised with every session change; only a real switch between the form and the queue moves the keyboard.
|
||||
case nameof(MainViewModel.IsConnectVisible) when _vm.IsConnectVisible != _connectShown:
|
||||
@@ -188,7 +189,8 @@ public sealed partial class MainWindow : TitanoWindow
|
||||
private void FocusStart()
|
||||
{
|
||||
if (!_vm.IsConnectVisible) FocusLater(BrowseButton);
|
||||
else FocusLater(_vm.Connect.Address.Length == 0 || _vm.Connect.Username.Length == 0 ? AddressBox : Password);
|
||||
else if (_vm.Connect.Address.Length == 0) FocusLater(AddressBox);
|
||||
else FocusLater(_vm.Connect.Username.Length == 0 ? UserBox : Password);
|
||||
}
|
||||
|
||||
/// <summary>Focuses <paramref name="target"/> once a visibility change has been laid out; text is selected so typing replaces it.</summary>
|
||||
|
||||
Reference in new issue
Block a user