Skip to content

Commit 897b7db

Browse files
committed
Continue migration cleanup, clarify Share, and remove deprecated-only scripts and tests - PR_26154_021-migration-cleanup-share-tools-scripts
1 parent eda1530 commit 897b7db

24 files changed

Lines changed: 202 additions & 3459 deletions

assets/theme/v2/js/tools-page-accordions.js

Lines changed: 0 additions & 461 deletions
This file was deleted.

docs_build/dev/PROJECT_INSTRUCTIONS.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,9 @@ The product guidance phrase is:
141141
`Build · Play · Share`
142142

143143
Use that phrase as a compact IA and copywriting anchor:
144-
- Build: creator tools, asset creation, prototypes, systems, and publishing preparation.
145-
- Play: playable games, arcade browsing, testing, saves, and discovery.
146-
- Share: marketplace assets, tutorials, community visibility, publishing, and creator identity.
144+
- Build: tools and creation flow, including asset creation, prototypes, systems, and publishing preparation.
145+
- Play: games and discovery, including playable games, arcade browsing, testing, and saves.
146+
- Share: public game pages, share links, creator profiles, marketplace assets, tutorials/community, ratings, and future publish/export flows.
147147

148148
## GAMEFOUNDRYSTUDIO THEME V2 GOVERNANCE
149149

docs_build/dev/codex_commands.md

Lines changed: 25 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -2,79 +2,50 @@
22

33
Task:
44

5-
- `PR_26154_018-theme-v2-wiring-and-fontawesome-audit`
6-
- `PR_26154_019-tools-legacy-and-capture-runtime-audit`
7-
- `PR_26154_020-theme-v2-css-structure-normalization`
5+
- `PR_26154_021-migration-cleanup-share-tools-scripts`
86

97
Commands run:
108

119
- `Get-Content .codex/skills/repo-build/SKILL.md`
1210
- `Get-Content docs_build/dev/PROJECT_INSTRUCTIONS.md`
1311
- `git status --short --untracked-files=all`
14-
- Targeted file inspection for:
15-
- `assets/theme/v2/`
12+
- Targeted inspection for:
13+
- `index.html`
1614
- `tools/index.html`
1715
- `tools/tools-page-accordions.js`
1816
- `assets/theme/v2/js/tools-page-accordions.js`
19-
- `assets/theme/v2/js/gamefoundry-partials.js`
20-
- `assets/theme/v2/js/tool-display-mode.js`
21-
- `src/engine/ui/toolboxaid-header.html`
17+
- `tools/`
2218
- `tools/shared/tooling/CapturePreviewRuntime.js`
23-
- `tools/dev/checkStyleSystemGuard.mjs`
24-
- `package.json`
2519
- `scripts/`
26-
- Targeted reference checks for:
27-
- `assets/theme/v2`
28-
- Font Awesome and `fa-*` usage
29-
- `tools/index.html` active data
30-
- `src/engine/ui/toolboxaid-header.html`
31-
- `tools/shared/tooling/CapturePreviewRuntime.js`
32-
- `assets/theme/v2/css/theme/v2`
33-
- deprecated game/sample test shims
34-
- Removed Arcade from active `tools/tools-page-accordions.js`.
35-
- Deleted unreferenced `src/engine/ui/toolboxaid-header.html`.
36-
- Deleted obsolete `tools/shared/tooling/CapturePreviewRuntime.js`.
37-
- Moved Theme V2 core CSS files from `assets/theme/v2/css/theme/v2/` to `assets/theme/v2/css/`.
38-
- Preserved existing `styles.css` bundle support modules as `site-colors.css` and `site-controls.css`.
39-
- Moved deprecated game/sample test shims from `scripts/` to `tests/validation/`.
40-
- Updated package scripts to the moved deprecated test shims.
41-
- Updated Theme V2 stylesheet references to `assets/theme/v2/css/theme.css`.
42-
- Updated `docs_build/dev/PROJECT_INSTRUCTIONS.md` to the normalized Theme V2 CSS root.
43-
- Updated `assets/theme/v2/css/gamefoundrystudio.css` so pages on the `styles.css` path use direct-child Toolbox submenu expansion and nested Objects/Worlds popouts.
20+
- `scripts/PS/`
21+
- `package.json`
22+
- `tests/run-tests.mjs`
23+
- Removed deprecated-only old game/sample package scripts.
24+
- Removed deprecated-only old game/sample scripts and deprecated validation wrappers.
25+
- Removed old game template contract test wiring from `tests/run-tests.mjs`.
26+
- Removed unreferenced duplicate `assets/theme/v2/js/tools-page-accordions.js`.
27+
- Added display-only Staff Picks content under Trending Games on `index.html`.
28+
- Expanded `Build · Play · Share` guidance in `docs_build/dev/PROJECT_INSTRUCTIONS.md`.
4429
- Created:
45-
- `docs_build/dev/reports/theme_v2_wiring_fontawesome_audit_report.md`
46-
- `docs_build/dev/reports/tools_legacy_capture_runtime_audit_report.md`
47-
- `docs_build/dev/reports/theme_v2_css_structure_normalization_report.md`
48-
- Ran targeted validation for active references, CSS import resolution, tools ordering, moved/deleted files, and Font Awesome status.
49-
- Ran targeted Playwright hover validation for `marketplace/index.html` Toolbox nested menu behavior.
50-
- Ran static validation for changed HTML, JS, CSS, JSON, and Markdown files.
51-
- Ran `npm run check:style-system-guard`.
30+
- `docs_build/dev/reports/migration_cleanup_share_tools_scripts_report.md`
31+
- Ran targeted reference checks for removed deprecated scripts/tests, active Tools index Arcade state, capture runtime references, package scripts, and Build/Play/Share documentation.
32+
- Ran static validation for changed HTML, JS, JSON, and Markdown files.
5233
- Ran `git diff --check`.
53-
- Ran `git status --short -- start_of_day old-tools old_games old_samples`.
5434
- Ran `npm run codex:review-artifacts`.
55-
- Expanded `docs_build/dev/reports/codex_review.diff` with new-file patches for untracked text additions.
5635
- Packaged repo-structured ZIP:
57-
- `tmp/PR_26154_018-020-theme-tools-css-stack_delta.zip`
36+
- `tmp/PR_26154_021-migration-cleanup-share-tools-scripts_delta.zip`
5837

