Commit the pending application, help and browser regression work. Pin the patched PKCS dependency for the production release.
15 KiB
Installed desktop experience V1
Audit before implementation
The application shell uses ApplicationRibbon's route/scope registry, _ApplicationShell and application-shell.js. Full page navigation is normal; Calendar replaces its surface using fetch/history, so contextual ownership must also refresh on fragment replacement. application-pwa.js already detects standalone display mode and navigator.standalone, but sticky offsets used only the former. The theme registry currently contains six themes.
| Page | Identity and command inventory | Reconciliation / workspace retained |
|---|---|---|
| Projects/Details | Breadcrumb, Series Dashboard, title/description, help; Edit, Add book; Actions: Activity, Collaborators, ProjectBackup, Restore Points, Acceptance/Phase1, Archive POST | Reuse existing Project routes with exact scope; add Checklist and Archive via original controls, owner conditions and confirmation intact. Statistics and book cards remain. |
| Books/Details | Breadcrumb, project/title/subtitle/tagline/description, help; Edit, Add chapter; Actions: Analytics with bookId, Archive POST | Reuse Book Edit/Create routes; Analytics book scope is distinct from project health. Preserve metadata/descriptions as substantive book content. |
| Timeline/Index | Breadcrumb, Story timeline, project H1/help, Book filter GET/View; ValidateProject and conditional ValidateBook POST; Warnings and Analytics with bookId, Settings, Scenarios/Create with bookId, Archives | Book selector and all page commands contributed. Filter/focus, View, Jump, Saved Views, Drag Sources, scene/chapter operations remain. |
| PlotLineWorkspace/Index | Breadcrumb, Story map/mode, H1/help, description; PlotLines/Index, PlotThreads/Index | Thread route reuses Story ribbon; Manage lines is distinct from the PlotLineWorkspace route. Entire filter panel, map and association workflow retained. |
| StoryBible/Index | Breadcrumb, Reference, H1/help, GET search q; Exports/StoryBible (three formats), NarrativeTimeline, ResearchPack, RelationshipMap; eight fragment jumps | Context Search, Export and Jump groups. First content is Characters, or search results when searching. |
| Characters/Index | Breadcrumb, category/project H1/help; Characters/Create | Context Create and Help; character cards/row operations remain. |
| Characters/Details | Identity/avatar/description/help; Back to characters/timeline with focus; Actions Edit, Merge, Reanalyse POST (disabled while active), Character exports (two formats), Archive POST; section navigation | Keep meaningful profile header/avatar/description. Contribute action row and page help. Section tabs and analysis content stay local. |
| Names/Index | Breadcrumb, category/H1/description/help | Context Help; search/locale/era/gender and pagination are a coupled library query workspace and stay. |
| Locations/Index | Breadcrumb, category/project H1/help; Create | Context Create/Help; drag mode, tree/reparent/relationships remain. |
| Locations/Details | Breadcrumb, entity/title/path/help; All locations; Tools Edit, Merge, Archive POST | Keep path/identity, contribute actions/help. Local names, relationships and forms remain. |
| StoryAssets/Index and Details | List identity/help/Create; detail avatar/description/help; Tools Edit, Merge, Archive POST | List header consolidated; detail identity retained, actions/help contributed. Dependencies/custody/event forms remain. |
| FloorPlans/Index | Breadcrumb, category/project H1/help | Context Help. Create form, plans and per-plan Delete modals remain. Editor heading and canvas controls stay. |
| RelationshipMap/Index | Breadcrumb, Relationships, H1/help; story-point description | Context Help; retain current story-point status and all coupled map filters/legend/canvas. |
| StoryCalendar/Index and surface | Breadcrumb, Story time/H1/help, story range, dated/unplaced counts | Context Help, retain range/counts; coupled month/book/date navigation remains beside calendar. Refresh context on surface replacement. |
| Scenarios/Index | Breadcrumb, Planning sandbox, H1/description/help, Create | Context Create/Help; scenario cards and their operations stay. Timeline/Compare retain scenario identity and canvas controls. |
| ContinuityExplorer/Index | Breadcrumb, category/H1/description; no page help | Consolidate identity only; entity/multi-select filters and investigation remain. |
| ProjectMetrics/Index | Breadcrumb, settings/H1/description/help | Context Help; metric creation/default installation and per-metric edit forms remain substantive content. |
| Analytics/Index | Breadcrumb, Analytics/project H1/help | Context Help; coupled book/chapter/scene range query remains with charts. |
| Warnings/Index | Breadcrumb, category/project H1/help; ValidateProject / conditional ValidateBook POST | Context validation and Help; filters, last-validation summary and item operations remain. |
| Archives/Index | Breadcrumb, Archive/H1/description/help | Context Help; project/entity filtering and per-record restore remain. |
| Projects/Index and Activity | List title/help, Import, New project; activity breadcrumb/title/back link | Reuse Import route; contribute New project/Help or Back. Trial/onboarding/status content remains. |
| Writer/Index | Today/title/description/help; WritingPlans, ScheduleSetup, SchedulePreview, project GET/Focus | Context commands and project scope; actual writing workstation and queue controls remain. |
| Editors, merge/confirmation pages, onboarding, settings, account, import/review child flows | Task identity, explanatory instructions, validation, Save/Cancel/destructive operations | Deliberately retain meaningful task headings/forms; no blanket H1/breadcrumb suppression. These are workflows, not redundant dashboard furniture. |
Contribution contract
Audited views declare data-pwa-header for redundant identity plus its page commands, data-pwa-context="Group" for additional command regions, and data-pwa-identity for redundant breadcrumbs. data-pwa-help contributes only a meaningful header's page Help without suppressing its content. data-pwa-priority orders contributions (lower numbers first); data-pwa-context-status contributes compact live status. Form checkboxes retain toggle behavior, short selectors use native compact selects, and long selectors use searchable keyboard-operable popovers. Only declarations are considered; headings are never globally hidden.
The shared shell owns contextual rendering within the layout's explicit data-pwa-page-content boundary. The source remains the canonical command owner: contextual controls bind to existing rendered page sources without relocating page DOM, copying event handlers, copying IDs, reproducing permission checks or changing routes. POST actions invoke the original submit button, preserving antiforgery and application confirmation handlers. Select/search bindings synchronise the original form, then invoke its existing submit path. Exact route/query identity, not captions, resolves existing ribbon equivalents; differing book/format/focus scope is retained. An equivalent already in the active category remains there. An equivalent in another category is reused as the exact same shell-owned command node in the contextual group, with a marker restoring its original category/order on tab or mode changes. No duplicate command or generic category-link substitute is created.
A contribution is suppressed only after its supported controls have been accounted for. Unsupported control types leave their entire region visible. Changes to disabled/hidden state and replaced contributions refresh the projection. Context can be explicitly refreshed through plotdirector:context-changed. Context controls share the existing ribbon surface and collapse/expand control; selecting any ribbon tab reopens it as before. The contribution host and controls use display:contents inside the active panel: they create no toolbar/title box, row or additional ribbon height. Context groups use the existing pd-ribbon-group / pd-ribbon-command / pd-ribbon-group-label styles. Compact icon-led selectors and Find forms remain in scope groups. A measured width budget exposes groups directly when they fit; lower-priority context groups, and then lower-priority shell navigation groups, use native keyboard-operable menus only when required. Archive/delete commands retain a compact Manage menu. The ribbon remains one 84px panel; there is no contextual title. Fixed-position menus escape the horizontal panel clipping and stay inside the viewport. No domain or authentication behavior is changed.
Unattended verification
Use the existing --toolbar-browser-host executable test mode, bound only to 127.0.0.1:5238. Its authenticated Fixture identity and memory repositories never connect to a database, run application background workers or ship an authentication endpoint with the web application. Browser tests use actual compiled Razor views and shared production assets. This is the preferred existing automated authentication mechanism; no credentials or user login are needed. Live Dev smoke checks additionally use a dedicated Dev identity through normal account registration, verification and login, if needed; no production identity or authentication configuration is changed.
Additional child-page audit: At This Point uses a redundant identity/help heading followed by coupled book/chapter/scene selectors; consolidate only the heading, retaining the snapshot selector chain and feedback. Collaborators has a heading/back link followed by its invitation form and per-person access operations; consolidate only the header. Restore Points has heading/help/back/backup links (existing Project ribbon equivalents), with manual-snapshot creation and restore/delete records retained as content. Scenario Timeline and Compare have a meaningful safety banner distinguishing sandbox from main; retain that banner and instructions, contribute their navigation/validation/archive action row and page Help, and leave Apply Scenario confirmation beside the comparison evidence.
Initial delivery — 30 October 2026 (visual host superseded below)
- Development release:
340c5e3-pwa-desktop-v1-worktree-20261030T055803Z; no Production deployment or schema changes. dotnet build PlotLine.slnxsucceeds. All 373 executable regression checks pass. Existing package vulnerability advisories for System.Security.Cryptography.Pkcs and pre-existing nullable warnings remain outside this presentation task.- Actual installed Chromium PWA vs ordinary browser: ten compiled Razor page fixtures, all six registry themes at 1440/1024/900 pixels. Existing toolbar, sticky chrome, narrative map, association/auto-scroll/hover, Timeline retirement and Health browser suites pass.
- Behavioral checks include exact scoped-route reuse, owner-only commands, original POST/antiforgery/confirmation paths, cancellation, live disabled state, ordinary and searchable scope selectors, search submission, jump focus, correct page Help, collapsed/expanded navigation and fragment replacement. Meaningful profile/scenario content remains visible while nested command contributions are consolidated.
- The test host now mirrors the real layout boundary:
data-pwa-page-content. Live smoke testing caught and corrected the original fixture/main-wrapper mismatch before final delivery. - Live authenticated Dev smoke: 19 routes in ordinary browser and a real installed PWA, plus deployed Story Bible search/jump/Help drawer, Timeline scope, archive cancellation and six theme screenshots. The dedicated Dev account used normal login with antiforgery; no human interaction was required.
- Temporary account, its owned fixture project/book and private credential file were removed through the application's complete authenticated account-deletion workflow. No permanent test identity, production authentication change, universal login or credential in source/artifacts was introduced. The test executable retains the guarded provisioning/cleanup command for repeatable future Dev verification.
- Service active; local and public TLS GETs return 200; published/deployed DLL SHA-256 and changed asset hashes match; no service warnings/errors during the final smoke test.
Single-ribbon correction
The contextual host is now a non-layout container inside the existing active ribbon panel. Context groups follow the original groups horizontally, with the same icons, command typography, hover states, separators and footer captions. No contextual page title, toolbar strip, second panel or extra row is rendered. Timeline declares scope, tools and management group labels; Story Bible contributes Find, Export, Jump to and Help groups. data-pwa-tools and data-pwa-scope label header contributions, while data-pwa-group assigns an audited command to a specific group.
Width is measured against the active panel, not guessed from a breakpoint. Groups are shown directly when they fit. Low-frequency context groups collapse first; lower-priority existing navigation groups can also collapse in PWA mode to keep every command reachable within one row at narrow desktop widths. Re-expansion uses released space, and fixed-position menus stay inside the viewport. Browser groups are restored to their original structure on leaving standalone mode. Native ribbon collapse, tab keyboard handling, page fragment updates, original route/handler ownership and permissions remain intact.
Equivalent commands from another category reuse the original shell command node, restored with an ownership marker on category/mode changes. This replaces generic category-link substitutes while ensuring only one instance of each command exists. Page DOM is not moved.
Correction verification: release 340c5e3-pwa-ribbon-v1-worktree-20261030T063525Z deployed to Dev only. Build and all 373 regressions pass; the installed-PWA fixture suite verifies one 84px ribbon across ten pages and six themes at 2560/1440/900, direct wide groups, measured overflow, unclipped keyboard-operable menus, original-node command reuse, destructive management treatment and all prior form/navigation behavior. Existing toolbar and sticky-shell suites also pass. Live authenticated browser/PWA smoke passes on 19 Dev routes, with visual captures of Timeline, Plot Lines, Story Bible, Project and Book at wide/narrow widths (2560/1920/900), six themes, no title strip and no second row. Normal browser layout is retained. Published/deployed DLL and served contextual-script hashes match; service active, HTTPS GET 200 and no warning/error entries during verification. Temporary Dev identity and its owned fixtures are removed after smoke testing. Production is untouched.
Application-wide completion
See Completion-Audit.md for the full page classification, active-command deduplication, shared semantic icon metadata, integrated search, newly integrated child pages, deliberate workspace/security exceptions and final Dev verification.
First-paint lifecycle
See First-Paint.md for pre-paint standalone state, declarative snapshot activation, original source binding, timing and cold/navigation/reload verification. This supersedes deferred initial mode detection and full-main discovery for initial presentation.
Desktop context menus — V2
See Context-Menus.md for the reusable original-command surface, object/page coverage inventory, native browser/Ctrl behavior, text editing, keyboard access and verification. This complements the existing ribbon and first-paint lifecycle.