PlotDirector/Docs/PWA/Completion-Audit.md
Nick Beckley e48889ac05 Complete desktop workspaces, context menus and plot health
Commit the pending application, help and browser regression work. Pin the patched PKCS dependency for the production release.
2026-10-31 09:27:04 +00:00

14 KiB

PWA ribbon completion audit

This extends the original page/action audit in Desktop-Experience.md. The single active ribbon, shell-owned groups, measured overflow and original handler/form ownership are retained.

Composition findings

The old all-category route map used the last equivalent it found. Books/Create exists in both Project and Book categories; on Project Overview it could borrow the inactive Book copy even though Project already displayed Add Book. Review Centre, Overview and other shared destinations were susceptible to the same error. Composition now seeds its operation set from the active category and always prefers active-category equivalents before considering an inactive category. Repeated contextual requests are suppressed during composition, not with CSS. The redundant Add Book action beside the dashboard Books-section heading is also declared as a contribution, accounted for by the existing base command, and decluttered only in PWA mode; book cards and per-record actions remain.

data-command-operation is emitted centrally for MVC anchors/forms and base ribbon commands, using controller/action rather than captions. The composer combines it with normalized route/query scope, HTTP method and relevant hidden form fields (excluding antiforgery). Standard /Controller/Action/id and ?id= representations normalize to the same scope. Book/project/format/focus/scenario/query differences remain distinct; unrelated local JavaScript buttons retain handler identity. Existing equivalent shell command nodes are reused once and restored to their home category/order.

Broad “any Exports or StoryBible URL means open book” lookup was removed. Shared semantic metadata distinguishes print, Markdown, text, timeline export, research pack, general export, backup, restore, settings, validation, retry, merge and removal. Established navigation/Add Book/Archive/Warnings icons remain associated with their operations. Contextual fragment jumps also use their section meaning (attention=warning, revision=review), not a generic edit pencil. Group Export uses an export icon, and Manage Lines uses a list icon distinct from the narrative-map command. Source form/anchor and ribbon reuse share the same metadata.

Search is one labelled ribbon input with an integrated magnifier submit button; no second full-sized Search card is produced. Enter and the integrated affordance invoke the original form's submit button/handler, using its existing route, values and antiforgery behavior. Selector-only scope forms retain their distinct View/Apply operation. Coupled local filters and editor fields stay in their workspace.

Classification

A = redundant PWA identity; B = existing ribbon operation; C = missing contextual command/help; D = page-wide scope/search/jump; E = actual content/workspace/editor/security controls retained. Every migrated Actions/More item continues through its original route/handler/confirmation and server/Razor permission conditions.