5938
Validation summary:
6039

61-
- PASS initial PR017 closeout state was clean enough to continue.
62-
- PASS active Tools index excludes Arcade and remains alphabetically sorted.
63-
- PASS no active references remain to `src/engine/ui/toolboxaid-header.html`.
64-
- PASS no active references remain to `tools/shared/tooling/CapturePreviewRuntime.js` or `bootCapturePreview`.
65-
- PASS package scripts point to `tests/validation/skip-deprecated-*.mjs`.
66-
- PASS no active references remain to `assets/theme/v2/css/theme/v2`.
67-
- PASS `assets/theme/v2/css/theme/v2/` is removed.
68-
- PASS Theme V2 core CSS imports resolve from `assets/theme/v2/css/`.
69-
- PASS Font Awesome remains under `assets/theme/v2/fonts/fontawesome/` and is classified as unused/stale.
70-
- PASS `marketplace/index.html` Toolbox hover opens only the first-level Toolbox menu, then opens Objects and Worlds separately.
71-
- PASS static validation for changed HTML, JS, CSS, JSON, and Markdown files.
72-
- PASS `npm run check:style-system-guard`.
40+
- PASS `package.json` parses and remains at repo root.
41+
- PASS `tests/run-tests.mjs` parses after removing the deprecated game-template test import.
42+
- PASS `tools/tools-page-accordions.js` parses and active tools links resolve.
43+
- PASS active `tools/index.html`/`tools/tools-page-accordions.js` has no Arcade tile.
44+
- PASS no active references remain to removed deprecated script/test names.
45+
- PASS no active references remain to `CapturePreviewRuntime` or `bootCapturePreview` outside docs/reports/deprecated folders.
46+
- PASS `index.html` Staff Picks markup uses existing classes, has no inline script/style/event handlers, and image assets resolve.
47+
- PASS `Build · Play · Share` guidance includes Build, Play, and Share definitions requested by the PR.
7348
- PASS `git diff --check`.
74-
- PASS no `start_of_day/`, `old-tools/`, `old_games/`, or `old_samples/` changes.
75-
- PASS review artifact generation.
76-
- PASS review diff includes untracked text additions.
77-
- PASS repo-structured delta ZIP packaging.
7849
- SKIPPED `npm run test:workspace-v2`; active Workspace V2 launch/navigation behavior was not changed.
7950
- SKIPPED tests against `old-tools/`, `old_games/`, and `old_samples` per request.
8051
- SKIPPED full samples smoke test per request.

