wip(app): delete dialog, keyboard timeline, status filters, remote facets
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
10 files changed
+407
-65
No files matched your search
@@ -8,8 +8,11 @@ namespace Titano.App.Archiving;
|
||||
/// <summary>The words of a delete dry run (<see cref="DeletePlan"/>): the destructive confirmation and the lines of what cannot move.</summary>
|
||||
public static class DeletePlans
|
||||
{
|
||||
/// <summary>Sequences named one by one in the confirmation; the rest are counted.</summary>
|
||||
public const int ListedLines = 8;
|
||||
/// <summary>Sequences that move, named one by one in the confirmation; the rest are counted.</summary>
|
||||
public const int ListedLines = 6;
|
||||
|
||||
/// <summary>Sequences that cannot move, named one by one; the rest are counted. With <see cref="ListedLines"/> it keeps the confirmation within a 768 px screen.</summary>
|
||||
public const int BlockedLines = 3;
|
||||
|
||||
/// <summary>The destructive confirmation of a plan; null when nothing in it can move.</summary>
|
||||
public static ConfirmRequest? Request(DeletePlan plan)
|
||||
@@ -19,7 +22,7 @@ public static class DeletePlans
|
||||
var lines = plan.Steps.Take(ListedLines).Select(s => Loc.L("Archive.Delete.Line", s.Sequence.DisplayTitle,
|
||||
Loc.Plural("Shell.Status.Photos", s.Sequence.FrameCount), Formatting.Bytes(s.Bytes))).ToList();
|
||||
if (plan.Steps.Count > ListedLines) lines.Add(Loc.Plural("Archive.Delete.More", plan.Steps.Count - ListedLines));
|
||||
lines.AddRange(Blocked(plan, ListedLines));
|
||||
lines.AddRange(Blocked(plan, BlockedLines));
|
||||
return new ConfirmRequest
|
||||
{
|
||||
Heading = Loc.Plural("Archive.Delete.Heading", plan.Steps.Count),
|
||||
|
||||
Reference in new issue
Block a user