|
| 1 | +# PR_26161_015 Objects Remove Type Choices Report |
| 2 | + |
| 3 | +## Branch Validation |
| 4 | + |
| 5 | +PASS |
| 6 | + |
| 7 | +- Current branch: `main` |
| 8 | +- Expected branch: `main` |
| 9 | +- Worktree was clean before PR_26161_015 edits. |
| 10 | + |
| 11 | +## Scope |
| 12 | + |
| 13 | +- Impacted lane: Objects tool UI/runtime and targeted Objects Playwright coverage. |
| 14 | +- Playwright impacted: Yes. |
| 15 | +- Runtime engine behavior changed: No. |
| 16 | +- Samples validation: Skipped as requested. No sample JSON, auth behavior, production DB behavior, engine runtime behavior, or unrelated tool behavior changed. |
| 17 | + |
| 18 | +## Requirement Checklist |
| 19 | + |
| 20 | +- PASS: Read `docs_build/dev/PROJECT_INSTRUCTIONS.md` before edits. |
| 21 | +- PASS: Verified current git branch was `main` before edits. |
| 22 | +- PASS: Removed the duplicate visible `Type Choices` section from Objects. |
| 23 | +- PASS: Kept `Object Type Catalog` as the single visible reference list for object templates and capabilities. |
| 24 | +- PASS: Kept the catalog display limited to `Template` and `Capability`. |
| 25 | +- PASS: Preserved object template/type values in the underlying registry, validator, row type dropdown, and footer template selector. |
| 26 | +- PASS: Preserved Render, State, Asset, Sprite linking, DB persistence, and table editing behavior. |
| 27 | +- PASS: Kept Events integration framed as future behavior/event configuration by updating the user-facing Events action title to `Events configure when object behavior happens.` |
| 28 | +- PASS: Preserved Objects beta status. |
| 29 | +- PASS: Did not add sample JSON alignment, auth behavior, production DB behavior, or unrelated tool rewrites. |
| 30 | +- PASS: Kept Theme V2 only and preserved HTML restrictions. |
| 31 | + |
| 32 | +## Testing Performed |
| 33 | + |
| 34 | +- PASS: `node --check toolbox/objects/objects.js` |
| 35 | +- PASS: `node --check tests/playwright/tools/ObjectsTool.spec.mjs` |
| 36 | +- PASS: `git diff --check` |
| 37 | + - Result: PASS. Git reported line-ending normalization warnings only. |
| 38 | +- PASS: `rg --pcre2 -n '<script(?![^>]*\bsrc=)|<style\b|\son[a-z]+\s*=' toolbox/objects/index.html` |
| 39 | + - Expected no matches; command exited with no matches. |
| 40 | +- PASS: `rg -n 'Type Choices|data-objects-type-basics' toolbox/objects/index.html` |
| 41 | + - Expected no matches; command exited with no matches. |
| 42 | +- PASS: `npx playwright test tests/playwright/tools/ObjectsTool.spec.mjs --workers=1 --reporter=line` |
| 43 | + - Result: 6 passed. |
| 44 | + |
| 45 | +## Playwright Behavior Covered |
| 46 | + |
| 47 | +- PASS: `Type Choices` no longer appears in the primary Objects UI. |
| 48 | +- PASS: `Object Type Catalog` remains visible. |
| 49 | +- PASS: Catalog headers remain `Template` and `Capability` only. |
| 50 | +- PASS: Events is not exposed as an object template/type in the catalog. |
| 51 | +- PASS: Footer template selector still offers object templates and can prefill active rows. |
| 52 | +- PASS: Row type dropdown still offers object type values. |
| 53 | +- PASS: Add, edit, delete, reset, and DB persistence after reload still work. |
| 54 | +- PASS: Sprite asset creation/resolution and linked sprite asset display still work. |
| 55 | +- PASS: Objects remains a clickable beta tool from Toolbox. |
| 56 | + |
| 57 | +## Playwright V8 Coverage |
| 58 | + |
| 59 | +- Report: `docs_build/dev/reports/playwright_v8_coverage_report.txt` |
| 60 | +- Changed runtime JavaScript coverage notes: |
| 61 | + - `(93%) toolbox/objects/objects.js - executed lines 1107/1107; executed functions 98/105` |
| 62 | + - `(0%) src/dev-runtime/guest-seeds/tool-metadata-inventory.js - WARNING: changed runtime JS file was not collected by Playwright V8 coverage; advisory only` |
| 63 | +- The advisory warning is safe for this PR because PR_26161_015 did not modify `src/dev-runtime/guest-seeds/tool-metadata-inventory.js`; this change only touched Objects UI/runtime, Objects Playwright coverage, and generated reports. |
| 64 | + |
| 65 | +## Manual Validation Steps |
| 66 | + |
| 67 | +1. Open `/toolbox/objects/index.html`. |
| 68 | +2. Confirm the left Objects panel shows `Object Setup` and `Object Type Catalog`, with no `Type Choices` section. |
| 69 | +3. Confirm the Object Type Catalog table shows only `Template` and `Capability`. |
| 70 | +4. Use the table footer template selector to choose `Hero`, then click `Add Object` and confirm the active row is prefilled. |
| 71 | +5. Save a Sprite object, reload the Objects page, and confirm the row plus linked sprite asset remain. |
| 72 | +6. Confirm `Open Events` is presented as event configuration for when object behavior happens, not as an object type. |
| 73 | + |
| 74 | +## Skipped Lanes |
| 75 | + |
| 76 | +- Full samples validation: SKIP, explicitly requested and no samples changed. |
| 77 | +- Broad workspace/project suite: SKIP, no shared Project Workspace contract, engine runtime behavior, public navigation behavior, auth behavior, production DB behavior, or sample behavior changed. |
| 78 | +- Full registry suite: SKIP, registry and validator values were intentionally preserved; targeted Objects Playwright validates row type/template dropdown behavior. |
0 commit comments