Skip to content

Commit 4c48713

Browse files
committed
Finalize legacy theme teardown, clean stale asset references, and inventory root structure - PR_26154_011-013-root-cleanup-stack
1 parent 57239c7 commit 4c48713

6 files changed

Lines changed: 313 additions & 46 deletions

File tree

docs_build/dev/codex_commands.md

Lines changed: 41 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,59 @@
11
# Codex Commands
22

3-
Task: `PR_26154_010-svg-favicon-normalization`
3+
Tasks:
4+
5+
- `PR_26154_011-theme-v1-final-teardown`
6+
- `PR_26154_012-root-asset-reference-cleanup`
7+
- `PR_26154_013-root-structure-inventory-closeout`
48

59
Commands run:
610

711
- `Get-Content .codex/skills/repo-build/SKILL.md`
812
- `Get-Content docs_build/dev/PROJECT_INSTRUCTIONS.md`
913
- `git status --short --untracked-files=all`
10-
- Targeted `rg`, `Get-ChildItem`, and `Get-Content` inventory for:
11-
- `favicon.svg`
12-
- `favicon.ico`
13-
- active HTML favicon links
14-
- manifest files
15-
- Theme V2 favicon references
16-
- root-level branding asset candidates
17-
- Node move/rewrite script for:
18-
- `assets/theme/v2/images/favicon.svg` -> `favicon.svg`
19-
- removing `favicon.ico`
20-
- active HTML favicon links -> `/favicon.svg`
21-
- Targeted patch for:
22-
- `scripts/PS/deploy/WebsiteRepoDeploymentCommon.ps1`
23-
- `favicon.ico` -> `favicon.svg`
24-
- Targeted reference checks for:
25-
- `favicon.svg`
14+
- Targeted `Get-ChildItem`, `Get-Content`, and `rg` inventory for:
15+
- `src/engine/theme/`
16+
- `assets/theme/v1/`
17+
- active public/root pages
18+
- active tool surfaces under `tools/`
19+
- `games/`
20+
- `docs/`
21+
- stale path strings
22+
- current root ownership folders
23+
- Updated `src/engine/theme/README.md` to document runtime ownership and the current direct helper import path.
24+
- Targeted stale-reference checks for:
25+
- `GameFoundryStudio/`
26+
- `src/engine/theme/index.js`
27+
- `assets/theme/v2/assets/`
28+
- `assets/theme/v2/images/games/`
2629
- `favicon.ico`
27-
- `assets/theme/v2/images/favicon.svg`
28-
- active HTML icon links
29-
- manifest references
30-
- Node static/path validation for changed HTML, JS, JSON, and Markdown paths.
31-
- PowerShell parser validation for the changed deployment helper.
32-
- Node HTTP validation for `/favicon.svg`.
30+
- Root structure inventory counts for:
31+
- `assets/`
32+
- `tools/`
33+
- `old-tools/`
34+
- `games/`
35+
- `old_games/`
36+
- `old_samples/`
37+
- `docs/`
38+
- `docs_build/`
39+
- `schemas/`
40+
- `src/`
41+
- Node targeted static validation for changed HTML, JS, CSS, JSON, and Markdown paths.
3342
- `git status --short -- start_of_day old_games old_samples`
3443
- `git diff --check`
3544
- `npm run codex:review-artifacts`
36-
- Python ZIP packaging for `tmp/PR_26154_010-svg-favicon-normalization_delta.zip`
45+
- Python ZIP packaging for `tmp/PR_26154_011-013-root-structure-closeout_delta.zip`
3746

3847
Validation summary:
3948

