diff --git a/Docs/Sprints/2026-11-03-overnight.md b/Docs/Sprints/2026-11-03-overnight.md index 50425498..fb99d994 100644 --- a/Docs/Sprints/2026-11-03-overnight.md +++ b/Docs/Sprints/2026-11-03-overnight.md @@ -1,5 +1,69 @@ # Overnight improvement sprint — 3 November 2026 +## Executive summary + +Delivered and deployed all explicitly requested B/C improvements plus additional responsive-layout, Floor Plans save-reliability and sitemap repairs. Counts below group related defects rather than counting each affected page separately. + +- Confirmed defect groups: **10**; fixed and verified: **9**; deferred: **1** infrastructure issue. +- Completed improvement groups: **10**, including additional export/restore permission regression coverage. +- Commits: **15** including the final report checkpoint; history transparently includes the unsuccessful application-only proxy attempt and its revert. +- Final solution build: **passed, 0 warnings/errors**. Final executable harness: **405 PASS, exit 0**. +- **17 focused browser suites passed** across the sprint, including real Razor controls/editors, drag/drop, keyboard interaction, state preservation, four workspace themes, browser/PWA/maximised modes and responsive layouts. +- Read-only public audit: **52/52 solution pages** passed metadata/canonical/structured-data checks; **56 public pages** passed the 390px browser overflow and anchor-name checks. +- Development: **deployed and smoke-verified**, code commit **1930007**. Production was not modified. No database migrations or direct data mutations. + +## Completed improvements + +| Area | Problem | Fix implemented | Verification | Commit | +|---|---|---|---|---| +| Story ribbon | Calendar interrupted the requested structure sequence | Timeline → Plot Lines → Threads → Calendar → At This Point in the shared catalog | Build, harness order assertion, toolbar/navigation browser checks | 7f19319 | +| Locations | Oversized drag panel, dropdown and PWA width cap | Connected two-choice ribbon segments under Location hierarchy; compact browser toolbar; persisted mode, help and PWA-only width correction | Real Razor controls in four themes/browser/PWA, keyboard/persistence and full drag/confirmation/AJAX regression | d6be496, 1930007 | +| Project/book listings | Covers and placeholders did not open their records | Accessible cover links share the existing Open/title routes; independent Edit/Archive/More actions | Rendered Razor browser/PWA keyboard, focus and route tests | 77332a2 | +| Legacy checklist | Obsolete report and unsafe null-project aggregate fallback | Removed exclusive page/service/repository/model/DI path; authenticated bookmarks redirect through standard project routes; retained SQL and data | Build/harness and legacy redirect/authentication regression | a348777 | +| Workspace panels | Fixed left/right widths | Shared independent pointer/keyboard resizing, bounds, reset and per-workspace persistence | All three full editors, four themes, browser/PWA/maximised modes, reload restoration and narrow layouts | 79c4fd2 | +| Workspace maximise | Maps/Floor Plans hid contextual commands; restore could overflow | Shared shell handling retains contextual ribbon and directly visible restore commands | All-editor maximise/state tests, existing Maps/Relationships author-workflow suites and visual review | d7ae6e2, 86509cb | +| Responsive image controls | Character image uploader overflowed narrow browser forms | Wrapping image-editor layout with shrinkable controls | Reproduced 369px content in 360px form; fixed to 360px; nine-form responsive/theme suite | ab5325d | +| Floor Plans saving | Redirected/invalid responses falsely acknowledged saves; older requests acknowledged newer edits | Explicit save acknowledgement, revision tracking and unsaved-navigation protection | Reproduced both failures; browser/PWA redirect/null/error/concurrent-edit/save/state tests | 2f99a3c | +| Export/restore access | Permission gates lacked direct behavioural regression coverage | Real filter/access-service tests for foreign entities, owner-only backup export and anonymous/invalid identities | Full harness with current-author propagation and fail-closed checks | ba33b69 | +| Sitemap | Disabled solver indexing still required an available solver graph | Skip graph loading when solver indexing is disabled | Unavailable-repository regression, publication/indexing tests and live public audit | b7d87c7 | + +## Ribbon navigation changes + +Story → Story structure: + +- Before: Timeline → Calendar → Plot Lines → Threads → At This Point. +- After: Timeline → Plot Lines → Threads → Calendar → At This Point. + +Reviewed Project, Book, Characters, World, Tools and Help navigation groups. Their existing workflow ordering/group boundaries were retained because no additional unambiguous correction was identified. Routes, icons, permissions and active-state metadata remain in the shared catalog. + +## Final Development deployment + +- Code commit: **1930007**; final documentation commit follows it without application-code changes. +- Release: `/srv/apps/plotdirector-dev/releases/1930007-20261103210304`. +- Prior application backup: `/srv/apps/plotdirector-dev/current-before-1930007-20261103210304`. +- Deployed/published `PlotLine.dll` SHA-256: `5a86109eb96338fc3ec77f416410e1efe33600d4a22cf761a10b30dd513f8689`. +- Service: active/running, exit status 0. Local GET and public HTTPS GET: 200. Live segmented-ribbon JavaScript verified. Recent warning/error log lines: 0. +- Verified `PlotDirector_Development` identity and idle import/intelligence/job/synthesis/enrichment/candidate-generation/pipeline state immediately before each restart. Active SQL import/synthesis request count was also zero. +- Configuration, uploads, App_Data/data-protection keys and logs preserved. Development still sends `X-Robots-Tag: noindex, follow`. +- A temporary-storage quota interrupted one publish. Removed only sprint-owned incomplete/superseded artifacts, then published successfully on `/srv`; the failed publish was not deployed. + +## Outstanding issue and morning handover + +**Deferred infrastructure issue:** HTTPS protected requests currently redirect through an HTTP login URL. Development nginx is an HTTP origin behind a separate TLS proxy and replaces the original forwarded scheme. Application-only handling did not resolve the live route and was reverted. Correcting this needs the upstream forwarded scheme and trusted source addresses verified, followed by a narrowly trusted Development proxy configuration. No upstream/Production configuration was changed; authentication cookies remain Secure. + +**Verification limit:** no reusable authenticated Development browser session was available. Live checks verified service/HTTP health, assets, indexing protection and login gates. Editing interactions were verified in isolated fixtures rendering the real Razor views and production scripts, including the full Floor Plans editor. A short authenticated acceptance pass on Development remains appropriate. + +Completed and deployed: all rows in the completed-improvements table. Completed but not deployed: none. Deferred for review: the proxy scheme configuration. Live authenticated editing: unverified as described above. + +## Verification inventory + +- `dotnet build PlotLine.slnx` — final pass, 0 warnings/errors. +- `dotnet run --no-build --project PlotLine.Tests/PlotLine.Tests.csproj` — final pass, 405 checks. +- Browser suites: `location-controls`, `location-reparent`, `cover-navigation`, `workspace-panels`, `workspace-maximise`, `floor-plan-save`, `relationship-workspace`, `relationships-ribbon`, `maps-workspace`, `record-workspaces`, `responsive-content`, `application-toolbar`, `application-pwa`, `plot-line-map`, `calendar-ribbon`, `plot-health`, `associate-scenes`. +- Public read-only checks: production robots/sitemap, all 52 solution metadata/structured-data/canonical/unique-description checks, and 56 mobile public-page checks. These do not certify a complete accessibility or penetration audit. + +## Implementation log and recovery detail + ## Baseline and recovery - Repository: /srv/repos/PlotDirector @@ -11,19 +75,22 @@ - 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 +## Durable queue — final state -1. Completed: B1 ribbon order and regression coverage. -2. Completed: B2 compact Locations drag controls and PWA width. -3. Completed: B3 clickable project/book covers and titles. -4. Completed: B4 retire obsolete Phase 1 Checklist safely. -5. In progress: 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. +1. Baseline and isolated branch — complete. +2. B1 ribbon ordering — complete. +3. B2 Locations controls and PWA width — complete, including connected ribbon segments. +4. B3 project/book covers and titles — complete. +5. B4 obsolete checklist retirement — complete. +6. C1–C4 resizing, maximisation and editor verification — complete. +7. D targeted UX audit and responsive repair — complete. +8. E functional audit and Floor Plans save repairs — complete. +9. F targeted access/security review — complete; upstream redirect configuration deferred below. +10. G regression expansion and final gates — complete. +11. H public-site/52-solution SEO and mobile audit — complete. +12. Development deployment, recovery checkpoint and handover — complete. + +No further confirmed, independently safe repairs remain in the queue from these audits. Continue future work from the deferred infrastructure finding or a newly reproduced defect; avoid repeating completed changes. ## Improvements and evidence @@ -35,15 +102,11 @@ Changed the shared declarative ribbon catalog; preserved commands and metadata. Verification: `dotnet build PlotLine.slnx` passed (0 warnings/errors); full executable regression harness passed (exit 0). -## Deployment - -Not deployed. - ### B2 — Locations hierarchy controls Replaced the standalone dropdown panel with compact Change parent / Create relationship buttons, published through the existing contextual command bindings under Location hierarchy. Browser toolbar remains immediately above the list. Preserved parent confirmations and relationship editing; persisted mode in local storage with graceful storage failure handling. Removed only the Locations PWA shell width cap. Ribbon proxies now preserve source button help tooltips. -Verification: solution build passed (0 warnings/errors); location browser regression passed, including keyboard activation, persistence, both drag modes, confirmation/cancellation, invalid targets, concurrent server rejection and scroll preservation. Repaired a stale fixture to read the shared confirmation partial, and explicitly scrolled the dragged source into view after toolbar keyboard use. Full harness rerun in progress. +Verification: solution build passed (0 warnings/errors); location browser regression passed, including keyboard activation, persistence, both drag modes, confirmation/cancellation, invalid targets, concurrent server rejection and scroll preservation. Repaired a stale fixture to read the shared confirmation partial, and explicitly scrolled the dragged source into view after toolbar keyboard use. Final full harness subsequently passed (405 checks). B1 commit: 7f19319. @@ -65,15 +128,15 @@ Verification: build passed (0 warnings/errors), full harness passed including bo Added one lifecycle-managed resizing mechanism to the existing workspace surface, used automatically by Relationships, Maps and Floor Plans. Dividers support pointer capture, keyboard arrows (Shift for larger steps), Home and double-click reset. Widths persist independently per workspace; min/max limits protect the central canvas. Narrow layouts retain existing responsive handling. Dragging suppresses selection and does not begin canvas pointer interaction. -Verification: solution build passed (0 warnings/errors); new browser suite passed across all three workspace grids, four theme settings, keyboard/pointer resizing, independent widths, persisted reload restoration in Maps/Relationships, reset, smaller viewports, no text selection/canvas pointer events, unchanged map document. Floor Plans uses its production CSS and shared resizing code in an isolated grid fixture; full editor verification remains pending. Existing comprehensive Relationships browser suite passed (75 characters, 300 scenes, search, drag/drop, editing, timeline, persistence, responsive layout, PWA menu). Fixed an initial viewport overflow caught by that suite using CSS-relative divider placement. B4 commit: a348777. +Verification: solution build passed (0 warnings/errors); new browser suite passed across all three workspace grids, four theme settings, keyboard/pointer resizing, independent widths, persisted reload restoration in Maps/Relationships, reset, smaller viewports, no text selection/canvas pointer events, unchanged map document. Floor Plans initially used an isolated grid fixture; C2 subsequently added and verified the full production Razor editor. Existing comprehensive Relationships browser suite passed (75 characters, 300 scenes, search, drag/drop, editing, timeline, persistence, responsive layout, PWA menu). Fixed an initial viewport overflow caught by that suite using CSS-relative divider placement. B4 commit: a348777. -Next: C2 preserve contextual ribbon while maximising all three workspaces; then broader audits. +C2 and the broader audits were subsequently completed below. ### C2/C4 — Consistent PWA maximisation and full-editor verification All three editors now share PWA shell handling: hide the titlebar/quick access and section-tab heading, retain the contextual ribbon, place the maximised surface below its measured bounds, and keep the Restore workspace command available. Browser maximisation and Maps separate-window handling retain their existing behaviour. Header resize observation is disposed with the workspace lifecycle. -Added a real Floor Plans editor fixture with its production Razor script section, floor and block; expanded panel tests from the isolated Floor Plans grid to the full editor. Verification: build passed (0 warnings/errors); full-editor panel tests passed across Maps, Relationships and Floor Plans in browser, normal PWA and maximised PWA, four theme settings, narrow viewports, saved-width restoration, keyboard/pointer resize and reset. Maximise/restore regression passed for all three editors in browser/PWA and four themes, including shell visibility, ribbon Restore command, canvas bounds and preserved map document/relationship pan and zoom/floor block state. Existing Maps browser/PWA author workflow regression passed. Full regression harness rerun in progress. C1 commit: 79c4fd2. +Added a real Floor Plans editor fixture with its production Razor script section, floor and block; expanded panel tests from the isolated Floor Plans grid to the full editor. Verification: build passed (0 warnings/errors); full-editor panel tests passed across Maps, Relationships and Floor Plans in browser, normal PWA and maximised PWA, four theme settings, narrow viewports, saved-width restoration, keyboard/pointer resize and reset. Maximise/restore regression passed for all three editors in browser/PWA and four themes, including shell visibility, ribbon Restore command, canvas bounds and preserved map document/relationship pan and zoom/floor block state. Existing Maps browser/PWA author workflow regression passed. Final full harness subsequently passed (405 checks). C1 commit: 79c4fd2. Explicit B/C improvements are implemented and committed. Next: targeted broader UX/functional/security/public-site audits and repairs; Development deployment after final checks and background-work safety verification. @@ -107,7 +170,7 @@ Verification: build passed; all-editor/four-theme browser/PWA maximise suite and Reproduced two data-loss risks in the real editor fixture: (1) a save redirected to a login HTML page was labelled Saved; (2) an older successful request marked edits made during that request Saved before their own autosave. Require a non-redirected explicit ok:true response, reject malformed/null JSON safely, retain block state on failure, and track layout revisions so older acknowledgements cannot clear newer edits. Protect browser navigation while layout changes are dirty, saving or failed; remove that listener on workspace disposal. -Verification: both failures were reproduced by the new browser test before repair. Build passed (0 warnings/errors). Browser/PWA save tests passed for redirects, malformed/null payloads, server rejection, valid acknowledgement, preserved blocks, navigation protection and concurrent edits followed by their own autosave. All-editor resizing regression passed again. Full harness rerun in progress. Restore-visibility follow-up commit: 86509cb. +Verification: both failures were reproduced by the new browser test before repair. Build passed (0 warnings/errors). Browser/PWA save tests passed for redirects, malformed/null payloads, server rejection, valid acknowledgement, preserved blocks, navigation protection and concurrent edits followed by their own autosave. All-editor resizing regression passed again. Final full harness subsequently passed (405 checks). Restore-visibility follow-up commit: 86509cb. ### Deferred infrastructure finding — Development login redirect scheme @@ -115,10 +178,29 @@ Live protected HTTPS requests redirect through an HTTP login URL. Development ng Next action for infrastructure review: verify the TLS proxy's forwarded scheme and trusted source addresses, then preserve that scheme at the Development origin with a narrowly trusted configuration. Existing cookies remain Secure, and the edge upgrades HTTP. This is the only deferred confirmed defect. No Production configuration was accessed or modified. -The ee9bbec deployment briefly contained the application-only attempt; final deployment will restore the fully verified application behaviour while retaining all sprint improvements through 2f99a3c. No user data or schema changed. +The ee9bbec deployment briefly contained the application-only attempt; it was reverted and the final 1930007 deployment retains all verified sprint improvements, including the subsequent Locations presentation refinement. No user data or schema changed. ### B2 follow-up — Literal segmented presentation in the PWA ribbon Final visual review showed the two mutually exclusive hierarchy choices were using standard ribbon tiles. Added a declarative segmented contribution style so the existing bound buttons render as compact connected label-only segments. Marked the group essential to retain immediate access; source controls, handlers, persisted mode and help remain canonical. -Verification: build passed (0 warnings/errors). New real-Razor browser/PWA regression passed across all four themes, checking connected edges, compact height, keyboard activation, pressed state, source-state synchronisation and restored preference. Existing drag/reparent/relationship browser regression passed. Final full harness and toolbar reruns in progress. +Verification: build passed (0 warnings/errors). New real-Razor browser/PWA regression passed across all four themes, checking connected edges, compact height, keyboard activation, pressed state, source-state synchronisation and restored preference. Existing drag/reparent/relationship browser regression passed. Final full harness (405 checks) and toolbar rerun passed. + +## Commit history + +- 7f19319 Order Story ribbon navigation around author workflow +- d6be496 Compact location hierarchy controls and preserve drag workflows +- 77332a2 Make project and book covers accessible navigation links +- a348777 Retire obsolete acceptance report and redirect legacy bookmarks +- 79c4fd2 Share persistent accessible side panel resizing across workspaces +- d7ae6e2 Retain contextual ribbon when maximising PWA workspaces +- ab5325d Keep character image controls inside narrow browser forms +- ba33b69 Exercise project export and restore authorisation boundaries +- b7d87c7 Avoid solver graph dependency when sitemap indexing is disabled +- 86509cb Keep workspace restore controls visible in PWA ribbons +- 2f99a3c Preserve unsaved floor plan edits until their save is acknowledged +- ee9bbec Preserve HTTPS login redirects behind the trusted local proxy +- 5a969eb Defer upstream scheme repair after live proxy verification +- 1930007 Render location hierarchy choices as compact ribbon segments + +The final report/recovery checkpoint is the fifteenth sprint commit.