168 lines
12 KiB
Markdown
168 lines
12 KiB
Markdown
# Locations workspace delivery and acceptance
|
||
|
||
Implementation is complete. Development activation and authenticated smoke evidence will be
|
||
appended after the signed release is activated. Production is outside this task.
|
||
|
||
## Delivered architecture
|
||
|
||
The full-width directory has independently resizable/collapsible Attributes and Details panels,
|
||
an expandable tree and variable-height cards, search/filters/sibling sorting, selection and
|
||
bulk assignment, bidirectional attribute drag, branch/root drag moves with hover expansion,
|
||
inline rename, child creation, description Save/Cancel, and shared context menus.
|
||
The same records and commands drive both views. Traditional forms and non-hierarchical
|
||
relationship editing remain available. See [architecture and safeguards](Workspace.md).
|
||
|
||
Reused: Dapper/stored procedures, canonical location records and aliases, project ownership roles,
|
||
`workspace-surface.js`, shared context menus/ribbon icons, `PlotDirector.toast`, protected Undo
|
||
receipts, existing merge reconciliation/audit, and Context invalidation notifications.
|
||
|
||
Migration **335_LocationsWorkspace.sql** adds nullable classification (Real/Fictional/Fictionalised;
|
||
NULL is Unclassified), four compatible canonical types (Planet, District, Natural Feature, City),
|
||
and targeted workspace procedures. No existing type or classification is replaced. Quick Add and
|
||
Word Companion exclusion are existing quick switches; detection priority remains in Edit.
|
||
Migration **336_LocationSaveHierarchyIntegrity.sql** also closes the traditional full-form/import
|
||
writer’s cycle and cross-project loophole, using the same project-first lock order. Unchanged
|
||
historical parents remain intact. The project export selector and `LocationItem` retain
|
||
classification through backup/restore.
|
||
The established merge now also preserves maps and conflicting descriptions, including when
|
||
opened through the traditional Details page. The workspace adds conflict review and version checks.
|
||
No AI processing or geocoding is invoked by these workspace commands.
|
||
|
||
## Verification
|
||
|
||
- `dotnet build PlotLine.slnx`: passed, zero warnings/errors.
|
||
- Executable regression harness: **889 PASS**, successful exit. Existing Characters, Names,
|
||
Relationships, Maps/topology, Floor Plans, Assets, import, Context and shared focus contracts
|
||
remain covered by the existing harness; this is not a claim of exhaustive manual workflow testing.
|
||
- Actual compiled Razor and production CSS/JavaScript: Chromium browser and a genuinely installed
|
||
Chromium PWA under Xvfb. Collections of 50/200/500/1,000 records; deep chains, wide branches,
|
||
repeated names, complete long descriptions, map/floor-plan indicators.
|
||
- Physical attribute/location dragging, hover-expand reparenting, root drops and invalid target
|
||
rejection; bulk assignment, individual-value Undo, no-op assignment, simulated save failure,
|
||
inline rename Save/Escape, child creation, right-click/keyboard/visible menus, unsaved-description
|
||
protection, local attribute updates while retaining a description draft, filters, cards, sorting,
|
||
and a delayed live-refresh race.
|
||
- Both divider pointer drags and keyboard resizing; saved widths, collapsed panels, view, attribute
|
||
groups and expanded branches survive reload. View changes retain selection and filters.
|
||
- All seven available theme choices; 390/768/1024/1280/1440/1920-pixel viewport checks without
|
||
horizontal document overflow. Native physical Windows/Edge installation was not available.
|
||
- Focused SQL regressions run only on disposable clones and roll back: ancestor/descendant bulk
|
||
safety, root moves, exact original parents on Undo, no-op versions, cycle/unavailable/cross-project
|
||
parent rejection, unauthorized/stale writes, and targeted rename preserving scene assignment.
|
||
Merge preserves source records, descriptions, classification, children, aliases, authored
|
||
relationships, scene assignments, map feature IDs/geometry and floor-plan links.
|
||
- Real Dapper create/assignment/Undo and six directory result sets, including entry/exit-only
|
||
character scene assignments counted once. Actual typed project export and generic location JSON
|
||
restore retain a non-null classification. Restore fixture is rolled back and removed.
|
||
- Two fresh final-schema qualification clones produce identical schema hashes. All **208** other
|
||
original business tables retain fingerprints; existing LocationTypes rows are unchanged and the
|
||
only data addition is four canonical types. DBCC integrity and constraints pass (zero violations).
|
||
See [sanitised qualification](Evidence/database-qualification.json).
|
||
|
||
## Performance
|
||
|
||
Milliseconds, single representative passes on the isolated Razor host. Browser transport/data
|
||
mutations are synthetic; these are not authenticated network benchmarks. The richer after-workspace
|
||
also renders indicators, controls and descriptions. The large after fixtures include a 100-level
|
||
chain. Search/interaction timings include deliberate settling waits; no statistical speedup is claimed.
|
||
|
||
| Locations | Old list load | New browser load | Installed PWA load | Expand all (browser) | Search (browser) | Cards (browser) |
|
||
|---:|---:|---:|---:|---:|---:|---:|
|
||
| 50 | 257 | 266 | 302 | 102 | 108 | 116 |
|
||
| 200 | 230 | 292 | 375 | 167 | 148 | 200 |
|
||
| 500 | 410 | 317 | 451 | 334 | 126 | 436 |
|
||
| 1000 | 609 | 445 | 729 | 636 | 163 | 1248 |
|
||
|
||
The first cold post-build 50-record request measured **1,424 ms**; warm 50-record passes were about
|
||
266–302 ms. At 1,000 records the measured browser bulk interaction was 858 ms, rename 123 ms,
|
||
reparent 283 ms and selected-details 103 ms in one pass; later passes vary. Card rendering at this
|
||
scale is approximately 1.2 seconds with full descriptions. There is no card virtualization.
|
||
Raw passes: [before](Evidence/before.json), [after](Evidence/after-large.json),
|
||
[cold request](Evidence/after-cold-release.json), [PWA](Evidence/pwa-performance.json).
|
||
|
||
Actual SQL/Dapper reads, on a disposable Development clone with 69 existing records in addition
|
||
to each synthetic collection: old simple list / new six-result directory = 25.5/82.1 ms (50),
|
||
41.2/18.3 ms (200), 55.9/41.2 ms (500), 71.3/68.1 ms (1,000).
|
||
The new read includes aliases, maps, floor plans, usage, types and relationship/character/asset
|
||
counts, without per-location queries. [Raw database results](Evidence/database-performance.txt).
|
||
|
||
## Acceptance matrix
|
||
|
||
“Passed” means exercised by the stated browser/SQL/harness checks, not merely compiled.
|
||
|
||
| Requirement | Status | Evidence / boundary |
|
||
|---|---|---|
|
||
| Full-width three-panel workspace; responsive layouts | Passed | Rendered browser/PWA, viewport overflow checks |
|
||
| Both pointer/keyboard dividers; independent saved widths | Passed | Native pointer checks, reload assertions |
|
||
| Collapse/restore Attributes and Details | Passed | Both modes, reload assertions |
|
||
| Tree expansion, remembered branches, ancestral paths | Passed | Tree/search/reload checks |
|
||
| Native reparenting and hover-expanded branches | Passed | Native pointer test and hover screenshot |
|
||
| Root-level drop and invalid descendant target feedback | Passed | Native drop/no-write checks; SQL rejection |
|
||
| Bulk branch preservation and exact parent Undo | Passed | Transactional SQL fixture with different original parents |
|
||
| Server ownership, active-parent and cycle validation | Passed | Unauthorized, cross-project, unavailable and cycle SQL/HTTP contracts |
|
||
| Type/classification and existing quick switches | Passed | Browser assignments and SQL/Dapper round trip |
|
||
| Bidirectional attribute drag, selection and bulk assignment | Passed | Browser/PWA drag and selection checks |
|
||
| Counts, derived filters, aliases, branch search and clear | Passed | Rendered tests; authoritative batched SQL |
|
||
| Shared toast and version-protected Undo | Passed | Browser actions and real Dapper exact-version restore |
|
||
| No-op and failed-assignment preservation | Passed | No-request and simulated conflict checks; SQL version checks |
|
||
| F2/menu rename, Enter save, Escape cancel | Passed | Native keyboard/browser checks; scene IDs preserved |
|
||
| Direct child creation and description editing | Passed | Rendered dialog/details tests; unsaved draft checks |
|
||
| Context menus, visible menu and keyboard alternative | Passed | Browser right-click, Shift+F10, installed PWA; collapsed-branch selections |
|
||
| Hierarchy/cards, complete descriptions, variable heights | Passed | DOM height checks and rendered screenshots |
|
||
| Selection/filter preservation and branch-safe sorting | Passed | View/sibling-order checks |
|
||
| Multiple map/floor-plan associations and same-window links | Passed | Directory links and SQL preservation checks |
|
||
| Merge review, reconciliation and rollback safeguards | Passed | SQL data-integrity fixtures; workspace review implemented |
|
||
| Backup/export/restore retains optional classification | Passed | Actual typed export and generic restore round trip |
|
||
| No new AI, no manuscript focus writes | Passed | Command paths contain no AI/geography/focus calls; existing harness |
|
||
| Existing related workspace behavior | Passed | 889-check harness; authenticated route smoke pending activation |
|
||
| Live updates across actual Development windows | Not verified | Pending post-activation dedicated-account check |
|
||
| Development deployment and authenticated mutations | Not verified | Pending signed release activation |
|
||
| Every existing Context consumer with physical Word/PWA | Not verified | Existing contracts/hints preserved; physical Word unavailable |
|
||
| Windows/Edge installed-PWA behavior | Not verified | Linux Chromium browser + real installed PWA verified |
|
||
| Collections above 1,000; exhaustive keyboard/assistive-tech audit | Not verified | No claim beyond measured cases |
|
||
| New location image storage | Not implemented | No canonical location-image attribute exists; conditional scope only |
|
||
| New feature-level reveal inside Maps/Floor Plans | Not implemented | Existing routes select map/plan; their editors are unchanged |
|
||
|
||
No unresolved failing check is known. The last two “Not implemented” items are conditional features
|
||
without an existing canonical field/route, not replacement representations or editor redesigns.
|
||
|
||
## Rendered evidence
|
||
|
||
All screenshots use controlled synthetic data, never the author's manuscripts/locations.
|
||
|
||
| Demonstration | Screenshot |
|
||
|---|---|
|
||
| Baseline list | [Before](Evidence/before.png) |
|
||
| Complete workspace | [Browser](Evidence/workspace.png), [installed PWA](Evidence/pwa-workspace.png) |
|
||
| Populated multilevel hierarchy | [Hierarchy](Evidence/hierarchy.png) |
|
||
| Attribute assignment | [Assignment](Evidence/attribute-assignment.png) |
|
||
| Reparenting and hover expansion | [Move](Evidence/reparenting.png), [hover](Evidence/hover-reparent.png), [root drop](Evidence/root-drop.png) |
|
||
| Bulk assignment | [Bulk](Evidence/bulk-assignment.png), [bulk menu](Evidence/bulk-context-menu.png), [PWA menu](Evidence/pwa-bulk-context-menu.png) |
|
||
| Inline rename | [Rename](Evidence/inline-rename.png) |
|
||
| Context menu | [Menu](Evidence/context-menu.png) |
|
||
| Direct child creation | [Child](Evidence/create-child.png) |
|
||
| Editable Details | [Description](Evidence/details-edit.png) |
|
||
| Variable-size cards | [Cards](Evidence/cards.png), [PWA](Evidence/pwa-cards.png) |
|
||
| Search with ancestors | [Search](Evidence/search-context.png) |
|
||
| Map/floor-plan indicators | [Workspace](Evidence/workspace.png) |
|
||
| Resized panels | [Dividers](Evidence/resized-panels.png), [PWA](Evidence/pwa-resized-panels.png) |
|
||
| Representative light/dark themes | [Light](Evidence/theme-modern-light.png), [dark](Evidence/theme-modern-dark.png) |
|
||
| Large hierarchy | [1,000 locations](Evidence/large-hierarchy.png), [PWA](Evidence/pwa-large-hierarchy.png) |
|
||
|
||
Additional screenshots cover PlotDirector, warm light/dark, rose pink and baby blue themes.
|
||
|
||
## Known boundaries
|
||
|
||
Geography confirmations are not regenerated by quick edits or inherited during merge. Existing
|
||
explicit geography review remains available. Location images do not currently exist in the model.
|
||
Map/plan navigation uses current route contracts; no editor geometry or interaction is redesigned.
|
||
Description editing is explicit Save/Cancel; merge and archive have no workspace Undo. Undo rejects
|
||
stale records or unavailable original parents rather than overwriting later changes. Bulk commands
|
||
are bounded at 2,000 records, consistent with the Characters convention.
|
||
|
||
Non-hierarchical sensory/travel relationships remain on the established Details editor. Temporary
|
||
asset/scene circumstances stay separate from permanent containment; no temporal tracking system is
|
||
added. Full descriptions are preserved; very large card collections render all matches.
|
||
|
||
User help: [Locations overview](../../PlotLine/Help/Articles/Locations/Overview.md).
|