40-
- PASS root `/favicon.svg` exists and resolves.
41-
- PASS root `/favicon.ico` no longer exists.
42-
- PASS old Theme V2 favicon source path removed.
43-
- PASS active HTML favicon references use `/favicon.svg`.
44-
- PASS no active references remain to `favicon.ico`.
45-
- PASS no active references remain to `assets/theme/v2/images/favicon.svg`.
46-
- PASS no active manifest icon references were found.
47-
- PASS changed PowerShell deployment helper parses successfully.
48-
- PASS `old_games/`, `old_samples/`, and `start_of_day/` unchanged.
49+
- PASS no confirmed V1 legacy/static assets remain under `src/engine/theme/`.
50+
- PASS remaining `src/engine/theme/` files are runtime-owned or runtime documentation.
51+
- PASS `src/engine/theme/README.md` no longer references the removed `index.js` barrel.
52+
- PASS no active public/root page, active tool page, game page, public doc, asset, script, or source helper references remain to stale public asset paths.
53+
- PASS remaining `src/engine/theme/` references are intentional runtime/guard/test references or historical/generated records.
54+
- PASS root structure ownership inventory completed.
55+
- PASS `schemas/` absence confirmed; active schemas are under `tools/schemas/`.
56+
- PASS `start_of_day/`, `old_games/`, and `old_samples/` unchanged.
4957
- PASS `git diff --check`.
5058
- PASS `npm run codex:review-artifacts`.
5159
- SKIPPED `npm run test:workspace-v2`; active Workspace V2 launch/navigation behavior was not changed.

docs_build/dev/commit_comment.txt

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1-
SVG favicon normalization - PR_26154_010-svg-favicon-normalization
1+
Theme V1 final teardown, root asset reference cleanup, and structure inventory closeout
22

