From 577ec581df37d3920b54dac071fbdf293f812418 Mon Sep 17 00:00:00 2001 From: Nick Beckley Date: Wed, 2 Sep 2026 19:00:37 +0000 Subject: [PATCH] Show single location review forward action --- PlotLine.Tests/Program.cs | 3 +++ .../Views/Onboarding/StoryIntelligenceLocations.cshtml | 7 +++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/PlotLine.Tests/Program.cs b/PlotLine.Tests/Program.cs index 7a97b4a..08fd69b 100644 --- a/PlotLine.Tests/Program.cs +++ b/PlotLine.Tests/Program.cs @@ -2720,6 +2720,9 @@ static void LocationReviewUxSupportsLargeCandidateSets() Assert(view.Contains("Showing @Model.LocationReview.ShowingStart", StringComparison.Ordinal), "Location review should show N-M of T pending."); Assert(view.Contains("name=\"intent\" value=\"previous\"", StringComparison.Ordinal) && view.Contains("name=\"intent\" value=\"next\"", StringComparison.Ordinal), "Previous and Next should submit the current page so decisions persist before navigation."); + Assert(view.Contains("if (Model.LocationReview.HasNextPage)", StringComparison.Ordinal) + && view.Contains("else", StringComparison.Ordinal) + && view.Contains("name=\"intent\" value=\"save\"", StringComparison.Ordinal), "Location review should show Next before the last page and Save only on the last page."); Assert(view.Contains("name=\"PageNumber\"", StringComparison.Ordinal), "Location review should post the current page number."); Assert(view.Contains("EvidenceSummaries", StringComparison.Ordinal), "Location review should expose compact aggregated evidence."); Assert(!view.Contains("data-location-bulk=\"create-all\"", StringComparison.Ordinal), "Location review should not offer bulk create-all."); diff --git a/PlotLine/Views/Onboarding/StoryIntelligenceLocations.cshtml b/PlotLine/Views/Onboarding/StoryIntelligenceLocations.cshtml index 130a5be..33e1eab 100644 --- a/PlotLine/Views/Onboarding/StoryIntelligenceLocations.cshtml +++ b/PlotLine/Views/Onboarding/StoryIntelligenceLocations.cshtml @@ -206,9 +206,12 @@ } @if (Model.LocationReview.HasNextPage) { - + + } + else + { + } - }