Skip to content

Commit 2aa406d

Browse files
committed
Converge toolbox inventory, close Theme V2 asset wiring, and complete legacy ownership audit - PR_26154_034-036-cleanup-stack
1 parent b123a20 commit 2aa406d

11 files changed

Lines changed: 332 additions & 42 deletions

docs_build/dev/codex_commands.md

Lines changed: 28 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -2,63 +2,56 @@
22

33
Task:
44

5-
- `PR_26154_031-toolbox-template-mismatch-closeout`
6-
- `PR_26154_032-active-test-suite-reconciliation`
7-
- `PR_26154_033-root-structure-final-polish`
5+
- `PR_26154_034-toolbox-inventory-convergence`
6+
- `PR_26154_035-theme-v2-asset-wiring-closeout`
7+
- `PR_26154_036-legacy-ownership-final-audit`
88

99
Changes:
1010

1111
- Read `.codex/skills/repo-build/SKILL.md`.
1212
- Read `docs_build/dev/PROJECT_INSTRUCTIONS.md`.
13-
- Used the latest applied PR state as the baseline.
14-
- Re-ran template consistency checks for active public/root pages and active toolbox pages.
15-
- Updated stale grouping CSS copy in `admin/grouping-colors.html` and `docs_build/account/grouping-colors.html`.
16-
- Removed deprecated-only tests for old games, old samples, removed V2 tool pages, removed integration surfaces, and old template/tool registries.
17-
- Rewired active test lane metadata to `tests/playwright/tools/RootToolsFutureState.spec.mjs`.
18-
- Updated Playwright structure ownership metadata and V8 coverage entry-point labels for `toolbox/` and `assets/theme-v2/`.
19-
- Confirmed Marketplace is absent from `toolbox/index.html` and `toolbox/tools-page-accordions.js`.
20-
- Confirmed shared header/footer still keep Marketplace as a product destination.
21-
- Did not modify `old-tools/`, `old_games/`, `old_samples/`, or `start_of_day/`.
13+
- Used `PR_26154_031-033-template-test-root-polish` as the current baseline.
14+
- Inventoried all 20 active `toolbox/[toolname]/index.html` pages.
15+
- Added missing active toolbox index entries for Configuration Admin, Tool Builder, and Tool Creator.
16+
- Confirmed active toolbox pages are header-wired, index-wired, and template-marker complete.
17+
- Audited `assets/theme-v2` CSS, fonts, images, JS, and partials.
18+
- Confirmed Font Awesome is wired through `assets/theme-v2/fonts/fontawesome`.
19+
- Moved deprecated preview-generator support from `toolbox/shared/preview/` to `old-tools/shared-preview/`.
20+
- Classified toolbox, old-tools, games, old_games, old_samples, scripts, and tests ownership.
21+
- Did not modify `start_of_day/`.
2222

2323
Validation:
2424

25-
- Ran changed JavaScript syntax checks:
26-
- `node --check scripts/run-targeted-test-lanes.mjs`
27-
- `node --check scripts/audit-playwright-test-locations.mjs`
28-
- `node --check tests/run-tests.mjs`
29-
- `node --check tests/helpers/playwrightV8CoverageReporter.mjs`
30-
- Ran template consistency audit:
31-
- Public/root pages: `43/43`
32-
- Active toolbox pages: `20/20`
33-
- Ran targeted stale reference checks for `toolbox`, `assets/theme-v2`, footer/header links, `styles.css`, `favicon.ico`, `assets/theme/v2`, `GameFoundryStudio/`, `src/engine/theme`, removed `tools/` routes, and removed `samples/` routes.
34-
- Ran active toolbox index ordering and header coverage checks.
35-
- Ran direct removed-samples import/route scan in active tests.
25+
- Ran targeted active toolbox inventory checks.
26+
- Ran targeted Theme V2 reference resolution checks.
27+
- Ran targeted retired path checks for `assets/theme/v2`, `assets/theme-v2/assets`, `assets/theme-v2/css/styles.css`, `favicon.ico`, and `GameFoundryStudio/`.
28+
- Ran active reference check for `toolbox/shared/preview/` after moving it.
29+
- Ran `node --check toolbox/tools-page-accordions.js`.
3630
- Ran `npm run test:playwright:static`.
3731
- Ran `npm run test:workspace-v2`.
3832
- Ran `git diff --check`.
3933
- Regenerated required Codex review artifacts.
4034
- Packaged repo-structured ZIP:
41-
- `tmp/PR_26154_031-033-template-test-root-polish_delta.zip`
35+
- `tmp/PR_26154_034-036-toolbox-theme-legacy-audit_delta.zip`
4236