docs_build/dev/commit_comment.txt

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
Normalize Theme V2 CSS wiring and retire obsolete tool legacy references - PR_26154_018-020-theme-tools-css-stack
1+
Clean up migration scripts, deprecated test wiring, and Share guidance - PR_26154_021-migration-cleanup-share-tools-scripts
22

3-
- Remove Arcade from the active Tools index data.
4-
- Delete unreferenced `src/engine/ui/toolboxaid-header.html`.
5-
- Delete obsolete `tools/shared/tooling/CapturePreviewRuntime.js` after active reference audit.
6-
- Move Theme V2 core CSS from `assets/theme/v2/css/theme/v2/` to `assets/theme/v2/css/`.
7-
- Preserve `styles.css` bundle behavior through `site-colors.css` and `site-controls.css`.
8-
- Move deprecated old game/sample test skip shims to `tests/validation/` and update package scripts.
9-
- Fix Marketplace Toolbox nested submenu behavior on the `styles.css` path.
10-
- Report Theme V2 asset wiring, Font Awesome unused/stale status, legacy tools review, and CSS structure normalization.
3+
- Add a display-only Staff Picks section under Trending Games on the root home page.
4+
- Remove deprecated-only old game/sample script commands, generators, audits, and skip wrappers.
5+
- Remove old game template contract test wiring retained only for deprecated coverage.
6+
- Remove the unreferenced duplicate Theme V2 tools accordion script that still listed Arcade.
7+
- Confirm active Tools index excludes Arcade and CapturePreviewRuntime has no active dependency.
8+
- Expand Build · Play · Share documentation for tools, games, and Share surfaces.
Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
# PR_26154_021 Migration Cleanup, Share, Tools, Scripts Report
2+
3+
## Scope
4+
5+
This PR continues the root migration cleanup without modifying `start_of_day/`, `old-tools/`, `old_games/`, or `old_samples/`.
6+
7+
Changed:
8+
9+
- Added a display-only Staff Picks section under Trending Games in `index.html`.
10+
- Expanded `Build · Play · Share` guidance in `docs_build/dev/PROJECT_INSTRUCTIONS.md`.
11+
- Removed deprecated-only old game/sample script commands from root `package.json`.
12+
- Removed deprecated-only old game/sample generator, audit, presentation, and skip-wrapper scripts.
13+
- Removed old game template contract test wiring retained only for deprecated `old_games/` coverage.
14+
- Removed unreferenced duplicate `assets/theme/v2/js/tools-page-accordions.js`.
15+
16+
## Games Index
17+
18+
`index.html` now includes a Staff Picks display-only block under Trending Games.
19+
20+
- Uses existing Theme V2 classes: `section-head`, `trending-grid`, `game-tile`, `game-art`, and `game-meta`.
21+
- Adds no CSS.
22+
- Adds no JavaScript.
23+
- Adds no dynamic behavior.
24+
- Reuses existing game image assets from `games/assets/images/`.
25+
26+
Note: `index.html` already had an uncommitted dual-entry card order change before this PR started. It was preserved and not reverted.
27+
28+
## Tools Cleanup
29+
30+
Active tools surface:
31+
32+
- `tools/index.html` loads `tools/tools-page-accordions.js`.
33+
- Active `tools/tools-page-accordions.js` does not contain an Arcade tile.
34+
- Active tools links in `tools/tools-page-accordions.js` resolve.
35+
36+
Removed:
37+
38+
- `assets/theme/v2/js/tools-page-accordions.js`
39+
40+
Reason:
41+
42+
- It was an unreferenced duplicate tools accordion script.
43+
- It still contained an Arcade entry.
44+
- No active page referenced it.
45+
46+
Ambiguous or active items retained:
47+
48+
- `tools/_templates-v2/`: retained because project instructions define it as the required first-class tool template source.
49+
- `tools/shared/`: retained because active tests, scripts, and Workspace V2 paths still import it; moving it would be a separate shared-dependency cleanup.
50+
- `tools/dev/`: retained because package guard scripts actively reference it.
51+
- `tools/schemas/`: retained because active tool/schema validation still references tool schemas.
52+
- `tools/toolRegistry.js` and `tools/renderToolsIndex.js`: retained because active tests and tool launch support import them.
53+
54+
## Capture Runtime
55+
56+
`tools/shared/tooling/CapturePreviewRuntime.js` no longer exists in the current checkout.
57+
58+
Checks:
59+
60+
- No active references to `CapturePreviewRuntime` remain outside docs/reports/deprecated folders.
61+
- No active references to `bootCapturePreview` remain outside docs/reports/deprecated folders.
62+
63+
Result:
64+
65+
- No delete or move was needed in this PR because the file had already been removed.
66+
67+
## Scripts Cleanup
68+
69+
Removed deprecated-only files:
70+
71+
- `scripts/audit-sample-json-ownership.mjs`
72+
- `scripts/generate-curriculum-validation-artifact.mjs`
73+
- `scripts/generate-runtime-sample-previews.mjs`
74+
- `scripts/generate-sample-manifest.mjs`
75+
- `scripts/generate-samples-index.mjs`
76+
- `scripts/normalize-games-presentation.mjs`
77+
- `scripts/normalize-samples-presentation.mjs`
78+
- `scripts/sync-tool-hints-from-workspace-manager.mjs`
79+
- `scripts/validate-games-template-contract.mjs`
80+
- `scripts/PS/audit-sample-json-js-references.ps1`
81+
- `scripts/PS/audit-sample-json-lockdown.ps1`
82+
- `scripts/PS/audit-samples-only-palette-json.ps1`
83+
- `scripts/PS/validate-sample-json.ps1`
84+
- `tests/tools/GamesTemplateContractEnforcement.test.mjs`
85+
- `tests/validation/skip-deprecated-game-tests.mjs`
86+
- `tests/validation/skip-deprecated-sample-tests.mjs`
87+
88+
Package script cleanup:
89+
90+
- Removed `build:manifest`.
91+
- Removed `build:curriculum-validation-artifact`.
92+
- Removed `sync:tool-hints`.
93+
- Removed `normalize:games-presentation`.
94+
- Removed `check:games-template-contract`.
95+
- Removed deprecated old game/sample test wrapper scripts.
96+
97+
Root `package.json` was kept at repo root.
98+
99+
Retained with reason:
100+
101+
- `scripts/run-targeted-test-lanes.mjs`: active validation router; its old game/sample lane metadata excludes deprecated lanes from active automated validation.
102+
- `scripts/validate-json-contracts.mjs`: general JSON validator with multiple modes; not solely a deprecated old game/sample script.
103+
- `scripts/validate-asset-ownership-strategy.mjs`: retained because it is still imported by active test wiring and validates mixed asset ownership strategy, not just deprecated paths.
104+
105+
## Share Guidance
106+
107+
`docs_build/dev/PROJECT_INSTRUCTIONS.md` now describes:
108+
109+
- Build: tools and creation flow, including asset creation, prototypes, systems, and publishing preparation.
110+
- Play: games and discovery, including playable games, arcade browsing, testing, and saves.
111+
- Share: public game pages, share links, creator profiles, marketplace assets, tutorials/community, ratings, and future publish/export flows.
112+
113+
## Validation
114+
115+
Executed:
116+
117+
- `node --check tests/run-tests.mjs`
118+
- `node --check tools/tools-page-accordions.js`
119+
- `node -e "JSON.parse(require('fs').readFileSync('package.json','utf8')); console.log('PASS package.json parse')"`
120+
- `git diff --check`
121+
- Static `index.html` Staff Picks and image-path validation.
122+
- Targeted reference checks for removed deprecated script/test names.
123+
- Targeted reference checks for active Tools index Arcade state.
124+
- Targeted reference checks for `CapturePreviewRuntime` and `bootCapturePreview`.
125+
- Active tools accordion link resolution.
126+
127+
Results:
128+
129+
- PASS: `package.json` parses.
130+
- PASS: `tests/run-tests.mjs` parses.
131+
- PASS: `tools/tools-page-accordions.js` parses.
132+
- PASS: active tools accordion links resolve.
133+
- PASS: active Tools index has no Arcade tile.
134+
- PASS: removed deprecated script/test names have no active references in `package.json`, `scripts/`, or `tests/`.
135+
- PASS: `CapturePreviewRuntime` and `bootCapturePreview` have no active references outside docs/reports/deprecated folders.
136+
- PASS: `index.html` Staff Picks markup is static and uses existing assets/classes.
137+
- PASS: `git diff --check`.
138+
139+
Skipped:
140+
141+
- `npm run test:workspace-v2`: skipped because active Workspace V2 launch/navigation behavior was not changed.
142+
- Full samples smoke test: skipped per request.
143+
- Tests against `old-tools/`, `old_games/`, and `old_samples`: skipped per request.

