feat: work board, no usage data, archive folder tree, deploy guide (owner review 4 + owner review 1 phase 6) (#62)
CI / Build and test (push) Successful in 10m37s
CI / Windows tests and installer (push) Skipped
CI / YAML check (push) Successful in 9s
Release / Build, test and publish (push) Successful in 16m19s
CI / PostgreSQL 16 integration (push) Successful in 10m19s
CI / PostgreSQL 17 integration (push) Successful in 11m27s
CI / Docker image (push) Successful in 57s
Release / Server image (push) Successful in 1m34s

Owner review 4 and owner review 1 phase 6.

- Work board in Videos (desktop and admin panel): Published and Workspace lanes (#29).
- Anonymous usage counts removed: Chronos sends nothing about its use (#30).
- The archive's whole folder tree is created inside any archive root, on the server and the desktop (#31).
- Video cards start with the preset; sizes keep number and unit together (#28).
- Deploy guide docs/deploy (Docker, Unraid, desktop), BRIEF §24, original documentation in docs/reference/original (#22).

Closes #22 #28 #29 #30 #31

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Alberto Balbo <alberto.balbo.96@gmail.com>
This commit was merged in pull request #62.
This commit is contained in:
Alby96andClaude Opus 5.5 authored and Alby96 committed 2026-11-06 18:46:22 +01:00
1 parent 728ffa35cb
commit 0075065884
304 files changed
+6892 -325

No files matched your search

+21 -2
View File
@@ -141,7 +141,8 @@ public sealed class ArchiveService : IJobHandlerProvider
settings = WithUsableName(settings, paths);
settings.Validate();
if (File.Exists(paths.ManifestPath)) throw new InvalidOperationException($"{paths.Root} already is a Chronos archive.");
Directory.CreateDirectory(paths.MetaDirectory);
var structure = EnsureStructure(paths, createRoot: true);
if (!structure.IsComplete) throw new ArchiveStructureException(structure);
var manifest = new ArchiveManifest
{
Id = Guid.CreateVersion7(),
@@ -164,7 +165,10 @@ public sealed class ArchiveService : IJobHandlerProvider
{
var paths = new ArchivePaths(root);
var archive = await RegisterAsync(paths, ManifestStore.ReadArchive(paths.ManifestPath), cancellationToken).ConfigureAwait(false);
if (ArchiveVolume.Probe(paths) != ArchiveAvailability.Online) return archive;
var availability = ArchiveVolume.Probe(paths);
// Folders an older Chronos, another program or a copy left out are made again; a read-only archive only says which.
if (availability != ArchiveAvailability.Offline) EnsureStructure(paths);
if (availability != ArchiveAvailability.Online) return archive;
try
{
await Renamer.ResumePendingAsync(archive, cancellationToken).ConfigureAwait(false);
@@ -571,6 +575,21 @@ public sealed class ArchiveService : IJobHandlerProvider
await Imports.PlanEraseAsync(await LoadArchiveAsync(archiveId, cancellationToken).ConfigureAwait(false), cardId, sourceRoot, progress,
cancellationToken).ConfigureAwait(false);
/// <summary>
/// Creates the folders of the archive's layout that are missing (<see cref="ArchiveStructure.Ensure"/>), logging what it
/// made and, as a warning, why the layout stays incomplete. <see cref="CreateAsync(string, ArchiveSettings, CancellationToken)"/>
/// and <see cref="OpenAsync"/> run it; it never throws for the file system.
/// </summary>
public static ArchiveStructureReport EnsureStructure(ArchivePaths paths, bool createRoot = false)
{
ArgumentNullException.ThrowIfNull(paths);
var report = ArchiveStructure.Ensure(paths, createRoot);
if (report.Created.Count > 0)
Log.Info("archive", $"Archive folders created in {paths.Root}: {string.Join(", ", report.Created.Select(f => f == paths.Root ? "." : paths.ToRelative(f)))}");
if (!report.IsComplete) Log.Warning("archive", $"The archive folders of {paths.Root} are incomplete: {report.Message} {report.Detail}".TrimEnd());
return report;
}
/// <summary>
/// <paramref name="settings"/> with a name an archive can keep: a blank one becomes the folder's name (the root itself
/// for a drive root), one longer than <see cref="ArchiveSettings.MaxNameLength"/> is shortened.
+1 -1
View File
@@ -110,7 +110,7 @@ public sealed record PhotoRestoreResult(Sequence Sequence, int Restored, IReadOn
public sealed partial class FrameTrash
{
/// <summary>Folder of the photo entries inside the trash.</summary>
public const string FolderName = "photos";
public const string FolderName = ArchiveLayout.TrashPhotosFolder;
/// <summary>What <see cref="TrashEntry.Name"/> of a photo entry starts with (the folder name follows).</summary>
public const string EntryPrefix = "photos-";
+1 -1
View File
@@ -119,7 +119,7 @@ public sealed class TrashMismatchException() : IOException(Loc.L("Archive.Error.
public sealed partial class SequenceTrash
{
/// <summary>Folder of the trash inside the archive's <c>.chronos</c>.</summary>
public const string FolderName = "trash";
public const string FolderName = ArchiveLayout.TrashFolder;
private const string RecordExtension = ".json";
+1 -1
View File
@@ -192,7 +192,7 @@ public static class VideoTrashNames
public const string Prefix = "videos-";
/// <summary>The folder of the videos area inside an archive's trash, which holds the entries and their records.</summary>
public const string FolderName = "videos";
public const string FolderName = Chronos.Core.Archiving.ArchiveLayout.TrashVideosFolder;
/// <summary>The entry name of render <paramref name="renderId"/> deleted at <paramref name="deletedAt"/>.</summary>
public static string EntryName(Guid renderId, DateTimeOffset deletedAt) =>