4337
Required reports:
4438

4539
- `docs_build/dev/reports/codex_changed_files.txt`
4640
- `docs_build/dev/reports/codex_review.diff`
47-
- `docs_build/dev/reports/toolbox_template_mismatch_closeout_report.md`
48-
- `docs_build/dev/reports/active_test_suite_reconciliation_report.md`
49-
- `docs_build/dev/reports/root_structure_final_polish_report.md`
50-
- `docs_build/dev/reports/remaining_cleanup_report.md`
41+
- `docs_build/dev/reports/toolbox_inventory_convergence_report.md`
42+
- `docs_build/dev/reports/theme_v2_asset_wiring_closeout_report.md`
43+
- `docs_build/dev/reports/legacy_ownership_final_audit_report.md`
44+
- `docs_build/dev/reports/final_remaining_cleanup_inventory.md`
5145

5246
Validation summary:
5347

54-
- PASS template audit: public/root pages `43/43`.
55-
- PASS template audit: active toolbox pages `20/20`.
56-
- PASS active toolbox header coverage: `20/20`.
57-
- PASS Marketplace is absent from active toolbox index data.
58-
- PASS active public pages do not use `assets/theme-v2/css/styles.css`.
59-
- PASS zero active public `tools/` route references remain.
48+
- PASS active toolbox inventory: `20/20` header-wired, `20/20` index-wired, `20/20` template-marker complete.
49+
- PASS toolbox index group order and in-group tool order are alphabetical.
50+
- PASS active Theme V2 file references resolve on disk.
51+
- PASS no active dependency on `assets/theme-v2/css/styles.css`.
52+
- PASS no active imports of `toolbox/shared/preview/` remain after the move.
6053
- PASS `npm run test:playwright:static`.
6154
- PASS `npm run test:workspace-v2` with `2 passed`.
6255
- PASS `git diff --check`.
63-
- SKIPPED tests against `old-tools/`, `old_games/`, and `old_samples` per request.
56+
- SKIPPED tests against `old-tools/`, `old_games/`, and `old_samples/` per request.
6457
- SKIPPED full samples smoke test per request.

docs_build/dev/commit_comment.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
Close out toolbox templates, reconcile active tests, and polish root paths - PR_26154_031-033
1+
Converge toolbox inventory, audit Theme V2 wiring, and move deprecated preview support - PR_26154_034-036
22

