fix(copies): close the third verification round and add the match baselines
Integrate trashes a server photo only for the sequence's owner or an admin, a Details stage stops instead of overwriting a server change the user had kept this PC's value against, a merge retried after a stop plans again when work reached the other sequence, detection keeps pairs answered while it ran, and a sync row whose match the server deleted offers Keep here, Upload again and To trash. The Integrate and merge logs say in the UI language why a version was kept. The edit-picker-twins capture scene showed no Twin chip, since a capture has no workspace: it now lists sample workspace projects of the sample matches. The screenshot baselines gain the 38 Matches screens and take the Matches chip, the three Settings > Server rows, the longer priority list and 1.2.0. Refs #73 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
3e6110d329
commit
3c99badcfe
96 files changed
+910
-147
No files matched your search
@@ -103,8 +103,9 @@
|
||||
lib:ThumbnailLoading.Width="64" DataContext="{Binding Sequence}">
|
||||
<Image Source="{Binding Thumbnail}" Stretch="UniformToFill" />
|
||||
</Border>
|
||||
<!-- The same time-lapse has a project at the other home too: a muted Twin chip after the name (owner review 6, #73). -->
|
||||
<DockPanel Grid.Column="1" Margin="12,0,0,0" LastChildFill="True">
|
||||
<!-- The same time-lapse has a project at the other home too: a muted Twin chip after the name (owner review 6, #73).
|
||||
Left-aligned, the panel is as wide as name and chip, so the chip follows a short name; a long one is cut first. -->
|
||||
<DockPanel Grid.Column="1" Margin="12,0,0,0" LastChildFill="True" HorizontalAlignment="Left">
|
||||
<Border DockPanel.Dock="Right" CornerRadius="9" BorderBrush="{DynamicResource Brush.Stroke}" BorderThickness="1" Padding="7,0" Margin="8,0,0,0"
|
||||
VerticalAlignment="Center" ToolTip="{Binding TwinToolTip}" Visibility="{Binding HasTwin, Converter={StaticResource BoolToVisibility}}">
|
||||
<TextBlock Text="{l:Loc Editor.Picker.Twin}" FontSize="11" Foreground="{DynamicResource Brush.TextMuted}" />
|
||||
|
||||
@@ -9,6 +9,7 @@ using Chronos.Core.Diagnostics;
|
||||
using Chronos.Core.Model;
|
||||
using Chronos.Data;
|
||||
using Chronos.Data.Repositories;
|
||||
using Chronos.Data.Workspaces;
|
||||
using Chronos.Ui.Mvvm;
|
||||
|
||||
namespace Chronos.App.Sections;
|
||||
@@ -326,6 +327,28 @@ public sealed class SequencePickerViewModel : LocalizedViewModel
|
||||
_workspaceStates = ReadStatesAsync(items, generation);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Lists <paramref name="entries"/> as the Workspace group, each <paramref name="status"/>, then marks their twins. Design
|
||||
/// time only: a capture has no workspace (<see cref="WorkspaceHost.IsEnabled"/>), so its edit-picker-twins scene lists
|
||||
/// sample projects of the sample matches.
|
||||
/// </summary>
|
||||
internal async Task ShowSampleWorkspaceAsync(IReadOnlyList<WorkspaceEntry> entries, WorkspaceStatus status)
|
||||
{
|
||||
if (Shell.Services.Database is not { } db) return;
|
||||
var items = new List<WorkspaceProjectItem>();
|
||||
foreach (var entry in entries)
|
||||
{
|
||||
var row = await db.Sequences.GetAsync(entry.SequenceId);
|
||||
items.Add(new WorkspaceProjectItem(entry, row is null ? null : new SequenceItem(row, Shell.Services.Thumbnails)) { Status = status });
|
||||
}
|
||||
WorkspaceItems.Clear();
|
||||
foreach (var item in items) WorkspaceItems.Add(item);
|
||||
SelectedProject = WorkspaceItems.FirstOrDefault();
|
||||
OnPropertyChanged(nameof(HasWorkspaceItems));
|
||||
RaiseStates();
|
||||
await MarkTwinsAsync(items);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Marks the projects whose time-lapse (a linked or integrated match) has a workspace project at the other home too
|
||||
/// (owner review 6, #73): a muted Twin chip, "Also at {home}: {project}".
|
||||
|
||||
@@ -311,24 +311,34 @@
|
||||
keeps its 10 px scroll-bar gutter and the header the same on its right, so the columns line up with or without scrolling. -->
|
||||
<Border Grid.Row="1" BorderBrush="{DynamicResource Brush.Stroke}" BorderThickness="0,1,0,1" Padding="14,8,24,8">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1.6*" MinWidth="140" />
|
||||
<ColumnDefinition Width="160" />
|
||||
<ColumnDefinition Width="160" />
|
||||
<ColumnDefinition Width="160" />
|
||||
<ColumnDefinition Width="1.4*" MinWidth="400" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Visibility="{Binding IsMatches, Converter={x:Static ui:InverseBoolToVisibilityConverter.Instance}}" Style="{StaticResource Text.Header}" Text="{l:Loc Server.Sync.Column.Sequence}" />
|
||||
<TextBlock Visibility="{Binding IsMatches, Converter={x:Static ui:InverseBoolToVisibilityConverter.Instance}}" Grid.Column="1" Style="{StaticResource Text.Header}" Text="{l:Loc Server.Sync.Column.Local}" Margin="10,0,0,0" />
|
||||
<TextBlock Visibility="{Binding IsMatches, Converter={x:Static ui:InverseBoolToVisibilityConverter.Instance}}" Grid.Column="2" Style="{StaticResource Text.Header}" Text="{l:Loc Server.Sync.Column.Server}" Margin="10,0,0,0" />
|
||||
<TextBlock Grid.Column="3" Style="{StaticResource Text.Header}" Text="{l:Loc Server.Sync.Column.State}" Margin="10,0,0,0" />
|
||||
<!-- Matches: Sequence · This side · Other side · State. -->
|
||||
<TextBlock Style="{StaticResource Text.Header}" Text="{l:Loc Server.Copies.Column.Sequence}"
|
||||
Visibility="{Binding IsMatches, Converter={StaticResource BoolToVisibility}}" />
|
||||
<TextBlock Grid.Column="1" Style="{StaticResource Text.Header}" Text="{l:Loc Server.Copies.Column.ThisSide}" Margin="10,0,0,0"
|
||||
Visibility="{Binding IsMatches, Converter={StaticResource BoolToVisibility}}" />
|
||||
<TextBlock Grid.Column="2" Style="{StaticResource Text.Header}" Text="{l:Loc Server.Copies.Column.OtherSide}" Margin="10,0,0,0"
|
||||
Visibility="{Binding IsMatches, Converter={StaticResource BoolToVisibility}}" />
|
||||
<Grid Visibility="{Binding IsMatches, Converter={x:Static ui:InverseBoolToVisibilityConverter.Instance}}">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1.6*" MinWidth="140" />
|
||||
<ColumnDefinition Width="160" />
|
||||
<ColumnDefinition Width="160" />
|
||||
<ColumnDefinition Width="160" />
|
||||
<ColumnDefinition Width="1.4*" MinWidth="400" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Style="{StaticResource Text.Header}" Text="{l:Loc Server.Sync.Column.Sequence}" />
|
||||
<TextBlock Grid.Column="1" Style="{StaticResource Text.Header}" Text="{l:Loc Server.Sync.Column.Local}" Margin="10,0,0,0" />
|
||||
<TextBlock Grid.Column="2" Style="{StaticResource Text.Header}" Text="{l:Loc Server.Sync.Column.Server}" Margin="10,0,0,0" />
|
||||
<TextBlock Grid.Column="3" Style="{StaticResource Text.Header}" Text="{l:Loc Server.Sync.Column.State}" Margin="10,0,0,0" />
|
||||
</Grid>
|
||||
<!-- Matches: Sequence · This side · Other side · State. The sides ("1,204 photos · Main archive · 18.2 GB") take the
|
||||
room the narrower actions column leaves (at most three buttons). -->
|
||||
<Grid Visibility="{Binding IsMatches, Converter={StaticResource BoolToVisibility}}">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1.6*" MinWidth="140" />
|
||||
<ColumnDefinition Width="*" MinWidth="160" />
|
||||
<ColumnDefinition Width="*" MinWidth="160" />
|
||||
<ColumnDefinition Width="160" />
|
||||
<ColumnDefinition Width="1.4*" MinWidth="280" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Style="{StaticResource Text.Header}" Text="{l:Loc Server.Copies.Column.Sequence}" />
|
||||
<TextBlock Grid.Column="1" Style="{StaticResource Text.Header}" Text="{l:Loc Server.Copies.Column.ThisSide}" Margin="10,0,0,0" />
|
||||
<TextBlock Grid.Column="2" Style="{StaticResource Text.Header}" Text="{l:Loc Server.Copies.Column.OtherSide}" Margin="10,0,0,0" />
|
||||
<TextBlock Grid.Column="3" Style="{StaticResource Text.Header}" Text="{l:Loc Server.Sync.Column.State}" Margin="10,0,0,0" />
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Border>
|
||||
|
||||
@@ -399,10 +409,10 @@
|
||||
<Grid MinHeight="40">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1.6*" MinWidth="140" />
|
||||
<ColumnDefinition Width="*" MinWidth="160" />
|
||||
<ColumnDefinition Width="*" MinWidth="160" />
|
||||
<ColumnDefinition Width="160" />
|
||||
<ColumnDefinition Width="160" />
|
||||
<ColumnDefinition Width="160" />
|
||||
<ColumnDefinition Width="1.4*" MinWidth="400" />
|
||||
<ColumnDefinition Width="1.4*" MinWidth="280" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Style="{StaticResource Text.Cell}" Text="{Binding Title}" ToolTip="{Binding TitleToolTip}" />
|
||||
<TextBlock Grid.Column="1" Style="{StaticResource Text.Cell}" Text="{Binding HereText}" ToolTip="{Binding HereText}" Margin="10,0,0,0" />
|
||||
|
||||
Reference in new issue
Block a user