Skip to content

Commit 7efe487

Browse files
committed
Remove Objects status column and improve action button spacing - PR_26161_013-objects-action-spacing-cleanup
1 parent 7fae159 commit 7efe487

8 files changed

Lines changed: 453 additions & 604 deletions

File tree

docs_build/dev/reports/codex_changed_files.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ M docs_build/dev/reports/coverage_changed_js_guardrail.txt
44
M tests/playwright/tools/ObjectsTool.spec.mjs
55
M toolbox/objects/index.html
66
M toolbox/objects/objects.js
7-
?? docs_build/dev/reports/objects-table-status-actions-report.md
7+
?? docs_build/dev/reports/objects-action-spacing-cleanup-report.md
88

99
# git ls-files --others --exclude-standard
10-
docs_build/dev/reports/objects-table-status-actions-report.md
10+
docs_build/dev/reports/objects-action-spacing-cleanup-report.md
1111

1212
# git diff --stat
13-
.../dev/reports/coverage_changed_js_guardrail.txt | 2 +-
14-
.../dev/reports/playwright_v8_coverage_report.txt | 4 +-
15-
tests/playwright/tools/ObjectsTool.spec.mjs | 123 +++++++++++---------
16-
toolbox/objects/index.html | 21 +---
17-
toolbox/objects/objects.js | 128 ++++++++-------------
18-
5 files changed, 120 insertions(+), 158 deletions(-)
13+
.../dev/reports/coverage_changed_js_guardrail.txt | 10 +---
14+
.../dev/reports/playwright_v8_coverage_report.txt | 16 +-----
15+
tests/playwright/tools/ObjectsTool.spec.mjs | 64 +++++++++++++++-------
16+
toolbox/objects/index.html | 1 -
17+
toolbox/objects/objects.js | 50 ++++++-----------
18+
5 files changed, 66 insertions(+), 75 deletions(-)

docs_build/dev/reports/codex_review.diff

Lines changed: 303 additions & 521 deletions
Large diffs are not rendered by default.

docs_build/dev/reports/coverage_changed_js_guardrail.txt

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,7 @@ Missing changed runtime JS files are WARN, not FAIL.
66
Source: Playwright/Chromium built-in V8 coverage from the active Playwright run.
77

88
Changed runtime JS files considered:
9-
(0%) src/dev-runtime/persistence/mock-db-store.js - WARNING: changed runtime JS file was not collected by Playwright V8 coverage; advisory only
10-
(0%) src/dev-runtime/persistence/tool-repositories/objects-mock-repository.js - WARNING: changed runtime JS file was not collected by Playwright V8 coverage; advisory only
11-
(0%) src/dev-runtime/server/mock-api-router.mjs - WARNING: changed runtime JS file was not collected by Playwright V8 coverage; advisory only
12-
(94%) toolbox/objects/objects.js - executed lines 1123/1123; executed functions 101/107
13-
(100%) toolbox/objects/objects-api-client.js - executed lines 10/10; executed functions 2/2
9+
(94%) toolbox/objects/objects.js - executed lines 1107/1107; executed functions 99/105
1410

