diff --git a/Docs/Sprints/2026-11-03-overnight.md b/Docs/Sprints/2026-11-03-overnight.md new file mode 100644 index 00000000..8bf4435e --- /dev/null +++ b/Docs/Sprints/2026-11-03-overnight.md @@ -0,0 +1,40 @@ +# Overnight improvement sprint — 3 November 2026 + +## Baseline and recovery + +- Repository: /srv/repos/PlotDirector +- Original branch: architecture/story-context-consolidation +- Original commit: 2696d56f59aaa9fe6dc93da682a78b53f8d5392d +- Starting worktree: clean; no existing changes to preserve. +- Isolated branch: codex/overnight-improvements-20261103 +- Production is excluded. No database changes planned. +- Gates: serial solution build and executable regression harness; focused browser fixtures for interactions. +- Deployment requires verified changes and evidence that background processing is idle. + +## Durable queue + +1. Completed: B1 ribbon order and regression coverage. +2. In progress: B2 compact Locations drag controls and PWA width. +3. B3 clickable project/book covers and titles. +4. B4 investigate and retire obsolete Phase 1 Checklist safely. +5. C shared workspace resizing and maximisation, starting with Relationships reference. +6. D UX audit and repairs. +7. E functional reliability repairs. +8. F security and data integrity audit and safe repairs. +9. G regression expansion. +10. H public site and Writing Problem Solver SEO. +11. Final gates, safe Development deployment and handover. + +## Improvements and evidence + +### B1 — Story navigation (verified) + +Before: Timeline → Calendar → Plot Lines → Threads → At This Point. +After: Timeline → Plot Lines → Threads → Calendar → At This Point. +Changed the shared declarative ribbon catalog; preserved commands and metadata. Other categories reviewed: no unambiguous workflow corrections identified, so existing group boundaries and ordering retained. Added regression assertion in the existing ribbon metadata suite. + +Verification: `dotnet build PlotLine.slnx` passed (0 warnings/errors); full executable regression harness passed (exit 0). + +## Deployment + +Not deployed. diff --git a/PlotLine.Tests/RibbonPresentationTests.cs b/PlotLine.Tests/RibbonPresentationTests.cs index efc70146..b3ad65f6 100644 --- a/PlotLine.Tests/RibbonPresentationTests.cs +++ b/PlotLine.Tests/RibbonPresentationTests.cs @@ -9,6 +9,9 @@ internal static class RibbonPresentationTests foreach (var key in exports.Append("settings").Append("validate").Append("help")) _ = ApplicationRibbon.Icon(key!); if (RibbonPresentation.IconFor("timeline.settings") == RibbonPresentation.IconFor("warnings.validateproject")) throw new Exception("Settings and validation are different operations."); if (RibbonPresentation.IconFor("books.create") is not null) throw new Exception("Preserve the established Add Book icon association."); + var storyStructure = ApplicationRibbon.Categories.Single(category => category.Key == "story").Groups.Single(group => group.Label == "Story structure"); + if (!storyStructure.Commands.Select(command => command.ToolbarKey).SequenceEqual(new[] { "timeline", "plotlines", "threads", "calendar", "point" })) + throw new Exception("Story navigation must follow the author workflow: Timeline, Plot Lines, Threads, Calendar, At This Point."); var root = new DirectoryInfo(AppContext.BaseDirectory); while (root is not null && !Directory.Exists(Path.Combine(root.FullName, "PlotLine", "Views"))) root = root.Parent; if (root is null) throw new Exception("Ribbon source coverage requires the repository."); diff --git a/PlotLine/Services/ApplicationRibbon.cs b/PlotLine/Services/ApplicationRibbon.cs index b042de17..ded66115 100644 --- a/PlotLine/Services/ApplicationRibbon.cs +++ b/PlotLine/Services/ApplicationRibbon.cs @@ -31,7 +31,7 @@ public static class ApplicationRibbon new("book", "Book", new("Selected book", new("Book overview", "bible", "Books", "Details", "book"), new("Edit book", "writer", "Books", "Edit", "book"), new("Add chapter", "threads", "Chapters", "Create", "chapter")), new("Manuscript review", S("review")), new("Library", S("overview"), new("Add book", "bible", "Books", "Create"))), - new("story", "Story", new("Story structure", S("timeline"), S("calendar"), S("plotlines"), S("threads"), S("point")), new("Analysis & planning", S("review"), S("scenarios"), S("continuity")), new("Writing", S("writer"))), + new("story", "Story", new("Story structure", S("timeline"), S("plotlines"), S("threads"), S("calendar"), S("point")), new("Analysis & planning", S("review"), S("scenarios"), S("continuity")), new("Writing", S("writer"))), new("characters", "Characters", new("Cast", S("characters"), S("names")), new("Connections", S("relationships"))), new("world", "World", new("Setting", S("locations"), new("Maps", "floorplans", "Maps", "Index"), S("floorplans")), new("Story world", S("assets"))), new("tools", "Tools", new("Reference", S("bible")), new("Insights", S("metrics"), S("health"), S("warnings")), new("Organisation", S("archive"))),