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:
57 files changed
+8742
-23
No files matched your search
@@ -2,6 +2,7 @@ using System.IO;
|
||||
using System.Net;
|
||||
using Titano.App.About;
|
||||
using Titano.App.Editor;
|
||||
using Titano.App.Import;
|
||||
using Titano.App.Infrastructure;
|
||||
using Titano.App.Server;
|
||||
using Titano.App.Settings;
|
||||
@@ -56,6 +57,8 @@ public sealed class SampleData
|
||||
services.Server = new ServerSession(settings, services.SaveSettings, new SampleServerApiFactory(), new PlainTokenProtector());
|
||||
services.Encoders = new SampleEncoders();
|
||||
services.CheckForUpdateAsync = _ => Task.FromResult<ReleaseInfo?>(null);
|
||||
services.Devices.Dispose();
|
||||
services.Devices = new SampleDeviceMonitor();
|
||||
var sample = new SampleData(services);
|
||||
services.Sync.RemoteFactory = (_, _, _) => sample._remote;
|
||||
return sample;
|
||||
@@ -77,6 +80,9 @@ public sealed class SampleData
|
||||
Directory.CreateDirectory(root);
|
||||
var archive = new Archive { Id = Guid.CreateVersion7(), Name = "TitanoArchive", RootPath = root, Created = DateTimeOffset.UtcNow.AddYears(-2) };
|
||||
await db.Archives.UpsertAsync(archive);
|
||||
var paths = new ArchivePaths(root);
|
||||
Directory.CreateDirectory(paths.MetaDirectory);
|
||||
ManifestStore.WriteArchive(paths.ManifestPath, new ArchiveManifest { Id = archive.Id, Name = archive.Name, Created = archive.Created });
|
||||
|
||||
var sequences = Sequences(archive.Id).ToList();
|
||||
foreach (var (sequence, colours, raw) in sequences)
|
||||
@@ -89,6 +95,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);
|
||||
|
||||
settings.LastArchivePath = @"D:\TitanoArchive";
|
||||
settings.ServerUrl = "https://nas.local:8443";
|
||||
|
||||
Reference in new issue
Block a user