Skip to content

Commit 463ed5c

Browse files
committed
TOOLS: clean tools/index surface; keep Sprite Editor first-class; hide legacy; move/delete non-tool Advanced Systems & Extensions entries
1 parent 6da7b5d commit 463ed5c

7 files changed

Lines changed: 107 additions & 358 deletions

File tree

docs/dev/CODEX_COMMANDS.md

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,26 @@ MODEL: GPT-5.4
22
REASONING: high
33

44
COMMAND:
5-
Create BUILD_PR_TOOL_REGISTRY_VALIDATOR_AND_SPRITE_FIRST_CLASS as a docs-aligned implementation PR.
5+
Create BUILD_PR_TOOLS_INDEX_SURFACE_CLEANUP as a docs-first, surgical surface cleanup PR for HTML-JavaScript-Gaming.
66

7-
REQUIREMENTS:
8-
1. Keep `tools/` first-class and registry-driven.
9-
2. Make `Sprite Editor` first-class and active in `tools/toolRegistry.js`.
10-
3. Keep `SpriteEditor_old_keep` preserved but excluded from active tool rendering.
11-
4. Update all active header/tool-surface rendering to use `entry.active === true`.
12-
5. Add a registry validator script that compares registry entries to filesystem directories.
13-
6. Fail validation on missing folders, missing registry entries, duplicate ids/names/paths, inactive `Sprite Editor`, or active legacy `SpriteEditor_old_keep`.
14-
7. Add a validation report output under `docs/dev/reports/` or equivalent repo-appropriate dev report location.
7+
GOAL:
8+
Make `tools/index.html` show only true first-class launchable tools. Keep `Sprite Editor` first-class and visible. Keep `SpriteEditor_old_keep` legacy and hidden. Remove `Advanced Systems & Extensions` from the tools landing page unless each item in that section is verified to be an actual active launchable tool under `tools/`.
9+
10+
TARGET FILES TO AUDIT:
11+
- tools/index.html
12+
- tools/toolRegistry.js
13+
- tools/renderToolsIndex.js
14+
- any config/data feeding the tools page
15+
16+
RULES:
17+
1. `tools/index.html` is a user-facing tool launcher, not a platform/dev page.
18+
2. Only render entries that are true first-class tools.
19+
3. Keep `Sprite Editor` active and visible.
20+
4. Keep `SpriteEditor_old_keep` hidden from active UI.
21+
5. If `Advanced Systems & Extensions` entries are platform/dev/internal, move or delete them.
22+
6. If they are duplicate/placeholder/dead, delete them.
23+
7. Do not expand scope beyond this cleanup.
24+
8. Preserve engine theme usage.
1525

1626
EXPECTED ACTIVE TOOLS:
1727
- Vector Map Editor
@@ -20,8 +30,11 @@ EXPECTED ACTIVE TOOLS:
2030
- Parallax Scene Studio
2131
- Sprite Editor
2232

23-
EXPECTED LEGACY TOOL:
24-
- SpriteEditor_old_keep
33+
EXPECTED RESULT:
34+
- no misleading `Advanced Systems & Extensions` on main tools page unless truly valid
35+
- no legacy tool leakage
36+
- registry and rendered landing page aligned
37+
- no broken links
2538

2639
OUTPUT:
27-
<project folder>/tmp/BUILD_PR_TOOL_REGISTRY_VALIDATOR_AND_SPRITE_FIRST_CLASS.zip
40+
<project folder>/tmp/BUILD_PR_TOOLS_INDEX_SURFACE_CLEANUP.zip

docs/dev/COMMIT_COMMENT.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Restore Sprite Editor as a first-class active tool, keep SpriteEditor_old_keep preserved but hidden, and add a filesystem-aware tool registry validator with report output.
1+
TOOLS: clean tools/index launcher surface; keep Sprite Editor first-class; hide legacy; remove non-tool sections
Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
CHANGE SUMMARY
1+
BUILD_PR_TOOLS_INDEX_SURFACE_CLEANUP
22

3-
- Makes Sprite Editor first-class on the registry-driven tools surface
4-
- Preserves SpriteEditor_old_keep as legacy and non-rendered
5-
- Adds registry validator requirements to prevent registry/filesystem drift
6-
- Tightens rendering rules so only active registry entries appear in the header and tool landing surface
3+
Summary:
4+
- defines a strict rule for what may appear on tools/index.html
5+
- keeps Sprite Editor first-class and visible
6+
- keeps SpriteEditor_old_keep legacy and hidden
7+
- removes, relocates, or deletes Advanced Systems & Extensions items unless they are true launchable tools
8+
- keeps the cleanup surgical and surface-focused

