8.9 KiB
Raw Blame History

Character attribute workspace — completion report

Deployed to Development only at https://dev.plotdirector.com/.

  • Implementation: 59298af9a74340c0100d190aee5d36d351d41e41.
  • Final deployed follow-up: a043e9f902583e9510c2ee47de46b439d98d35e6.
  • Both application commits pushed to origin/codex/word-companion-native-phase1-20261104; remote SHA verified.
  • Final release: development-character-attributes-a043e9f90258-20261126T120817.
  • Final activation receipt: 20261126T120942Z-039d548eb81c.
  • Service active; health reports that exact commit, Development, and PlotDirector_Development. Public TLS root/login checks return 200. Served JavaScript/CSS checksums match committed assets.
  • Production was not accessed or changed. The two pre-existing untracked investigation documents remain untouched.

Delivered behavior

The existing card grid, CharacterCardLayout.ColumnSpan, portraits/initials, full biographies, names, Details links, Edit actions and confirmation-protected Archive forms are retained. No biography truncation, uniform heights, table replacement, import defaults, automatic classification or AI work was introduced.

Area Result
Canonical attributes Story importance (10 Major, 6 Supporting, 2 Minor, NULL Unclassified); nullable life status (Living, Deceased, Unrecorded); the existing system/project-owner sex catalogue including custom values; existing Quick Add Bar inclusion.
Eye colour Remains in the editor: it is free text without a reusable canonical catalogue. No competing vocabulary was added.
Shared definitions/icons CharacterQuickAttributes.Definitions supplies sidebar, card indicators and menu values/icons. Existing ribbon SVG/theme conventions are used, including gold star, blue group, neutral person, heart, purple flower, help, pin/unpin. Labels/tooltips/accessible names supplement colour.
Persistence One antiforgery-protected assignment endpoint and one atomic stored procedure for all interaction methods. Every character is authorised in the same active project. Exact timestamps reject stale changes. Only intended attribute values change; unrelated editor data is preserved. No-op rows produce no write or invalidation.
Sidebar/filtering Sticky, internally scrollable, grouped/collapsible, with counts and active-filter state. Main collapse preference is user/project scoped. Filters combine; Select displayed includes only visible cards. Clearing filters and selection is explicit.
Selection/drag Checkboxes, Ctrl/Cmd-click, Shift ranges, current-result selection, separate drag handles, previews and target feedback. Attribute→card, card→attribute, selected group→attribute and explicit Assign use the same endpoint. No page reload.
Context menu Existing application menu provider, nested canonical submenus, current-value checks, mixed-value indication, clear individual/multiple scope, viewport positioning, keyboard navigation, Shift+F10/context key and touch menu button. Individual Open/Edit/Archive remain individual; no bulk archive.
Undo Shared toast action plus accessible toolbar action. Protected, author-bound, ten-minute receipts restore each changed character's individual prior value, including legacy sex text. Exact post-write timestamps prevent overwriting later edits.
Live data One lightweight existing ContextInvalidated hint; authenticated snapshot retrieval without biographies. Existing shared connection reused. The fallback connection now emits the established connection/readiness events when the optional Word status control is hidden. No extra per-card connection or manuscript focus command.

The subsequent evidence/test-only commit does not change the deployed application; its health identity remains the final deployed follow-up above.

The canonical audit, icon mappings, API and integration details are documented in CharacterAttributes.md.

Verification

  • Solution build passed with 0 warnings / 0 errors.
  • Full executable regression harness passed: 825 PASS lines, including focused protected-Undo/controller checks.
  • SQL regressions passed for individual/bulk assignment, invalid values, unauthorised users, cross-project isolation, atomic failure, preserved fields, no-op timestamps, concurrent/stale Undo, distinct previous values, nullable life status and legacy custom-sex restoration.
  • Two fresh Development backup restores were qualified through DatabaseWorker: migration 323 executed once on each, exact schema fingerprints matched, 203 original tables / 261,691 original rows were preserved on each, and integrity checks passed with zero constraint violations. Database evidence.
  • The application-only follow-up reused the unchanged, qualified SQL and verified complete history; it executed zero further migrations. Activation receipt.
  • Rendered Chromium and actual installed Chromium PWA acceptance passed for 10/100/500 cards, all seven themes and 1920×1080, 1440×900, 1366×768, 1280×720, 1024×768, 768×1024 and 390×844 resolutions. Tests cover full biographies/variable dimensions, both drag directions, bulk drag/explicit assignment, Ctrl/Shift selection, Undo, individual/multiple/mixed menus, current checks, keyboard, edge positioning, filtering/counts/selection scope, drag cancellation, sticky bounds and collapse recovery.
  • Existing shared notifications and installed-PWA context-menu regressions passed, including Archive confirmation, disabled actions, clipboard, focus restoration and browser/Ctrl override.
  • Focused fallback regression verifies one shared connection announcement, one ready event, one subscription and one registration.
  • Focused actual-Razor Held Context regression passed: character data refreshed at held scene 22 while shared focus moved to scene 23; no held-position change or extra connection; unrelated-project hints ignored.
  • Authenticated Development smoke passed without overrides: real persistence, both drag directions, bulk classification and individual-value Undo, single/multiple context assignment, filtering, no-op/invalid value handling, full biographies, live updates in a second directory and Character Details, seven themes, and actual installed-PWA right-click assignment/Undo. Smoke evidence.

Rendered performance

Elapsed time to load the real Razor page and attribute controls, using isolated HTTP persistence fixtures (not a database-load benchmark):

Cast size Chromium Installed Chromium PWA
10 855 ms 266 ms
100 360 ms 423 ms
500 831 ms 1,108 ms

Each scenario also completed six assignment operations. Catalogue/snapshot reads are shared across the directory, without per-card queries or requests. Existing cards are retained; unchanged indicators are not rebuilt and ordering is preserved. Browser measurements, PWA measurements.

Screenshots

Safety, cleanup and qualifications

The authenticated fixture used a dedicated author, one new project and three new characters. That project and author were removed; its private credential file was deleted. Normal account deletion exposed an existing FK_CharacterSexValues_AppUser omission. After verifying the fixture identity, absence of owned projects and absence of character references, its one unreferenced custom-sex row was removed, then normal account cleanup succeeded. No account-deletion application/schema change was included.

The three disposable qualification databases and private worker configurations were removed. Verified backups and qualification/release evidence were retained. Existing manuscript character attributes were not changed for demonstration.

The older context-workspace-foundation.cjs reproduces a baseline failure because its SignalR stub retains only one subscriber per event. A diagnostic composing subscribers then reaches a separate native-ambiguity assertion. That broad legacy suite is unchanged and is not claimed to pass; the task's focused multi-subscriber/Held Context tests pass.

Installed-PWA acceptance used a real Chromium installation/launch under a virtual display, with standalone mode asserted. Physical tablet hardware and other browsers were not tested. The 10/100/500 measurements use rendered fixtures; authenticated Development acceptance used the three disposable characters. Held Context acceptance used real Razor/scripts with isolated HTTP data rather than an author's manuscript.

Final verification · Test results and limitations · Qualification cleanup