fix(app): Library and Archive delete, quick actions and toolbar after review

Delete… runs in an in-window dialog shared by the Library and the Archive
manager: the dry run and the move into the trash report progress and stop
on Cancel, the toast counts only what really moved, and its Undo reports
failures. The confirmation names at most six moves and three refusals in
the UI font. Delete… stands apart at the far right of both bars and last
in the tab order.

The toolbar's filters wrap instead of pushing out the right-hand group at
1200 px. Card and row quick actions show while selected or focused, so Tab
reaches them; Analyse and Render are disabled with a reason when nothing
can run them, and say so in a toast if the session drops. Remote cards get
their own card, Analyse and Render tooltips; the details panel's Folder and
the saved-view menu say why they are disabled. Status offers Rendered, Not
rendered and Synced. Remote cards count in the Year and Camera choices and
the timeline. The trash dialog shows one sentence when empty.

--capture adds archive-trash and library-viewname.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
Claude committed 2026-10-06 08:06:14 +00:00
1 parent 992834988d
commit 04895c7b7b
29 files changed
+602 -170

No files matched your search

+1 -1
View File
@@ -12,7 +12,7 @@
<TextBlock Text="{Binding Message}" Margin="0,8,0,0" Foreground="{DynamicResource Brush.TextMuted}" TextWrapping="Wrap" TextTrimming="None" LineHeight="18" />
<Border Style="{StaticResource Border.Card}" Margin="0,16,0,0" Padding="12,10" ToolTip="{Binding DetailToolTip}"
Visibility="{Binding Detail, Converter={x:Static ui:NullToCollapsedConverter.Instance}}">
<TextBlock Text="{Binding Detail}" FontFamily="{StaticResource Font.Mono}" FontSize="{StaticResource Size.Secondary}" TextWrapping="Wrap" TextTrimming="None" LineHeight="18" />
<TextBlock x:Name="DetailText" Text="{Binding Detail}" FontFamily="{StaticResource Font.Mono}" FontSize="{StaticResource Size.Secondary}" TextWrapping="Wrap" TextTrimming="None" LineHeight="18" />
</Border>
<StackPanel x:Name="Typing" Margin="0,16,0,0" Visibility="Collapsed">
<TextBlock Text="{Binding TypedPrompt}" Foreground="{DynamicResource Brush.TextMuted}" TextWrapping="Wrap" />
@@ -12,6 +12,7 @@ public sealed partial class ConfirmDialog : TitanoWindow
DataContext = request;
InitializeComponent();
Action.SetResourceReference(StyleProperty, request.IsDestructive ? "Button.Destructive" : "Button.Primary");
if (!request.IsDetailMonospaced) DetailText.SetResourceReference(FontFamilyProperty, "Font.Ui");
if (request.TypedConfirmation is null) return;
Typing.Visibility = Visibility.Visible;
Loaded += (_, _) => Typed.Focus();
+3 -2
View File
@@ -154,8 +154,8 @@ public static class ScreenCapture
/// <summary>
/// <c>library-timeline</c>, <c>library-mass</c> (the selection with the whole bar), <c>library-delete</c> (the dry run
/// of deleting that selection, behind its typed confirmation) and <c>library-remote</c> (the server's sequences as
/// remote cards), then the Library as it was.
/// of deleting that selection, behind its typed confirmation), <c>library-remote</c> (the server's sequences as
/// remote cards) and <c>library-viewname</c> (Save view), then the Library as it was.
/// </summary>
private static async Task<int> CaptureLibraryScenesAsync(MainWindow window, ShellViewModel shell, string directory, AppTheme theme)
{
@@ -168,6 +168,7 @@ public static class ScreenCapture
if (scene == "mass" && await LibraryScenes.DeleteRequestAsync(shell) is { } request)
written += await SaveDialogAsync(new ConfirmDialog(request), directory, "library-delete", theme);
}
shell.Library.Dialog?.CloseCommand.Execute(null);
shell.Library.ClearSelectionCommand.Execute(null);
shell.Library.ClearFiltersCommand.Execute(null);
shell.Library.LayoutIndex = 0;