1511
Guardrail warnings:
16-
(0%) src/dev-runtime/persistence/mock-db-store.js - WARNING: changed runtime JS file missing from coverage; advisory only
17-
(0%) src/dev-runtime/persistence/tool-repositories/objects-mock-repository.js - WARNING: changed runtime JS file missing from coverage; advisory only
18-
(0%) src/dev-runtime/server/mock-api-router.mjs - WARNING: changed runtime JS file missing from coverage; advisory only
12+
(100%) none - no changed runtime JS coverage warnings
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# PR_26161_013 Objects Action Spacing Cleanup Report
2+
3+
## Branch Validation
4+
5+
PASS
6+
7+
- Current branch: `main`
8+
- Expected branch: `main`
9+
- Local branches observed: `* main`
10+
11+
## Scope
12+
13+
- Impacted lane: Objects tool runtime/UI lane.
14+
- Playwright impacted: Yes.
15+
- Runtime engine behavior changed: No.
16+
- Samples validation: Skipped as requested. No sample JSON, game sample, engine runtime, auth, or production DB 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 `Status` column from the Objects Table.
23+
- PASS: Removed row-level Object Status cells and badges from the Objects Table.
24+
- PASS: Kept action button styling as the row visual status indicator.
25+
- PASS: Preserved Missing/incomplete visual highlighting through `btn btn--compact primary` on `Open Hitboxes` and `Open Events`.
26+
- PASS: Preserved Complete/ready visual highlighting through `btn btn--compact cyan` on `Edit Sprite`.
27+
- PASS: Increased row action spacing with existing Theme V2 `action-group action-group--tight` classes.
28+
- PASS: Kept `Edit`, `Edit Sprite`, `Open Hitboxes`, `Open Events`, and `Trash` visually distinct and individually clickable.
29+
- PASS: Did not introduce page-local CSS, inline styles, or tool-specific styling.
30+
- PASS: Preserved DB/mock-adapter persistence, table editing, sprite asset linking, and current object behavior.
31+
- PASS: Did not add sample JSON alignment, auth behavior, production DB behavior, or unrelated tool rewrites.
32+
33+
## Testing Performed
34+
35+
- PASS: `node --check toolbox/objects/objects.js`
36+
- PASS: `node --check tests/playwright/tools/ObjectsTool.spec.mjs`
37+
- PASS: `rg --pcre2 -n '<script(?![^>]*\bsrc=)|<style\b|\son[a-z]+\s*=' toolbox/objects/index.html`
38+
- Expected no matches; command exited with no matches.
39+
- PASS: `rg -n 'Not connected yet|session-only|setup readiness|MVP|publishes|coverage|technical object family|runtime type|handoff|\binternal\b' toolbox/objects/index.html toolbox/objects/objects.js`
40+
- Expected no matches; command exited with no matches.
41+
- PASS: `npx playwright test tests/playwright/tools/ObjectsTool.spec.mjs --workers=1 --reporter=line`
42+
- Result: 6 passed.
43+
- PASS: `git diff --check`
44+
- Result: PASS. Git reported line-ending normalization warnings only.
45+
46+
## Playwright Behavior Covered
47+
48+
- PASS: Objects Table headers no longer include `Status`.
49+
- PASS: Row status data attributes and badges are absent.
50+
- PASS: Row action group uses Theme V2 spacing classes.
51+
- PASS: `Edit`, `Open Hitboxes`, `Open Events`, and `Trash` remain visible and clickable for non-sprite rows.
52+
- PASS: `Edit`, `Edit Sprite`, `Open Hitboxes`, `Open Events`, and `Trash` remain visible and clickable for sprite rows.
53+
- PASS: Missing action buttons retain `primary` styling.
54+
- PASS: Ready sprite action retains `cyan` styling.
55+
- PASS: Add, cancel, save, edit, trash, reset, DB persistence after reload, and sprite asset linking remain covered.
56+
57+
## Playwright V8 Coverage
58+
59+
- Report: `docs_build/dev/reports/playwright_v8_coverage_report.txt`
60+
- Changed runtime JavaScript covered:
61+
- `(94%) toolbox/objects/objects.js - executed lines 1107/1107; executed functions 99/105`
62+
63+
## Manual Validation Steps
64+
65+
1. Open `/toolbox/objects/index.html`.
66+
2. Confirm the Objects Table header is `Name | Type | State | Render | Capabilities | Render Asset | Actions`.
67+
3. Seed starter objects and confirm each row shows spaced action buttons without a Status column.
68+
4. Confirm `Open Hitboxes` and `Open Events` use the missing/incomplete button state.
69+
5. Add a Sprite object and save it, then confirm `Edit Sprite` appears with the ready/complete button state.
70+
6. Reload the page and confirm saved rows and sprite asset links persist.
71+
72+
## Skipped Lanes
73+
74+
- Full samples validation: SKIP, explicitly requested and no samples changed.
75+
- Broad workspace/project suite: SKIP, no shared Workspace contract, engine runtime behavior, public navigation behavior, auth behavior, production DB behavior, or sample behavior changed.
76+

