PlotDirector/Docs/Writer/Writer3/Phase2B-Report.md

12 KiB
Raw Blame History

Writer 3.0 Phase 2B completion report

16 November 2026. Layout infrastructure implemented, pushed and deployed to Development only. Phase2C has not begun.

Application commit: 10bf9db9061fdec340acf7ff0df96f3dfd299814 on codex/word-companion-native-phase1-20261104. Application baseline: Phase2A f96259a; repository baseline 4dc50e1. The subsequent report/evidence and live-test adjustment commit does not change the deployed application.

Delivered workspace

Write, Explore, Plan, Review and Reflect now share a progressively enhanced viewport workspace. The original content and handlers remain in their existing main/reference panels. The default companion occupies33% of the usable track width; authors can resize or hide it without reloading. Home retains its three choices with reduced card padding/minimum height and responsive top spacing. Dashboard remains the existing Plan/Reflect overview, outside the five split destinations.

The workspace measures its actual document position against the visual viewport, then uses CSS flex/grid to allocate the remaining height beneath the existing shell. ResizeObserver responds to header, shell and Help-container changes; resize, fullscreen, visual-viewport, font-ready and ribbon events schedule measurement. There is no fixed ribbon-height subtraction. Main and companion panels scroll independently. Exceptionally short or heavily text-scaled windows use document flow; returning from a scrolled flow layout to a normal desktop recovers the viewport without a stray page scrollbar.

The restrained divider has separator semantics, an accessible label, announced current/min/max width, visible focus and keyboard instructions. Drag uses primary-pointer capture, animation-frame updates and completion-only storage writes. Pointer cancellation, lost capture, window blur, resize and navigation clean up dragging. Mouse/touch pointers and Left/Right/Shift/Home/End keys work. Main width stays at least440px and companion at least280px in split mode, with proportional bounds on larger screens; below900px actual workspace width the layout switches to one main column. Coarse-pointer divider targets are44px wide.

Hide companion expands the main panel while retaining the same companion DOM. Show companion restores it. Local values, existing session controls and handlers are not reconstructed. On narrow screens, Show companion opens the contextual content as a non-modal overlay; Back to workspace or Escape returns focus to the toggle. Tabbing outside closes the overlay without trapping the application ribbon or Help. Temporary overlay visibility never overwrites desktop collapse preferences, and resizing back to a collapsed desktop arrangement restores focus safely.

Components and storage

Component Change
wwwroot/js/writer3-workspace.js Reusable enhancement for the five existing main/reference compositions; measurement, sizing, pointer/keyboard controls, collapse, overlay and preferences
wwwroot/css/writer3.css Flex/grid viewport allocation, independent scrolling, restrained handle, responsive overlay, coarse-pointer targets, flow fallback and smaller Home cards
Views/Writer/Destination.cshtml Loads the component and emits signed-in actor identity for layout namespacing
Views/Writer/_Writer3Header.cshtml Existing Markdown layout Help tag; destination Help retained
Existing five destination partials Content and business logic preserved; no duplicate planning, Reader, reporting or creative engine
PlotLine.Tests/Browser/writer3-workspace.cjs Rendered isolated MVC and optional authenticated Development qualification
writer3-navigation-live.cjs Existing PWA Help check explicitly expands a persisted collapsed ribbon before accessing Page Help

Storage key: plotdirector.writerLayout.v1.<actor ID>.<destination>, following existing non-sensitive device-preference localStorage conventions. Stored JSON contains only version, companion width fraction and desktop collapsed boolean. Preferences are independent for each author and destination on that browser/device; they do not synchronise across devices. No database table, server preference endpoint, book/scene/native selection or session binding is introduced. Malformed/unknown versions use defaults; invalid field types are ignored; saved widths are clamped to the current usable space. Denied storage leaves controls working without persistence. The desired fraction survives temporary window-size clamping.

The current companions have no selectable tabs/sections, so selected-section persistence is not applicable and no artificial section selector was added. Collapsing preserves the original content and any local values. Future section keys must remain presentation preferences rather than becoming story context.

Preserved behavior and Help

Existing working objectives, chapter/scene links, work and Audio Review controls, Problem Solver starting choices and limitations, plans, Reader, Journey, reports/privacy and specialist story references remain. There is no Phase3 control restructuring. Context and Intent still launch independently through the unchanged named-window/display-placement/native-follow infrastructure. Layout operations do not fetch or post story data, launch/close standalone windows, move Word, change pinned/Reader/exploration/working selections or rebind sessions.

New Markdown key writer3.layout explains resizing, keyboard controls, collapse/restore, device preferences, narrow overlays, flow fallback and standalone separation. It uses the existing tag helper/popover and full article. Layout Help opens the existing Help drawer, including in PWA mode; no new Help implementation exists. All five destination articles and Help coverage were updated.

Qualification

