fix(copies): close the fourth verification round of owner review 6
The fourth verification round of the matches work found 18 defects in the merge, Integrate and Matches surfaces. This commit fixes them: - An Integrate job now carries the planning account's id, so its re-plan decides ownership the way the dialog did. - A merge skips only a project the kept sequence holds a real copy of (name, offset head and history content) and re-points its renders to that copy. - A merge runs its trash checks before the Links stage and records an undo, so an abandoned merge gives the other sequence back its link, session keys and pairs. - The metered hold adopts automatic transfers that were paused before a restart. - Apply in the Compare dialog re-plans when the plan is pending or stale. - The Library's Two versions... lists the second versions a Union merge leaves, each with Drop... (dry run, confirmation, verified partner). A merge job's Open shows that list. - The merge's typed confirmation is the invariant count, and the prompt names it in all 38 languages. - Italian text uses Principale and Gemello. The Main project is named through WorkspaceText in the Projects part and in the twin tooltip. - The session keys tooltip is split into two keys, and To trash... and Delete on server... say why they are disabled. - The capture restores the editor account before the Matches scenes. - Upload again follows SyncHost.CanSendSync (Upload with Edit). - Matches rows trim archive names in the middle on a rebalanced grid; the Projects part rows trim, with the full text in the tooltip. - The sample project targets use ProjectTransplant.FreeName. DECISIONS, CHANGELOG, STATUS 8.7, the request doc and the 16 changed capture baselines are updated. Refs #73 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
3c99badcfe
commit
2c06e7ac2b
171 files changed
+1591
-218
No files matched your search
@@ -152,6 +152,8 @@ public sealed class LibraryViewModel : SectionViewModel
|
||||
{
|
||||
if (p is SequenceItem item) CompareItem(item);
|
||||
}, p => p is SequenceItem { HasMatch: true });
|
||||
VersionsItemCommand = new AsyncRelayCommand((p, _) => p is SequenceItem item ? ShowVersionsAsync(item.Id) : Task.CompletedTask,
|
||||
p => p is SequenceItem { IsRemote: false } && Shell.Services.Sync.Copies is not null);
|
||||
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);
|
||||
@@ -210,6 +212,20 @@ public sealed class LibraryViewModel : SectionViewModel
|
||||
Shell.Navigate(SectionKey.Server);
|
||||
Shell.Server.Sync.ShowFilter(Chronos.App.Server.SyncFilter.FoundCopies, item.Title);
|
||||
}
|
||||
|
||||
/// <summary>Two versions…: the photos a local sequence keeps in two versions, each with Drop… (owner Q3, #73).</summary>
|
||||
public ICommand VersionsItemCommand { get; }
|
||||
|
||||
/// <summary>Opens Two versions… of local sequence <paramref name="sequenceId"/> (a merge job's Open, the card menu).</summary>
|
||||
public async Task ShowVersionsAsync(Guid sequenceId)
|
||||
{
|
||||
if (Shell.Services.Sync.Copies is not { } copies) return;
|
||||
var title = Items.FirstOrDefault(i => i.Id == sequenceId)?.Title
|
||||
?? (_db is not null && await _db.Sequences.GetAsync(sequenceId) is { } sequence ? sequence.DisplayTitle : string.Empty);
|
||||
var dialog = new VersionsDialogViewModel(copies, sequenceId, title, Shell.Services.Dialogs.Confirm, CloseDialog);
|
||||
OpenDialog(dialog);
|
||||
await dialog.LoadAsync();
|
||||
}
|
||||
public ICommand SaveViewCommand { get; }
|
||||
public ICommand RenameViewCommand { get; }
|
||||
public ICommand DeleteViewCommand { get; }
|
||||
|
||||
Reference in new issue
Block a user