Skip to content

Commit 127a0c3

Browse files
author
DavidQ
committed
Samples2Tools batch 10: add Sprite Editor roundtrip presets (0213/0214/0219), wire samplePresetPath preload/status, update metadata toolHints, roadmap progress, and validation reports.
1 parent ed47760 commit 127a0c3

10 files changed

Lines changed: 2170 additions & 5 deletions
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Samples2Tools Batch 10 Summary
2+
Generated: 2026-04-24T15:05:09.637Z
3+
Scope: phase-01 through phase-19 Phase 3 coverage check for Sprite Editor
4+
5+
Sprite Editor mapped samples: 3
6+
- Phase 02 Sample 0213 | Sprite Render Layer | preset: /samples/phase-02/0213/sample-0213-sprite-editor.json
7+
- Phase 02 Sample 0214 | Animation Sprite Binding | preset: /samples/phase-02/0214/sample-0214-sprite-editor.json
8+
- Phase 02 Sample 0219 | Sprite Atlas Image Rendering | preset: /samples/phase-02/0219/sample-0219-sprite-editor.json
9+
10+
Overall: pass
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Samples2Tools Batch 10 Validation
2+
Generated: 2026-04-24T15:05:09.637Z
3+
4+
[x] Sprite Editor has 3 mapped samples (phase-01 through phase-19)
5+
[x] All mapped Sprite Editor preset files exist on disk
6+
[x] Samples index roundtrip logic contains mapped sample ids and sprite-editor branch
7+
[x] Sprite Editor supports samplePresetPath preload and sets standardized loaded preset status
8+
[x] Metadata toolHints include sprite-editor for mapped sample ids
9+
10+
Execution evidence:
11+
- Sprite Editor mapped sample ids: 0213, 0214, 0219
12+
- Preset files: /samples/phase-02/0213/sample-0213-sprite-editor.json, /samples/phase-02/0214/sample-0214-sprite-editor.json, /samples/phase-02/0219/sample-0219-sprite-editor.json
13+
- Roundtrip mapping branch: samples/index.render.js:shouldUsePresetRoundtrip
14+
- Preload handler: tools/Sprite Editor/modules/spriteEditorApp.js:tryLoadPresetFromQuery
15+
- Loaded status format: "Loaded preset from sample <id>."
16+
- overall: pass
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"generatedAt": "2026-04-24T15:05:09.637Z",
3+
"scope": "phase-01-phase-19",
4+
"purpose": "batch-10-sprite-editor",
5+
"links": [
6+
{
7+
"toolId": "sprite-editor",
8+
"sampleId": "0213",
9+
"phase": "02",
10+
"title": "Sprite Render Layer",
11+
"href": "./phase-02/0213/index.html",
12+
"presetPath": "/samples/phase-02/0213/sample-0213-sprite-editor.json"
13+
},
14+
{
15+
"toolId": "sprite-editor",
16+
"sampleId": "0214",
17+
"phase": "02",
18+
"title": "Animation Sprite Binding",
19+
"href": "./phase-02/0214/index.html",
20+
"presetPath": "/samples/phase-02/0214/sample-0214-sprite-editor.json"
21+
},
22+
{
23+
"toolId": "sprite-editor",
24+
"sampleId": "0219",
25+
"phase": "02",
26+
"title": "Sprite Atlas Image Rendering",
27+
"href": "./phase-02/0219/index.html",
28+
"presetPath": "/samples/phase-02/0219/sample-0219-sprite-editor.json"
29+
}
30+
]
31+
}

docs/dev/roadmaps/MASTER_ROADMAP_SAMPLES2TOOLS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
- verify tool state visibly matches sample payload intent
102102

103103
### Phase 3 - Core Editor/Workflow Tools
104-
- [ ] Sprite Editor (9 candidates)
104+
- [.] Sprite Editor (9 candidates)
105105
- [ ] Tilemap Studio (15 candidates)
106106
- [ ] Tile Model Converter (18 candidates)
107107
- [ ] Asset Browser / Import Hub (8 candidates)
@@ -154,6 +154,6 @@
154154
- [x] `docs/dev/reports/samples2tools_link_map_<n>.json`
155155

156156
## Current Snapshot (from tools_used.txt)
157-
- [x] Current tagged samples across active tools: `17` (phase-01 through phase-19)
157+
- [x] Current tagged samples across active tools: `20` (phase-01 through phase-19)
158158
- [x] Candidate coverage inventory exists for all active tools
159159
- [.] Convert candidates into curated, validated sample-to-tool links

samples/index.render.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@ function shouldUsePresetRoundtrip(sample, toolId) {
7474
if (toolId === "vector-map-editor") {
7575
return sampleId === "0901" && samplePhase === "09";
7676
}
77+
if (toolId === "sprite-editor") {
78+
return (sampleId === "0213" && samplePhase === "02")
79+
|| (sampleId === "0214" && samplePhase === "02")
80+
|| (sampleId === "0219" && samplePhase === "02");
81+
}
7782
return false;
7883
}
7984

samples/metadata/samples.index.metadata.json

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1492,6 +1492,9 @@
14921492
"engine/input/index/InputService",
14931493
"engine/rendering/index/renderSpriteReadyEntities",
14941494
"engine/scene/index/Scene"
1495+
],
1496+
"toolHints": [
1497+
"sprite-editor"
14951498
]
14961499
},
14971500
{
@@ -1533,6 +1536,9 @@
15331536
"engine/theme/index/Theme",
15341537
"engine/theme/index/ThemeTokens",
15351538
"engine/utils/index/clamp"
1539+
],
1540+
"toolHints": [
1541+
"sprite-editor"
15361542
]
15371543
},
15381544
{
@@ -1750,6 +1756,9 @@
17501756
"engine/scene/index/Scene",
17511757
"engine/theme/index/Theme",
17521758
"engine/theme/index/ThemeTokens"
1759+
],
1760+
"toolHints": [
1761+
"sprite-editor"
17531762
]
17541763
},
17551764
{
@@ -6435,7 +6444,7 @@
64356444
"tile-map-editor"
64366445
],
64376446
"thumbnail": "/samples/phase-12/1209/assets/images/preview.svg",
6438-
"preview": "/samples/phase-12/1209/assets/images/preview.svg"
6447+
"preview": "/samples/phase-12/1209/assets/images/preview.svg"
64396448
},
64406449
{
64416450
"id": "1210",
@@ -6462,7 +6471,7 @@
64626471
"tile-map-editor"
64636472
],
64646473
"thumbnail": "/samples/phase-12/1210/assets/images/preview.svg",
6465-
"preview": "/samples/phase-12/1210/assets/images/preview.svg"
6474+
"preview": "/samples/phase-12/1210/assets/images/preview.svg"
64666475
},
64676476
{
64686477
"id": "1211",
@@ -6489,7 +6498,7 @@
64896498
"tile-map-editor"
64906499
],
64916500
"thumbnail": "/samples/phase-12/1211/assets/images/preview.svg",
6492-
"preview": "/samples/phase-12/1211/assets/images/preview.svg"
6501+
"preview": "/samples/phase-12/1211/assets/images/preview.svg"
64936502
},
64946503
{
64956504
"id": "1301",

0 commit comments

Comments
 (0)