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

+43
View File
@@ -0,0 +1,43 @@
<UserControl x:Class="Titano.App.Sections.AboutView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:ui="clr-namespace:Titano.Ui.Controls;assembly=Titano.Ui"
xmlns:l="clr-namespace:Titano.Ui.Localization;assembly=Titano.Ui">
<Grid Margin="20,16,20,20">
<Border Style="{StaticResource Border.Panel}" Padding="28,24" HorizontalAlignment="Left" VerticalAlignment="Top" MinWidth="560">
<StackPanel>
<StackPanel Orientation="Horizontal" Margin="0,0,0,20">
<ui:BrandMarkIcon Width="56" Height="56" ShowPlate="True" />
<StackPanel Margin="16,0,0,0" VerticalAlignment="Center">
<TextBlock Text="{l:Loc Shell.AppName}" Style="{StaticResource Text.PageTitle}" FontSize="22" />
<TextBlock Text="{Binding Version}" Style="{StaticResource Text.Secondary}" Margin="0,2,0,0" />
</StackPanel>
</StackPanel>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="140" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="28" />
<RowDefinition Height="28" />
<RowDefinition Height="28" />
<RowDefinition Height="28" />
</Grid.RowDefinitions>
<TextBlock Text="{l:Loc About.Runtime}" Foreground="{DynamicResource Brush.TextMuted}" />
<TextBlock Grid.Column="1" Text="{Binding Runtime}" />
<TextBlock Grid.Row="1" Text="{l:Loc About.System}" Foreground="{DynamicResource Brush.TextMuted}" />
<TextBlock Grid.Row="1" Grid.Column="1" Text="{Binding OperatingSystem}" />
<TextBlock Grid.Row="2" Text="{l:Loc About.ThirdParty}" Foreground="{DynamicResource Brush.TextMuted}" />
<TextBlock Grid.Row="2" Grid.Column="1" Text="{l:Loc About.ThirdPartyNone}" />
<TextBlock Grid.Row="3" Text="{l:Loc About.Data}" Foreground="{DynamicResource Brush.TextMuted}" />
<TextBlock Grid.Row="3" Grid.Column="1" Text="{Binding DataFolder}" />
</Grid>
<StackPanel Orientation="Horizontal" Margin="0,20,0,0">
<Button Content="{l:Loc About.Releases}" Command="{Binding OpenReleasesCommand}" ToolTip="{l:Loc Tooltips.About.Releases}" Margin="0,0,8,0" ui:ButtonIcon.Glyph="{StaticResource Icon.ExternalLink}" />
<Button Content="{l:Loc About.OpenData}" Command="{Binding OpenDataFolderCommand}" ToolTip="{l:Loc Tooltips.About.OpenData}" ui:ButtonIcon.Glyph="{StaticResource Icon.FolderOpen}" />
</StackPanel>
</StackPanel>
</Border>
</Grid>
</UserControl>
@@ -0,0 +1,8 @@
using System.Windows.Controls;
namespace Titano.App.Sections;
public partial class AboutView : UserControl
{
public AboutView() => InitializeComponent();
}
+9
View File
@@ -0,0 +1,9 @@
<UserControl x:Class="Titano.App.Sections.ArchiveView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:ui="clr-namespace:Titano.Ui.Controls;assembly=Titano.Ui"
xmlns:l="clr-namespace:Titano.Ui.Localization;assembly=Titano.Ui">
<Grid Margin="20">
<ui:EmptyState Message="{l:Loc Archive.Empty}" />
</Grid>
</UserControl>
@@ -0,0 +1,8 @@
using System.Windows.Controls;
namespace Titano.App.Sections;
public partial class ArchiveView : UserControl
{
public ArchiveView() => InitializeComponent();
}
+9
View File
@@ -0,0 +1,9 @@
<UserControl x:Class="Titano.App.Sections.ImportView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:ui="clr-namespace:Titano.Ui.Controls;assembly=Titano.Ui"
xmlns:l="clr-namespace:Titano.Ui.Localization;assembly=Titano.Ui">
<Grid Margin="20">
<ui:EmptyState Message="{l:Loc Import.Empty}" />
</Grid>
</UserControl>
@@ -0,0 +1,8 @@
using System.Windows.Controls;
namespace Titano.App.Sections;
public partial class ImportView : UserControl
{
public ImportView() => InitializeComponent();
}
+9
View File
@@ -0,0 +1,9 @@
<UserControl x:Class="Titano.App.Sections.JobsView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:ui="clr-namespace:Titano.Ui.Controls;assembly=Titano.Ui"
xmlns:l="clr-namespace:Titano.Ui.Localization;assembly=Titano.Ui">
<Grid Margin="20">
<ui:EmptyState Message="{l:Loc Jobs.Empty}" />
</Grid>
</UserControl>
+8
View File
@@ -0,0 +1,8 @@
using System.Windows.Controls;
namespace Titano.App.Sections;
public partial class JobsView : UserControl
{
public JobsView() => InitializeComponent();
}
+15
View File
@@ -0,0 +1,15 @@
<UserControl x:Class="Titano.App.Sections.LibraryView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:ui="clr-namespace:Titano.Ui.Controls;assembly=Titano.Ui"
xmlns:l="clr-namespace:Titano.Ui.Localization;assembly=Titano.Ui">
<Grid Margin="20">
<ui:EmptyState Message="{l:Loc Library.Empty}">
<StackPanel Orientation="Horizontal">
<Button Style="{StaticResource Button.Primary}" Content="{l:Loc Library.Empty.ImportCard}" Command="{Binding ImportCardCommand}" ToolTip="{l:Loc Tooltips.Library.ImportCard}" Margin="0,0,8,0" />
<Button Content="{l:Loc Library.Empty.OpenArchive}" Command="{Binding OpenArchiveCommand}" ToolTip="{l:Loc Tooltips.Library.OpenArchive}" Margin="0,0,8,0" />
<Button Content="{l:Loc Library.Empty.Connect}" Command="{Binding ConnectCommand}" ToolTip="{l:Loc Tooltips.Library.Connect}" />
</StackPanel>
</ui:EmptyState>
</Grid>
</UserControl>
@@ -0,0 +1,8 @@
using System.Windows.Controls;
namespace Titano.App.Sections;
public partial class LibraryView : UserControl
{
public LibraryView() => InitializeComponent();
}
+164
View File
@@ -0,0 +1,164 @@
using System.Reflection;
using System.Windows.Input;
using Titano.App.Infrastructure;
using Titano.App.Shell;
using Titano.Core.Localization;
using Titano.Ui.Mvvm;
using Titano.Ui.Theming;
namespace Titano.App.Sections;
/// <summary>Library (home): sequences of the archive (BRIEF §12.2).</summary>
public sealed class LibraryViewModel(ShellViewModel shell) : SectionViewModel(SectionKey.Library, "Icon.Library")
{
public ShellViewModel Shell { get; } = shell;
public ICommand ImportCardCommand => new RelayCommand(() => Shell.Navigate(SectionKey.Import));
public ICommand OpenArchiveCommand => new RelayCommand(() => Shell.Navigate(SectionKey.Archive));
public ICommand ConnectCommand => new RelayCommand(() => Shell.Navigate(SectionKey.Server));
}
/// <summary>Card and folder import (BRIEF §12.4).</summary>
public sealed class ImportViewModel(ShellViewModel shell) : SectionViewModel(SectionKey.Import, "Icon.Import")
{
public ShellViewModel Shell { get; } = shell;
}
/// <summary>Sequence editor (BRIEF §12.3).</summary>
public sealed class SequenceViewModel(ShellViewModel shell) : SectionViewModel(SectionKey.Sequence, "Icon.Sequence")
{
public ShellViewModel Shell { get; } = shell;
public ICommand OpenLibraryCommand => new RelayCommand(() => Shell.Navigate(SectionKey.Library));
}
/// <summary>Archive manager (BRIEF §12.5).</summary>
public sealed class ArchiveViewModel(ShellViewModel shell) : SectionViewModel(SectionKey.Archive, "Icon.Archive")
{
public ShellViewModel Shell { get; } = shell;
}
/// <summary>Job queue and history (BRIEF §12.6).</summary>
public sealed class JobsViewModel(ShellViewModel shell) : SectionViewModel(SectionKey.Jobs, "Icon.Jobs")
{
public ShellViewModel Shell { get; } = shell;
}
/// <summary>Server connection and sync (BRIEF §12.7).</summary>
public sealed class ServerViewModel(ShellViewModel shell) : SectionViewModel(SectionKey.Server, "Icon.Server")
{
public ShellViewModel Shell { get; } = shell;
}
public sealed record LanguageOption(string Code, string Name);
/// <summary>Settings (BRIEF §12.8): section list on the left, controls on the right, tooltips only.</summary>
public sealed class SettingsViewModel : SectionViewModel
{
private readonly AppSettings _settings;
private string _page = "General";
public SettingsViewModel(ShellViewModel shell, AppSettings settings)
: base(SectionKey.Settings, "Icon.Settings")
{
Shell = shell;
_settings = settings;
Languages = Core.Localization.Languages.Shipped
.Select(c => new LanguageOption(c, Core.Localization.Languages.NativeName(c)))
.ToList();
SelectPageCommand = new RelayCommand(p =>
{
if (p is string page) Page = page;
});
}
public ShellViewModel Shell { get; }
public IReadOnlyList<string> Pages { get; } = ["General", "Advanced"];
public ICommand SelectPageCommand { get; }
public string Page
{
get => _page;
set => Set(ref _page, value);
}
public IReadOnlyList<LanguageOption> Languages { get; }
public LanguageOption SelectedLanguage
{
get => Languages.FirstOrDefault(l => l.Code.Equals(Loc.Culture.Name, StringComparison.OrdinalIgnoreCase)) ?? Languages[0];
set
{
if (value is null) return;
_settings.Language = value.Code;
App.Current.ApplyLanguage(value.Code);
App.Current.SaveSettings();
}
}
public bool IsDarkTheme
{
get => _settings.Theme == AppTheme.Dark;
set
{
if (value) ApplyTheme(AppTheme.Dark);
}
}
public bool IsLightTheme
{
get => _settings.Theme == AppTheme.Light;
set
{
if (value) ApplyTheme(AppTheme.Light);
}
}
public bool IsSystemTheme
{
get => _settings.Theme == AppTheme.System;
set
{
if (value) ApplyTheme(AppTheme.System);
}
}
public bool CheckForUpdates
{
get => _settings.CheckForUpdates;
set
{
_settings.CheckForUpdates = value;
App.Current.SaveSettings();
OnPropertyChanged();
}
}
private void ApplyTheme(AppTheme theme)
{
_settings.Theme = theme;
ThemeManager.Apply(theme);
App.Current.SaveSettings();
OnPropertyChanged(nameof(IsDarkTheme));
OnPropertyChanged(nameof(IsLightTheme));
OnPropertyChanged(nameof(IsSystemTheme));
}
}
/// <summary>About (BRIEF §12.9).</summary>
public sealed class AboutViewModel(ShellViewModel shell) : SectionViewModel(SectionKey.About, "Icon.About")
{
public ShellViewModel Shell { get; } = shell;
public string Version => typeof(App).Assembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>()?.InformationalVersion ?? "0.0.0";
public string Runtime => System.Runtime.InteropServices.RuntimeInformation.FrameworkDescription;
public string OperatingSystem => System.Runtime.InteropServices.RuntimeInformation.OSDescription;
public string DataFolder => App.Current.Environment.DataDirectory;
public ICommand OpenDataFolderCommand => new RelayCommand(() => ShellActions.OpenFolder(DataFolder));
public ICommand OpenReleasesCommand => new RelayCommand(() => ShellActions.OpenUrl(ProductLinks.Releases));
}
+11
View File
@@ -0,0 +1,11 @@
<UserControl x:Class="Titano.App.Sections.SequenceView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:ui="clr-namespace:Titano.Ui.Controls;assembly=Titano.Ui"
xmlns:l="clr-namespace:Titano.Ui.Localization;assembly=Titano.Ui">
<Grid Margin="20">
<ui:EmptyState Message="{l:Loc Editor.Empty}">
<Button Style="{StaticResource Button.Primary}" Content="{l:Loc Shell.Nav.Library}" Command="{Binding OpenLibraryCommand}" ToolTip="{l:Loc Tooltips.Nav.Library}" />
</ui:EmptyState>
</Grid>
</UserControl>
@@ -0,0 +1,8 @@
using System.Windows.Controls;
namespace Titano.App.Sections;
public partial class SequenceView : UserControl
{
public SequenceView() => InitializeComponent();
}
+9
View File
@@ -0,0 +1,9 @@
<UserControl x:Class="Titano.App.Sections.ServerView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:ui="clr-namespace:Titano.Ui.Controls;assembly=Titano.Ui"
xmlns:l="clr-namespace:Titano.Ui.Localization;assembly=Titano.Ui">
<Grid Margin="20">
<ui:EmptyState Message="{l:Loc Server.Empty}" />
</Grid>
</UserControl>
@@ -0,0 +1,8 @@
using System.Windows.Controls;
namespace Titano.App.Sections;
public partial class ServerView : UserControl
{
public ServerView() => InitializeComponent();
}
+88
View File
@@ -0,0 +1,88 @@
<UserControl x:Class="Titano.App.Sections.SettingsView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:ui="clr-namespace:Titano.Ui.Controls;assembly=Titano.Ui"
xmlns:l="clr-namespace:Titano.Ui.Localization;assembly=Titano.Ui"
xmlns:s="clr-namespace:Titano.App.Sections">
<Grid Margin="20,16,20,20">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="200" />
<ColumnDefinition Width="16" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<!-- Section list -->
<ListBox ItemsSource="{Binding Pages}" SelectedItem="{Binding Page}">
<ListBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Converter={x:Static s:SettingsPageNameConverter.Instance}}" />
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
<Border Grid.Column="2" Style="{StaticResource Border.Panel}" Padding="22,18">
<Grid>
<!-- General -->
<StackPanel x:Name="General">
<StackPanel.Style>
<Style TargetType="StackPanel">
<Setter Property="Visibility" Value="Collapsed" />
<Style.Triggers>
<DataTrigger Binding="{Binding Page}" Value="General"><Setter Property="Visibility" Value="Visible" /></DataTrigger>
</Style.Triggers>
</Style>
</StackPanel.Style>
<TextBlock Text="{l:Loc Settings.Page.General}" Style="{StaticResource Text.PageTitle}" Margin="0,0,0,16" />
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="180" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="44" />
<RowDefinition Height="44" />
<RowDefinition Height="44" />
</Grid.RowDefinitions>
<TextBlock Text="{l:Loc Settings.General.Language}" Foreground="{DynamicResource Brush.TextMuted}" />
<ComboBox Grid.Column="1" Width="240" HorizontalAlignment="Left" ItemsSource="{Binding Languages}" SelectedItem="{Binding SelectedLanguage}"
DisplayMemberPath="Name" ToolTip="{l:Loc Tooltips.Settings.Language}" />
<TextBlock Grid.Row="1" Text="{l:Loc Settings.General.Theme}" Foreground="{DynamicResource Brush.TextMuted}" />
<StackPanel Grid.Row="1" Grid.Column="1" Orientation="Horizontal" VerticalAlignment="Center">
<RadioButton GroupName="Theme" Content="{l:Loc Settings.General.Theme.Dark}" IsChecked="{Binding IsDarkTheme}" ToolTip="{l:Loc Tooltips.Settings.ThemeDark}" Margin="0,0,20,0" />
<RadioButton GroupName="Theme" Content="{l:Loc Settings.General.Theme.Light}" IsChecked="{Binding IsLightTheme}" ToolTip="{l:Loc Tooltips.Settings.ThemeLight}" Margin="0,0,20,0" />
<RadioButton GroupName="Theme" Content="{l:Loc Settings.General.Theme.System}" IsChecked="{Binding IsSystemTheme}" ToolTip="{l:Loc Tooltips.Settings.ThemeSystem}" />
</StackPanel>
<TextBlock Grid.Row="2" Text="{l:Loc Settings.General.Updates}" Foreground="{DynamicResource Brush.TextMuted}" />
<CheckBox Grid.Row="2" Grid.Column="1" Content="{l:Loc Settings.General.CheckOnStart}" IsChecked="{Binding CheckForUpdates}" ToolTip="{l:Loc Tooltips.Settings.CheckForUpdates}" />
</Grid>
</StackPanel>
<!-- Advanced -->
<StackPanel>
<StackPanel.Style>
<Style TargetType="StackPanel">
<Setter Property="Visibility" Value="Collapsed" />
<Style.Triggers>
<DataTrigger Binding="{Binding Page}" Value="Advanced"><Setter Property="Visibility" Value="Visible" /></DataTrigger>
</Style.Triggers>
</Style>
</StackPanel.Style>
<TextBlock Text="{l:Loc Settings.Page.Advanced}" Style="{StaticResource Text.PageTitle}" Margin="0,0,0,16" />
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="180" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="44" />
</Grid.RowDefinitions>
<TextBlock Text="{l:Loc Settings.Advanced.DataFolder}" Foreground="{DynamicResource Brush.TextMuted}" />
<TextBox Grid.Column="1" IsReadOnly="True" Text="{Binding Shell.About.DataFolder, Mode=OneWay}" ToolTip="{l:Loc Tooltips.Settings.DataFolder}" />
<Button Grid.Column="2" Margin="8,0,0,0" Content="{l:Loc Common.Open}" Command="{Binding Shell.About.OpenDataFolderCommand}" ToolTip="{l:Loc Tooltips.Settings.OpenDataFolder}" />
</Grid>
</StackPanel>
</Grid>
</Border>
</Grid>
</UserControl>
@@ -0,0 +1,22 @@
using System.Globalization;
using System.Windows.Controls;
using System.Windows.Data;
using Titano.Core.Localization;
namespace Titano.App.Sections;
public partial class SettingsView : UserControl
{
public SettingsView() => InitializeComponent();
}
/// <summary>Settings page id → localized page name.</summary>
public sealed class SettingsPageNameConverter : IValueConverter
{
public static SettingsPageNameConverter Instance { get; } = new();
public object Convert(object? value, Type targetType, object? parameter, CultureInfo culture) =>
value is string page ? Loc.L("Settings.Page." + page) : string.Empty;
public object ConvertBack(object? value, Type targetType, object? parameter, CultureInfo culture) => throw new NotSupportedException();
}