feat: Phase 0 shells, design system, server skeleton, Docker and CI

- Titano.Ui: DESIGN.md tokens (dark/light), generated 16-px icon set,
  styles for all standard controls, custom chrome window with snap
  layouts, rail, job bar, Auto/manual slider, chips, toasts.
- Titano desktop shell with sections, Settings (language, theme),
  About and a --capture screenshot mode.
- Titano Server skeleton: env/server.json configuration, self-signed
  TLS with fingerprint, /health, /server/info, i18n endpoint and the
  embedded admin panel; in-process server tests.
- Docker image (multi-arch, PUID/PGID, health check), compose file,
  Unraid template; CI, release and nightly workflows; changelog tool.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
Claude committed 2026-10-02 09:35:03 +00:00
1 parent 800843d2ae
commit c40b6a7cd3
122 files changed
+6838 -22

No files matched your search

+4 -4
View File
@@ -7,12 +7,12 @@ namespace Titano.Testing;
/// <summary>Assertions with messages that state expected and actual values.</summary>
public static class Assert
{
public static void True(bool condition, string? message = null, [CallerArgumentExpression(nameof(condition))] string? expression = null)
public static void True([System.Diagnostics.CodeAnalysis.DoesNotReturnIf(false)] bool condition, string? message = null, [CallerArgumentExpression(nameof(condition))] string? expression = null)
{
if (!condition) Fail(message ?? $"Expected true: {expression}");
}
public static void False(bool condition, string? message = null, [CallerArgumentExpression(nameof(condition))] string? expression = null)
public static void False([System.Diagnostics.CodeAnalysis.DoesNotReturnIf(true)] bool condition, string? message = null, [CallerArgumentExpression(nameof(condition))] string? expression = null)
{
if (condition) Fail(message ?? $"Expected false: {expression}");
}
@@ -22,13 +22,13 @@ public static class Assert
if (value is not null) Fail($"Expected null: {expression} was {Format(value)}");
}
public static T NotNull<T>(T? value, [CallerArgumentExpression(nameof(value))] string? expression = null) where T : class
public static T NotNull<T>([System.Diagnostics.CodeAnalysis.NotNull] T? value, [CallerArgumentExpression(nameof(value))] string? expression = null) where T : class
{
if (value is null) Fail($"Expected non-null: {expression}");
return value!;
}
public static T NotNull<T>(T? value, [CallerArgumentExpression(nameof(value))] string? expression = null) where T : struct
public static T NotNull<T>([System.Diagnostics.CodeAnalysis.NotNull] T? value, [CallerArgumentExpression(nameof(value))] string? expression = null) where T : struct
{
if (value is null) Fail($"Expected non-null: {expression}");
return value!.Value;
+7
View File
@@ -13,6 +13,8 @@ internal sealed class ConsoleReporter(bool verbose) : IDisposable
switch (r.Outcome)
{
case TestOutcome.Failed:
if (GitHubActions)
Console.WriteLine($"::error title=Test failed::{Escape(r.Test.FullName)}: {Escape(r.Message ?? "failed")}");
Write(ConsoleColor.Red, "FAIL ");
Console.WriteLine($"{r.Test.FullName} ({Ms(r.Duration)})");
Console.WriteLine(" " + r.Message);
@@ -50,6 +52,11 @@ internal sealed class ConsoleReporter(bool verbose) : IDisposable
public void Dispose() => Console.Out.Flush();
private static bool GitHubActions { get; } = Environment.GetEnvironmentVariable("GITHUB_ACTIONS") == "true";
/// <summary>Workflow-command escaping (https://docs.github.com/actions/reference/workflow-commands).</summary>
private static string Escape(string s) => s.Replace("%", "%25", StringComparison.Ordinal).Replace("\r", "%0D", StringComparison.Ordinal).Replace("\n", "%0A", StringComparison.Ordinal);
private static string Ms(TimeSpan t) => t.TotalMilliseconds.ToString("F0", CultureInfo.InvariantCulture) + " ms";
private static string Indent(string s) => string.Join(Environment.NewLine, s.TrimEnd().Split('\n').Select(l => " " + l.TrimEnd('\r')));
+5 -2
View File
@@ -43,8 +43,10 @@ public static class TestRunner
}
if (selected.Count == 0)
{
Console.Error.WriteLine("No tests matched.");
return 2;
// An empty project is not a failure; a filter that matches nothing is a usage error.
var filtered = options.HasFilters;
Console.Error.WriteLine(filtered ? "No tests matched." : "No tests discovered.");
return filtered ? 2 : 0;
}
var stopwatch = Stopwatch.StartNew();
@@ -284,6 +286,7 @@ public static class TestRunner
public int Parallelism { get; private set; } = Math.Max(1, Environment.ProcessorCount);
public bool List { get; private set; }
public bool Verbose { get; private set; }
public bool HasFilters => Filters.Count > 0 || Excludes.Count > 0;
public static Options Parse(string[] args)
{