docs_build/dev/reports/playwright_v8_coverage_report.txt

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,7 @@ Exercised tool entry points detected:
1717
(59%) Theme V2 Shared JS - exercised 2 runtime JS files
1818

1919
Changed runtime JS files covered:
20-
(0%) src/dev-runtime/persistence/mock-db-store.js - WARNING: changed runtime JS file was not collected by Playwright V8 coverage; advisory only
21-
(0%) src/dev-runtime/persistence/tool-repositories/objects-mock-repository.js - WARNING: changed runtime JS file was not collected by Playwright V8 coverage; advisory only
22-
(0%) src/dev-runtime/server/mock-api-router.mjs - WARNING: changed runtime JS file was not collected by Playwright V8 coverage; advisory only
23-
(94%) toolbox/objects/objects.js - executed lines 1123/1123; executed functions 101/107
24-
(100%) toolbox/objects/objects-api-client.js - executed lines 10/10; executed functions 2/2
20+
(94%) toolbox/objects/objects.js - executed lines 1107/1107; executed functions 99/105
2521

2622
Files with executed line/function counts where available:
2723
(33%) src/engine/api/toolbox-votes-api-client.js - executed lines 46/46; executed functions 2/6
@@ -35,20 +31,14 @@ Files with executed line/function counts where available:
3531
(75%) src/engine/object-model/objectDefinitionSchema.js - executed lines 58/58; executed functions 3/4
3632
(77%) toolbox/tools-page-accordions.js - executed lines 965/965; executed functions 79/103
3733
(86%) toolbox/tool-registry-api-client.js - executed lines 152/152; executed functions 24/28
38-
(94%) toolbox/objects/objects.js - executed lines 1123/1123; executed functions 101/107
34+
(94%) toolbox/objects/objects.js - executed lines 1107/1107; executed functions 99/105
3935
(100%) src/engine/object-model/index.js - executed lines 29/29; executed functions 1/1
4036
(100%) toolbox/objects/objects-api-client.js - executed lines 10/10; executed functions 2/2
4137
(100%) toolbox/project-workspace/project-workspace-api-client.js - executed lines 12/12; executed functions 2/2
4238

4339
Uncovered or low-coverage changed JS files:
44-
(0%) src/dev-runtime/persistence/mock-db-store.js - WARNING: uncovered changed runtime JS file; advisory only
45-
(0%) src/dev-runtime/persistence/tool-repositories/objects-mock-repository.js - WARNING: uncovered changed runtime JS file; advisory only
46-
(0%) src/dev-runtime/server/mock-api-router.mjs - WARNING: uncovered changed runtime JS file; advisory only
40+
(100%) none - no low-coverage changed runtime JS files
4741

4842
Changed JS files considered:
49-
(0%) src/dev-runtime/persistence/mock-db-store.js - changed JS file not collected as browser runtime coverage
50-
(0%) src/dev-runtime/persistence/tool-repositories/objects-mock-repository.js - changed JS file not collected as browser runtime coverage
51-
(0%) src/dev-runtime/server/mock-api-router.mjs - changed JS file not collected as browser runtime coverage
5243
(0%) tests/playwright/tools/ObjectsTool.spec.mjs - changed JS file not collected as browser runtime coverage
5344
(94%) toolbox/objects/objects.js - changed JS file with browser V8 coverage
54-
(100%) toolbox/objects/objects-api-client.js - changed JS file with browser V8 coverage

0 commit comments

Comments
 (0)