From 503b5f766abd9e7a016eff5424b6a4468f1e9ba2 Mon Sep 17 00:00:00 2001 From: Alberto Balbo Date: Thu, 5 Nov 2026 02:26:04 +0100 Subject: [PATCH] feat(P6): grouped Export panel with preset table, encoding and playback rows The Export step's cards and long form gave no room for the advanced encoding settings and the new playback contract. The Output panel is now four collapsible groups (Output, Encoding, Playback, File) with a muted summary while closed and a fixed footer (result line, Render now, Add to queue, Batch (n), Videos (n), Reveal, Send again). Presets become a 28 px table grouped by preset group. - Encoding: rate control, bit rate or quality, keyframes in seconds kept across a frame rate change, B-frames and profile, each gated per codec and depth with the reason in the tooltip. - Resolution: Preset, Source, the standard boxes fitted to the chosen proportions (4K at 9:16 renders 2160 x 3840) and Custom. - Playback: direction (Boomerang gated with star trails), loops, fades and hold; a non-default playback writes settings format 3. - Group open state is kept by the app through EditorSettings.Groups (bound to the app settings later), not in the project. - ExportPlan carries the output program for duration and frame count. - The tab resolves the export at once instead of from a stale plan. Refs #21 Co-Authored-By: Claude Opus 5.5 --- src/Chronos.App/Editor/CardColumns.cs | 17 - src/Chronos.App/Editor/EditorMeasures.xaml | 114 +-- src/Chronos.App/Editor/EditorPanels.xaml | 356 +++++++--- src/Chronos.App/Editor/EditorSettings.cs | 53 ++ src/Chronos.App/Editor/EditorStyles.xaml | 79 ++- src/Chronos.App/Editor/ExportGroups.cs | 216 ++++++ src/Chronos.App/Editor/ExportPlanner.cs | 15 +- src/Chronos.App/Editor/ExportTab.cs | 648 +++++++++++++----- src/Chronos.App/Editor/PresetTable.cs | 197 ++++++ src/Chronos.App/Editor/VideosLink.cs | 37 + .../Editor/EditorSmokeTests.cs | 10 +- .../Editor/ExportTabTests.cs | 257 +++++++ 12 files changed, 1663 insertions(+), 336 deletions(-) delete mode 100644 src/Chronos.App/Editor/CardColumns.cs create mode 100644 src/Chronos.App/Editor/ExportGroups.cs create mode 100644 src/Chronos.App/Editor/PresetTable.cs create mode 100644 src/Chronos.App/Editor/VideosLink.cs create mode 100644 tests/Chronos.App.Tests/Editor/ExportTabTests.cs diff --git a/src/Chronos.App/Editor/CardColumns.cs b/src/Chronos.App/Editor/CardColumns.cs deleted file mode 100644 index 21bb5748..00000000 --- a/src/Chronos.App/Editor/CardColumns.cs +++ /dev/null @@ -1,17 +0,0 @@ -using System.Globalization; -using System.Windows.Data; - -namespace Chronos.App.Editor; - -/// Columns of the Export tab's preset grid: as many as fit at (four at 1440 px, three at 1200 px). -public sealed class CardColumns : IValueConverter -{ - public const double MinCardWidth = 200; - - public static CardColumns Instance { get; } = new(); - - public object Convert(object value, Type targetType, object parameter, CultureInfo culture) => - value is double width && double.IsFinite(width) ? int.Max(1, (int)(width / MinCardWidth)) : 4; - - public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) => throw new NotSupportedException(); -} diff --git a/src/Chronos.App/Editor/EditorMeasures.xaml b/src/Chronos.App/Editor/EditorMeasures.xaml index 9f0d062f..7bf8507a 100644 --- a/src/Chronos.App/Editor/EditorMeasures.xaml +++ b/src/Chronos.App/Editor/EditorMeasures.xaml @@ -7,7 +7,7 @@ @@ -272,44 +272,80 @@ - + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/Chronos.App/Editor/EditorPanels.xaml b/src/Chronos.App/Editor/EditorPanels.xaml index ed534cf6..ba0bc537 100644 --- a/src/Chronos.App/Editor/EditorPanels.xaml +++ b/src/Chronos.App/Editor/EditorPanels.xaml @@ -371,51 +371,76 @@ - + + + + + + + + + + + + + + - - - - - - - -