Skip to content

Commit e3391ff

Browse files
committed
Add Objects type catalog with creator-safe defaults - PR_26161_008-object-type-catalog
1 parent 2248980 commit e3391ff

12 files changed

Lines changed: 915 additions & 742 deletions
1.53 MB
Loading
46.7 KB
Loading

docs_build/dev/codex_commands.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1233,3 +1233,34 @@ Required reports:
12331233
- `docs_build/dev/reports/coverage_changed_js_guardrail.txt`
12341234
- `docs_build/dev/reports/codex_changed_files.txt`
12351235
- `docs_build/dev/reports/codex_review.diff`
1236+
1237+
1238+
## PR_26161_008
1239+
1240+
Changes:
1241+
- Read `docs_build/dev/PROJECT_INSTRUCTIONS.md`.
1242+
- Verified the current branch is `main` before edits.
1243+
- Added an Object Type Catalog to the Objects tool.
1244+
- Added catalog templates for Collectible, Custom, Decoration, Enemy, Goal, Hazard, Hero, Platform, Projectile, Spawn Point, and Wall.
1245+
- Made catalog selection prefill the next new table row or the active table row with Type, State, Render default, and Capabilities.
1246+
- Kept Capabilities visible in the active editing row.
1247+
- Preserved table-first editing and kept `Add Object` below the table.
1248+
- Preserved Sprite render asset create, resolve, preview, and Sprite Editor link behavior.
1249+
- Did not change runtime engine behavior, database/auth behavior, sample JSON, or sample runtime behavior.
1250+
1251+
Validation:
1252+
- `node --check toolbox/objects/objects.js`
1253+
- `node --check tests/playwright/tools/ObjectsTool.spec.mjs`
1254+
- HTML restriction check for `toolbox/objects/index.html`
1255+
- Objects forbidden visible wording scan for `toolbox/objects`
1256+
- Exact disconnected-copy phrase repo scan
1257+
- `npx playwright test tests/playwright/tools/ObjectsTool.spec.mjs --workers=1 --reporter=line`
1258+
- `npm run test:workspace-v2` ran and reported WARN failures outside Objects scope in existing Toolbox/header expectations.
1259+
- `git diff --check`
1260+
1261+
Required reports:
1262+
- `docs_build/dev/reports/PR_26161_008_object_type_catalog.md`
1263+
- `docs_build/dev/reports/playwright_v8_coverage_report.txt`
1264+
- `docs_build/dev/reports/coverage_changed_js_guardrail.txt`
1265+
- `docs_build/dev/reports/codex_changed_files.txt`
1266+
- `docs_build/dev/reports/codex_review.diff`