3-
- Move the canonical site icon from `assets/theme/v2/images/favicon.svg` to root `/favicon.svg`.
4-
- Remove obsolete root `/favicon.ico`.
5-
- Update active HTML favicon links and the website deployment include list to use `/favicon.svg`.
6-
- Report historical favicon references and additional root-level branding candidates without moving unrelated assets.
7-
- Validate targeted references, root HTTP loading, changed static files, diff whitespace, review artifacts, and repo-structured delta ZIP packaging.
3+
Stack:
4+
- PR_26154_011-theme-v1-final-teardown
5+
- PR_26154_012-root-asset-reference-cleanup
6+
- PR_26154_013-root-structure-inventory-closeout
7+
8+
- Confirm no further V1 static/theme assets can safely move from `src/engine/theme/` because the remaining files are runtime-owned.
9+
- Update `src/engine/theme/README.md` to remove a stale removed-barrel import and document current runtime ownership.
10+
- Audit active root/page/tool/game/doc references for stale path strings and report remaining intentional runtime, generated, or historical references.
11+
- Create root structure ownership inventory and cleanup candidate report without moving unrelated files.
12+
- Validate targeted references, changed static files, diff whitespace, review artifacts, and repo-structured delta ZIP packaging.
Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
# Root Asset Reference Cleanup
2+
3+
Task: `PR_26154_012-root-asset-reference-cleanup`
4+
5+
## Summary
6+
7+
- Audited active public/root pages, active tools, games, public docs, assets, scripts, and source helpers for stale asset/root paths.
8+
- Fixed one stale runtime-theme documentation reference in `src/engine/theme/README.md`.
9+
- Did not modify `old_games/` or `old_samples/`.
10+
- Did not rewrite historical `docs_build/dev/reports/**` content.
11+
12+
## Fixed References
13+
14+
Updated:
15+
16+
- `src/engine/theme/README.md`
17+
18+
Change:
19+
20+
- Removed the stale `/src/engine/theme/index.js` import example.
21+
- Replaced it with `/src/engine/theme/toolboxaid-header.js`, which exists and exports the documented runtime helper.
22+
23+
## Active Surface Audit
24+
25+
Scanned active surfaces for:
26+
27+
- `GameFoundryStudio/`
28+
- `src/engine/theme/`
29+
- `assets/theme/v2/assets/`
30+
- `assets/theme/v2/images/games/`
31+
- `favicon.ico`
32+
33+
Included active roots:
34+
35+
- `index.html`
36+
- `_page_template_v2.html`
37+
- `account/`
38+
- `admin/`
39+
- `community/`
40+
- `company/`
41+
- `docs/`
42+
- `games/`
43+
- `learn/`
44+
- `legal/`
45+
- `marketplace/`
46+
- `tools/`
47+
- `assets/`
48+
- `scripts/`
49+
- `src/`
50+
- selected active tests/guards for reference classification
51+
52+
Excluded:
53+
54+
- `start_of_day/`
55+
- `old_games/`
56+
- `old_samples/`
57+
- `old-tools/`
58+
- `node_modules/`
59+
- `tmp/`
60+
- `tests/results/`
61+
62+
## Results
63+
64+
No active public/root page, active tool page, game page, or public doc references remain to:
65+
66+
- `GameFoundryStudio/`
67+
- `assets/theme/v2/assets/`
68+
- `assets/theme/v2/images/games/`
69+
- `favicon.ico`
70+
71+
Remaining `src/engine/theme/` references are intentional runtime/guard/test references, not stale public asset references:
72+
73+
- `tools/shared/tooling/CapturePreviewRuntime.js` imports runtime theme helpers.
74+
- `tools/dev/checkStyleSystemGuard.mjs` references runtime theme CSS as its guard baseline.
75+
- `tools/dev/checkSharedExtractionGuard.baseline.json` records a runtime helper baseline.
76+
- `tests/theme.test.js` imports runtime theme helpers.
77+
- Workspace/tool smoke tests assert legacy/runtime shell references where those fixtures are still expected.
78+
- `assets/theme/v1/README.md` documents that Theme V1 Font Awesome is consumed by `src/engine/theme/main.css`.
79+
- `src/engine/theme/README.md` documents runtime ownership.
80+
81+
Remaining generated or historical references not fixed:
82+
83+
- `tests/validation/samples.shared.boundaries.report.json` still contains `/src/engine/theme/index.js`.
84+
85+
Reason:
86+
87+
- It is a generated validation report artifact, not an active public/root page, active tool, game, or public doc reference.
88+
- Updating generated evidence by hand would be outside this cleanup PR.
89+
90+
Historical docs under `docs_build/**` still contain older `GameFoundryStudio/`, favicon, and Theme V2 migration references.
91+
92+
Reason:
93+
94+
- They are historical PR/audit records.
95+
- The active runtime/page/tool/doc surfaces no longer depend on those paths.
96+
97+
## Validation Notes
98+
99+
- PASS: zero active references to `GameFoundryStudio/` in public/root pages, active tool pages, game pages, public docs, assets, scripts, and source helpers.
100+
- PASS: zero active references to `assets/theme/v2/assets/`.
101+
- PASS: zero active references to `assets/theme/v2/images/games/`.
102+
- PASS: zero active references to `favicon.ico`.
103+
- PASS: the only fixed stale `src/engine/theme/index.js` source-doc reference now points to the existing runtime helper.
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# Root Structure Inventory Closeout
2+
3+
Task: `PR_26154_013-root-structure-inventory-closeout`
4+
5+
## Summary
6+
7+
Created a current root ownership inventory without moving files.
8+
9+
No `start_of_day/` folders were modified.
10+
11+
## Current Ownership
12+
13+
| Path | Status | Current Ownership |
14+
| --- | --- | --- |
15+
| `assets/` | active | Public/root static asset ownership. Contains `assets/theme/v1/` legacy static assets and `assets/theme/v2/` public Theme V2 CSS, JS, partials, and imagery. |
16+
| `tools/` | active | Active public tool pages plus active tool support surfaces, including `tools/shared/`, `tools/dev/`, and `tools/schemas/`. |
17+
| `old-tools/` | deprecated | Deprecated legacy tool references. Kept for reference/playable legacy behavior where applicable; not an active future-state tool surface. |
18+
| `games/` | active | Current public games surface, game-type pages, arcade entry, and `games/assets/images/`. |
19+
| `old_games/` | deprecated | Deprecated playable reference games. Kept playable, but excluded from active validation. |
20+
| `old_samples/` | deprecated | Deprecated reference samples. Excluded from active validation. |
21+
| `docs/` | active public docs | User-facing documentation only: `index.html`, `faq.html`, `reference.html`, `support.html`, and `README.md`. |
22+
| `docs_build/` | development docs | Development, build, PR, governance, workflow, audit, report, release, security, and archived documentation. |
23+
| `schemas/` | absent | No root `schemas/` folder currently exists. Active schema ownership is under `tools/schemas/`; historical schema docs live under `docs_build/schemas/`. |
24+
| `src/` | active source | Engine, shared, advanced, assets, and tool source/runtime code. `src/engine/theme/` remains runtime-owned per project instructions. |
25+
26+
## Root Folder Counts
27+
28+
| Path | Files | Directories |
29+
| --- | ---: | ---: |
30+
| `assets/` | 150 | 19 |
31+
| `tools/` | 201 | 48 |
32+
| `old-tools/` | 356 | 123 |
33+
| `games/` | 12 | 9 |
34+
| `old_games/` | 311 | 132 |
35+
| `old_samples/` | 1580 | 858 |
36+
| `docs/` | 5 | 0 |
37+
| `docs_build/` | 4478 | 316 |
38+
| `schemas/` | missing | missing |
39+
| `src/` | 464 | 103 |
40+
41+
## Observations
42+
43+
- Root `favicon.svg` is the canonical browser favicon.
44+
- Public Theme V2 assets are under `assets/theme/v2/`.
45+
- Legacy static Theme V1 assets are under `assets/theme/v1/`.
46+
- Runtime engine shell styling remains under `src/engine/theme/`.
47+
- Current games imagery lives under `games/assets/images/`.
48+
- Active schema files live under `tools/schemas/`, not root `schemas/`.
49+
50+
## Remaining Cleanup Candidates
51+
52+
No files were moved for these candidates in this PR.
53+
54+
- Review whether `tools/_templates-v2/` is still an active template surface or should be deprecated after a future template replacement.
55+
- Review whether `old-tools/codex/` and `old-tools/common/` are still needed as deprecated references.
56+
- Regenerate or retire stale generated validation artifacts that reference removed paths, such as `tests/validation/samples.shared.boundaries.report.json`.
57+
- Decide whether root-level branding assets should move out of `assets/theme/v2/images/` in a future root-branding PR.
58+
- Decide whether root `schemas/` should remain absent permanently or receive an explicit redirect/documentation marker pointing to `tools/schemas/`.
59+
- Continue reducing historical path noise in `docs_build/` only if a future archival cleanup PR explicitly targets historical docs.
60+
61+
## Validation Notes
62+
63+
- PASS: required ownership paths were inventoried.
64+
- PASS: `schemas/` absence was confirmed.
65+
- PASS: no root structure moves were performed in this closeout PR.
66+
- PASS: `start_of_day/`, `old_games/`, and `old_samples/` were not modified.
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# Theme V1 Final Teardown
2+
3+
Task: `PR_26154_011-theme-v1-final-teardown`
4+
5+
## Summary
6+
7+
- Audited `src/engine/theme/` after the earlier Theme V1 static asset move.
8+
- Moved no additional files.
9+
- Confirmed the remaining files are active engine/runtime shell styling, runtime helpers, or runtime header markup.
10+
- Updated `src/engine/theme/README.md` to remove a stale `index.js` import example and document current runtime ownership.
11+
12+
## Assets Already Under Theme V1
13+
14+
The confirmed static legacy assets are already under `assets/theme/v1/`:
15+
16+
- `assets/theme/v1/fontawesome/css/font-awesome.min.css`
17+
- `assets/theme/v1/fontawesome/fonts/fontawesome-webfont.ttf`
18+
- `assets/theme/v1/fontawesome/fonts/fontawesome-webfont.woff`
19+
- `assets/theme/v1/fontawesome/fonts/fontawesome-webfont.woff2`
20+
- `assets/theme/v1/images/toolboxaid-header.png`
21+
22+
## Remaining `src/engine/theme/` Inventory
23+
24+
Runtime CSS ownership:
25+
26+
- `src/engine/theme/accordion.css`
27+
- `src/engine/theme/games.css`
28+
- `src/engine/theme/header.css`
29+
- `src/engine/theme/layout.css`
30+
- `src/engine/theme/main.css`
31+
- `src/engine/theme/nav.css`
32+
- `src/engine/theme/pages.css`
33+
- `src/engine/theme/samples.css`
34+
- `src/engine/theme/tokens.css`
35+
- `src/engine/theme/tool-shell.css`
36+
- `src/engine/theme/toolboxaid-header.css`
37+
- `src/engine/theme/tools.css`
38+
- `src/engine/theme/accordionV2/accordionV2.css`
39+
40+
Runtime JS ownership:
41+
42+
- `src/engine/theme/Theme.js`
43+
- `src/engine/theme/ThemeTokens.js`
44+
- `src/engine/theme/mount-shared-header.js`
45+
- `src/engine/theme/toolboxaid-header.js`
46+
- `src/engine/theme/accordionV2/accordionV2.js`
47+
48+
Runtime markup/documentation:
49+
50+
- `src/engine/theme/toolboxaid-header.html`
51+
- `src/engine/theme/README.md`
52+
53+
## Why These Files Remain
54+
55+
`docs_build/dev/PROJECT_INSTRUCTIONS.md` defines `src/engine/theme` as the engine/runtime first-class tool shell styling surface.
56+
57+
The remaining files are not confirmed public/static Theme V1 assets. They are runtime shell modules, runtime helper modules, or runtime-owned header assets. Moving them in this PR would cross the requested boundary:
58+
59+
- Do not move active engine runtime code.
60+
- Do not deprecate `src/engine/theme` at this time.
61+
- Do not expand into unrelated theme cleanup.
62+
63+
## Reference Notes
64+
65+
Expected active/runtime references remain:
66+
67+
- `tools/shared/tooling/CapturePreviewRuntime.js` imports `Theme.js` and `ThemeTokens.js`.
68+
- `tools/dev/checkStyleSystemGuard.mjs` references runtime CSS files as its guard baseline.
69+
- runtime/test files still reference `src/engine/theme` as an engine/runtime shell surface.
70+
71+
No additional `src/engine/theme` files were deleted because the folder is not empty and remains runtime-owned.
72+
73+
## Validation Notes
74+
75+
- PASS: no `src/engine/theme/fontawesome` folder remains.
76+
- PASS: no `src/engine/theme/toolboxaid-header.png` file remains.
77+
- PASS: static legacy Theme V1 assets resolve under `assets/theme/v1/`.
78+
- PASS: `src/engine/theme/README.md` now references the existing `toolboxaid-header.js` helper instead of the removed `index.js` barrel.

