merge: card import and archive manager screens (card pool, plan, verified erase and format, server destination, tree, charts, maintenance)

Union of the Tooltips resources; sample data keeps the sync server and the
simulated cards; the import test names App.Infrastructure.Formatting fully now
that a test namespace of the same name exists.

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-03 11:01:34 +00:00
commit 828c64a485
57 files changed
+8742 -23

No files matched your search

@@ -71,6 +71,30 @@ public abstract class MediaCardRepositoryTests(TestContext context) : Repository
Assert.Equal(0, (await db.MediaCards.GetImportedKeysAsync(card.Id, Ct)).Count);
}
[Test]
public async Task AJobListsOnlyTheFilesItRecorded()
{
var db = await OpenTitanoAsync();
var card = Card();
await db.MediaCards.UpsertAsync(card, Ct);
var modified = new DateTimeOffset(2026, 9, 28, 18, 0, 0, TimeSpan.Zero);
var first = Guid.CreateVersion7();
var second = Guid.CreateVersion7();
await db.MediaCards.RecordImportsAsync(
[
new ImportRecord(card.Id, new ImportKey("DCIM/100CANON/IMG_0002.CR3", 10, modified), null, null, first, TestData.Now),
new ImportRecord(card.Id, new ImportKey("DCIM/100CANON/IMG_0001.CR3", 10, modified), null, null, first, TestData.Now),
new ImportRecord(card.Id, new ImportKey("DCIM/100CANON/IMG_0003.CR3", 10, modified), null, null, second, TestData.Now),
], Ct);
// Importing a file again moves it to the later job.
await db.MediaCards.RecordImportsAsync([new ImportRecord(card.Id, new ImportKey("DCIM/100CANON/IMG_0002.CR3", 10, modified), null, null, second, TestData.Now)], Ct);
Assert.SequenceEqual(["DCIM/100CANON/IMG_0001.CR3"], (await db.MediaCards.ListImportsByJobAsync(card.Id, first, Ct)).Select(r => r.Key.Path));
Assert.SequenceEqual(["DCIM/100CANON/IMG_0002.CR3", "DCIM/100CANON/IMG_0003.CR3"],
(await db.MediaCards.ListImportsByJobAsync(card.Id, second, Ct)).Select(r => r.Key.Path));
Assert.Empty(await db.MediaCards.ListImportsByJobAsync(Card().Id, second, Ct));
}
private static MediaCard Card() => new()
{
Id = Guid.CreateVersion7(),