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

The metered hold now records the jobs it paused in the index and forgets
any job the user pauses, resumes, retries or cancels, so it never resumes
a pause of the user's and still resumes its own after a restart.

Drop... reports why its dry run is blocked instead of asking first, and
dropping the version Main uses lets Main use the version that stays,
with its hero and keyframes. That version reads "In Main".

Merges:
- A re-plan no longer hashes the other's photos again.
- A resumed merge verifies photos flagged damaged while it waited.
- A merge is blocked while the other's folder holds photos the index
  has not read; this is checked again under the lease before the trash.
- Choose each offers Keep both, Kept and Other, and blocks until every
  differing photo is chosen.
- Classes are named by role.

The Compare dialog:
- Its headings stay over their columns.
- The Projects part scrolls.
- Every confirmation line carries its own prefix, and a merge's facts
  carry none.
- A server card in a match offers Compare... alone.

The Italian strings follow the glossary.

Finding 9 (a local drop counting 0 photos) is not reproduced; a test now
keeps the count at 2.

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 20:51:23 +01:00
1 parent 2c06e7ac2b
commit bf7701d279
159 files changed
+1759 -126

No files matched your search

+27 -10
View File
@@ -151,9 +151,10 @@
ToolTip="{Binding DeleteThereToolTip}" ToolTipService.ShowOnDisabled="True"
Visibility="{Binding CanDeleteThere, Converter={StaticResource CopyBoolToVisibility}}" />
</WrapPanel>
<!-- The photos of the selected class under column headings that share the rows' widths. -->
<!-- The photos of the selected class under column headings that share the rows' widths; the scroll bar always
takes its place (the headings' right margin holds it), so the columns never shift when it appears. -->
<DockPanel Grid.Row="1" Grid.Column="1" Grid.IsSharedSizeScope="True" Visibility="{Binding HasPhotos, Converter={StaticResource CopyBoolToVisibility}}">
<Grid DockPanel.Dock="Top" Margin="15,0,15,4">
<Grid DockPanel.Dock="Top" Margin="15,0,25,4">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" SharedSizeGroup="CopyPhotoBring" />
<ColumnDefinition Width="140" />
@@ -165,13 +166,13 @@
<TextBlock Grid.Column="1" Text="{l:Loc Server.Copies.Photo.Taken}" Style="{StaticResource Text.ColumnHeader}" TextTrimming="CharacterEllipsis" />
<TextBlock Grid.Column="2" Text="{l:Loc Server.Copies.Photo.Name}" Style="{StaticResource Text.ColumnHeader}" TextTrimming="CharacterEllipsis" />
<TextBlock Grid.Column="3" Text="{l:Loc Server.Copies.Photo.Size}" Style="{StaticResource Text.ColumnHeader}" TextAlignment="Right" TextTrimming="CharacterEllipsis" />
<TextBlock Grid.Column="4" Grid.ColumnSpan="2" Text="{l:Loc Server.Copies.Photo.Side}" Style="{StaticResource Text.ColumnHeader}" Margin="10,0,0,0"
<TextBlock Grid.Column="4" Grid.ColumnSpan="2" Text="{Binding PhotoSideHeading}" Style="{StaticResource Text.ColumnHeader}" Margin="10,0,0,0"
TextTrimming="CharacterEllipsis" />
</Grid>
<ListBox ItemsSource="{Binding Photos}" ItemContainerStyle="{StaticResource ListBoxItem.CopyPhoto}" SelectionMode="Extended"
infra:ListSelection.SyncsRows="True"
VirtualizingPanel.IsVirtualizing="True" VirtualizingPanel.VirtualizationMode="Recycling" VirtualizingPanel.ScrollUnit="Pixel"
ScrollViewer.HorizontalScrollBarVisibility="Disabled" KeyboardNavigation.TabNavigation="Continue"
ScrollViewer.HorizontalScrollBarVisibility="Disabled" ScrollViewer.VerticalScrollBarVisibility="Visible" KeyboardNavigation.TabNavigation="Continue"
AutomationProperties.Name="{Binding SelectedClass.Text}">
<ListBox.ItemTemplate>
<DataTemplate DataType="{x:Type cp:CopyPhotoRow}">
@@ -190,8 +191,14 @@
<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" />
<TextBlock Grid.Column="4" Width="110" Text="{Binding SideText}" VerticalAlignment="Center" Foreground="{DynamicResource Brush.TextMuted}" Margin="10,0,0,0"
TextTrimming="CharacterEllipsis" FontSize="12" Visibility="{Binding CanChoose, Converter={x:Static ui:InverseBoolToVisibilityConverter.Instance}}" />
<!-- 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"
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"
ItemContainerStyle="{StaticResource ComboBoxItem.Option}" ToolTip="{l:Loc Tooltips.Server.Copies.Version}"
AutomationProperties.Name="{Binding ChoiceAccessibleName}" Visibility="{Binding CanChoose, Converter={StaticResource CopyBoolToVisibility}}" />
@@ -219,7 +226,7 @@
<Button Style="{StaticResource Button.Link}" Content="{Binding AllThereText}" Command="{Binding AllThereCommand}" ToolTip="{Binding AllThereToolTip}" />
</StackPanel>
<!-- Whose value each column holds: this PC and the server, or the kept sequence and the other (they follow the kept one). -->
<Grid Grid.Row="1" Margin="0,0,0,6" Visibility="{Binding HasDetails, Converter={StaticResource CopyBoolToVisibility}}">
<Grid Grid.Row="1" Margin="0,0,10,6" Visibility="{Binding HasDetails, Converter={StaticResource CopyBoolToVisibility}}">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="180" />
<ColumnDefinition Width="*" />
@@ -234,7 +241,8 @@
<ItemsControl Grid.Row="2" ItemsSource="{Binding Details}" Focusable="False" Visibility="{Binding HasDetails, Converter={StaticResource CopyBoolToVisibility}}">
<ItemsControl.Template>
<ControlTemplate TargetType="ItemsControl">
<ScrollViewer VerticalScrollBarVisibility="Auto" Focusable="False">
<!-- The scroll bar always takes its place (the headings' right margin holds it): the columns never shift. -->
<ScrollViewer VerticalScrollBarVisibility="Visible" Focusable="False">
<ItemsPresenter />
</ScrollViewer>
</ControlTemplate>
@@ -285,8 +293,17 @@
<!-- 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}" />
<ItemsControl Grid.Row="3" ItemsSource="{Binding HereProjects}" ItemTemplate="{StaticResource Template.CopyProjectRow}" Focusable="False" Margin="0,0,14,0" />
<ItemsControl Grid.Row="3" Grid.Column="1" ItemsSource="{Binding ThereProjects}" ItemTemplate="{StaticResource Template.CopyProjectRow}" Focusable="False" />
<!-- 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">
<Grid>
<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" />
</Grid>
</ScrollViewer>
</Grid>
<!-- Plan: the kept sequence (merge), what each side receives and loses, the blocks with their one action, Link only. -->