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
@@ -302,6 +302,55 @@ public sealed class SettingsScreenSmokeTests
|
||||
Assert.Equal(edited, shell.Services.Settings.FileTemplate);
|
||||
});
|
||||
|
||||
[Test]
|
||||
public Task AFolderTypedAsTheArchiveFolderBecomesAnArchiveOnlyWhenTheUserConfirms() => ScreenHost.RunAsync(async () =>
|
||||
{
|
||||
// Rc.14 review: the folder may be half-typed or one of the user's own; nothing is written there unasked.
|
||||
var dialogs = new AnsweringDialogs();
|
||||
await using var app = await ScreenSmokeTests.SampleApp.StartAsync(dialogs: dialogs);
|
||||
var shell = app.Shell;
|
||||
var settings = shell.Settings;
|
||||
shell.Navigate(SectionKey.Settings);
|
||||
settings.Page = SettingsPage.Archive;
|
||||
var mine = System.IO.Path.Combine(shell.Services.Environment.DataDirectory, "my-photos");
|
||||
System.IO.Directory.CreateDirectory(mine);
|
||||
var manifest = new Chronos.Core.Archiving.ArchivePaths(mine).ManifestPath;
|
||||
|
||||
settings.ArchiveRoot.Text = mine;
|
||||
Assert.True(settings.ArchiveRoot.Commit());
|
||||
await settings.ArchiveRetarget;
|
||||
Assert.Count(1, dialogs.Asked);
|
||||
Assert.Equal(mine, dialogs.Asked[0].Detail);
|
||||
Assert.False(System.IO.File.Exists(manifest), "declined: the folder stays as it was");
|
||||
Assert.Empty(System.IO.Directory.EnumerateFileSystemEntries(mine));
|
||||
Assert.Equal(mine, shell.Services.Settings.LastArchivePath);
|
||||
|
||||
dialogs.Answer = true;
|
||||
settings.ArchiveRoot.Text = string.Empty;
|
||||
Assert.True(settings.ArchiveRoot.Commit());
|
||||
await settings.ArchiveRetarget;
|
||||
settings.ArchiveRoot.Text = mine;
|
||||
Assert.True(settings.ArchiveRoot.Commit());
|
||||
await settings.ArchiveRetarget;
|
||||
Assert.Count(2, dialogs.Asked);
|
||||
Assert.True(System.IO.File.Exists(manifest), "confirmed: the folder is an archive");
|
||||
});
|
||||
|
||||
/// <summary>Dialogs that record each confirmation and give <see cref="Answer"/>.</summary>
|
||||
private sealed class AnsweringDialogs : IAppDialogs
|
||||
{
|
||||
public bool Answer { get; set; }
|
||||
public List<ConfirmRequest> Asked { get; } = [];
|
||||
public string? PickFolder(string title, string? initialFolder = null) => null;
|
||||
public string? PickJsonFile(string title) => null;
|
||||
public bool Confirm(ConfirmRequest request)
|
||||
{
|
||||
Asked.Add(request);
|
||||
return Answer;
|
||||
}
|
||||
public bool SignIn(string server, string? username, Func<string, string, Task<string?>> signIn) => false;
|
||||
}
|
||||
|
||||
[Test]
|
||||
public Task TheFirstRunDialogKeepsTheKeyboardInside() => ScreenHost.RunAsync(async () =>
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user