Area / routes Classification and decision
Projects Index, Details, Activity A: breadcrumbs/category/title; B: Edit, Add Book, Activity, Collaborators, Backup, Restore; C: checklist/archive/help; E: trial notices, statistics, books and activity tables.
Projects Edit/Create E: meaningful New/Edit task heading, fields, validation and Save; A: redundant eyebrow; B/C: Back to projects and page Help.
ProjectCollaborators Index A: header/breadcrumb; B/C: Back; E: invite form, roles, pending invitations and per-member removal.
ProjectRestorePoints Index A: header/breadcrumb; B: backup/back; C: Help; E: named snapshot creation, limits, per-record restore/download/delete confirmations.
Acceptance Phase1 A: report identity; D: project/report scope; E: diagnostics and checklist evidence.
Books Details A: redundant identity; B: Edit/Add Chapter/Overview; C: scoped Health/archive/help; E: author description, metadata, chapters and analysis state.
Books Edit/Create E: task heading, begin mode, cover/metadata form, validation and Save; B/C: Back to project and Help.
Chapters Details E: chapter title/summary/metadata and scene list; A: breadcrumb/eyebrow; C: edit/workflow/brief/Add Scene/archive/help; E: bulk scene POV operation stays next to scene list.
Chapters Edit/Create E: task heading, chapter fields/revision/save; B/C: Back to book and Help.
Scenes Edit/Create E: scene editor identity/fields/save, inspector/local tabs and manuscript content; A: breadcrumb/eyebrow; C: briefs/Markdown/writing-session/archive/help.
Scenes MovePreview E: affected scene, before/after order, safety confirmation and submission; A: redundant eyebrow only.
Timeline Index A/B/C/D: unchanged prior complete audit; E: Filters/Focus, View, Jump, Saved Views, Drag Sources, chapters, scene cards and visual layers. Settings gets a semantic settings icon; validation gets check icons.
Timeline Settings E: meaningful settings task heading, section/metric options and Save/Back; A: breadcrumb/eyebrow. No settings form is transplanted.
StoryCalendar Index/surface A: redundant Calendar H1/eyebrow/breadcrumb; C: Help; E: story date range/counts, coupled book/month query, calendar navigation/day content. Fragment refresh remains supported.
PlotLineWorkspace Index; PlotLines/PlotThreads Index A/B/C: workspace prior audit retained; management lists newly integrated (the prior audit had listed them but their declarations were missing). E: map/filter/association/inspector behavior and row operations.
PlotLines/PlotThreads Edit/Create E: meaningful task title, full editor fields/validation/Save; A: breadcrumb/eyebrow; B/C: Cancel/back/archive/help.
StoryPoint Index A/C: prior audit; E: coupled book/chapter/scene selectors, snapshot, state feedback.
Scenarios Index, Timeline, Compare, Create List identity A and Create/Help C; sandbox safety banners and scenario identity E; navigation/validation/archive C; comparison evidence, Apply confirmation, creation form and scene moves E.
ContinuityExplorer Index A: generic page furniture; E: coupled entity/range filters and investigation surface.
Writer Index A/C/D: prior audit; E: Word/workstation controls and writing queues.
Writer WritingPlans Newly A/C: list heading, Create Schedule/Preview; E: plan cards, per-plan edit/activate/deactivate/regenerate/delete and confirmations.
Writer SchedulePreview Newly A/C: redundant heading and plan management navigation; D: writing-plan scope selector; E: selected-plan summary, rebalance controls, plan/schedule tables and item actions.
Writer ScheduleSetup, EditWritingPlan E: meaningful planning task heading and explanatory constraints, form fields, validation and submit/cancel; A: breadcrumb/eyebrow.
Writer Chapter E: chapter identity and author workflow content; A: breadcrumb/eyebrow; C: scoped Timeline/Warnings and brief formats/help; E: goals/readiness/checklists and scene links.
Review Centre Newly A/C: only redundant Review Centre heading/help and footer book/workspace navigation; E: character gate instructions, locked/enabled category tiles, saved review state and pipeline data. No review/analysis logic changes.
IntelligenceReview Index E: module identity, observation counts, review instructions, scope tabs, Assess/paging and evidence; C: Review Centre/tracked module/Book navigation, keeping paging in place.
Characters Index/Details; Names Index Prior A/B/C retained. Meaningful profile/avatar/description E; library query/pagination and character section navigation E.
Characters Edit/Merge/CropAvatar Newly task model: E entity/edit/merge/crop headings, forms, destructive acknowledgement and image tools; A breadcrumb/eyebrow; B/C page Help, back/cancel.
RelationshipMap Index A redundant map title/eyebrow, C Help; E current story-point description, coupled map filters/legend/network.
Dynamics Story Newly A/C: redundant project heading, Run Checks, Help; E diagnostics/pairings/evidence.
Dynamics Character, Relationship, Knowledge Newly E meaningful entity/relationship headings; A breadcrumb/eyebrow; C cross-navigation/focused Timeline/help where present; E histories, charts and knowledge evidence.
Locations and StoryAssets Index/Details/Edit/Merge List/detail prior audit retained. Editors/merges newly integrate Help and header navigation/archive; E entity descriptions, field validation, merge confirmations, tree/drag/dependencies/custody/local operations.
FloorPlans Index/Edit Index prior audit. Editor newly contributes Help/back; E actual floor-plan identity, floors/blocks/transitions, create/delete/drag/occupancy controls.
StoryBible Index A/C/D retained, semantic export icons and single search added; B exact existing Relationships command reused; E sections, findings, clear/export search results.
ProjectMetrics Index/Edit Index prior audit; E metric definitions/add/default controls. Edit is a task with Save/Cancel and field explanations retained, Help/identity integrated.
Analytics, Warnings, Archives Index Prior audit retained. E coupled analytical/filter ranges, validation summary and item-level dismiss/restore operations; C validation/help.
Imports Index/Result Newly C header navigation/sample/help; A generic import identity in Index; E preview/upload/schema/dry-run/confirmation, result identity and per-result counts/errors remain.
Help Index Newly A/C/D for authenticated PWA: redundant heading, page Help, one integrated global help search. Public/normal browser stays unchanged.
Help Category/Article E meaningful category/article title, authored summary/content/counts; C breadcrumb destinations become Navigation commands so category access is retained, not discarded.
FeatureRequests Index/Roadmap Newly A/C list identity and roadmap/create/navigation. E request lists/statuses and empty-state affordances. No feedback is sent by verification.
FeatureRequests Details/Create E authored request title/conversation and submission task instructions/forms; A breadcrumb/eyebrow; C Back; replies/submission/Cancel stay local.
ManageAccount Index/Subscription Newly A/C duplicate generic identity/email and Back; E actual account/security/subscription/usage/billing data and security/payment operations stay beside their explanations.
ChangePassword, Enable/DisableTwoFactor, RecoveryCodes Deliberately retain E: security task headings, credential/recovery data, confirmation and forms. No ribbon projection of passwords, tokens or recovery codes; no screenshots of secrets.
Onboarding setup/import/review-edit stages Deliberately retain E: progress, workflow stage identity, explanatory gates, field/accept/ignore controls and irreversible submission context. Review Centre and module navigation integrated above; no intelligence read/write model or analysis changed.
WordCompanionHost / Writing panes Deliberately retain E: dedicated companion/editor surfaces, cross-window presence/context/intent and manuscript/inspector interactions. These are not conventional page furniture in the main shell.
Admin, diagnostics, auth/public/marketing/export output pages Deliberately retain meaningful maintenance, diagnostic, credential, marketing or printable-document layouts. Privileged tools and standalone output are not regular author-workspace chrome. Anonymous pages have no application ribbon; declarations never suppress their content.

