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

22 lines
3.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Phase 2B execution and layout contract
Authorised by the Phase2B kickoff after Development screenshot acceptance of2A. Scope is layout infrastructure only; no Phase2C/Phase3/Phase4 feature integration.
- **2B.1:** Enhance the five existing destination grids progressively. Measure the root’s actual top against the visual viewport, observe shell/header/help-container size, and respond to ribbon, resize and fullscreen events. CSS flex/grid handles the remaining header/tool/panel allocation; no fixed ribbon offset. Panels scroll independently. In exceptionally short or heavily scaled windows use unclipped document flow.
- **2B.2:** Accessible vertical separator, pointer capture/interruption cleanup, keyboard Left/Right/Shift/Home/End, minimum main440px and companion280px, proportional constraints on wider screens. Collapse hides the original DOM; no replacement rendering, reload or session teardown.
- **2B.3:** Below900px actual workspace width, use one primary column and a non-modal contextual overlay. Escape/Back restores toggle focus; leaving the overlay by keyboard closes it without trapping application ribbon or Help. A temporary overlay does not overwrite desktop collapse preference.
- **2B.4:** Five destination contents and standalone launchers remain intact. No new companion sections are invented. Home card spacing is reduced and aligned; Dashboard remains the existing Plan/Reflect overview. Existing Markdown Help covers layout controls and their limits.
- **2B.5:** Full build/harness, rendered responsive/browser/simulated-PWA layout and preservation suites; authenticated Development interactions with scoped author-data comparison; rollback archive, screenshots and report.
## Device preferences
`plotdirector.writerLayout.v1.<signed-in actor ID>.<destination>` in localStorage, matching existing non-sensitive device layout conventions. JSON contains only schema version, companion-width fraction and desktop collapsed flag. Different destinations/authors use independent keys; book/story IDs, scene selections, session/native state and prose are absent. No database or server preference writes. No companion tabs exist in these shells, so no selected-section field is applicable; later integration must explicitly define bounded section keys rather than storing story context.
Saved widths are constrained on read and to the current usable track width on render. Malformed/unknown versions default safely; denied storage disables persistence but leaves controls available. The desired width fraction survives temporary small-window clamping. Current layout content remains in the original DOM during collapse/overlay changes, preserving local values and existing handlers.
## Independent context
Layout actions do not call application APIs. Working, exploration, pinned, Reader, verified Word and active-session authorities remain those documented in Context-Contract.md. Standalone Context/Intent windows keep their own state and placement protocols. Opening/hiding the contextual companion never launches/closes them or navigates Word.
Implemented and Development-qualified as application10bf9db; actual qualification and deployment results are recorded in [Phase2B-Report.md](Phase2B-Report.md). Physical Windows/installed PWA/real media/multi-monitor checks must remain explicitly manual when unavailable.