14 KiB
Writer Workspace Layout — Phase 1
Scope and baseline
Shared branch: codex/word-companion-native-phase1-20261104. Application baseline: a988982, with questionnaire reporting at 1dceeff. The initial audit was verified against the current source and authenticated Development screenshots. Guided Investigation catalogue, scoring, persistence and recommendations remain unchanged.
Baseline build passed with zero warnings/errors using serial MSBuild after one CLR startup failure (0x80131506, before compilation). Baseline regression harness: 605 passing checks. No database migration is required.
Shared foundation
The application shell provides Back at the far left of the ribbon heading, including when commands are collapsed. It uses the existing SVG icon registry and native history.back(), preserving URL parameters and browser state. The Navigation API checks the actual preceding entry against recorded internal entry keys and URLs. Where unavailable, session-scoped records conservatively recognise internal navigation, redirects and refresh. External, direct and empty-history boundaries disable Back. Uncertain history disables the control rather than replaying a guessed URL. Native before-unload protection remains effective; no synthetic link replay bypasses guards.
Writer Utilities owns the companion toggle and standard circular layout Help. The five pages no longer inject a second toolbar or close/help buttons. The existing per-author, per-destination browser preference key remains unchanged. Toggling changes presentation without replacing panel DOM, changing working focus, disconnecting Word or saving author records. Existing pointer resizing and keyboard arrows, Shift, Home/End remain available, with bounded widths and separator announcements.
The full-width shell, grid and child wrappers now expand together. The former collapsed-state 80ch limit on every direct child capped entire working panels and Reader controls; it is removed. Forms, inset panels and chapter controls reclaim the available width. Deliberate prose measures remain. Main panels grow with document scrolling; companion panels retain bounded independent scrolling. The sticky top derives from the actual visible sticky application header and updates for ribbon changes, resizing and content changes. The divider stays aligned and bounded by panel/viewport height without forcing short pages to fill the screen.
The five workspace headers keep semantic headings and page Help while removing repeated covers, oversized book titles and connection/setup blocks. Home retains its welcome presentation. The top-bar connection indicator and existing Display Setup route remain authoritative. A book-selector thumbnail is deferred: optional decoration is unnecessary to achieve the foundation and would need separate selector/accessibility review.
Changed shared components: _ApplicationShell, _Layout, ribbon presentation and Writer navigation; _Writer3Header, writer3-workspace.js, Writer/shared CSS; shared Reader partial, model presentation flag, script and styles. The existing Markdown layout Help explains the ribbon control and natural scrolling.
Destination audit and canonical mapping
| Before / retained URL | Verified implementation | After / canonical activity |
|---|---|---|
/Writer, /Writer/Index |
Three-choice Writer welcome | Writer Home; unchanged distinct welcome |
/Writer/Overview (“Writing desk”) |
Legacy aggregate: focus, progress, journey, queues and setup | Compatibility access to all legacy tools retained; misleading Desk ribbon label removed |
/Writer/Dashboard |
Existing writing metrics/dashboard | Writing Dashboard ribbon destination |
/Writer/Workspaces |
Legacy aggregate with filtered scene queues expanded; no workspace-management model | Scene queues, linked under Write → Current work; queue-only presentation, existing filters retained |
/Writer/Index?workspace=… / #workspaces |
Alternate legacy queue entry | Redirect / compatible fragment routing to scoped Scene queues |
/Writer/Index?journey=true |
Legacy journey presentation | Preserved |
/Writer/Index?setup=true, #display-setup |
Setup / legacy setup section | Preserved compatible setup routes |
/Writer/Review |
Canonical accepted manuscript Reader embedded with observations | Primary evaluation environment; Review mode |
/manuscript/reader?bookId=…&chapterId=…&focus=… |
Same Reader partial and service, separate outer view | Access-checked redirect to /Writer/Review with reading=true, chapter/focus preserved |
No unique legacy tools, author records or underlying routes were deleted. Workspaces is removed from Utilities because it is not workspace management. Scene queues remains a distinct meaningful action, not a duplicate workspace. Book switching preserves the queue destination but does not carry a chapter from another book. Navigation changes are limited to the identified overlaps.
Reader architecture and modes
Review and Reading use _Reader.cshtml, _Paragraphs.cshtml, ManuscriptReaderService and manuscript-reader.js. Presentation flags do not enter the accepted manuscript fingerprint. Chapter/changes endpoints and canonical synchronisation remain unchanged. The legacy Reader redirect first checks access and retains private cache/error behaviour.
- Review: full-width working surface and observation controls, companion available.
- Reading: centred prose, companion suppressed, editorial controls reduced, chapter controls retained. Review mode link restores the evaluation environment.
- Focus Reading: the same Reader fills the viewport with bounded, centred prose and sticky essential navigation. Surrounding shell/header/companion become inert; exiting restores their previous inert state. The visible Focus toggle provides the exit; server-rendered links also offer a no-script exit. Previous/next and chapter selection preserve focus and reading flags.
The chapter toolbar uses available width with a flexible selector rather than a narrow wrapped form. Container/media rules regroup controls at narrower widths. No chapter-notes or scene-notes panels were introduced.
Qualification
- Current serial solution build: zero warnings/errors.
- Executable regression harness: 610 passing checks.
- Focused real-browser Back harness: native Navigation API and forced fallback; direct/external boundaries, repeated Back, real HTTP redirects, refresh, Forward, push/replace state preservation, book queries and cancelled unsaved navigation.
- Writer layout browser suite: desktop and simulated standalone PWA; all five pages shown/hidden, internal working width growth, no nested main scrolling or horizontal overflow, preference reload, accessible resizing, Help, canonical aliases, centred Review, Reading/Focus/chapter persistence, 1920/1440/1024/800 widths, expanded/collapsed ribbon and sticky companion, repeated Back boundary.
- Existing Manuscript Reader browser suite: 3 widths × 4 themes × browser/PWA; selectable escaped text, private responses, navigation, empty/error states, focus and account/book isolation. The alias now waits for shared measured layout before checking geometry.
- Existing integrated Review browser suite: anchored observation CRUD and status changes, stale multi-window drafts, network/navigation guards, explicit paragraph/chapter Word navigation and acknowledgement, Audio Review DOM/target/note preservation, Focus Previous/Next, Help, narrow overlay and book isolation. Native/media telemetry uses existing simulations.
Authenticated Development acceptance passed in desktop and simulated standalone modes. Cross-section Back followed Characters → Locations → Project overview → nested Book → Writer Home → Review, then reversed the native history in order. An initial test incorrectly assumed a selected book remained available on project-scoped module pages; the accepted test follows the actual project/book links instead. Rendered screenshots were inspected in addition to geometry checks.
Screenshot evidence
Baseline: Before, authenticated Development, 1440 × 1000. Each of Write, Explore, Plan, Review and Reflect has -shown.png and -hidden.png; Home, Desk alias, Scene queues and Reader alias also captured.
After: After uses the same viewport and disposable author/book. Additional captures cover Reading, Focus, next chapter in Focus, centred Review toolbar, sticky expanded/collapsed ribbon, responsive widths, cross-section Back and canonical aliases.
| Workspace | Before shown / hidden | After shown / hidden |
|---|---|---|
| Write | Shown / Hidden | Shown / Hidden |
| Explore | Shown / Hidden | Shown / Hidden |
| Plan | Shown / Hidden | Shown / Hidden |
| Review | Shown / Hidden | Shown / Hidden |
| Reflect | Shown / Hidden | Shown / Hidden |
Additional inspected evidence: Reading, Focus next chapter, centred toolbar, sticky expanded, sticky collapsed, narrow window, cross-section Back. Machine-readable qualification receipt includes measured internal working-surface growth and test/deployment/data-preservation results.
Deployment and preservation
Application commit: b527e8eee1e7c97b36afbf5d48b9d4ec5d7e96bf, pushed to the shared branch. Development release: b527e8e-20261117T225434Z. The report/evidence commit is subsequent and documentation/test-only; the deployed application remains this qualified build.
Release published into a fresh temporary directory. Before stopping the service, the verified Development query found only completed synthesis, pipeline, import and enrichment records and no queued/running jobs. The physical current directory was backed up; deployed configuration, keys, uploads and logs were preserved. Service plotdirector-dev is active. Local GET and public TLS-validated GET both returned 200. Published and deployed PlotLine.dll SHA-256 match:
2246ee7f878e7278a5cf70fd1a4549d9121424676d5912e8b1cd3982e92338c2
Deployed assembly informational version contains 1.0.0+b527e8eee1e7c97b36afbf5d48b9d4ec5d7e96bf. Authenticated changed routes, redirects, Help and native Back passed against the deployed site. No error/critical application entries were found after deployment. The local HTTP smoke request logged the existing HTTPS-redirection warning that an HTTPS port cannot be determined behind the TLS proxy; public TLS navigation succeeded. Journal priority filtering alone does not catch ASP.NET warning text, so raw application warning/error prefixes were also checked. These checks followed successful publication and startup; a permission-denied unprivileged DLL hash read was repeated successfully with the normal privileged reader.
Visual inspection covered all ten five-page shown/hidden captures, plus Reading, Focus after chapter navigation, centred Review toolbar, 800px layout and expanded/collapsed sticky positioning. The five-page paired captures demonstrate inner controls and grids reflowing, not merely an enlarged outer border. Normal Review/Reading uses document scrolling; Focus retains one viewport reading surface without a second manuscript scrollbar. The final screenshot capture moves the pointer away from controls to avoid incidental Help tooltips obscuring evidence. No Production deployment, Windows Companion binary change, schema migration or questionnaire publication is part of this phase. A unique copy-only Development backup was created and RESTORE VERIFYONLY reported a valid backup set before disposable fixture creation. After guarded fixture cleanup, all 11 original record counts and SHA-256 aggregate hashes matched exactly: Projects, Books, Chapters, Scenes, BookParagraphManuscripts, WriterInvestigations, WriterInvestigationEvents, WriterWorkingObjectives, WriterReviewObservations, WriterWorkSessions and WriterInvestigationCatalogues. Remaining synthetic accounts, investigations, investigation events and observations were all zero. The private temporary credentials were removed and the disposable browser fixture host stopped. These hashes establish preservation for those tables; they are not a claim that every database table was compared.
Limits and stopping point
Standalone mode is exercised in Chromium through simulated standalone detection, not an installed operating-system PWA or physical Windows/Word session. Native Word and audio transport behaviour is covered by the existing simulations and unchanged application paths. Browser Back fallback intentionally disables ambiguous boundaries. Optional header thumbnail is deferred. All business functionality remains in the existing services and persistence architecture. Phase 2 has not begun; stop for review after the Development qualification receipts are complete.