docs/dev/reports/file_tree.txt

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
docs/
2-
pr/
3-
BUILD_PR_TOOL_REGISTRY_VALIDATOR_AND_SPRITE_FIRST_CLASS.md
4-
dev/
5-
codex_commands.md
6-
commit_comment.txt
7-
reports/
8-
change_summary.txt
9-
validation_checklist.txt
10-
file_tree.txt
1+
HTML-JavaScript-Gaming/
2+
docs/
3+
pr/
4+
BUILD_PR_TOOLS_INDEX_SURFACE_CLEANUP.md
5+
dev/
6+
codex_commands.md
7+
commit_comment.txt
8+
reports/
9+
change_summary.txt
10+
validation_checklist.txt
11+
file_tree.txt
Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
1-
VALIDATION CHECKLIST
2-
3-
[ ] Sprite Editor folder exists under tools/
4-
[ ] Sprite Editor registry entry exists
5-
[ ] Sprite Editor is active=true
6-
[ ] Sprite Editor is legacy=false
7-
[ ] Sprite Editor appears in tools/index.html header
8-
[ ] SpriteEditor_old_keep does not appear in tools/index.html header
9-
[ ] Active render path is derived from registry active entries only
10-
[ ] Validator detects missing registry entries
11-
[ ] Validator detects missing folders
12-
[ ] Validator detects duplicate ids, names, and paths
13-
[ ] Validator fails if Sprite Editor is inactive
14-
[ ] Validator fails if SpriteEditor_old_keep is active
1+
[ ] tools/index.html audited for Advanced Systems & Extensions section
2+
[ ] tools/toolRegistry.js audited for Sprite Editor active entry
3+
[ ] tools/toolRegistry.js audited for SpriteEditor_old_keep legacy handling
4+
[ ] render logic verified to use active first-class tools only
5+
[ ] Sprite Editor visible on tools landing page
6+
[ ] SpriteEditor_old_keep hidden from tools landing page
7+
[ ] non-tool/internal/dev entries moved or deleted
8+
[ ] no dead links from tools landing page
9+
[ ] engine theme preserved across active tools page
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# BUILD_PR_TOOLS_INDEX_SURFACE_CLEANUP
2+
3+
## Purpose
4+
Clean up `tools/index.html` so it acts as a user-facing launcher for true first-class tools only.
5+
6+
## Scope
7+
In scope:
8+
- remove non-launchable planning and platform/internal sections from `tools/index.html`
9+
- keep the landing page aligned with the registry-driven first-class tool set
10+
- keep `Sprite Editor` first-class and visible
11+
- keep preserved legacy sprite tooling hidden
12+
- preserve engine theme usage
13+
14+
Out of scope:
15+
- registry shape changes beyond what is needed for alignment
16+
- tool implementation changes
17+
- engine runtime changes
18+
- broader content refactors outside the tools landing surface
19+
20+
## First-Class Launchable Tools
21+
- Vector Map Editor
22+
- Vector Asset Studio
23+
- Tilemap Studio
24+
- Parallax Scene Studio
25+
- Sprite Editor
26+
27+
## Preserved But Hidden
28+
- `tools/SpriteEditor_old_keep/`
29+
30+
## Implementation Summary
31+
- removed the `Planned Next` section from the tools landing page because it did not represent active launchable tools
32+
- removed the `Advanced Systems & Extensions` section from the tools landing page because those entries are platform/dev placeholders rather than actual tools under `tools/`
33+
- kept the landing page focused on the registry-driven first-class tool launcher only
34+
- preserved the engine theme and shared shell usage
35+
- kept registry and renderer behavior aligned with the active tool list
36+
37+
## Files Changed
38+
- `tools/index.html`
39+
- `docs/pr/BUILD_PR_TOOLS_INDEX_SURFACE_CLEANUP.md`
40+
- `docs/dev/COMMIT_COMMENT.txt`
41+
42+
## Validation Performed
43+
- `node scripts/validate-tool-registry.mjs`
44+
- `node scripts/validate-active-tools-surface.mjs`
45+
46+
## Validation Summary
47+
- the active landing page remains aligned with the registry
48+
- `Sprite Editor` remains visible as a first-class tool
49+
- `SpriteEditor_old_keep` remains hidden from the active UI
50+
- no broken active tool links were introduced by this cleanup

0 commit comments

Comments
 (0)