Skip to content

Commit 0a39d43

Browse files
committed
Move page template to root, remove tool template, and continue Theme V2 cleanup - PR_26154_007-theme-v2-template-cleanup
1 parent 6661262 commit 0a39d43

14 files changed

Lines changed: 180 additions & 200 deletions

src/engine/theme/v2/templates/_page_template_v2.html renamed to _page_template_v2.html

File renamed without changes.

docs_build/dev/codex_commands.md

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,30 @@
11
# Codex Commands
22

3-
Task: PR_26154_006-theme-v2-asset-ownership-normalization
3+
Task: PR_26154_007-theme-v2-template-cleanup
44

55
Commands run:
66

77
- `Get-Content .codex/skills/repo-build/SKILL.md`
88
- `Get-Content docs_build/dev/PROJECT_INSTRUCTIONS.md`
99
- `git status --short --untracked-files=all`
10-
- Targeted `Get-Content`, `rg`, `Get-ChildItem`, and `git diff` reads for Theme V2 image ownership, `tool-display-mode.js`, affected pages/templates/tools, and report state.
11-
- Node migration script to copy the engine-owned Theme V2 image tree to `assets/theme/v2/images/`, verify file parity, remove the former source image folder, and remove the temporary nested public image folder.
12-
- Node rewrite script to update active text references to `assets/theme/v2/images/` while excluding protected `start_of_day/`, deprecated sample/game folders, generated review artifacts, and `tmp/`.
13-
- `node --check src/engine/theme/v2/assets/js/tool-display-mode.js`
14-
- Targeted public asset checks for:
15-
- `assets/theme/v2/images/badges/index.png`
16-
- `assets/theme/v2/images/characters/index.png`
17-
- Targeted reference checks for the former engine-owned image folder, the temporary nested public image folder, and the canonical public image root.
10+
- Targeted `Get-Content`, `rg`, and `Get-ChildItem` reads for the Theme V2 templates, template references, and remaining Theme V2 asset surface.
11+
- Node file operation script to move the page template to `/_page_template_v2.html`, remove the retired tool template, and delete the empty template folder.
12+
- Node reference cleanup script for historical report references to the old template folder and retired tool template.
13+
- Root template browser/HTTP validation found the header logo still resolving through the old partial-local image convention; patched `src/engine/theme/v2/assets/partials/header-nav.html` to use the public Theme V2 image root.
14+
- Targeted reference checks for the old template folder, the retired tool template filename, and the root page template filename.
1815
- Static validation for changed HTML, JS, CSS, and Markdown files.
19-
- Local browser validation of `tools/_templates-v2/index.html` with request status capture for both display-mode image requests.
2016
- `git diff --check`
2117
- `npm run codex:review-artifacts`
22-
- Python ZIP packaging for `tmp/PR_26154_006-theme-v2-asset-ownership-normalization_delta.zip`
18+
- Python ZIP packaging for `tmp/PR_26154_007-theme-v2-template-cleanup_delta.zip`
2319

2420
Validation summary:
2521

26-
- PASS `node --check src/engine/theme/v2/assets/js/tool-display-mode.js`.
27-
- PASS public asset checks for `badges/index.png` and `characters/index.png`.
28-
- PASS zero-reference checks for the former engine-owned image folder and temporary nested public image folder, excluding protected/generated paths.
29-
- PASS canonical public image root exists with 111 files.
30-
- PASS local browser validation: `/assets/theme/v2/images/badges/index.png` and `/assets/theme/v2/images/characters/index.png` both returned `200`.
22+
- PASS root page template exists at `/_page_template_v2.html`.
23+
- PASS root page template browser/HTTP check: page, Theme V2 CSS modules, partials, placeholder image, and logo all returned `200`.
24+
- PASS old template folder was removed.
25+
- PASS retired tool template file was removed.
26+
- PASS zero-reference checks for the old template folder and retired tool template filename, excluding protected/generated paths.
3127
- PASS static validation for changed HTML, JS, CSS, and Markdown files.
3228
- PASS `git diff --check`.
33-
- SKIPPED `npm run test:workspace-v2`; image ownership/pathing changed, tool launch/navigation behavior did not.
29+
- SKIPPED `npm run test:workspace-v2`; template location/report cleanup changed, active tool launch/navigation behavior did not.
3430
- SKIPPED old_games, old_samples, and full samples smoke validation per request.

