From caeb90b3506c10b307853fbb6110bc22fbc249f1 Mon Sep 17 00:00:00 2001 From: Nick Beckley Date: Thu, 5 Nov 2026 23:32:19 +0000 Subject: [PATCH] Add intersection focus and health navigation to the existing plot weave --- PlotLine.Tests/Browser/plot-line-map.cjs | 1 + PlotLine.Tests/ToolbarBrowserHost.cs | 2 +- .../PlotLineWorkspace/_NarrativeMap.cshtml | 4 +++- PlotLine/wwwroot/css/site.css | 2 ++ PlotLine/wwwroot/js/plot-line-workspace.js | 19 +++++++++++++------ 5 files changed, 20 insertions(+), 8 deletions(-) diff --git a/PlotLine.Tests/Browser/plot-line-map.cjs b/PlotLine.Tests/Browser/plot-line-map.cjs index 7813267e..0f564e9a 100644 --- a/PlotLine.Tests/Browser/plot-line-map.cjs +++ b/PlotLine.Tests/Browser/plot-line-map.cjs @@ -34,6 +34,7 @@ const assert = require('node:assert/strict'); await page.goto('http://127.0.0.1:5238/plot-map-fixture'); assert.equal(await page.locator('.plot-horizontal-route').count(), 3); assert.equal(await page.locator('.plot-map-callout').count(), 2); + await page.check('#plot-shared-only');assert.equal(await page.locator('.plot-map-callout:visible').count(),1);await page.click('#plot-next-intersection');assert.equal(await page.locator('.plot-weave-focus').count(),1);await page.fill('#plot-scene-search','unmatched phrase');assert.equal(await page.locator('.plot-map-callout:visible').count(),0);await page.uncheck('#plot-shared-only');await page.fill('#plot-scene-search',''); assert.equal(await page.locator('.plot-scene-stem.is-shared').count(), 2); assert.equal(await page.locator('.plot-membership-overlay path.is-shared').count(), 2); assert.equal(await page.locator('.plot-map-scroll').evaluate(el => el.scrollHeight > el.clientHeight), false); diff --git a/PlotLine.Tests/ToolbarBrowserHost.cs b/PlotLine.Tests/ToolbarBrowserHost.cs index 424b8f66..86b79a3b 100644 --- a/PlotLine.Tests/ToolbarBrowserHost.cs +++ b/PlotLine.Tests/ToolbarBrowserHost.cs @@ -206,7 +206,7 @@ internal static class ToolbarBrowserHost await view.View.RenderAsync(new ViewContext(action, view.View, viewData, new TempDataDictionary(context, context.RequestServices.GetRequiredService()), writer, new HtmlHelperOptions())); context.Response.ContentType = "text/html; charset=utf-8"; if (context.Request.Query["healthDetail"] == "true" && context.Request.Query["marketing"] != "true") { await context.Response.WriteAsync(writer.ToString()); return; } - await context.Response.WriteAsync("
" + writer + ""); + await context.Response.WriteAsync("
" + writer + ""); }); // Public QA renders the real views/layout with isolated models; no account, payment or DB calls. app.MapGet("/public-fixture/{page}", async context => diff --git a/PlotLine/Views/PlotLineWorkspace/_NarrativeMap.cshtml b/PlotLine/Views/PlotLineWorkspace/_NarrativeMap.cshtml index 98fde74a..3d8269b5 100644 --- a/PlotLine/Views/PlotLineWorkspace/_NarrativeMap.cshtml +++ b/PlotLine/Views/PlotLineWorkspace/_NarrativeMap.cshtml @@ -14,12 +14,14 @@ } } +
Weave at a glance · @Model.Scenes.Count(s=>s.IsShared) intersections · @Model.Health.Lines.Sum(l=>l.Findings.Count) observations

Intersections are scenes shared by selected lines. Health observations use the existing evidence engine; author status is unchanged.

@foreach(var line in Model.Health.Lines.Where(l=>l.Findings.Count>0).Take(8)){}
@lanes.Count selected line@(lanes.Count == 1 ? "" : "s") · @Model.Mode · manuscript → +