feat(app): matches list, compare dialog, settings rows, library and picker surfaces (owner review 6, P6)

Server > Matches shows the pairs the copy engine found (same sequence on the
server and this PC, or twice here), attention first, with the design 8.1
actions; Keep apart and Unlink toast with Undo. The in-window Compare dialog
walks photos, details, projects and the plan, blocks until details are
chosen, and confirms only what replaces or merges (typed count for a merge).
Sync rows of an unanswered pair read "match found" and offer Compare first;
Upload all local skips suspected copies and says why. Settings > Server gains
Link matches, Integrate photos and Integrate projects. Library cards carry the
match status with Compare..., the sequence picker marks twins, and Jobs opens
Integrate and Merge targets. The sample engine and capture scenes render every
state; tests cover the text rules and the screens.

Refs #73

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Alby96andClaude Opus 5.5 committed 2026-11-16 20:29:07 +01:00
1 parent 283d04d9cd
commit 06b826e39d
34 files changed
+3762 -43

No files matched your search

@@ -148,6 +148,10 @@ public sealed class LibraryViewModel : SectionViewModel
p => p is SequenceItem { CanRunQuick: true });
RenderItemCommand = new AsyncRelayCommand((p, _) => p is SequenceItem item ? _actions.RenderAsync(item.Sequence) : Task.CompletedTask,
p => p is SequenceItem { CanRunQuick: true });
CompareItemCommand = new RelayCommand(p =>
{
if (p is SequenceItem item) CompareItem(item);
}, p => p is SequenceItem { HasMatch: true });
SyncItemCommand = new AsyncRelayCommand((p, _) => p is SequenceItem item ? SyncItemAsync(item) : Task.CompletedTask, p => p is SequenceItem { CanSync: true });
SaveViewCommand = new RelayCommand(() => OpenViewName(rename: false), () => _viewStore is not null);
@@ -196,6 +200,16 @@ public sealed class LibraryViewModel : SectionViewModel
public ICommand AnalyseItemCommand { get; }
public ICommand RenderItemCommand { get; }
public ICommand SyncItemCommand { get; }
/// <summary>Compare…: Server › Matches, searched for the sequence's title (owner review 6, #73).</summary>
public ICommand CompareItemCommand { get; }
/// <summary>Opens Server › Matches with the pair of <paramref name="item"/> found by its title.</summary>
internal void CompareItem(SequenceItem item)
{
Shell.Navigate(SectionKey.Server);
Shell.Server.Sync.ShowFilter(Chronos.App.Server.SyncFilter.FoundCopies, item.Title);
}
public ICommand SaveViewCommand { get; }
public ICommand RenameViewCommand { get; }
public ICommand DeleteViewCommand { get; }
@@ -1097,7 +1111,9 @@ public sealed class LibraryViewModel : SectionViewModel
}
// Downloads of proxies only fill the proxy cache, so the Library is read again for originals and exports only.
// A conversion makes new sequences, or changes the formats and sizes of the converted ones.
// An Integrate fills a sequence with the other side's photos; a merge moves one sequence into another (owner review 6, #73).
if (job.Kind is JobKind.Scan or JobKind.Rebuild or JobKind.Import or JobKind.Adopt or JobKind.Move or JobKind.UploadCommit or JobKind.Convert
or JobKind.Integrate or JobKind.MergeSequences
|| SyncService.TransferKind(job) is SyncTransferKind.DownloadOriginals or SyncTransferKind.GetExports)
await RefreshAsync();
else if (job.Kind is JobKind.LightAnalyse or JobKind.DeepAnalyse)