fix(copies): close the owner review 6 verification findings
A merge could still trash photos it never verified, resume against a pair the user had answered meanwhile, and take different unhashed photos for copies; the dialog and the lists worded several facts wrongly or lost them on refresh. - Merge: a retry resumes only while the pair is still the job's; Verify requires the other archive online and its folder in place, stops on an unreadable photo, files a differing unhashed photo as a second version and must cover every frame before Trash; the plan hashes unmatched unhashed photos first, lists "Deleted in the other" and names the relinked servers; second versions stay discoverable (CopySides.VersionsAsync). - Integrate: a retry after a failure before the journal runs again. - Sync: a sequence back after a 404 stays Linked while its link holds; a local cull no longer asks for attention. - Block lines of both planners name the right sequence, archive, server and space through one formatter. - Compare dialog: one Details row per setting with worded values, Projects headings, Choose focuses the kept-sequence radios, the photo selection reaches rows outside the viewport, the Replace confirmation lists the losers per side, plan lines read as queued. - Matches and Library: counts first and grouped, integrating shown as a share, local matches name the other archive, the Library keeps its match and "deleted on server" statuses across a refresh. Refs #73 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d10577b175
commit
b34b6b6fe0
41 files changed
+1046
-193
No files matched your search
@@ -133,6 +133,16 @@ public sealed class CopyScreenSmokeTests
|
||||
var dropped = list.Pairs.Single(p => p.Here.Title == CopyScenes.Alps) is var alps && plan.KeepId == alps.Copy.LocalId ? alps.There : alps.Here;
|
||||
Assert.Equal(dropped.Photos.ToString(Loc.Culture), request.TypedConfirmation);
|
||||
await app.ExpectAsync<ServerView>("server-copies-merge");
|
||||
|
||||
// Choose on "choose the sequence to keep" takes the keyboard to the first Kept radio of the Plan part.
|
||||
merge.Part = CopyDialogPart.Plan;
|
||||
var view = app.FindAll<ServerView>().First(v => v.IsVisible);
|
||||
for (var i = 0; i < 80 && ServerView.FirstKeepOption(view) is null; i++)
|
||||
{
|
||||
view.UpdateLayout();
|
||||
await Task.Delay(25);
|
||||
}
|
||||
Assert.NotNull(ServerView.FirstKeepOption(view), "the Kept sequence radios are on the Plan part");
|
||||
CopyScenes.Reset(shell);
|
||||
Assert.False(server.IsDialogOpen);
|
||||
});
|
||||
@@ -172,6 +182,10 @@ public sealed class CopyScreenSmokeTests
|
||||
Assert.NotNull(item.MatchStatus);
|
||||
Assert.Contains(item.Statuses, s => s == item.MatchStatus);
|
||||
Assert.True(shell.Library.CompareItemCommand.CanExecute(item));
|
||||
// A refresh builds new cards: the match status stays on them.
|
||||
await shell.Library.RefreshAsync();
|
||||
item = Assert.Contains(shell.Library.Items, i => i.HasMatch && i.Title == CopyScenes.Alps);
|
||||
Assert.NotNull(item.MatchStatus);
|
||||
await app.ExpectAsync<LibraryView>("library-copies", waitForThumbnails: true);
|
||||
shell.Library.CompareItemCommand.Execute(item);
|
||||
Assert.Equal(SectionKey.Server, shell.Current.Key);
|
||||
|
||||
Reference in new issue
Block a user