3-
- Confirm active public/root and toolbox template consistency remains clean at 43/43 and 20/20.
4-
- Fix stale Theme V2 grouping CSS path copy in active admin/docs pages.
5-
- Remove deprecated-only tests for old games, old samples, removed V2 tools, old template baselines, and removed integration surfaces.
6-
- Rewire active test lanes and coverage labels to current toolbox and assets/theme-v2 paths.
7-
- Confirm Marketplace stays outside toolbox index while remaining in product header/footer navigation.
8-
- Validate static checks, Workspace V2, targeted stale-path scans, diff hygiene, and repo-structured delta packaging.
3+
- Add missing active toolbox index entries for Configuration Admin, Tool Builder, and Tool Creator.
4+
- Confirm all 20 active toolbox pages are header-wired, index-wired, and template-marker complete.
5+
- Audit Theme V2 CSS, fonts, images, JS, and partials, including Font Awesome wiring and unwired residue.
6+
- Move deprecated old-samples preview-generator support from toolbox/shared/preview to old-tools/shared-preview.
7+
- Classify remaining toolbox, legacy, scripts, and tests ownership and document remaining cleanup candidates.
8+
- Validate static checks, Workspace V2, targeted path scans, diff hygiene, and repo-structured delta packaging.
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# PR_26154_034-036 Final Remaining Cleanup Inventory
2+
3+
## Completed In This Stack
4+
5+
- Added missing active toolbox pages to the toolbox index grouping:
6+
- Configuration Admin
7+
- Tool Builder
8+
- Tool Creator
9+
- Confirmed all 20 active toolbox pages are header-wired, index-wired, and template-marker complete.
10+
- Moved deprecated preview-generator support from `toolbox/shared/preview/` to `old-tools/shared-preview/`.
11+
- Confirmed active Theme V2 references resolve and no active `styles.css` dependency remains.
12+
13+
## Remaining Cleanup Candidates
14+
15+
| Candidate | Classification | Recommended Follow-Up |
16+
| --- | --- | --- |
17+
| `toolbox/toolRegistry.js` | Ambiguous active/legacy bridge | Split active registry from legacy registry, then move legacy entries to `old-tools` ownership. |
18+
| `toolbox/renderToolsIndex.js` | Ambiguous legacy renderer | Decide whether it remains an active validation target or moves with legacy registry/rendering support. |
19+
| `assets/theme-v2/css/styles.css` | Unwired aggregate | Remove in a dedicated Theme V2 CSS residue PR if no external consumer exists. |
20+
| `assets/theme-v2/css/site-colors.css`, `site-controls.css`, `gamefoundrystudio.css`, `pages.css`, `tokens.css` | Unwired or aggregate-era residue | Confirm whether any are intended design-system modules, then delete or wire intentionally. |
21+
| `assets/theme-v2/css/tools/grouping/*.css` | Unwired grouping residue | Consolidate with active `colors.css` ownership or rewire intentionally. |
22+
| `assets/theme-v2/partials/page-shell.html` and `tool-shell.html` | Unwired partial stubs | Delete or wire through a documented partial-loader contract. |
23+
| `assets/theme-v2/images/icons/*` | Unwired icon image set | Decide whether icons are future image assets or move/delete as residue. |
24+
| `assets/theme-v2/images/ChatGPT Image*.png`, `forge-bot.svg`, `magic-panel.png`, `toolboxaid-header.png`, typo variants | Unwired image candidates | Delete or relocate after visual asset ownership review. |
25+
| `tests/games/` | Deprecated-adjacent/ambiguous | Separate active game tests from deprecated old-game tests before pruning. |
26+
| `tests/validation/samples.*.json` | Historical/ambiguous fixtures | Retire only after contract tests stop using sample report fixtures. |
27+
| Historical docs mentioning `toolbox/shared/preview/` | Historical docs | Update only in a docs-history normalization PR, not runtime cleanup. |
28+
29+
## Current Active Structure Confirmation
30+
31+
- `toolbox/`: active toolbox pages, active toolbox index, template source, schemas, and shared/validation support.
32+
- `old-tools/`: deprecated tools and legacy support, now including `shared-preview/`.
33+
- `games/`: active public game discovery/type pages.
34+
- `old_games/`: deprecated playable reference games.
35+
- `old_samples/`: deprecated reference samples.
36+
- `scripts/`: active validation and artifact tooling.
37+
- `tests/`: active and ambiguous validation inventory, with deprecated-only tests already pruned in prior stack.
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# PR_26154_036 Legacy Ownership Final Audit
2+
3+
Baseline used: `PR_26154_035-theme-v2-asset-wiring-closeout`.
4+
5+
## Scope
6+
7+
Audited:
8+
9+
- `toolbox`
10+
- `old-tools`
11+
- `games`
12+
- `old_games`
13+
- `old_samples`
14+
- `scripts`
15+
- `tests`
16+
17+
Moved only clearly deprecated ownership. Ambiguous items were reported and left in place.
18+
19+
## Ownership Classifications
20+
21+
| Surface | Classification | Notes |
22+
| --- | --- | --- |
23+
| `toolbox/[toolname]/index.html` | Active | 20 active toolbox pages are template-aligned, header-wired, and index-wired. |
24+
| `toolbox/_tool_template-v2/` | Active template source | Required first-class toolbox template source. |
25+
| `toolbox/tools-page-accordions.js` | Active | Drives the active toolbox index grouping. |
26+
| `toolbox/toolRegistry.js` | Ambiguous active/legacy bridge | Still imported by active shared modules, scripts, and tests, but contains legacy `old-tools` and `old_samples` entries. Not moved. |
27+
| `toolbox/renderToolsIndex.js` | Ambiguous legacy renderer | Referenced by active validation/tests but not by the current `toolbox/index.html`; not moved. |
28+
| `toolbox/dev/` | Ambiguous active tooling | Package scripts and validation guards still reference this folder. Not moved. |
29+
| `toolbox/shared/` | Active/ambiguous shared tooling | Many modules are imported by active tests and shared tool contracts. Not moved wholesale. |
30+
| `toolbox/shared/preview/` | Deprecated | Moved to `old-tools/shared-preview/`. It only referenced `old_samples` and had no active imports outside itself. |
31+
| `toolbox/schemas/` | Active/ambiguous contract schemas | Active tests and scripts still reference toolbox schemas. Not moved. |
32+
| `old-tools/` | Deprecated | Retained as deprecated tool/reference ownership. New `shared-preview/` added here. |
33+
| `games/` | Active | Owns active public game-type pages and game assets. |
34+
| `old_games/` | Deprecated playable references | Retained; no tests were run against it. |
35+
| `old_samples/` | Deprecated sample references | Retained; no tests were run against it. |
36+
| `scripts/` | Active/ambiguous validation tooling | Current validation and artifact scripts remain active. No clear deprecated script was moved in this PR. |
37+
| `tests/` | Active/ambiguous validation inventory | Active runner, Playwright future-state test, and retained legacy boundary fixtures coexist. No ambiguous tests were deleted. |
38+
39+
## Move Completed
40+
41+
| From | To | Reason |
42+
| --- | --- | --- |
43+
| `toolbox/shared/preview/` | `old-tools/shared-preview/` | Self-contained preview-generator support for `old_samples`; no active imports outside the folder were found. |
44+
45+
Moved files:
46+
47+
- `old-tools/shared-preview/generate-list-previews.html`
48+
- `old-tools/shared-preview/generate-previews.html`
49+
- `old-tools/shared-preview/move-preview-svg-to-assets.ps1`
50+
- `old-tools/shared-preview/preview-pages.css`
51+
52+
## Remaining Legacy References
53+
54+
- `toolbox/toolRegistry.js` keeps hidden legacy `old-tools` and `old_samples` entries. It is still imported by active validation/shared code, so it needs a dedicated registry split before relocation.
55+
- `toolbox/renderToolsIndex.js` still references `old_samples` and is read by active validation/tests. It needs a dedicated renderer retirement or validation rewrite.
56+
- Some historical docs still mention `toolbox/shared/preview/`; they were left untouched because they are historical PR/design documents rather than active runtime wiring.
57+
- `tests/games/` and parts of `tests/validation/` still preserve old-game/sample boundary coverage. They were classified as ambiguous or deprecated-adjacent and left in place.
58+
59+
## Validation
60+
61+
- PASS: active reference scan found no imports of `toolbox/shared/preview/` after the move.
62+
- PASS: `old-tools/shared-preview/` exists with the moved preview files.
63+
- PASS: `node --check toolbox/tools-page-accordions.js`.
64+
- PASS: `npm run test:playwright:static`.
65+
- PASS: `npm run test:workspace-v2`.
66+
- SKIPPED tests against `old-tools`, `old_games`, and `old_samples` per request.
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
# PR_26154_035 Theme V2 Asset Wiring Closeout
2+
3+
Baseline used: `PR_26154_034-toolbox-inventory-convergence`.
4+
5+
## Scope
6+
7+
- Audited `assets/theme-v2/css`, `assets/theme-v2/fonts`, `assets/theme-v2/images`, `assets/theme-v2/js`, and `assets/theme-v2/partials`.
8+
- Confirmed active Theme V2 references resolve.
9+
- Confirmed Font Awesome wiring.
10+
- Checked retired path references.
11+
12+
## CSS
13+
14+
| Asset | Status | Notes |
15+
| --- | --- | --- |
16+
| `assets/theme-v2/css/theme.css` | Active | Public/root pages and toolbox pages use this as the Theme V2 entry point. |
17+
| `assets/theme-v2/css/accordion.css` | Active via `theme.css` | Imported by the active entry point. |
18+
| `assets/theme-v2/css/base.css` | Active via `theme.css` | Imported by the active entry point. |
19+
| `assets/theme-v2/css/buttons.css` | Active via `theme.css` | Imported by the active entry point. |
20+
| `assets/theme-v2/css/colors.css` | Active via `theme.css` | Owns active color, meaning, swatch, and tool-group variables. |
21+
| `assets/theme-v2/css/controls.css` | Active via `theme.css` | Imported by the active entry point. |
22+
| `assets/theme-v2/css/dialogs.css` | Active via `theme.css` | Imported by the active entry point. |
23+
| `assets/theme-v2/css/forms.css` | Active via `theme.css` | Imported by the active entry point. |
24+
| `assets/theme-v2/css/layout.css` | Active via `theme.css` | Imported by the active entry point. |
25+
| `assets/theme-v2/css/panels.css` | Active via `theme.css` | Imported by the active entry point. |
26+
| `assets/theme-v2/css/spacing.css` | Active via `theme.css` | Imported by the active entry point. |
27+
| `assets/theme-v2/css/status.css` | Active via `theme.css` | Imported by the active entry point. |
28+
| `assets/theme-v2/css/tables.css` | Active via `theme.css` | Imported by the active entry point. |
29+
| `assets/theme-v2/css/tools.css` | Active via `theme.css` | Imported by the active entry point. |
30+
| `assets/theme-v2/css/typography.css` | Active via `theme.css` | Imported by the active entry point. |
31+
| `assets/theme-v2/css/styles.css` | Unwired aggregate | No active page depends on it. It was reported only and left in place. |
32+
| `assets/theme-v2/css/site-colors.css` | Unwired except through `styles.css` | Retained as aggregate-era residue. |
33+
| `assets/theme-v2/css/site-controls.css` | Unwired except through `styles.css` | Retained as aggregate-era residue. |
34+
| `assets/theme-v2/css/gamefoundrystudio.css` | Unwired except through `styles.css` | Retained as aggregate-era residue. |
35+
| `assets/theme-v2/css/pages.css` | Unwired except through `styles.css` | Retained as aggregate-era residue. |
36+
| `assets/theme-v2/css/tokens.css` | Unwired except through `styles.css` | Retained as aggregate-era residue. |
37+
| `assets/theme-v2/css/tools/grouping/*.css` | Unwired except through `styles.css` | Group color variables are active through `colors.css`; the grouping files are retained for later consolidation/deletion review. |
38+
39+
## Fonts
40+
41+
- PASS: Font Awesome is wired from `assets/theme-v2/fonts/fontawesome` through `assets/theme-v2/css/theme.css`.
42+
- The active import is `@import url("../fonts/fontawesome/css/font-awesome.min.css");`.
43+
- No active page links a different Font Awesome path.
44+
- No active `.fa-*` class consumers were found outside the Font Awesome stylesheet itself; the library is globally wired but lightly or not directly consumed.
45+
46+
## JavaScript
47+
48+
| Asset | Status | Notes |
49+
| --- | --- | --- |
50+
| `assets/theme-v2/js/gamefoundry-partials.js` | Active | Loaded by public/root pages, games index/type pages, active toolbox pages, and templates. |
51+
| `assets/theme-v2/js/tool-display-mode.js` | Active | Loaded by active toolbox pages and `toolbox/_tool_template-v2/index.html`. |
52+
| `assets/theme-v2/js/account-controls.js` | Active | Loaded by `admin/controls.html`. |
53+
54+
## Partials
55+
56+
| Asset | Status | Notes |
57+
| --- | --- | --- |
58+
| `assets/theme-v2/partials/header-nav.html` | Active | Loaded by `gamefoundry-partials.js`. |
59+
| `assets/theme-v2/partials/footer.html` | Active | Loaded by `gamefoundry-partials.js`. |
60+
| `assets/theme-v2/partials/page-shell.html` | Unwired | No active loader mapping or page reference found. |
61+
| `assets/theme-v2/partials/tool-shell.html` | Unwired | No active loader mapping or page reference found. |
62+
63+
## Images
64+
65+
Active image groups:
66+
67+
- Root/brand images used by active pages: `game-foundry-studio-logo.png`, `game-foundry-mascot-sheet.png`, `game-foundry-tools-poster.png`, `forge-bot-single.png`, `logo-mark.svg`, `spark.png`, `pixel-smith.png`, `forgebot.png`, and `foundry-bot.png`.
68+
- Tool index images used by active toolbox and public pages: active `images/tools/*.png` entries for AI Assistant, Cloud, Localization, Publish, Storage Inspector, MIDI, Sound, Palette Manager, Input, Animation, Assets, Code, Object Vector, Settings, Game Builder, Game Design, Particles, World Vector, Arcade, Learn, and Marketplace.
69+
- ToolDisplayMode badge/character images are dynamically resolved from `assets/theme-v2/images/badges/` and `assets/theme-v2/images/characters/`.
70+
71+
Reported unwired image candidates:
72+
73+
- `images/ChatGPT Image May 30, 2026, 07_57_30 PM.png`
74+
- `images/ChatGPT Image May 30, 2026, 07_57_30 PM2.png`
75+
- `images/forge-bot.svg`
76+
- `images/magic-panel.png`
77+
- `images/toolboxaid-header.png`
78+
- `images/icons/*`
79+
- typo/variant tool images such as `images/tools/localizaton.png` and `images/tools/match_format.png`
80+
81+
These were reported only because this PR did not request asset deletion.
82+
83+
## Retired Path Checks
84+
85+
- PASS: active checked files have zero references to `assets/theme/v2`.
86+
- PASS: active checked files have zero references to `assets/theme-v2/assets`.
87+
- PASS: active checked files have zero references to `assets/theme-v2/css/styles.css`.
88+
- PASS: active checked files have zero references to `favicon.ico`.
89+
- PASS: active Theme V2 file references resolve on disk.

0 commit comments

Comments
 (0)