From 766ad2832592fd1c33e9c555cb429c4838e09711 Mon Sep 17 00:00:00 2001 From: Nick Beckley Date: Mon, 6 Jul 2026 21:47:59 +0100 Subject: [PATCH] =?UTF-8?q?Phase=2020AF=20=E2=80=93=20Story=20Intelligence?= =?UTF-8?q?=20Progress=20Page=20Layout=20and=20Estimate=20Fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../OnboardingStoryIntelligenceService.cs | 1 + PlotLine/ViewModels/OnboardingViewModels.cs | 1 + .../StoryIntelligenceProgress.cshtml | 86 ++++++++++++++++--- PlotLine/wwwroot/css/onboarding.css | 20 ++++- .../wwwroot/js/story-intelligence-progress.js | 72 ++++++++++++---- 5 files changed, 150 insertions(+), 30 deletions(-) diff --git a/PlotLine/Services/OnboardingStoryIntelligenceService.cs b/PlotLine/Services/OnboardingStoryIntelligenceService.cs index 4f9489d..31bd58c 100644 --- a/PlotLine/Services/OnboardingStoryIntelligenceService.cs +++ b/PlotLine/Services/OnboardingStoryIntelligenceService.cs @@ -230,6 +230,7 @@ public sealed class OnboardingStoryIntelligenceService( TotalDetectedScenes = run.TotalDetectedScenes, CompletedScenes = run.CompletedScenes, FailedScenes = run.FailedScenes, + SourceWordCount = run.SourceWordCount, TotalTokens = run.TotalTokens, TotalDurationMs = run.TotalDurationMs, FailureStage = run.FailureStage, diff --git a/PlotLine/ViewModels/OnboardingViewModels.cs b/PlotLine/ViewModels/OnboardingViewModels.cs index 42897c9..e7c377c 100644 --- a/PlotLine/ViewModels/OnboardingViewModels.cs +++ b/PlotLine/ViewModels/OnboardingViewModels.cs @@ -166,6 +166,7 @@ public sealed class StoryIntelligenceOnboardingChapterViewModel public int? TotalDetectedScenes { get; init; } public int? CompletedScenes { get; init; } public int? FailedScenes { get; init; } + public int? SourceWordCount { get; init; } public int? TotalTokens { get; init; } public long? TotalDurationMs { get; init; } public string? FailureStage { get; init; } diff --git a/PlotLine/Views/Onboarding/StoryIntelligenceProgress.cshtml b/PlotLine/Views/Onboarding/StoryIntelligenceProgress.cshtml index 1f4397e..261d1d3 100644 --- a/PlotLine/Views/Onboarding/StoryIntelligenceProgress.cshtml +++ b/PlotLine/Views/Onboarding/StoryIntelligenceProgress.cshtml @@ -46,23 +46,23 @@
Chapters read - @Model.CompletedChapterCount of @Model.ChapterCount + @Model.CompletedChapterCount of @Model.ChapterCount
Scenes read - @Model.TotalCompletedScenes so far + @Model.TotalCompletedScenes so far
Needs review - @(Model.FailedChapterCount + Model.TotalFailedScenes) + @(Model.FailedChapterCount + Model.TotalFailedScenes)
Elapsed - @Elapsed(Model) + @Elapsed(Model)
Estimated remaining - @EstimateRemaining(Model) + @EstimateRemaining(Model)
@@ -85,8 +85,9 @@

Scene summaries will appear here as PlotDirector reads.

-
+

Recent discoveries

+

Possible characters, locations and story clues will appear here as PlotDirector reads.

    @@ -94,7 +95,11 @@