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
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:
1 parent
728ffa35cb
commit
0075065884
304 files changed
+6892
-325
No files matched your search
@@ -22,6 +22,9 @@ public enum LibraryLayout
|
||||
|
||||
/// <summary>Year bands with photos per month above the card grid.</summary>
|
||||
Timeline,
|
||||
|
||||
/// <summary>The Videos section's two lanes, Published and Workspace (the Library has no board).</summary>
|
||||
Board,
|
||||
}
|
||||
|
||||
/// <summary>Rendering quality profile (Settings › Rendering).</summary>
|
||||
@@ -94,9 +97,6 @@ public sealed class AppSettings
|
||||
/// <summary>The sequence opened in Edit last; the picker selects it first (owner review 1, R7).</summary>
|
||||
public Guid? LastEditedSequence { get; set; }
|
||||
|
||||
/// <summary>The first-run consent of BRIEF §21; offered only by builds with <see cref="ProductFeatures.AdsEnabled"/>.</summary>
|
||||
public bool AnonymousUsageCounts { get; set; }
|
||||
|
||||
/// <summary>Toasts also appear as Windows notifications while the window is minimised or in the background (BRIEF §12.1).</summary>
|
||||
public bool OsNotifications { get; set; } = true;
|
||||
|
||||
@@ -164,7 +164,10 @@ public sealed class AppSettings
|
||||
public LibraryLayout LibraryLayout { get; set; } = LibraryLayout.Grid;
|
||||
public SequenceSort LibrarySort { get; set; } = SequenceSort.Newest;
|
||||
|
||||
/// <summary>The Videos section as cards (<see cref="LibraryLayout.Grid"/>) or as a list (<see cref="LibraryLayout.List"/>).</summary>
|
||||
/// <summary>
|
||||
/// The Videos section as cards (<see cref="LibraryLayout.Grid"/>), as a list (<see cref="LibraryLayout.List"/>) or as the
|
||||
/// Board (<see cref="LibraryLayout.Board"/>).
|
||||
/// </summary>
|
||||
public LibraryLayout VideosLayout { get; set; } = LibraryLayout.Grid;
|
||||
|
||||
// ---- Rendering ----
|
||||
@@ -402,12 +405,14 @@ public sealed class AppSettings
|
||||
|
||||
/// <summary>
|
||||
/// Settings › Import: <paramref name="imported"/> with this PC's own values taken from these settings: the session, the
|
||||
/// window and its rail, the sequence edited last, the first-run flag, and the workspace (its folder, the projects opened
|
||||
/// last and when). Changes and returns <paramref name="imported"/>.
|
||||
/// window and its rail, the sequence edited last, the first-run flag, the archive folder (another PC's drive letter can
|
||||
/// name one of this PC's own folders), and the workspace (its folder, the projects opened last and when). Changes and
|
||||
/// returns <paramref name="imported"/>.
|
||||
/// </summary>
|
||||
public AppSettings KeepLocalIn(AppSettings imported)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(imported);
|
||||
imported.LastArchivePath = LastArchivePath;
|
||||
imported.ProtectedToken = ProtectedToken;
|
||||
imported.ServerUrl = ServerUrl;
|
||||
imported.Window = Window;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using System.IO;
|
||||
using Chronos.App.Archiving;
|
||||
using Chronos.Core.Archiving;
|
||||
using Chronos.Core.Diagnostics;
|
||||
using Chronos.Data.Archiving;
|
||||
|
||||
@@ -35,8 +36,14 @@ public sealed class EngineArchiveSetup(AppServices services) : IArchiveSetup
|
||||
var defaults = services.Settings.ArchiveDefaults();
|
||||
var archive = await Task.Run(async () =>
|
||||
{
|
||||
Directory.CreateDirectory(root);
|
||||
return await archives.AdoptAsync(root, defaults, cancellationToken).ConfigureAwait(false);
|
||||
// A new archive is made with its whole layout (the folder itself included), or not at all; an existing one gets
|
||||
// the folders it lacks. One that can be written but not completed is refused with the reason, before it becomes
|
||||
// the archive of this PC; a read-only one opens as before, to be browsed.
|
||||
var opened = await archives.AdoptAsync(root, defaults, cancellationToken).ConfigureAwait(false);
|
||||
var paths = new ArchivePaths(root);
|
||||
if (ArchiveStructure.Ensure(paths) is { IsComplete: false } structure && ArchiveVolume.Probe(paths) == ArchiveAvailability.Online)
|
||||
throw new ArchiveStructureException(structure);
|
||||
return opened;
|
||||
}, cancellationToken);
|
||||
services.Settings.LastArchivePath = root;
|
||||
services.SaveSettings();
|
||||
|
||||
@@ -5,10 +5,16 @@ namespace Chronos.App.Infrastructure;
|
||||
/// <summary>Culture-aware number, size and duration formatting for the UI.</summary>
|
||||
public static class Formatting
|
||||
{
|
||||
/// <summary>U+00A0, which joins a number to its unit.</summary>
|
||||
public const char NoBreakSpace = '\u00A0';
|
||||
|
||||
/// <summary>Localized "{0} KB" formats from bytes to petabytes (BRIEF §16: sizes follow the language, "96,2 Go").</summary>
|
||||
private static readonly string[] ByteUnits = ["Common.Size.B", "Common.Size.KB", "Common.Size.MB", "Common.Size.GB", "Common.Size.TB", "Common.Size.PB"];
|
||||
|
||||
/// <summary>1,536 → "1.5 KB" (decimal units, as Explorer shows for drives).</summary>
|
||||
/// <summary>
|
||||
/// 1,536 → "1.5 KB" (decimal units, as Explorer shows for drives), the number and its unit held together by a no-break
|
||||
/// space (U+00A0) so a wrapped or trimmed line never parts them (issue #28).
|
||||
/// </summary>
|
||||
public static string Bytes(long bytes)
|
||||
{
|
||||
double value = bytes;
|
||||
@@ -19,7 +25,7 @@ public static class Formatting
|
||||
unit++;
|
||||
}
|
||||
var format = unit == 0 || value >= 100 ? "0" : "0.#";
|
||||
return Loc.L(ByteUnits[unit], value.ToString(format, Loc.Culture));
|
||||
return Loc.L(ByteUnits[unit], value.ToString(format, Loc.Culture)).Replace(' ', NoBreakSpace);
|
||||
}
|
||||
|
||||
public static string Count(long n) => n.ToString("N0", Loc.Culture);
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace Chronos.App.Infrastructure;
|
||||
public static class ProductFeatures
|
||||
{
|
||||
/// <summary>
|
||||
/// Monetization (BRIEF §21: ads, the anonymous usage counts consent, the licence) ships disabled until a build sets
|
||||
/// Monetization (BRIEF §21: ads, the licence) ships disabled until a build sets
|
||||
/// <c>ChronosAdsEnabled=true</c>; until then nothing of it shows.
|
||||
/// </summary>
|
||||
public static bool AdsEnabled { get; } = Flag("ChronosAdsEnabled");
|
||||
|
||||
Reference in new issue
Block a user