docs_build/dev/commit_comment.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Simplify Objects model setup language - PR_26161_007-objects-model-simplification
1+
Add Objects type catalog - PR_26161_008-object-type-catalog
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# PR_26161_008 Object Type Catalog
2+
3+
## Branch Validation
4+
- Current branch: `main`
5+
- Expected branch: `main`
6+
- Local branches found: `* main`
7+
- Branch validation: PASS
8+
9+
## Source Of Truth
10+
- PASS: Read `docs_build/dev/PROJECT_INSTRUCTIONS.md` before branch validation and before edits.
11+
- PASS: Used the user-provided `PR_26161_008-object-type-catalog` request as the active BUILD source.
12+
- PASS: Confirmed the PR purpose is singular: add an Object Type Catalog to the Objects tool.
13+
14+
## Requirement Checklist
15+
- PASS: Added an Object Type Catalog to the Objects tool.
16+
- PASS: Catalog templates include `Hero`, `Enemy`, `Wall`, `Platform`, `Collectible`, `Projectile`, `Hazard`, `Decoration`, `Spawn Point`, `Goal`, and `Custom`.
17+
- PASS: Browseable catalog/type choices are sorted alphabetically per repo navigation/list governance.
18+
- PASS: Template selection before `Add Object` prefills the next table row.
19+
- PASS: Template selection while a row is active prefills Type, State, Render default, and Capabilities without replacing the row name.
20+
- PASS: Preserved table-first editing and kept `Add Object` below the table.
21+
- PASS: Preserved Sprite render asset create, resolve, preview, and Sprite Editor link behavior.
22+
- PASS: Did not change engine runtime behavior.
23+
- PASS: Did not add database/auth/sample runtime changes.
24+
- PASS: Did not expose removed setup vocabulary or implementation wording in the Objects tool surface.
25+
26+
## Implementation Evidence
27+
- `toolbox/objects/index.html`: added the `Object Type Catalog` accordion with a template selector and catalog table.
28+
- `toolbox/objects/objects.js`: added catalog template metadata, selector rendering, live row prefill, and active-row capability preview.
29+
- `tests/playwright/tools/ObjectsTool.spec.mjs`: added catalog table/selector assertions and a behavior test proving template prefill and Sprite asset linking from a catalog-selected Hero.
30+
31+
## Impacted Lane
32+
- Impacted lane: Objects tool UI/runtime.
33+
- Playwright impacted: Yes.
34+
- Runtime JavaScript changed: `toolbox/objects/objects.js`.
35+
36+
## Testing Performed
37+
- PASS: `node --check toolbox/objects/objects.js`
38+
- PASS: `node --check tests/playwright/tools/ObjectsTool.spec.mjs`
39+
- PASS: HTML restriction check for `toolbox/objects/index.html`
40+
- PASS: Objects forbidden visible wording scan for `toolbox/objects`
41+
- PASS: Exact disconnected-copy phrase repo scan returned no matches.
42+
- PASS: `npx playwright test tests/playwright/tools/ObjectsTool.spec.mjs --workers=1 --reporter=line` (5 passed)
43+
- PASS: `git diff --check` exited 0 with line-ending warnings only.
44+
- WARN: `npm run test:workspace-v2` was run because the legacy command includes Objects launch coverage. It failed outside this PR scope on existing Toolbox/header expectations:
45+
- `RootToolsFutureState.spec.mjs` expected `Tool Count: 7/38` and received `Tool Count: 10/39`.
46+
- `RootToolsFutureState.spec.mjs` expected `Admin` in primary navigation and received no `Admin` label.
47+
48+
## Playwright V8 Coverage
49+
- PASS: `docs_build/dev/reports/playwright_v8_coverage_report.txt` was regenerated by the targeted Objects Playwright run.
50+
- PASS: `toolbox/objects/objects.js` is listed with browser coverage: `(95%) toolbox/objects/objects.js - executed lines 960/960; executed functions 89/94`.
51+
- PASS: `docs_build/dev/reports/coverage_changed_js_guardrail.txt` reports no changed runtime JS coverage warnings.
52+
53+
## Manual Validation Steps
54+
- Open `/toolbox/objects/index.html`.
55+
- Confirm the left panel shows `Object Type Catalog`.
56+
- Select `Hazard`, then click `Add Object`; confirm the active row is Type `Hazard`, State `Active`, Render `Sprite`, with damage capabilities visible.
57+
- Select `Platform` while the row is active; confirm Type, State, Render, and Capabilities update in the same table row.
58+
- Select `Hero`, enter an object name, save, and confirm the saved row shows Hero capabilities and a linked Sprite render asset.
59+
- Confirm `Add Object` remains below the Objects table.
60+
61+
## Skipped Lanes
62+
- Full samples smoke: SKIP. Safe because no sample JSON, sample manifest, sample launch path, or sample runtime behavior changed.
63+
- Production DB/auth lanes: SKIP. Safe because no production DB or auth behavior changed.
64+
- Engine runtime lanes beyond syntax/import coverage: SKIP. Safe because no engine runtime files or runtime execution behavior changed.
65+
- Broad Toolbox/Admin metadata lanes: SKIP. Safe because tool metadata and Toolbox registration were not changed.
66+
67+
## Required Artifacts
68+
- PASS: `docs_build/dev/reports/PR_26161_008_object_type_catalog.md`
69+
- PASS: `docs_build/dev/reports/codex_review.diff`
70+
- PASS: `docs_build/dev/reports/codex_changed_files.txt`
71+
- PASS: Repo-structured ZIP path: `tmp/PR_26161_008_delta.zip`

docs_build/dev/reports/codex_changed_files.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@ docs_build/dev/commit_comment.txt
33
docs_build/dev/reports/codex_changed_files.txt
44
docs_build/dev/reports/codex_review.diff
55
docs_build/dev/reports/coverage_changed_js_guardrail.txt
6-
docs_build/dev/reports/objects-production-copy-and-status-report.md
76
docs_build/dev/reports/playwright_v8_coverage_report.txt
8-
docs_build/dev/reports/PR_26161_007-objects-model-simplification-report.md
7+
docs_build/dev/reports/PR_26161_008_object_type_catalog.md
98
tests/playwright/tools/ObjectsTool.spec.mjs
109
toolbox/objects/index.html
1110
toolbox/objects/objects.js

0 commit comments

Comments
 (0)