docs_build/dev/commit_comment.txt

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
Theme V2 asset ownership normalization - PR_26154_006-theme-v2-asset-ownership-normalization
1+
Theme V2 template cleanup - PR_26154_007-theme-v2-template-cleanup
22

3-
- Move Theme V2 image content into the public canonical image root at `assets/theme/v2/images/`.
4-
- Remove the former engine-owned image folder and temporary nested public image folder after path rewiring.
5-
- Update `tool-display-mode.js`, templates, public/root pages, tool pages, and tool index scripts to resolve public images from `assets/theme/v2/images/`.
6-
- Keep `src/engine/theme/v2/` in place for remaining CSS, JS, partial, template, and placeholder assets.
7-
- Validate changed static files, targeted references, browser image request statuses, diff whitespace, review artifacts, and repo-structured delta ZIP packaging.
3+
- Move the Theme V2 page template to the repository root as `/_page_template_v2.html`.
4+
- Delete the retired Theme V2 tool template and remove the empty old template folder.
5+
- Normalize historical report references to the old template location and retired tool template.
6+
- Fix the shared header partial logo path so the relocated root page template resolves cleanly.
7+
- Inventory remaining files under `src/engine/theme/v2/`, classify ownership, and recommend next cleanup moves.
8+
- Validate targeted template references, changed static files, diff whitespace, review artifacts, and repo-structured delta ZIP packaging.

docs_build/dev/reports/theme_v2_asset_ownership_normalization_report.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Updated affected public/root pages, tool pages, templates, and scripts so image
2929
Notable runtime/helper updates:
3030

3131
- `src/engine/theme/v2/assets/js/tool-display-mode.js` uses `/assets/theme/v2/images` as its badge and character root.
32-
- `src/engine/theme/v2/templates/_tool_template_v2.html` and `tools/_templates-v2/index.html` use `data-asset-root="assets/theme/v2/images"`.
32+
- `retired Theme V2 tool template` and `tools/_templates-v2/index.html` use `data-asset-root="assets/theme/v2/images"`.
3333
- `tools/tools-page-accordions.js` points generated tool-card and badge images at `../assets/theme/v2/images/...`.
3434

3535
No layout, CSS, ToolDisplayMode behavior, Storage Inspector runtime, or unrelated tool implementation work was changed.
@@ -53,7 +53,7 @@ Remaining `assets/` surface:
5353
Remaining template surface:
5454

5555
- `_page_template_v2.html`
56-
- `_tool_template_v2.html`
56+
- `retired Theme V2 tool template`
5757

5858
The folder was not deleted because these Theme V2 CSS, JS, partial, template, and placeholder files remain active.
5959

docs_build/dev/reports/theme_v2_asset_ssot_inventory.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,13 +206,13 @@ Task: PR_26152_278-theme-v2-asset-ssot-inventory
206206
- `src` -> `../assets/js/gamefoundry-partials.js`
207207
- `src` -> `../assets/js/tool-display-mode.js`
208208

209-
### `src/engine/theme/v2/templates/_page_template_v2.html`
209+
### `/_page_template_v2.html`
210210
- `href` -> `assets/images/favicon.svg`
211211
- `href` -> `assets/css/theme/v2/theme.css`
212212
- `src` -> `assets/js/gamefoundry-partials.js`
213213
- `base` -> `../../../../../GameFoundryStudio/`
214214

215-
### `src/engine/theme/v2/templates/_tool_template_v2.html`
215+
### `retired Theme V2 tool template`
216216
- `href` -> `assets/images/favicon.svg`
217217
- `href` -> `assets/css/theme/v2/theme.css`
218218
- `src` -> `assets/js/gamefoundry-partials.js`

