PlotDirector/Docs/Writer/Writer3/Writer-Workspace-Phase2-Report.md

18 KiB
Raw Blame History

Writer Workspace Redesign — Phase 2

Scope and baseline

Shared branch codex/word-companion-native-phase1-20261104, fetched/reconciled from application d7e8a9c and report 8347f34. Phase 1 shared layout and the accepted Phase 1.5 panel system remain authoritative. The unrelated canonical-manuscript architecture assessment was preserved. No Production, native binary installation, diagnostic model or production-questionnaire change is included.

Five working environments

Workspace Before After / primary activity
Write Activity/chapter/scene controls together, unclear relationship with recording Inline three-step focus workflow; established activity/place/intention with Continue and Change focus; canonical intentions followed by optional recording
Explore Investigation link plus unequal reference/link columns Equal-weight capability discovery and the real questionnaire opening; private saved investigations remain alongside it
Plan Schedule creation dominated the landing page Next intended work without dates, actual ongoing recording where available, and genuine scheduled activities; schedule setup is secondary
Review Canonical manuscript plus combined intentions/observations companion Same Reader; independently collapsible chapter/verified scene intentions beside the manuscript at wide working widths, with observations in the existing right reference surface
Reflect Progress cards and a link to Writing Journey Existing Writing Journey calendar directly in the main working area, date/session inspection and optional progress details

Explore uses the available centre width to form two approximately equal columns and stacks when the available space is insufficient. Plan and Reflect deliberately have one full-width working surface rather than an empty reference column. Write and Review retain the accepted resizable Word/reference companion. The independent shared Investigation and Help panels remain available to all five, and their Open/Collapse/Pin/Close state is unchanged.

Current Focus

WriterController.Focus returns the same _WriterFocusForm used for an initial focus. It loads authorised book choices on demand. Steps select the existing Drafting/Revising/Editing/Researching/Proofreading values, a chapter/scene or book scope, then an optional personal intention. Step transitions retain the DOM values and do not reload the document. The scene selector filters against the selected chapter; no records are automatically created. Server-side scope and association checks remain authoritative.

An antiforgery-protected AJAX save updates the summary and canonical authoring references without replacing the session toolbar. Duplicate submissions are blocked; failures retain all choices and state that a save was not confirmed. Changing focus respects existing unsaved-authoring navigation guards. Continue URLs and authoring inspection URLs are generated server-side. A saved focus does not start, finish, move or reclassify a writing session.

The personal focus intention is not a chapter goal or scene note. Additive migration 280_WriterFocusIntention.sql adds nullable Intention to the existing private WriterWorkingObjectives row and extends its existing stored procedure. No parallel focus table/model is introduced. The new field is limited to 2,000 characters by MVC validation. Existing activity definitions, rows, ownership and book/chapter/scene validation remain intact. An older web build can run with the additive schema; saving through an older build cannot author the new intention and may clear it, so retain a current build when continued intention editing is needed.

Adaptive discovery and Guided Investigation

The Phase 3D.2A catalogue, dependencies, readiness and coverage exports were inspected as a design baseline. Runtime actions are limited to existing verified routes, not all audited graph relationships. Characters, chapters/scenes, Plot Lines & Threads, Floor Plans and existing bounded Writer suggestions are used; no planned Floor Plan occupant-placement operation is advertised as implemented.

Deterministic order:

  1. Available active-investigation suggestions, excluding Done/Skipped, deduplicated by capability and limited to two.
  2. Recorded chapter/focus/schedule/reminder context from the existing suggestion provider.
  3. A chapter starting point when no chapters are recorded, and foundational character/plot tools.
  4. Optional Floor Plan discovery.

At most four tiles are visible across active and ordinary suggestions. Stable keys and deterministic ranking break ties. A recorded-data gap is described as a gap in PlotDirector, not proof that the author has not planned elsewhere. No subjective readiness or manuscript diagnosis is inferred from counts.

Later defers a tile for seven days; Not now sets it aside; Reconsider restores those choices. These use the established author/project/book-scoped browser-preference convention, are device-specific and never alter investigation progress or remove ribbon navigation. Available investigation tools reuse the companion's compact authorised summary and its canonical native POST forms, retaining same-window activation, selected finding identity, authorisation and duplicate protection. There is no second destination resolver or diagnostic engine.

WriterInvestigationsController.Opening returns the shared _Opening partial also used by the dedicated investigation view. It uses the real currently published author catalogue and existing gate/book access checks. Begin uses the existing Start action and transitions to the existing questionnaire. Listing/starting does not silently activate or replace saved guidance. My Investigations retains its authorised Continue and original-results paths.

Plan: work management without another task system

