feat: owner review 2 phase 1: :latest, Unraid array space, Settings with About, whole-folder import (#9)
CI / Build and test (push) Successful in 5m11s
CI / Windows tests and installer (push) Skipped
CI / YAML check (push) Successful in 6s
Release / Build, test and publish (push) Successful in 8m57s
CI / PostgreSQL 16 integration (push) Successful in 3m10s
CI / PostgreSQL 17 integration (push) Successful in 3m30s
CI / Docker image (push) Successful in 49s
Release / Server image (push) Successful in 1m4s

- :latest follows the highest stable release, or the highest pre-release while none is stable (Chronos.Tools release-channels); bad tags are refused before anything is built.
- Unraid: CHRONOS_SPACE_PATH and the template's Array view show the array's free space; the write volume (cache) is shown apart; completions check the archive volume (507).
- Settings is a gear, docked at the foot of the admin sidebar; About is the last part of Settings on the desktop and the panel.
- Import > Folder > Whole folder: one sequence per format (desktop only).

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 #9.
This commit is contained in:
Alby96andClaude Opus 5.5 authored and Alby96 committed 2026-10-27 01:09:59 +01:00
1 parent 5acdf146c7
commit 1f089888e8
320 files changed
+3030 -927

No files matched your search

@@ -308,6 +308,18 @@ public sealed class SettingsLogicTests
Assert.Equal(("Not supported", "—", "—", false), (none.TierText, none.DecoderText, none.NeedsText, none.HasNeeds));
}
[Test]
public void ASettingsPageIsFoundOnlyByTheRowsItShows()
{
// About's translation row shows outside English only: its keyword is read at each search, not once (owner review 2).
var shown = false;
var about = new SettingsPageItem(SettingsPage.About, () => shown ? ["About.Translation"] : []);
Assert.False(about.Matches(Loc.L("About.Translation")), "a hidden row does not match");
shown = true;
Assert.True(about.Matches(Loc.L("About.Translation")));
Assert.True(new SettingsPageItem(SettingsPage.About, ["About.Build"]).Matches(Loc.L("About.Build")));
}
[Test]
public void EnumDrivenKeysExistInEveryRequiredLanguage()
{
@@ -320,14 +320,62 @@ public sealed class SettingsScreenSmokeTests
app.Shell.CompleteWelcome();
});
[Test]
public Task AboutIsTheLastSettingsPageAndOffersNothingTwice() => ScreenHost.RunAsync(async () =>
{
// Owner review 2, R5: About left the rail for the end of Settings; Settings alone docks at the bottom of the rail.
await using var app = await ScreenSmokeTests.SampleApp.StartAsync();
var shell = app.Shell;
var settings = shell.Settings;
Assert.SequenceEqual([SectionKey.Settings], shell.BottomSections.Select(s => s.Key));
Assert.Equal(SettingsPage.About, settings.AllPages[^1].Page);
shell.About.SetResult(null);
shell.Navigate(SectionKey.Settings);
settings.Page = SettingsPage.About;
await app.ExpectAsync<SettingsView>("settings-about");
Assert.Equal(Loc.L("Settings.Page.About"), settings.PageTitle);
// This copy's identity: nothing to reset.
Assert.False(settings.CanResetSection);
Assert.False(app.FindAll<Button>().Any(b => b.Content as string == Loc.L("Settings.ResetSection") && b.IsVisible), "no Reset section on About");
Assert.True(app.FindAll<TextBlock>().Any(t => t.IsVisible && t.Text == shell.About.Build), "the build is shown");
var licence = app.FindAll<Button>().Single(b => b.IsVisible && ReferenceEquals(b.Command, shell.About.OpenLicenceCommand));
Assert.Equal(Loc.L("Tooltips.About.Licence"), licence.ToolTip);
// English is the source language: no translation notice.
Assert.False(app.FindAll<Button>().Any(b => b.IsVisible && ReferenceEquals(b.Command, shell.About.ReviewTranslationCommand)), "no review link in English");
// One place each in Settings: the update check (Updates), the data folder and the diagnostics bundle (Advanced).
// (Rows build their content when first shown: those pages are shown once.)
foreach (var page in (SettingsPage[])[SettingsPage.Updates, SettingsPage.Advanced, SettingsPage.About])
{
settings.Page = page;
app.Window.UpdateLayout();
}
var buttons = app.FindAll<Button>();
Assert.Count(1, buttons.Where(b => ReferenceEquals(b.Command, shell.About.CheckCommand)));
Assert.Count(1, buttons.Where(b => ReferenceEquals(b.Command, settings.OpenDataFolderCommand)));
Assert.Count(1, buttons.Where(b => ReferenceEquals(b.Command, settings.ExportDiagnosticsCommand)));
// The search finds About by its rows and Updates by its releases link.
settings.SearchText = Loc.L("About.Build");
Assert.Contains(settings.VisiblePages, p => p.Page == SettingsPage.About);
settings.SearchText = Loc.L("About.Releases");
Assert.Contains(settings.VisiblePages, p => p.Page == SettingsPage.Updates);
settings.SearchText = Loc.L("About.Translation");
Assert.False(settings.VisiblePages.Any(p => p.Page == SettingsPage.About), "the hidden translation row does not match");
settings.SearchText = string.Empty;
});
[Test]
public Task ARightToLeftLanguageMirrorsEveryWindowAlsoThoseOpenedLater() => ScreenHost.RunAsync(async () =>
{
await using var app = await ScreenSmokeTests.SampleApp.StartAsync();
var settings = app.Shell.Settings;
app.Shell.About.SetResult(null);
app.Shell.Navigate(SectionKey.About);
await app.ExpectAsync<AboutView>("about");
var main = Window.GetWindow(app.FindAll<AboutView>().First(v => v.IsVisible));
app.Shell.Navigate(SectionKey.Settings);
settings.Page = SettingsPage.About;
await app.ExpectAsync<SettingsView>("settings-about");
var main = Window.GetWindow(app.FindAll<SettingsView>().First(v => v.IsVisible));
Assert.Equal(FlowDirection.LeftToRight, main.FlowDirection);
UiLanguage.Apply("ar");
@@ -350,13 +398,26 @@ public sealed class SettingsScreenSmokeTests
dialog.Show();
await loaded.Task.WaitAsync(TimeSpan.FromSeconds(10));
Assert.Equal(FlowDirection.RightToLeft, dialog.FlowDirection, "a window opened after the switch (a dialog) is mirrored too");
await app.ExpectAsync<AboutView>("about-ar");
await app.ExpectAsync<SettingsView>("settings-about-ar");
// Inside the mirrored window, paths and the logo keep their left-to-right order.
var path = app.FindAll<TextBlock>().First(t => t.IsVisible && t.Text == app.Shell.About.DataFolder);
// Inside the mirrored window, the logo and the build keep their left-to-right order; the translation notice shows.
var logos = app.FindAll<Chronos.Ui.Controls.BrandMarkIcon>().Where(b => b.IsVisible).ToList();
Assert.NotEmpty(logos);
Assert.True(logos.All(b => b.FlowDirection == FlowDirection.LeftToRight), "the logo is not mirrored");
var build = app.FindAll<TextBlock>().First(t => t.IsVisible && t.Text == app.Shell.About.Build);
Assert.Equal(FlowDirection.LeftToRight, build.FlowDirection);
Assert.True(app.FindAll<Button>().Any(b => b.IsVisible && ReferenceEquals(b.Command, app.Shell.About.ReviewTranslationCommand)), "Arabic is machine-translated");
// Paths keep their left-to-right order and show whole in their tooltip.
settings.Page = SettingsPage.Advanced;
await app.ExpectAsync<SettingsView>("settings-advanced-ar");
var path = Field(app, Loc.L("Settings.Advanced.DataFolder"));
Assert.Equal(FlowDirection.LeftToRight, path.FlowDirection);
Assert.Equal(app.Shell.About.DataFolder, path.ToolTip);
Assert.Equal(settings.DataFolder, path.ToolTip);
// The update result is a live region: screen readers hear each new state.
settings.Page = SettingsPage.Updates;
await app.ExpectAsync<SettingsView>("settings-updates-ar");
var update = app.FindAll<Chronos.Ui.Controls.StatusGlyph>().First(g => g.IsVisible && g.Text == app.Shell.About.UpdateText);
Assert.Equal(AutomationLiveSetting.Polite, AutomationProperties.GetLiveSetting(update));
Assert.Equal(app.Shell.About.UpdateAnnouncement, AutomationProperties.GetName(update));