src/engine/theme/README.md

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,23 @@
1-
# Shared Toolbox Aid Header
1+
# Engine Runtime Theme
22

3-
This folder now contains the raw shared header source plus the importable module.
3+
`src/engine/theme/` owns engine/runtime first-class tool shell styling and shared runtime header helpers.
44

55
## Files
6-
- `toolboxaid-header.html` → raw shared header markup
7-
- `toolboxaid-header.css` → shared styling
8-
- `toolboxaid-header.js` → importable module that exports the HTML and mount helpers
9-
- `index.js` → re-export entry
6+
7+
- `main.css` imports the runtime theme CSS modules.
8+
- `toolboxaid-header.html` contains the raw shared runtime header markup.
9+
- `toolboxaid-header.css` imports runtime header/nav styling.
10+
- `toolboxaid-header.js` exports the runtime header HTML and mount helpers.
11+
- `mount-shared-header.js` mounts the runtime header and related runtime page enhancements.
12+
- `Theme.js` and `ThemeTokens.js` provide runtime theme helpers used by tooling.
13+
- `accordionV2/` contains the runtime accordion component CSS and JS.
14+
15+
Static legacy assets consumed by this runtime surface now live under `assets/theme/v1/`.
1016

1117
## Import
18+
1219
```js
13-
import { mountToolboxAidHeader } from '/src/engine/theme/index.js';
20+
import { mountToolboxAidHeader } from '/src/engine/theme/toolboxaid-header.js';
1421

1522
window.addEventListener('DOMContentLoaded', () => {
1623
mountToolboxAidHeader(document.body);

0 commit comments

Comments
 (0)