fix(app): archive tree selection, toolbar, filters and dialogs after review
- reloads and expanding never clear the tree selection; only jobs on this archive reload it, once they settle - one-row toolbar with the view switch and last scan on their own row; figure tiles shrink instead of cutting at the minimum width - set filter by camera, status and tag; duplicates and orphans searches can be cancelled; health fixes cover every matching sequence - Right/Left/Enter open and close years; dialogs hold the keyboard and only close themselves; disabled commands say why - adopt folder can copy into the layout (Import screen); database backup in Maintenance; Move dialog capture state Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
9 files changed
+614
-124
No files matched your search
@@ -4,12 +4,12 @@ namespace Titano.App.Archiving;
|
||||
|
||||
/// <summary>
|
||||
/// The Archive views that <c>--capture</c> renders (<c>archive-<view>-<theme>.png</c>) and the screen smoke
|
||||
/// tests check, on the sample archive: the tree with figures and charts, the maintenance view with its reports, and
|
||||
/// the rebuild dialog.
|
||||
/// tests check, on the sample archive: the tree with figures and charts, the maintenance view with its reports, the
|
||||
/// rebuild dialog, and the Move dialog with its dry run.
|
||||
/// </summary>
|
||||
public static class ArchiveScenes
|
||||
{
|
||||
public static readonly IReadOnlyList<string> Views = ["overview", "maintenance", "rebuild"];
|
||||
public static readonly IReadOnlyList<string> Views = ["overview", "maintenance", "rebuild", "move"];
|
||||
|
||||
public static async Task ShowAsync(ShellViewModel shell, string view)
|
||||
{
|
||||
@@ -32,6 +32,15 @@ public static class ArchiveScenes
|
||||
archive.ViewIndex = 0;
|
||||
(await archive.OpenRebuildDialogAsync())?.ShowFolders(SampleReports.Folders(locations));
|
||||
break;
|
||||
case "move":
|
||||
archive.ViewIndex = 0;
|
||||
await archive.OpenRenameDialogAsync(RenameMode.Folders);
|
||||
if (archive.Dialog is RenameDialogViewModel move)
|
||||
{
|
||||
move.Template.Text = "{year}/{date} {title}";
|
||||
await move.PlanAsync();
|
||||
}
|
||||
break;
|
||||
default:
|
||||
throw new ArgumentOutOfRangeException(nameof(view), view, "Unknown Archive view.");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user