docs_build/dev/reports/theme_v2_reference_rewire.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ Task: PR_26152_280-theme-v2-reference-rewire
6565
- `GameFoundryStudio/tools/publisher.html`
6666
- `GameFoundryStudio/tools/world-vector-studio.html`
6767
- `GameFoundryStudio/tools.html`
68-
- `src/engine/theme/v2/templates/_page_template_v2.html`
69-
- `src/engine/theme/v2/templates/_tool_template_v2.html`
68+
- `/_page_template_v2.html`
69+
- `retired Theme V2 tool template`
7070
- `tools/tools-page-accordions.js`
7171

7272
## Runtime Helper Adjustments
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# PR_26154_007 Theme V2 Remaining Inventory Report
2+
3+
## Summary
4+
5+
Audited the remaining `src/engine/theme/v2/` surface after template cleanup.
6+
7+
The folder still contains active public/root Theme V2 CSS, JS, partials, and one placeholder asset. No files under this folder are classified as runtime engine ownership for this PR; runtime engine styling remains outside this folder under `src/engine/theme/`.
8+
9+
## Remaining Folders
10+
11+
- `src/engine/theme/v2/assets/`
12+
- `src/engine/theme/v2/assets/css/`
13+
- `src/engine/theme/v2/assets/css/theme/v2/`
14+
- `src/engine/theme/v2/assets/css/tools/grouping/`
15+
- `src/engine/theme/v2/assets/js/`
16+
- `src/engine/theme/v2/assets/partials/`
17+
18+
The old templates folder no longer exists.
19+
20+
## File Classification
21+
22+
| File | Classification | Notes |
23+
|---|---|---|
24+
| `assets/css/theme/v2/accordion.css` | public asset ownership | Active approved Theme V2 CSS module. |
25+
| `assets/css/theme/v2/buttons.css` | public asset ownership | Active approved Theme V2 CSS module. |
26+
| `assets/css/theme/v2/colors.css` | public asset ownership | Active approved Theme V2 CSS module. |
27+
| `assets/css/theme/v2/controls.css` | public asset ownership | Active approved Theme V2 CSS module. |
28+
| `assets/css/theme/v2/dialogs.css` | public asset ownership | Active approved Theme V2 CSS module. |
29+
| `assets/css/theme/v2/forms.css` | public asset ownership | Active approved Theme V2 CSS module. |
30+
| `assets/css/theme/v2/layout.css` | public asset ownership | Active approved Theme V2 CSS module. |
31+
| `assets/css/theme/v2/panels.css` | public asset ownership | Active approved Theme V2 CSS module. |
32+
| `assets/css/theme/v2/spacing.css` | public asset ownership | Active approved Theme V2 CSS module. |
33+
| `assets/css/theme/v2/status.css` | public asset ownership | Active approved Theme V2 CSS module. |
34+
| `assets/css/theme/v2/tables.css` | public asset ownership | Active approved Theme V2 CSS module. |
35+
| `assets/css/theme/v2/theme.css` | public asset ownership | Active Theme V2 CSS entrypoint. |
36+
| `assets/css/theme/v2/typography.css` | public asset ownership | Active approved Theme V2 CSS module. |
37+
| `assets/css/base.css` | public asset ownership | Active legacy public CSS wrapper module imported by `styles.css`; recommend consolidation into approved Theme V2 modules. |
38+
| `assets/css/colors.css` | public asset ownership | Active legacy public color token module imported by `styles.css`; overlaps newer Theme V2 color ownership. |
39+
| `assets/css/controls.css` | public asset ownership | Active legacy public controls module imported by `styles.css`; recommend consolidation into approved Theme V2 controls/forms modules. |
40+
| `assets/css/gamefoundrystudio.css` | public asset ownership | Active public component/pattern module imported by `styles.css`; outside approved module path. |
41+
| `assets/css/pages.css` | public asset ownership | Active public page layout module imported by `styles.css`; recommend consolidation or explicit public ownership decision. |
42+
| `assets/css/styles.css` | public asset ownership | Active public CSS aggregator consumed by pages/tools. |
43+
| `assets/css/tokens.css` | public asset ownership | Active legacy public token module imported by `styles.css`; overlaps newer Theme V2 token/module ownership. |
44+
| `assets/css/tools.css` | public asset ownership | Active public tool-shell CSS module imported by `styles.css`; recommend review against shared runtime shell boundaries before moving. |
45+
| `assets/css/tools/grouping/ai-learning.css` | public asset ownership | Active public tool grouping color module imported by `styles.css`. |
46+
| `assets/css/tools/grouping/build-create.css` | public asset ownership | Active public tool grouping color module imported by `styles.css`. |
47+
| `assets/css/tools/grouping/community-marketplace.css` | public asset ownership | Active public tool grouping color module imported by `styles.css`. |
48+
| `assets/css/tools/grouping/content-assets.css` | public asset ownership | Active public tool grouping color module imported by `styles.css`. |
49+
| `assets/css/tools/grouping/development-system.css` | public asset ownership | Active public tool grouping color module imported by `styles.css`. |
50+
| `assets/css/tools/grouping/media-audio.css` | public asset ownership | Active public tool grouping color module imported by `styles.css`. |
51+
| `assets/css/tools/grouping/platform-cloud.css` | public asset ownership | Active public tool grouping color module imported by `styles.css`. |
52+
| `assets/css/tools/grouping/play.css` | public asset ownership | Active public tool grouping color module imported by `styles.css`. |
53+
| `assets/js/account-controls.js` | public asset ownership | Active public admin controls page helper. |
54+
| `assets/js/gamefoundry-partials.js` | public asset ownership | Active public header/footer partial loader and route mapper. |
55+
| `assets/js/tool-display-mode.js` | public asset ownership | Active public/root tool display-mode helper. |
56+
| `assets/js/tools-page-accordions.js` | public asset ownership | Active public tools index accordion helper. |
57+
| `assets/partials/footer.html` | public asset ownership | Active public footer partial loaded by `gamefoundry-partials.js`. |
58+
| `assets/partials/header-nav.html` | public asset ownership | Active public header/nav partial loaded by `gamefoundry-partials.js`; logo image now resolves from the public Theme V2 image root. |
59+
| `assets/image-missing.svg` | public asset ownership | Active placeholder asset used by the root page template and tool template baseline. Recommend moving to the public Theme V2 image root in a later asset cleanup PR. |
60+
| `assets/partials/page-shell.html` | obsolete/deprecated | Shell stub exists, but no active partial loader mapping or page reference was found. |
61+
| `assets/partials/tool-shell.html` | obsolete/deprecated | Shell stub exists, but no active partial loader mapping or page reference was found. |
62+
63+
## Runtime Engine Ownership
64+
65+
No remaining file under `src/engine/theme/v2/` was classified as runtime engine ownership in this PR.
66+
67+
Runtime engine styling remains under `src/engine/theme/`, including the shared engine/runtime shell styling called out by project governance. This PR did not move or modify that runtime engine surface.
68+
69+
## Recommended Next Moves
70+
71+
1. Decide whether public Theme V2 CSS/JS/partials should remain served from `src/engine/theme/v2/assets/` or move to a public asset root in a dedicated ownership PR.
72+
2. If public asset ownership moves, migrate active public files as a unit: CSS entrypoints/modules, public JS helpers, header/footer partials, and `image-missing.svg`.
73+
3. Consolidate active legacy wrapper CSS modules into the approved Theme V2 module set instead of keeping parallel top-level CSS ownership indefinitely.
74+
4. Remove or explicitly revive the unused page/tool shell partial stubs in a separate PR after confirming no planned consumer needs them.
75+
5. Keep runtime engine shell styling under `src/engine/theme/` until a shared shell contract is approved.
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# PR_26154_007 Theme V2 Template Cleanup Report
2+
3+
## Summary
4+
5+
Completed the focused Theme V2 template cleanup.
6+
7+
- Moved the Theme V2 page template to the repository root as `/_page_template_v2.html`.
8+
- Deleted the retired Theme V2 tool template.
9+
- Removed the old Theme V2 templates folder after it became empty.
10+
- Updated historical report references that still pointed to the old template folder or retired tool template.
11+
- Updated the shared header partial logo path to the canonical public Theme V2 image root so the relocated root page template loads without a logo 404.
12+
- Did not move Theme V2 runtime/public helper code.
13+
- Did not modify `start_of_day/`.
14+
- Did not expand into tool implementation work.
15+
16+
## Template Path Changes
17+
18+
Moved:
19+
20+
- Theme V2 page template from the old template folder -> `/_page_template_v2.html`
21+
22+
Deleted:
23+
24+
- retired Theme V2 tool template
25+
- empty Theme V2 templates folder
26+
27+
## Reference Audit
28+
29+
Audited references for:
30+
31+
- the old Theme V2 templates folder
32+
- the root page template filename
33+
- the retired tool template filename
34+
35+
Results:
36+
37+
- No references remain to the old Theme V2 templates folder, excluding generated review artifacts and `tmp/`.
38+
- No references remain to the retired tool template filename, excluding generated review artifacts and `tmp/`.
39+
- The page template resolves at the repository root as `/_page_template_v2.html`.
40+
- Historical report references were normalized to point to the root page template or to describe the retired tool template without preserving stale paths.
41+
42+
Files with historical reference cleanup:
43+
44+
- `docs_build/dev/reports/theme_v2_asset_ownership_normalization_report.md`
45+
- `docs_build/dev/reports/theme_v2_asset_ssot_inventory.md`
46+
- `docs_build/dev/reports/theme_v2_reference_rewire.md`
47+
- `docs_build/dev/reports/theme_v2_template_correction.md`
48+
- `docs_build/dev/reports/theme_v2_template_dependency_map.md`
49+
- `docs_build/dev/reports/theme_v2_template_foundation.md`
50+
- `docs_build/dev/reports/tool_template_display_mode_layout.md`
51+
52+
## Validation
53+
54+
Passed:
55+
56+
- targeted template-path reference checks
57+
- root page template path existence check
58+
- root page template browser/HTTP check with page, CSS modules, partials, placeholder image, and logo all returning `200`
59+
- changed-file static validation for HTML, JS, CSS, and Markdown files
60+
- `git diff --check`
61+
- review artifact generation
62+
- repo-structured delta ZIP packaging
63+
64+
Skipped by scope:
65+
66+
- `npm run test:workspace-v2`, unless active tool launch/navigation behavior changes
67+
- tests against `old_games` or `old_samples`
68+
- full samples smoke test

