Commit the pending application, help and browser regression work. Pin the patched PKCS dependency for the production release.
41 lines
4.0 KiB
Markdown
41 lines
4.0 KiB
Markdown
# Edit Scene workspace
|
|
|
|
Edit Scene uses one instance of the six existing SceneInspectorV2 cards and one existing editor host. The Timeline inspector retains its existing presentation. Specialist cards become full workspaces: preview limits are removed, Story adds event/dependency detail, World adds asset/custody/location detail, and existing dropdown editor commands become a visible command row. Overview remains the six-area dashboard; its cards and Open buttons enter the relevant specialist area. Scene details remain editable directly from Overview.
|
|
|
|
## Capability inventory
|
|
|
|
| Area | Existing editors and actions preserved |
|
|
| --- | --- |
|
|
| Overview | Scene details, synopsis, position, POV, timing, revision status, text balance |
|
|
| Story | Purpose/outcome, metrics, thread events, dependencies |
|
|
| People | Characters/roles/POV, attributes, suggestions, knowledge, relationships |
|
|
| World | Locations, assets, custody command and summary records |
|
|
| Writer | Notes, checklist, workflow, attachments and attachment links |
|
|
| Continuity | Warning review, revalidation, existing dismissal/review actions |
|
|
| Page commands | Scene brief, Markdown export, writing-session preparation, archive |
|
|
|
|
The separate Custody editor command was already a placeholder without an endpoint. It remains a placeholder; this redesign does not implement missing business functionality. Existing asset/location editors and visible custody records are retained.
|
|
|
|
## Shared state and shell integration
|
|
|
|
`data-scene-workspace` opts the Edit Scene page into the workspace behavior in `scene-inspector-v2.js`. The `sceneArea` query parameter is the selected area; absent or invalid values display Overview. Selection uses History API navigation; popstate and refresh restore the area. Each area's canvas scroll position is retained while switching in the page. Existing AJAX saves replace their usual card fragments, then reapply the current area and restore canvas scroll. The identity strip refreshes from the returned Overview fragment.
|
|
|
|
The browser rail declares a normal `data-pwa-context="Edit Scene"` contribution, with six buttons. The existing page-context ribbon binds to those same buttons in installed mode. The shared binding copies pressed/current/selected state, and respects a contribution's declared priority when fitting groups. There is no second PWA state implementation or PWA-only editor.
|
|
|
|
Opening an inspector changes the workbench's available width, not its content topology. Overview retains three columns and two rows within the desktop workbench, with independently scrolling long summary cards (horizontal canvas scrolling when necessary); specialist areas retain a single column. The existing draggable editor separator is reused, with keyboard arrow resizing added on this page. Closing removes the entire editor column. Below 900px the inspector covers the workbench, with an independent scrolling editor body; the underlying canvas keeps its geometry and scroll position. Theme tokens style all new surfaces.
|
|
|
|
## Verification
|
|
|
|
Run the normal build and executable regression harness serially. For focused browser coverage:
|
|
|
|
```sh
|
|
dotnet run --no-build --project PlotLine.Tests/PlotLine.Tests.csproj -- --toolbar-browser-host
|
|
# In a second terminal:
|
|
cd PlotLine.Tests/Browser
|
|
npm run test:scene-workspace
|
|
```
|
|
|
|
The suite renders the real Razor page and editor fragments in the isolated host. It tests a normal browser and a Chromium-installed PWA, history/refresh, six cards and areas, stable grid topology, width recovery/resizing, Story and Relationships AJAX workflows, validation and cancel, editor accessibility, all migrated editor modes, continuity, all six themes and responsive widths. Fixture AJAX writes are intercepted; tests do not alter a live manuscript.
|
|
|
|
For visual inspection only, the isolated host accepts `PD_SCENE_VISUAL_FIXTURE` pointing to a private, locally exported `SceneEditViewModel` JSON file. The host reads that snapshot and never connects to a database. Do not commit manuscript snapshots or credentials. The deterministic test suite uses its default fixture without this environment variable.
|