fix(copies): close the owner review 6 gaps with tests
Photos not sent: automatic photos of an integrated pair that failed three times in a row are now told with an error toast that shows the row, and the row reads "not sent" with the last reason. The matches-found and linked toasts of background detections run from their Windows notification too. Maintenance now clears a merge's or an integration's journal whose job is done, cancelled, or deleted without a cancel and untouched for the history's days. Tests pin the matches jobs in the priority queue, the owner's defaults (ask always, union, copy across), the dialog starting from the settings, Choose each preselecting nothing, no automatic photos for a pair whose server copy is gone, the repair of a corrupt local frame by an Integrate, and the owner's whole scenario end to end against a real in-process server. Refs #73 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
fe752a0a21
commit
d10577b175
18 files changed
+804
-11
No files matched your search
@@ -285,14 +285,24 @@ public sealed class CopyListViewModel : ObservableObject, IDisposable
|
||||
await ReloadAsync();
|
||||
}
|
||||
|
||||
/// <summary>"2 matches found" · Review, and "3 sequences linked" · Show (design §8.4).</summary>
|
||||
/// <summary>
|
||||
/// "2 matches found" · Review, and "3 sequences linked" · Show (design §8.4), for Find matches and for the detections
|
||||
/// that run by themselves (after a refresh, a scan, an import): both only navigate, so a click on their Windows
|
||||
/// notification runs them too.
|
||||
/// </summary>
|
||||
internal void Announce(CopyFindResult found)
|
||||
{
|
||||
var asking = found.New.Count + found.AskedAgain.Count;
|
||||
if (asking > 0)
|
||||
_shell.Notify(Loc.Plural("Server.Copies.Found", asking), null, Loc.L("Server.Copies.Action.Review"), Loc.L("Tooltips.Server.Copies.ReviewFound"), ShowMatches);
|
||||
{
|
||||
_shell.Notify(Loc.Plural("Server.Copies.Found", asking), null, Loc.L("Server.Copies.Action.Review"), Loc.L("Tooltips.Server.Copies.ReviewFound"),
|
||||
ShowMatches, runsFromNotification: true);
|
||||
}
|
||||
if (found.AutoLinked.Count > 0)
|
||||
_shell.Notify(Loc.Plural("Server.Copies.Linked", found.AutoLinked.Count), null, Loc.L("Server.Sync.Show"), Loc.L("Tooltips.Server.Sync.Show"), ShowMatches);
|
||||
{
|
||||
_shell.Notify(Loc.Plural("Server.Copies.Linked", found.AutoLinked.Count), null, Loc.L("Server.Sync.Show"), Loc.L("Tooltips.Server.Sync.Show"),
|
||||
ShowMatches, runsFromNotification: true);
|
||||
}
|
||||
}
|
||||
|
||||
private void ShowMatches()
|
||||
|
||||
Reference in new issue
Block a user