docs_build/dev/reports/theme_v2_template_correction.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
## Scope
44

5-
- Corrected `src/engine/theme/v2/templates/_tool_template_v2.html`.
6-
- Corrected `src/engine/theme/v2/templates/_page_template_v2.html`.
5+
- Corrected `retired Theme V2 tool template`.
6+
- Corrected `/_page_template_v2.html`.
77
- Removed standalone/demo-looking header and footer markup from both templates.
88
- Rewired both templates to the shared reusable page chrome pattern.
99
- Kept Storage Inspector, samples, and all tools untouched.

docs_build/dev/reports/theme_v2_template_dependency_map.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
| Dependency | Used By | Purpose | Status |
66
|---|---|---|---|
7-
| `GameFoundryStudio/assets/partials/header-nav.html` | `_tool_template_v2.html`, `_page_template_v2.html` | Shared Theme V2 header and navigation chrome | Existing |
8-
| `GameFoundryStudio/assets/partials/footer.html` | `_tool_template_v2.html`, `_page_template_v2.html` | Shared Theme V2 footer chrome | Existing |
9-
| `GameFoundryStudio/assets/js/gamefoundry-partials.js` | `_tool_template_v2.html`, `_page_template_v2.html` | Existing shared partial loader for header/footer | Existing |
7+
| `GameFoundryStudio/assets/partials/header-nav.html` | `retired Theme V2 tool template`, `_page_template_v2.html` | Shared Theme V2 header and navigation chrome | Existing |
8+
| `GameFoundryStudio/assets/partials/footer.html` | `retired Theme V2 tool template`, `_page_template_v2.html` | Shared Theme V2 footer chrome | Existing |
9+
| `GameFoundryStudio/assets/js/gamefoundry-partials.js` | `retired Theme V2 tool template`, `_page_template_v2.html` | Existing shared partial loader for header/footer | Existing |
1010

1111
## Theme V2 Style Dependencies
1212

0 commit comments

Comments
 (0)