Final verification — 30 October 2026

  • Normal solution build and all 374 executable regression checks pass. Publish succeeds; the existing NU1903 dependency advisory remains outside this UI pass.
  • Installed-PWA browser suite passes on 20 actual Razor views, all six registered themes and 2560/1440/900 widths. Checks cover final composed semantic uniqueness (including Add Book), scoped route/handler identity, original node reuse, single search, Enter/integrated-button submission, keyboard focus/Escape, disabled controls, permissions, antiforgery/confirmation, partial refresh and collapsed/expanded access. Existing toolbar and sticky-shell suites also pass.
  • Live authenticated Dev smoke passes on 42 routes in normal browser and a real installed Chromium PWA. Story Bible beth Enter search and integrated submission, section jumps, correct Help, Timeline scope and archive cancellation pass. Single-row layout is verified at 2560/1920/900. Theme verification sets the same app/theme/Bootstrap attributes as the application's real theme switcher.
  • Visually inspected the mandatory Project, Book, Timeline, Plot Lines, Story Bible, Calendar, Threads, At This Point, Characters, World, Metrics, Health, Warnings and Archive pages; also inspected Review Centre, project editing and scheduling fixtures. Story Bible was visually checked in all six themes. Review Centre/gated analysis coverage uses rendered fixtures rather than starting manuscript analysis. Security/recovery secrets are excluded from screenshots.
  • Header Actions/More contributions retain original handlers, form submission, permission filtering and destructive confirmation. Local row menus, editor Save/Cancel, coupled workspace filters, security controls and staged onboarding remain alongside their content as classified above.
  • Deployed Dev only: 340c5e3-pwa-completion-v1-worktree-20261030T145830Z. Published/deployed DLL hashes and served contextual JS/CSS hashes match; service active, local/public TLS GET 200 and no service warnings/errors during smoke. Production is untouched.
  • Verification uses normal authentication with a dedicated temporary Dev identity and owned project/book, followed by the normal complete account-deletion workflow. No interactive login, production identity change or authentication bypass is introduced.

The classification table records the intentional exceptions. No outstanding contextual-ribbon blocker was found in this pass.