The undated next activity is the same private focus as Write, edited through the same wizard. This avoids introducing a second personal task backlog merely to support one next piece of work. A recording in progress comes from the existing bounded state query and is labelled separately from intended work. Upcoming reviewed activities and existing schedule tasks retain their actual dates, kinds and statuses. No task is inferred from a manuscript concern or review observation.

Completed/skipped/outstanding schedule summaries and existing plan/completion screens remain under Schedule and completed work. Existing schedule setup, review/commit, preview and availability editing remain authoritative. No automatic schedule is created by visiting Plan or saving focus. This phase deliberately does not introduce an arbitrary personal backlog or new deferred-task semantics; existing schedule states and discovery deferral remain distinct.

Review and manuscript integrity

Review, Reading and Focus Reading still use _Reader, _Paragraphs, ManuscriptReaderService and the existing synchronisation/fingerprint paths. No accepted paragraph or source-mapping changes are made. At sufficiently wide working widths, the main surface places chapter intentions alongside centred manuscript prose; at smaller widths the collapsible intention section precedes the reader. Collapsing it returns the main surface to a single column. The existing observation/reference companion can be hidden independently using the ribbon.

The existing WriterReviewService supplies chapter goals, authored notes and scene context; it continues to derive scenes only from current accepted paragraph assignments and falls back to chapter context otherwise. The same AJAX panel supplies both context and observations; its intention section is moved to the reading-side slot rather than rendered or persisted twice. Observations, author intentions, accepted manuscript and saved assessments remain labelled separately. Save/edit/resolve/revisit, stale drafts, passage anchors, Audio Review and acknowledged Word handoff are retained.

Reading reduces editorial surfaces; Focus Reading retains its existing inert surrounding interface, chapter navigation and exit. Book-specific browser preferences update existing Review return links with a previously selected chapter/Reading mode, only when that chapter remains in the currently authorised chapter choices. Explicit chapter links are untouched. No competing history stack is introduced.

Reflect and provenance

Reflect uses _JourneyCalendar, WriterWorkRepository.Calendar/History and existing accepted activity data. Reflect's month/day links stay in Reflect; the retained Journey route continues using the same partial. The calendar spans the main work area, and recent sessions/date inspection remain available. Technical recording detail is expandable rather than a prominent wall of receipt/telemetry information. Manual session initiation, automatic accepted changes and elapsed-versus-observed time are distinguished. Missing historical tracking and quiet days are not treated as a judgement or proof of inactivity.

Empty states, accessibility and performance

A project without a book gets a clear book-selection starting point. An empty/minimal book can establish book-wide focus or add structure, discover foundational tools, identify undated next work, learn the supported Word synchronisation path, and return from an empty Journey to writing/recording. No story records, manuscript baselines or schedules are generated by these states.

Native labelled controls, fieldset legends, status/error messages, keyboard step controls and busy-state protection are retained. Main work uses document scrolling; only established contextual panels use bounded internal scrolling. Shared ribbon measurement, panel reflow, theme tokens, PWA Back and unsaved-change safeguards remain in place. Heavy questionnaire history is not loaded for discovery; the compact companion summary is reused. Focus references reject stale asynchronous loads. Full manuscripts are loaded only through the existing Review reader, not for discovery summaries.

Qualification, deployment and preservation

Baseline and final serial solution builds succeed with zero warnings/errors. The executable regression harness passes 623 checks. Focused SQL tests use rollback-only disposable fixtures and cover intention persistence, one-row focus updates, no automatic session creation, unsupported activities, foreign author/book/chapter/scene rejection, archived targets and permanent-book cleanup.

Authenticated Development acceptance uses four isolated scopes: project without a book, minimal chapter/no manuscript, chapters/scenes without a writing plan, and an accepted manuscript with explicitly recorded sessions, saved investigations, reviewed schedule activities and author observations. The test exercises all five pages, forward/back wizard values, one save for duplicate submissions, no session side effects, focus persistence, undated Plan work, discovery dismissal/defer/reconsider, real questionnaire entry, saved recommendation navigation, active discovery limits, Review scene context/observation saving, Reading/Focus/next chapter, Review return target, actual schedule review/commit/edit without creating a second plan, and Reflect month/day navigation. It also captures all five pages at 1920, 1366 and 800px with expanded contextual panels and collapsed ribbon/panel states.

Existing integrated Review browser/simulated-PWA tests pass: anchored CRUD, stale multi-window drafts, network/navigation guards, Word handoff/acknowledgement, Audio Review DOM/target/note preservation and book isolation. Existing Reader tests pass across three widths, four themes and browser/PWA, including private headers and account isolation. Shared-panel lifecycle tests pass all nine state combinations and independent pin/close restoration. The retained layout suite passes Write/Review divider and internal reflow, centred reading, sticky chrome, compatibility aliases and native safe Back; Explore/Plan/Reflect now assert their deliberately column-free layouts instead of an obsolete universal reference-pane assumption.

