Record character attribute qualification and PWA acceptance evidence
This commit is contained in:
parent
a043e9f902
commit
1888157faf
@ -0,0 +1,76 @@
|
||||
# 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](../../../Codex/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](database-qualification.json).
|
||||
- The application-only follow-up reused the unchanged, qualified SQL and verified complete history; it executed **zero** further migrations. [Activation receipt](activation-receipt.json).
|
||||
- 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](authenticated-smoke.json).
|
||||
|
||||
### 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](browser-performance.json), [PWA measurements](installed-pwa-performance.json).
|
||||
|
||||
## Screenshots
|
||||
|
||||
- [100-character directory in an installed PWA](directory-100-characters.png).
|
||||
- [Authenticated Development installed-PWA context menu](installed-pwa-context-menu.png).
|
||||
- [Multiple-selection context menu](bulk-context-menu.png).
|
||||
- [Warm Dark theme](warm-dark.png).
|
||||
- [Installed PWA at tablet width](installed-pwa-tablet.png).
|
||||
|
||||
## 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](verification.json) · [Test results and limitations](test-results.json) · [Qualification cleanup](qualification-cleanup.json)
|
||||
File diff suppressed because one or more lines are too long
@ -0,0 +1,19 @@
|
||||
{
|
||||
"status": "passed",
|
||||
"project": 9297,
|
||||
"characters": [
|
||||
7265,
|
||||
7266,
|
||||
7267
|
||||
],
|
||||
"normalLogin": true,
|
||||
"canonicalPersistence": true,
|
||||
"bulkIndividualUndo": true,
|
||||
"liveSecondDirectory": true,
|
||||
"liveCharacterDetails": true,
|
||||
"noOpAndInvalidValue": true,
|
||||
"fullBiographies": true,
|
||||
"sevenThemes": true,
|
||||
"actualInstalledPwa": true,
|
||||
"productionAccess": false
|
||||
}
|
||||
@ -0,0 +1,17 @@
|
||||
[
|
||||
{
|
||||
"count": 10,
|
||||
"loadMs": 855,
|
||||
"assignments": 6
|
||||
},
|
||||
{
|
||||
"count": 100,
|
||||
"loadMs": 360,
|
||||
"assignments": 6
|
||||
},
|
||||
{
|
||||
"count": 500,
|
||||
"loadMs": 831,
|
||||
"assignments": 6
|
||||
}
|
||||
]
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 226 KiB |
@ -0,0 +1 @@
|
||||
{"backup_sha256":"a5d575970bd4411392911c106ec682ab3a11fa2ad7c3168739198df91b52a136","runs":[{"all_original_fingerprints_equal":true,"database":"PlotDirector_Qualification_CharacterAttributes_20261126T113128_1","executed":1,"integrity":{"constraint_violations":0,"integrity":true},"original_rows":261691,"original_tables":203,"resulting_schema_sha256":"e2c2475bd10b8139e1d91c6ea4da417acdad6f595b88cc350823ba939984f153","starting_schema_sha256":"432931e506b7f02570952bc098b952fcc82228c9f1dbca0fef1619ff869763c7"},{"all_original_fingerprints_equal":true,"database":"PlotDirector_Qualification_CharacterAttributes_20261126T113128_2","executed":1,"integrity":{"constraint_violations":0,"integrity":true},"original_rows":261691,"original_tables":203,"resulting_schema_sha256":"e2c2475bd10b8139e1d91c6ea4da417acdad6f595b88cc350823ba939984f153","starting_schema_sha256":"432931e506b7f02570952bc098b952fcc82228c9f1dbca0fef1619ff869763c7"}],"source_commit":"59298af9a74340c0100d190aee5d36d351d41e41","status":"passed"}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 250 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 282 KiB |
@ -0,0 +1,17 @@
|
||||
[
|
||||
{
|
||||
"count": 10,
|
||||
"loadMs": 266,
|
||||
"assignments": 6
|
||||
},
|
||||
{
|
||||
"count": 100,
|
||||
"loadMs": 423,
|
||||
"assignments": 6
|
||||
},
|
||||
{
|
||||
"count": 500,
|
||||
"loadMs": 1108,
|
||||
"assignments": 6
|
||||
}
|
||||
]
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 106 KiB |
@ -0,0 +1,12 @@
|
||||
{
|
||||
"status": "passed",
|
||||
"disposable_qualification_databases_removed": [
|
||||
"PlotDirector_Qualification_CharacterAttributes_20261126T105129",
|
||||
"PlotDirector_Qualification_CharacterAttributes_20261126T113128_1",
|
||||
"PlotDirector_Qualification_CharacterAttributes_20261126T113128_2"
|
||||
],
|
||||
"private_worker_configs_removed": 3,
|
||||
"verified_backups_retained": true,
|
||||
"development_database_untouched": true,
|
||||
"production_access": false
|
||||
}
|
||||
@ -0,0 +1,34 @@
|
||||
{
|
||||
"implementation_commit": "59298af9a74340c0100d190aee5d36d351d41e41",
|
||||
"deployed_commit": "a043e9f902583e9510c2ee47de46b439d98d35e6",
|
||||
"solution_build": {
|
||||
"status": "passed",
|
||||
"warnings": 0,
|
||||
"errors": 0
|
||||
},
|
||||
"full_executable_harness": {
|
||||
"status": "passed",
|
||||
"pass_lines": 825
|
||||
},
|
||||
"focused_browser": {
|
||||
"character_attributes": "passed, 10/100/500 characters, seven themes, 1920x1080/1440x900/1366x768/1280x720/1024x768/768x1024/390x844",
|
||||
"actual_installed_chromium_pwa": "passed under Xvfb; standalone asserted after real install/launch",
|
||||
"shared_notifications": "passed",
|
||||
"shared_pwa_context_menus": "passed",
|
||||
"presence_fallback": "passed; one shared connection, one announcement, one registration",
|
||||
"held_context": "passed; held scene 22 receives character invalidation while shared focus moves to scene 23"
|
||||
},
|
||||
"sql_regressions": "passed on disposable qualification copies; individual/bulk/validation/authorisation/project isolation/preserved fields/concurrency/no-op/individual prior-value Undo/legacy custom sex",
|
||||
"authenticated_development_smoke": "passed; canonical assignments, bulk Undo, second directory and Character Details live refresh, no-op and invalid value, full biographies, themes, actual installed PWA",
|
||||
"fixture_cleanup": "completed; normal project cleanup plus one verified unreferenced fixture-owned custom-sex catalogue row removed, then normal account cleanup; private credentials deleted",
|
||||
"known_observations": [
|
||||
"Existing account-deletion procedure omits owned CharacterSexValues; the disposable row required scoped cleanup. No account-deletion schema/application change was made.",
|
||||
"Existing context-workspace-foundation.cjs reproduces its baseline single-handler SignalR test-double failure. A diagnostic composing subscribers then reaches a separate native-ambiguity assertion. That older suite remains unchanged; the focused character-attributes-held-context.cjs passes."
|
||||
],
|
||||
"acceptance_limits": [
|
||||
"Installed Chromium runs under a virtual display, not physical tablet hardware.",
|
||||
"10/100/500 performance figures are rendered Razor/production-asset fixtures with isolated HTTP persistence; authenticated Development smoke used three disposable characters.",
|
||||
"Held Context uses the real Razor/scripts with isolated HTTP data, rather than an author manuscript."
|
||||
],
|
||||
"production_access": false
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
{
|
||||
"status": "passed",
|
||||
"source_commit": "a043e9f902583e9510c2ee47de46b439d98d35e6",
|
||||
"service": "active",
|
||||
"environment": "Development",
|
||||
"database": "PlotDirector_Development",
|
||||
"http_status": {
|
||||
"/": 200,
|
||||
"/Account/Login": 200
|
||||
},
|
||||
"served_asset_sha256": {
|
||||
"js/character-attributes.js": "b8eb70e57005af9c884c0582b569ecb996710ea6eaabe21ba2fe4b5ace4279a5",
|
||||
"js/context-main-window.js": "7a1b84434dbc04b3340f65f7e524460c249eb53709b6ee813de4351b2f89117c",
|
||||
"css/character-attributes.css": "353b4207835fa12b4257b7929591be19abb87da9f4181cc59d90b6a97b57d69e"
|
||||
},
|
||||
"fixture_account_cleanup": "completed; private credential file deleted",
|
||||
"production_access": false
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 286 KiB |
@ -37,7 +37,7 @@ const {chromium}=require('playwright');const os=require('node:os'),path=require(
|
||||
if(count>=100){await page.evaluate(()=>{let n=document.querySelector('[data-character-attributes]');for(;n;n=n.parentElement){if(/auto|scroll/.test(getComputedStyle(n).overflowY)&&n.scrollHeight>n.clientHeight){n.scrollTo({top:1200,behavior:'instant'});return;}}window.scrollTo({top:1200,behavior:'instant'});});const box=await page.locator('[data-attribute-sidebar]').boundingBox();assert(box.y>=0&&box.y<1000&&box.y+box.height<=1001);await page.evaluate(()=>{let n=document.querySelector('[data-character-attributes]');for(;n;n=n.parentElement)n.scrollTo({top:0,left:0,behavior:'instant'});window.scrollTo({top:0,behavior:'instant'});});}
|
||||
await page.evaluate(()=>document.querySelectorAll('.pd-toast button[aria-label^="Dismiss"]').forEach(b=>b.click()));
|
||||
for(const theme of ['plotdirector','modern-light','modern-dark','warm-light','warm-dark','rose-pink','baby-blue']){await page.evaluate(theme=>{document.documentElement.dataset.appTheme=theme;document.documentElement.dataset.bsTheme=theme.endsWith('dark')?'dark':'light';document.documentElement.dataset.theme=theme.endsWith('dark')?'dark':'light';},theme);if(count===100)await page.screenshot({path:`/tmp/character-attributes-${installed?'installed-':''}${theme}.png`});}
|
||||
for(const width of [1920,1366,1024,768,390]){await page.setViewportSize({width,height:1000});assert(await page.evaluate(()=>document.documentElement.scrollWidth<=innerWidth+2));}
|
||||
for(const [width,height] of [[1920,1080],[1440,900],[1366,768],[1280,720],[1024,768],[768,1024],[390,844]]){await page.setViewportSize({width,height});assert(await page.evaluate(()=>document.documentElement.scrollWidth<=innerWidth+2));if(width>850&&count>=100){await page.evaluate(()=>window.scrollTo({top:1200,behavior:'instant'}));const bounds=await page.locator('[data-attribute-sidebar]').boundingBox();assert(bounds.y>=0&&bounds.y+bounds.height<=height+1);await page.evaluate(()=>window.scrollTo({top:0,behavior:'instant'}));}}
|
||||
assert.equal(await card(1).locator('.visual-card-heading p.muted').textContent(),biography);assert.deepEqual(errors,[]);results.push({count,loadMs:load,assignments:requests.length});await page.close();
|
||||
}
|
||||
fs.writeFileSync(`/tmp/character-attributes-${installed?'installed-':''}performance.json`,JSON.stringify(results,null,2));console.log('PASS rendered directory: biography/card dimensions, bidirectional drag, bulk, individual prior-value Undo, individual/multi context, keyboard, filters/counts/selection scope, sticky/collapse, themes and responsive widths',results);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user