feat(app): library, jobs, settings, server, welcome and about screens

Local-mode composition root (SQLite index, one JobEngine fed by a single
handler registration list), keyset-paged library with thumbnail cache and
hover scrub, live job list with throttled updates and the shell job bar,
settings with live template validation and encoder self-test, server
connection with trust-on-first-use and DPAPI token, first-run welcome,
About with update check, and --capture screenshots with synthetic data.

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 12:26:58 +00:00
1 parent 446daeae2b
commit ffbea7cb74
94 files changed
+10130 -374

No files matched your search

+10 -5
View File
@@ -1,5 +1,6 @@
using System.Collections.Specialized;
using System.Windows;
using Titano.App.Infrastructure;
using Titano.Ui.Controls;
namespace Titano.App.Shell;
@@ -14,18 +15,21 @@ public partial class MainWindow : TitanoWindow
DataContext = shell;
InitializeComponent();
Rail.Width = shell.IsRailCollapsed ? 48 : 128;
UpdateConnection();
shell.PropertyChanged += (_, e) =>
{
if (e.PropertyName is nameof(ShellViewModel.IsRailCollapsed) or "")
Rail.Width = shell.IsRailCollapsed ? 48 : 128;
if (e.PropertyName is nameof(ShellViewModel.IsConnected) or "")
Connection.Foreground = (System.Windows.Media.Brush)FindResource(shell.IsConnected ? "Brush.Accent" : "Brush.TextMuted");
if (e.PropertyName is nameof(ShellViewModel.IsConnected) or "") UpdateConnection();
};
shell.PendingToasts.CollectionChanged += OnToastRequested;
RestorePlacement();
Closing += (_, _) => SavePlacement();
}
private void UpdateConnection() =>
Connection.SetResourceReference(System.Windows.Controls.TextBlock.ForegroundProperty, _shell.IsConnected ? "Brush.Accent" : "Brush.TextMuted");
private void OnToastRequested(object? sender, NotifyCollectionChangedEventArgs e)
{
if (e.Action != NotifyCollectionChangedAction.Add || e.NewItems is null) return;
@@ -35,8 +39,8 @@ public partial class MainWindow : TitanoWindow
private void RestorePlacement()
{
var p = App.Current.Settings.Window;
if (p is null || p.Width < MinWidth || p.Height < MinHeight) return;
var p = _shell.Services.Settings.Window;
if (p is null || p.Width < MinWidth || p.Height < MinHeight || _shell.Services.Environment.IsCapture) return;
var virtualScreen = new Rect(SystemParameters.VirtualScreenLeft, SystemParameters.VirtualScreenTop, SystemParameters.VirtualScreenWidth, SystemParameters.VirtualScreenHeight);
var rect = new Rect(p.Left, p.Top, p.Width, p.Height);
if (!virtualScreen.IntersectsWith(rect)) return;
@@ -50,8 +54,9 @@ public partial class MainWindow : TitanoWindow
private void SavePlacement()
{
if (_shell.Services.Environment.IsCapture) return;
var b = RestoreBounds;
App.Current.Settings.Window = new Infrastructure.AppSettings.WindowPlacement
_shell.Services.Settings.Window = new AppSettings.WindowPlacement
{
Left = b.Left,
Top = b.Top,