index.html

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ <h1>Build. Play. Share.</h1>
2323
<div class="hero-cta"><a class="btn primary" href="tools/index.html">Start Building</a><a class="btn"
2424
href="games/index.html">Explore Games</a></div>
2525
<div class="dual-entry" aria-label="Primary entry points">
26-
<a class="entry-card" href="games/index.html"><span>Play</span><strong>Play Games</strong><small>Browse the
27-
Arcade</small></a>
2826
<a class="entry-card" href="tools/index.html"><span>Build</span><strong>Create Games</strong><small>Open the
2927
Studio</small></a>
28+
<a class="entry-card" href="games/index.html"><span>Play</span><strong>Play Games</strong><small>Browse the
29+
Arcade</small></a>
3030
</div>
3131
</div>
3232
<aside class="hero-art" aria-label="Game Foundry Studio logo artwork">
@@ -67,6 +67,27 @@ <h2>Trending Games</h2>
6767
4.6</em></div>
6868
</article>
6969
</div>
70+
<div class="section-head">
71+
<div>
72+
<div class="kicker">Staff Choice</div>
73+
<h3>Staff Picks</h3>
74+
</div>
75+
<p>Display-only highlights for editor-selected games, creator showcases, and community-ready releases.</p>
76+
</div>
77+
<div class="trending-grid" aria-label="Staff Picks">
78+
<article class="game-tile">
79+
<div class="game-art"><img src="/games/assets/images/game-forgequest.svg" alt="Forge Quest staff pick art"></div>
80+
<div class="game-meta"><strong>Forge Quest</strong><span>Creator challenge</span><em>Staff pick</em></div>
81+
</article>
82+
<article class="game-tile">
83+
<div class="game-art"><img src="/games/assets/images/game-nebula.svg" alt="Nebula Runner staff pick art"></div>
84+
<div class="game-meta"><strong>Nebula Runner</strong><span>Arcade survival</span><em>Staff pick</em></div>
85+
</article>
86+
<article class="game-tile">
87+
<div class="game-art"><img src="/games/assets/images/game-retrobot.svg" alt="RetroBot Rescue staff pick art"></div>
88+
<div class="game-meta"><strong>RetroBot Rescue</strong><span>Pixel platformer</span><em>Staff pick</em></div>
89+
</article>
90+
</div>
7091
</div>
7192
</section>
7293
<section class="section" id="what">

