test(app): Library logic tests, capture scenes and smoke tests
Timeline bands and month mapping, saved views (validation and a round trip through the settings table), the mass actions bar's targets and reasons, remote cards and their place among the pages, the CSV list and the delete dry run's confirmation. --capture writes library-timeline, library-mass, library-delete and library-remote in both themes (LibraryScenes), the sample data saves two views, and a Windows smoke test renders each scene and checks the bar, the typed confirmation and the saved views. 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
+729
No files matched your search
@@ -4,6 +4,7 @@ using Titano.App.About;
|
||||
using Titano.App.Editor;
|
||||
using Titano.App.Import;
|
||||
using Titano.App.Infrastructure;
|
||||
using Titano.App.Library;
|
||||
using Titano.App.Server;
|
||||
using Titano.App.Settings;
|
||||
using Titano.Core.Advice;
|
||||
@@ -96,6 +97,7 @@ public sealed class SampleData
|
||||
foreach (var job in Jobs(sequences.Select(s => s.Sequence).ToList(), archive.Id)) await db.Jobs.EnqueueAsync(job);
|
||||
await FillServerAsync(db, sequences.Select(s => s.Sequence).ToList());
|
||||
await SampleCards.InsertAsync(db, (SampleDeviceMonitor)_services.Devices, _services.Environment.DataDirectory);
|
||||
await FillViewsAsync(db);
|
||||
|
||||
settings.LastArchivePath = @"D:\TitanoArchive";
|
||||
settings.ServerUrl = "https://nas.local:8443";
|
||||
@@ -107,6 +109,15 @@ public sealed class SampleData
|
||||
settings.FirstRunCompleted = true;
|
||||
}
|
||||
|
||||
/// <summary>Two saved views of the Library ("Not analysed, largest" and one camera), BRIEF §12.2.</summary>
|
||||
private static async Task FillViewsAsync(TitanoDatabase db)
|
||||
{
|
||||
var views = new SavedViewStore(db.Settings);
|
||||
await views.SaveAsync(SavedView.Of(Guid.CreateVersion7(), "Not analysed, largest",
|
||||
new LibraryFilter { Status = StatusFilter.NotAnalysed, Sort = Data.Repositories.SequenceSort.Size }));
|
||||
await views.SaveAsync(SavedView.Of(Guid.CreateVersion7(), "Nikon Z 8", new LibraryFilter { Camera = "NIKON Z 8" }));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Transfers for the sync table: an upload at 46 % (Comet over the ridge), an upload waiting (Fog lifting, Asti), a
|
||||
/// download of originals running (Sunrise over Superga) and one paused (Lake Como storm).
|
||||
|
||||
Reference in new issue
Block a user