feat(videos): board of published and workspace renders; card line starts with the preset
The Videos section and the admin Videos page gain a Board view with two
lanes, newest first, each with a count and the list's filters: Published
(library and server renders, including those sent from a workspace) and
Workspace (workspace exports, unsent ones plus sent ones marked Sent).
Cards show the sequence, project and version when known, preset, kind,
date and state chips, and reuse the existing actions; no new store.
Video cards now start with the preset ("4K archive · HEVC · 0:41 · 1.4 GB")
and Formatting.Bytes keeps number and unit together with a no-break space
(#28). The capture tool adds the videos-board scene in both themes.
Refs #29
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
fe50b87726
commit
5a6efbb72f
27 files changed
+792
-74
No files matched your search
@@ -42,10 +42,10 @@ public sealed class CardPoolTests
|
||||
Assert.Equal("New card", pool[0].StateText);
|
||||
Assert.Equal("EOS R5 · card A", pool[1].Title);
|
||||
Assert.Equal("Known card", pool[1].StateText);
|
||||
Assert.Equal("128 GB · 96.2 GB used", pool[1].Subtitle);
|
||||
Assert.Equal("128 GB · serial 3F2A-9C11 · Canon EOS R5 #0431", pool[1].IdentityText);
|
||||
Assert.Equal("128\u00A0GB · 96.2\u00A0GB used", pool[1].Subtitle);
|
||||
Assert.Equal("128\u00A0GB · serial 3F2A-9C11 · Canon EOS R5 #0431", pool[1].IdentityText);
|
||||
Assert.Equal(SourceKind.Drive, pool[2].Kind);
|
||||
Assert.Equal("no DCIM · 1.8 TB free", pool[2].Subtitle);
|
||||
Assert.Equal("no DCIM · 1.8\u00A0TB free", pool[2].Subtitle);
|
||||
Assert.False(pool[3].IsInserted);
|
||||
Assert.Null(pool[3].Root);
|
||||
Assert.Equal("Canon EOS R5 · not inserted", pool[3].Subtitle);
|
||||
@@ -72,8 +72,8 @@ public sealed class CardPoolTests
|
||||
public void TheEntryTooltipCarriesTheStateAndTheWholeSubtitle()
|
||||
{
|
||||
var pool = CardPool.Build([CardA, Usb], [Known(CardA, "EOS R5 · card A", DateTimeOffset.UtcNow)], @"D:\Shoots\2026");
|
||||
Assert.Equal("Known card · 128 GB · 96.2 GB used", pool[0].ToolTip);
|
||||
Assert.Equal("no DCIM · 1.8 TB free", pool[1].ToolTip);
|
||||
Assert.Equal("Known card · 128\u00A0GB · 96.2\u00A0GB used", pool[0].ToolTip);
|
||||
Assert.Equal("no DCIM · 1.8\u00A0TB free", pool[1].ToolTip);
|
||||
Assert.Equal(@"Folder · D:\Shoots\2026", pool[2].ToolTip);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,11 +40,11 @@ public sealed class ImportPlansTests
|
||||
Assert.Equal(80_000_000L, totals.FreeAfter);
|
||||
Assert.True(totals.HasEnoughSpace);
|
||||
Assert.Equal(TimeSpan.FromSeconds(3), totals.Estimate);
|
||||
Assert.Equal("3 sessions · 7 photos · 120 MB · about 3 s", totals.Text);
|
||||
Assert.Equal("3 sessions · 7 photos · 120 MB", totals.SummaryText);
|
||||
Assert.Equal("3 sessions · 7 photos · 120\u00A0MB · about 3 s", totals.Text);
|
||||
Assert.Equal("3 sessions · 7 photos · 120\u00A0MB", totals.SummaryText);
|
||||
Assert.Equal("1 duplicate", totals.DuplicatesText);
|
||||
Assert.Equal("Import 5 photos", totals.ImportText);
|
||||
Assert.Equal("80 MB free after import", totals.SpaceText);
|
||||
Assert.Equal("80\u00A0MB free after import", totals.SpaceText);
|
||||
}
|
||||
|
||||
[Test]
|
||||
@@ -52,7 +52,7 @@ public sealed class ImportPlansTests
|
||||
{
|
||||
var totals = ImportPlans.Totals(ThreeSessions(available: 100_000_000), verify: false);
|
||||
Assert.False(totals.HasEnoughSpace);
|
||||
Assert.Equal("20 MB missing", totals.SpaceText);
|
||||
Assert.Equal("20\u00A0MB missing", totals.SpaceText);
|
||||
Assert.Equal(string.Empty, ImportPlans.Totals(ThreeSessions(available: null), verify: false).SpaceText);
|
||||
Assert.Equal(TimeSpan.FromSeconds(2), ImportPlans.Totals(ThreeSessions(), verify: false).Estimate);
|
||||
}
|
||||
@@ -105,7 +105,7 @@ public sealed class ImportPlansTests
|
||||
Assert.Equal("Adds to · 2026/2026-09-29 Canon EOS R5", rows[1].TargetText);
|
||||
Assert.Equal("2026-09-28 Canon EOS R5", rows[0].DefaultTitle);
|
||||
Assert.Equal("Canon EOS R5", rows[0].CameraText);
|
||||
Assert.Equal("96 MB", rows[0].SizeText);
|
||||
Assert.Equal("96\u00A0MB", rows[0].SizeText);
|
||||
Assert.Contains("6:02", rows[0].TimeText);
|
||||
Assert.Equal("Server", ImportPlans.Sessions(plan, ImportDestinationKind.Server, new HashSet<string>())[0].TargetText);
|
||||
}
|
||||
@@ -140,7 +140,7 @@ public sealed class ImportPlansTests
|
||||
Assert.True(details.Rows.Single(r => r.Source.EndsWith("0007.CR2", StringComparison.Ordinal)).IsSkipped);
|
||||
Assert.Equal(3, details.Conflicts.Count);
|
||||
Assert.Contains("IMG_0099.CR2", details.Conflicts[0]);
|
||||
Assert.Equal("7 files · copy 5 (120 MB) · 1 imported before · 1 duplicate", details.TotalsText);
|
||||
Assert.Equal("7 files · copy 5 (120\u00A0MB) · 1 imported before · 1 duplicate", details.TotalsText);
|
||||
|
||||
var folder = ImportPlans.Details(plan, ImportDestinationKind.Folder, verify: true);
|
||||
Assert.Equal("2026/2026-09-28 Canon EOS R5/" + plan.Sessions[0].Items[0].FileName, folder.Rows[1].Destination);
|
||||
|
||||
@@ -26,7 +26,7 @@ public sealed class SampleCardsTests(TestContext context)
|
||||
var pool = CardPool.Build(devices.Devices, await db.MediaCards.ListAsync(context.Cancellation), null, contents);
|
||||
Assert.SequenceEqual(new[] { SourceKind.Card, SourceKind.Card, SourceKind.Drive, SourceKind.Card }, pool.Select(s => s.Kind));
|
||||
Assert.Equal("EOS R5 · card A", pool[0].Title);
|
||||
Assert.Equal("128 GB · serial 3F2A-9C11 · Canon EOS R5 #0431", pool[0].IdentityText);
|
||||
Assert.Equal("128\u00A0GB · serial 3F2A-9C11 · Canon EOS R5 #0431", pool[0].IdentityText);
|
||||
Assert.Equal("Canon EOS R5 · 50 photos", pool[0].ToastText);
|
||||
Assert.Contains("50 photos", pool[0].Subtitle);
|
||||
Assert.Equal("SONY", pool[1].Title);
|
||||
|
||||
Reference in new issue
Block a user