fix(copies): close the sixth verification round of owner review 6

A merge that finds the other changed drops its journal so the retry plans
again. Unlink and Keep apart name the local side and leave a link that now
joins another sequence alone; Link only and the Integrate job refuse to
touch a link or a pair another integration holds. A sweep of 404s asks the
server once. To trash... trashes from the kept sequence after a swap and
every trash re-checks for new last copies. The Compare dialog and Settings
choices fit in every language, Details segments say which value they take,
twins need their sibling at the other home, and a linked row keeps three
buttons. Captures updated for the dialog and Settings scenes.

Refs #73

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Alby96andClaude Opus 5.5 committed 2026-11-17 21:58:58 +01:00
1 parent bf7701d279
commit 38764972ad
77 files changed
+965 -123

No files matched your search

+42 -18
View File
@@ -17,6 +17,16 @@
<Setter Property="ToolTip" Value="{Binding ToolTip}" />
</Style>
<!-- A choice's label: a translation longer than its box ends in an ellipsis, never clipped mid-letter. -->
<DataTemplate x:Key="Template.OptionLabel">
<TextBlock Text="{Binding Label}" TextTrimming="CharacterEllipsis" />
</DataTemplate>
<!-- A value cell's raw value: long values (the frame positions' JSON) wrap inside the tooltip. -->
<DataTemplate x:Key="Template.RawValue">
<TextBlock Text="{Binding}" TextWrapping="Wrap" MaxWidth="480" />
</DataTemplate>
<!-- Rows of the dialog's lists read as their text; Tab goes to their controls. -->
<Style x:Key="ListBoxItem.CopyPhoto" TargetType="ListBoxItem" BasedOn="{StaticResource ListBoxItem.Row}">
<Setter Property="AutomationProperties.Name" Value="{Binding Name}" />
@@ -103,8 +113,8 @@
</Grid.RowDefinitions>
<StackPanel Orientation="Horizontal" Margin="0,0,0,8">
<TextBlock Text="{l:Loc Server.Copies.Policy.Label}" Style="{StaticResource Text.DialogLabel}" VerticalAlignment="Center" Margin="0,0,10,0" />
<ComboBox Width="170" ItemsSource="{Binding Policies}" SelectedItem="{Binding Policy}" DisplayMemberPath="Label" ToolTip="{Binding PolicyToolTip}"
ItemContainerStyle="{StaticResource ComboBoxItem.Option}" AutomationProperties.Name="{l:Loc Server.Copies.Policy.Label}" />
<ComboBox Width="240" ItemsSource="{Binding Policies}" SelectedItem="{Binding Policy}" ItemTemplate="{StaticResource Template.OptionLabel}"
ToolTip="{Binding PolicyToolTip}" ItemContainerStyle="{StaticResource ComboBoxItem.Option}" AutomationProperties.Name="{l:Loc Server.Copies.Policy.Label}" />
</StackPanel>
<DockPanel Grid.Row="1" Margin="0,0,14,0">
<!-- Column headings: the class, how many photos, their size (on the side that holds them). -->
@@ -191,18 +201,19 @@
<TextBlock Grid.Column="1" Text="{Binding TimeText}" VerticalAlignment="Center" Typography.NumeralAlignment="Tabular" FontSize="12" TextTrimming="CharacterEllipsis" />
<TextBlock Grid.Column="2" Text="{Binding Name}" VerticalAlignment="Center" TextTrimming="CharacterEllipsis" FlowDirection="LeftToRight" FontSize="12" />
<TextBlock Grid.Column="3" Text="{Binding SizeText}" VerticalAlignment="Center" TextAlignment="Right" Typography.NumeralAlignment="Tabular" FontSize="12" />
<!-- The side, then "In Main" on the version Main uses (it gives way to the side's name, never to Drop…). -->
<DockPanel Grid.Column="4" Width="110" Margin="10,0,0,0" VerticalAlignment="Center"
<!-- The side, then "In Main" on the version Main uses: the column takes the widest row's (shared), so
"This PC · Server" and "In Main" both show whole; a very long archive name gives way first. -->
<DockPanel Grid.Column="4" MaxWidth="280" Margin="10,0,0,0" VerticalAlignment="Center"
Visibility="{Binding CanChoose, Converter={x:Static ui:InverseBoolToVisibilityConverter.Instance}}">
<TextBlock DockPanel.Dock="Right" Text="{l:Loc Server.Copies.Photo.InMain}" ToolTip="{l:Loc Tooltips.Server.Copies.InMain}"
Foreground="{DynamicResource Brush.TextMuted}" Margin="6,0,0,0" FontSize="12"
Visibility="{Binding InMain, Converter={StaticResource CopyBoolToVisibility}}" />
<TextBlock Text="{Binding SideText}" Foreground="{DynamicResource Brush.TextMuted}" TextTrimming="CharacterEllipsis" FontSize="12" />
</DockPanel>
<ComboBox Grid.Column="5" Width="150" Margin="10,0,0,0" ItemsSource="{Binding Choices}" SelectedItem="{Binding Choice}" DisplayMemberPath="Label"
<ComboBox Grid.Column="5" Width="185" Margin="10,0,0,0" ItemsSource="{Binding Choices}" SelectedItem="{Binding Choice}" ItemTemplate="{StaticResource Template.OptionLabel}"
ItemContainerStyle="{StaticResource ComboBoxItem.Option}" ToolTip="{l:Loc Tooltips.Server.Copies.Version}"
AutomationProperties.Name="{Binding ChoiceAccessibleName}" Visibility="{Binding CanChoose, Converter={StaticResource CopyBoolToVisibility}}" />
<Button Grid.Column="5" Style="{StaticResource Button.Row}" Content="{l:Loc Server.Copies.Action.Drop}" Command="{Binding DropCommand}"
<Button Grid.Column="5" Style="{StaticResource Button.Row}" Margin="10,0,6,0" Content="{l:Loc Server.Copies.Action.Drop}" Command="{Binding DropCommand}"
ToolTip="{l:Loc Tooltips.Server.Copies.Drop}" AutomationProperties.Name="{Binding DropAccessibleName}" FontSize="12"
Visibility="{Binding CanDrop, Converter={StaticResource CopyBoolToVisibility}}" />
</Grid>
@@ -257,11 +268,20 @@
<ColumnDefinition Width="Auto" SharedSizeGroup="CopyDetailChoice" />
</Grid.ColumnDefinitions>
<TextBlock Text="{Binding Label}" Style="{StaticResource Text.DialogLabel}" VerticalAlignment="Center" TextTrimming="CharacterEllipsis" ToolTip="{Binding Label}" />
<TextBlock Grid.Column="1" Text="{Binding HereText}" ToolTip="{Binding HereToolTip}" VerticalAlignment="Center" TextTrimming="CharacterEllipsis" Margin="10,0,0,0" />
<TextBlock Grid.Column="2" Text="{Binding ThereText}" ToolTip="{Binding ThereToolTip}" VerticalAlignment="Center" TextTrimming="CharacterEllipsis" Margin="10,0,0,0" />
<TextBlock Grid.Column="1" Text="{Binding HereText}" VerticalAlignment="Center" TextTrimming="CharacterEllipsis" Margin="10,0,0,0">
<TextBlock.ToolTip>
<ToolTip Content="{Binding HereToolTip}" ContentTemplate="{StaticResource Template.RawValue}" />
</TextBlock.ToolTip>
</TextBlock>
<TextBlock Grid.Column="2" Text="{Binding ThereText}" VerticalAlignment="Center" TextTrimming="CharacterEllipsis" Margin="10,0,0,0">
<TextBlock.ToolTip>
<ToolTip Content="{Binding ThereToolTip}" ContentTemplate="{StaticResource Template.RawValue}" />
</TextBlock.ToolTip>
</TextBlock>
<!-- Each segment says what choosing it does, with the value it takes; the raw values stay on the cells. -->
<v:SegmentedControl Grid.Column="3" SelectedIndex="{Binding ChoiceIndex}" ToolTip="{Binding ToolTip}" AutomationProperties.Name="{Binding AccessibleName}" Margin="10,0,0,0">
<v:SegmentedItem Content="{Binding HereWord}" ToolTip="{Binding HereToolTip}" AutomationProperties.Name="{Binding HereWord}" />
<v:SegmentedItem Content="{Binding ThereWord}" ToolTip="{Binding ThereToolTip}" AutomationProperties.Name="{Binding ThereWord}" />
<v:SegmentedItem Content="{Binding HereWord}" ToolTip="{Binding HereChoiceToolTip}" AutomationProperties.Name="{Binding HereWord}" />
<v:SegmentedItem Content="{Binding ThereWord}" ToolTip="{Binding ThereChoiceToolTip}" AutomationProperties.Name="{Binding ThereWord}" />
</v:SegmentedControl>
</Grid>
</DataTemplate>
@@ -274,7 +294,6 @@
<!-- Projects: Copy across or Leave them; each side's projects, and where each goes. -->
<Grid Visibility="{Binding IsProjects, Converter={StaticResource CopyBoolToVisibility}}">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
@@ -290,18 +309,23 @@
</v:SegmentedControl>
<TextBlock Grid.Row="1" Grid.ColumnSpan="2" Text="{Binding ProjectsNote}" Foreground="{DynamicResource Brush.TextMuted}" Margin="0,0,0,8"
Visibility="{Binding ProjectsNote, Converter={x:Static ui:NullToCollapsedConverter.Instance}}" />
<!-- Each column says whose projects it lists: this PC and the server, or the pair's two sequences (the lists do not follow the kept one). -->
<TextBlock Grid.Row="2" Text="{Binding ProjectsHereHeading}" FontWeight="SemiBold" Margin="0,0,14,6" TextTrimming="CharacterEllipsis" ToolTip="{Binding ProjectsHereHeading}" />
<TextBlock Grid.Row="2" Grid.Column="1" Text="{Binding ProjectsThereHeading}" FontWeight="SemiBold" Margin="0,0,0,6" TextTrimming="CharacterEllipsis" ToolTip="{Binding ProjectsThereHeading}" />
<!-- Both lists scroll together: a pair with many projects stays inside the dialog. -->
<ScrollViewer Grid.Row="3" Grid.ColumnSpan="2" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled" Focusable="False">
<!-- Both lists scroll together: a pair with many projects stays inside the dialog. Each column's heading says whose
projects it lists (this PC and the server, or the pair's two sequences; they do not follow the kept one) and
shares its list's column, so a scroll bar never moves one off the other. -->
<ScrollViewer Grid.Row="2" Grid.ColumnSpan="2" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled" Focusable="False">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<ItemsControl ItemsSource="{Binding HereProjects}" ItemTemplate="{StaticResource Template.CopyProjectRow}" Focusable="False" Margin="0,0,14,0" />
<ItemsControl Grid.Column="1" ItemsSource="{Binding ThereProjects}" ItemTemplate="{StaticResource Template.CopyProjectRow}" Focusable="False" />
<TextBlock Text="{Binding ProjectsHereHeading}" FontWeight="SemiBold" Margin="0,0,14,6" TextTrimming="CharacterEllipsis" ToolTip="{Binding ProjectsHereHeading}" />
<TextBlock Grid.Column="1" Text="{Binding ProjectsThereHeading}" FontWeight="SemiBold" Margin="0,0,0,6" TextTrimming="CharacterEllipsis" ToolTip="{Binding ProjectsThereHeading}" />
<ItemsControl Grid.Row="1" ItemsSource="{Binding HereProjects}" ItemTemplate="{StaticResource Template.CopyProjectRow}" Focusable="False" Margin="0,0,14,0" />
<ItemsControl Grid.Row="1" Grid.Column="1" ItemsSource="{Binding ThereProjects}" ItemTemplate="{StaticResource Template.CopyProjectRow}" Focusable="False" />
</Grid>
</ScrollViewer>
</Grid>