package.json

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,14 @@
1515
"test:lane:integration": "node ./scripts/run-targeted-test-lanes.mjs --lane integration",
1616
"test:lane:engine-src": "node ./scripts/run-targeted-test-lanes.mjs --lane engine-src",
1717
"test:lane:samples": "node ./scripts/run-targeted-test-lanes.mjs --lane samples --include-samples",
18-
"build:manifest": "node ./scripts/generate-sample-manifest.mjs",
19-
"build:curriculum-validation-artifact": "node ./scripts/generate-curriculum-validation-artifact.mjs",
20-
"sync:tool-hints": "node ./scripts/sync-tool-hints-from-workspace-manager.mjs",
21-
"normalize:games-presentation": "node ./scripts/normalize-games-presentation.mjs",
2218
"check:shared-extraction-guard": "node tools/dev/checkSharedExtractionGuard.mjs",
2319
"check:phase24-closeout-guard": "node tools/dev/checkPhase24CloseoutExecutionGuard.mjs",
2420
"check:style-system-guard": "node tools/dev/checkStyleSystemGuard.mjs",
2521
"check:intentional-alias-ledger": "node tools/dev/checkIntentionalAliasLedgerGuard.mjs",
2622
"check:internal-barrel-guard": "node tools/dev/checkInternalBarrelGuard.mjs",
27-
"check:games-template-contract": "node ./tests/validation/skip-deprecated-game-tests.mjs",
2823
"codex:review-artifacts": "node ./scripts/write-codex-review-artifacts.mjs",
2924
"test:workspace-v2": "node ./scripts/run-targeted-test-lanes.mjs --lane workspace-contract",
30-
"test:launch-smoke": "node ./tests/runtime/LaunchSmokeAllEntries.test.mjs",
31-
"test:launch-smoke:games": "node ./tests/validation/skip-deprecated-game-tests.mjs",
32-
"test:workspace-manager:games": "node ./tests/validation/skip-deprecated-game-tests.mjs",
33-
"test:manifest-payload:games": "node ./tests/validation/skip-deprecated-game-tests.mjs",
34-
"test:sample-standalone:data-flow": "node ./tests/validation/skip-deprecated-sample-tests.mjs"
25+
"test:launch-smoke": "node ./tests/runtime/LaunchSmokeAllEntries.test.mjs"
3526
},
3627
"dependencies": {
3728
"ws": "^8.20.0"

0 commit comments

Comments
 (0)