Rendered screenshots were inspected. Inspection led to removing the inherited legacy wizard grid, retaining a single session-recording surface, deduplicating/bounding discovery and improving context collapse/reflow. The layout test's initial Review width assertion selected the new notes inset rather than the manuscript toolbar; targeting the actual primary toolbar preserves the original growth threshold. Measured toolbar width grows from 657px to 1,018px when the reference companion closes. A hidden overflow ribbon command in a return-target test was tested through its actual generated href rather than pretending it was visible. No diagnostic or manuscript test was relaxed.

Application commits run from 63fb2d5 to final 56680f16faff3304809fd2e067677d5f7d3ff383, pushed to the shared branch. Development release: 56680f1-20261118T124810Z. Published and deployed DLL SHA-256 match: bfc0029f3f5b1f5b5e282f94b19282b9a68c5f2fd478d948b5b90966c85d488e. Assembly informational version contains the final commit. Service is active; local GET and TLS-validated public GET return 200. Raw logs and priority-error entries show no failure/critical entries after the final deployment. The existing local HTTP HTTPS-port-discovery warning behind the TLS proxy is not a failed public TLS request.

Before each install, verified Development queries found no queued/running import, synthesis, enrichment, pipeline or Story Intelligence work. Fresh publication, release archive and physical pre-install backup followed the established process, preserving configuration, data-protection keys, uploads and logs. Migration 280 followed a unique copy-only checksum backup (writer-phase2-20261118T121841Z.bak) and successful RESTORE VERIFYONLY. The first verification attempt with the application login lacked the necessary permission; verification was repeated successfully using the existing container administrator before migration. No Development database restore/reset was performed.

After the final authenticated run, the disposable accepted manuscript SHA-256 is unchanged and its plan count remains exactly one after creation, review/commit and subsequent plan edit. Guarded fixture cleanup removed the disposable accounts/projects/books and related data. All 11 original table counts and aggregate SHA-256 values match the pre-fixture snapshot: Projects, Books, Chapters, Scenes, BookParagraphManuscripts, WriterInvestigations, WriterInvestigationEvents, WriterWorkingObjectives, WriterReviewObservations, WriterWorkSessions and WriterInvestigationCatalogues. This is a precise preservation claim for those tables, not every table in the database. Remaining fixture accounts, investigations, events, guidance and review observations are zero. Private test credentials were removed and the task-created browser fixture host stopped. No real author's project, manuscript or subscription was used as a fixture.

Contextual Help for Write, Explore, Plan, Review and Reflect was updated in the existing Markdown infrastructure. The final report/test/evidence commit is subsequent to the deployed application and requires no application redeployment.

Screenshot evidence

Machine-readable qualification and screenshot manifest. The manifest includes dimensions and SHA-256 for 20 before and 61 final after captures. Baseline and ordinary paired captures use 1440 × 1000; responsive captures are labelled with their width. Screenshots contain only isolated disposable content.

Workspace Before Final populated work Final empty/no-manuscript work
Write Before Established focus First focus
Explore Before Discovery and concern Starting tools
Plan Before Priorities and schedule Undated starting point
Review Before Scene context and observations No accepted manuscript
Reflect Before Actual recorded activity Journey starting point

Additional evidence: no book, both contextual panels with Review, narrow Explore, Reading, Focus Reading after chapter navigation. All five also have expanded/collapsed captures at 1920, 1366 and 800px in the same directory.

Navigation map

The canonical five /Writer/Write, /Explore, /Plan, /Review, /Reflect destinations remain. Existing Writer Home, legacy queue/book routes, Reader compatibility alias and PWA Back continue unchanged. Reflect's calendar navigation stays within Reflect; /Writer/Journey remains a compatible calendar presentation. Plan setup/preview/plan editing remain their existing secondary routes. Explore's first step transitions to the existing questionnaire after Begin. No new global navigation stack is introduced.

Limits and stopping point

Discovery is intentionally bounded and deterministic; it does not implement the full Feature Dependency Graph or Progressive Readiness planner. Device-specific discovery/Review preferences do not synchronise across devices. Plan has no new arbitrary personal backlog; it reuses the current focus and established scheduled work. Reliable scene context depends on accepted assignments. The browser tests simulate standalone detection; an installed OS PWA and physical Windows/Word environment are not available. Native/audio transport remains covered by established simulations and unchanged integration paths.

Stop for review after Development qualification. No additional Writer phase is authorised by this delivery.