Gate Result
dotnet build PlotLine.slnx Passed; zero warnings/errors
dotnet run --project PlotLine.Tests/PlotLine.Tests.csproj Passed;584 PASS records, exit0; serial with build
New isolated rendered workspace matrix Passed200 cases: five destinations × four themes × five viewports(390×844,1024×768,1440×900,1920×1080,2560×1440) × browser/simulated PWA
Workspace interactions Passed mouse/touch drag, keyboard limits, cancellation, collapse/restore, reload, independent destination preferences, malformed/old/extreme values, denied storage, narrow overlay/Escape/focus, resize, actual headless Chromium fullscreen, ribbon height and200% text scaling
Active controls/local state Isolated Writing/AudioReview fixtures retained the same session DOM, bound chapter, unsaved note and audio controls across layout actions; no session/media POST was triggered by those actions
Navigation regression Passed168 destination/theme/width/browser/PWA combinations, including Home, book scope, back/forward/reload, unavailable-book404, keyboard and Help
Preservation suites Standalone window identity/reuse/pinning/display-denial/retry; native management/presence; native-follow races and recovery simulations; Intent assessment/cancel/permissions; Reader three widths/four themes/browser/PWA; audio refresh/repeated commands/seeks/stale recovery; intelligent desk and48-case legacy Overview suites passed
Authenticated Development workspace Same200 rendered cases and layout interactions passed with a disposable owner/book; browser and simulated PWA
Authenticated Development navigation Existing/empty books, seven surfaces, Home actions, book isolation, reload/history, legacy routes,404 and Help passed in browser/simulated PWA
Author-data invariant Ten scoped before/after hash fields identical; absent workflow/checklist/notes/plans/sessions stayed absent
Fixture cleanup Dedicated synthetic projects/account removed; RemainingSyntheticAccounts=0; private identity file removed

The live workspace run does not create a real work or audio session. Active-session retention is qualified with isolated existing-client fixtures, not claimed as physical Word/media proof. The headless fullscreen check is actual Chromium fullscreen; “PWA” cases simulate installed-mode signals and do not prove an installed Windows PWA. The scoped data comparison covers Books, Chapters, Scenes, ChapterGoals, SceneWorkflow, checklist, notes, objectives, plans and sessions; login/presence and explicit ribbon appearance preferences are separate operational data.

A guarded Development SQL runner verified the effective database. A copy-only checksum backup succeeded and its nonempty file was checked before explicit fixture creation: /var/opt/mssql/backup/writer3-phase2b-before-fixtures-20261116.bak. Fixture setup/deletion used existing stored procedures. No schema migration or author-data conversion was needed. Unrelated untracked investigation work was preserved.

Evidence: qualification logs and snapshots, Write, resized, Explore, resized, narrow companion, Plan, Review, Reflect, refined Home. Screenshots use synthetic Development content, not real author manuscripts. Desktop companion proportions in these screenshots reflect deliberate test resizing; the initial default is33%.

Development deployment

Release 10bf9db-20261116T164516Z; archived at /srv/apps/plotdirector-dev/releases/10bf9db-20261116T164516Z. Rollback: /srv/apps/plotdirector-dev/current-before-10bf9db-20261116T164516Z.

No queued/processing import, Story Intelligence, synthesis, pipeline or enrichment work was present at the pre-stop check. Fresh Release publish installed into physical current with deployed configuration, data protection, uploads and logs preserved. plotdirector-dev is active; local GET and TLS-validated public GET return200. DLL metadata contains 1.0.0+10bf9db9061fdec340acf7ff0df96f3dfd299814. Published/deployed SHA256 both 53cd9b9c1e15f273bc9978fca535c0a355bc7e5fca528c8515d9cb08a2565e59. Warning/error service journal was clear through live acceptance. No Production deployment or schema change.

Manual Windows acceptance and Phase 2C recommendation

  1. In the installed Development PWA and a normal Windows browser, resize/collapse each destination with mouse, touch where available and keyboard; reload/switch destinations. Check comfortable proportions, focus, high DPI, zoom/text scaling, ribbon collapse and fullscreen.
  2. With a deliberate real writing/Audio Review session, resize and hide/restore the contextual companion. Verify the same chapter/session, visible/reachable audio controls, unsaved note, playback telemetry and explicit pause/seek/end behavior.
  3. Launch standalone Context and Intent, reuse their windows and check manual exploration, pinned selection, verified Word following, permission denial and multi-monitor placement. Layout actions must leave their selection and native binding unchanged.
  4. Narrow the window, open/close the contextual overlay, Escape/Tab back to work and open Help. Restore a larger window and check each destination’s saved layout. Verify behavior when browser storage is blocked.

Actual Windows Word, installed Windows PWA, real media playback, assistive-technology announcements and physical multi-monitor placement remain manual checks. Device preferences intentionally do not sync between browsers/devices. At very short/scaled viewports document scrolling is an accessibility fallback, not hidden clipping.

Recommended Phase2C: start with these physical acceptance results and focused shell/return-navigation polish, including clear context-role indicators and returning from specialist tools without stale scope. Keep working/exploration/pinned/Reader/native/session authorities independent; define explicit acceptance for any additional companion-section state. Do not move full Context/Intent editing, guided exploration, visual scheduling or reflective insights into a shell-polish batch. Phase2C requires explicit authorisation and is not started.