From 198a39fd844b64888bf29cfb426b3e0f37ec6d0f Mon Sep 17 00:00:00 2001 From: Yun Chan Date: Thu, 7 May 2026 16:44:59 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20Past=20Results=20=ED=8F=B4=EB=8D=94=20?= =?UTF-8?q?=EB=B2=84=ED=8A=BC=EC=9D=B4=20=EC=B6=9C=EB=A0=A5=20=ED=8C=8C?= =?UTF-8?q?=EC=9D=BC=EC=9D=84=20select=ED=95=98=EB=8F=84=EB=A1=9D=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - HistoryEntry에 OutputPaths (nullable list) 추가, PrimaryOutputPath 헬퍼 - HistoryRow에 OutputPath + RevealPath (output 우선, fallback to source) - AddToHistory 호출 시 result.OutputPaths.ToList() 전달 - XAML 폴더 버튼 Tag를 RevealPath로, ToolTip '출력 파일이 있는 폴더 열기' 이전 history.jsonl은 OutputPaths 없이 저장됨 — 새 변환부터 출력 select --- src/Everything2Everything.App/Views/MainWindow.xaml | 4 ++-- src/Everything2Everything.App/Views/MainWindow.xaml.cs | 7 ++++++- src/Everything2Everything.Core/HistoryStore.cs | 5 ++++- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/Everything2Everything.App/Views/MainWindow.xaml b/src/Everything2Everything.App/Views/MainWindow.xaml index 5af0fac..31b5a84 100644 --- a/src/Everything2Everything.App/Views/MainWindow.xaml +++ b/src/Everything2Everything.App/Views/MainWindow.xaml @@ -549,8 +549,8 @@ BorderThickness="0" Padding="6" Click="OnOpenFolderClick" - Tag="{Binding SourcePath}" - ToolTip="원본 폴더 열기"> + Tag="{Binding RevealPath}" + ToolTip="출력 파일이 있는 폴더 열기"> OutputPath ?? SourcePath; + public static HistoryRow From(HistoryEntry e) { var ext = Path.GetExtension(e.SourcePath).TrimStart('.').ToLowerInvariant(); @@ -1116,6 +1120,7 @@ public sealed record HistoryRow( SizeText: MainWindow.HumanizeBytes(e.SourceSizeBytes), SavingsText: $"{arrow} {MainWindow.HumanizeBytes(Math.Abs(saved))}", SourcePath: e.SourcePath, + OutputPath: e.PrimaryOutputPath, SavingsBytes: saved); } } diff --git a/src/Everything2Everything.Core/HistoryStore.cs b/src/Everything2Everything.Core/HistoryStore.cs index 3435c8b..602d77e 100644 --- a/src/Everything2Everything.Core/HistoryStore.cs +++ b/src/Everything2Everything.Core/HistoryStore.cs @@ -11,11 +11,14 @@ public sealed record HistoryEntry( int OutputCount, string? MetaLine, ConvertStatus Status, - string? Message) + string? Message, + IReadOnlyList? OutputPaths = null) { public long SavingsBytes => SourceSizeBytes - OutputSizeBytes; public DateOnly Date => DateOnly.FromDateTime(Timestamp); + + public string? PrimaryOutputPath => OutputPaths is { Count: > 0 } list ? list[0] : null; } public sealed class HistoryStore