|
| 1 | +# Level 10.3 Tool-Local Sample Migration Report |
| 2 | + |
| 3 | +Date: 2026-04-26 |
| 4 | +Build: `BUILD_PR_LEVEL_10_3_MIGRATE_TOOL_LOCAL_SAMPLES_TO_SAMPLES` |
| 5 | + |
| 6 | +## Scope Summary |
| 7 | +- Migrated discovered tool-local sample/demo payloads for: |
| 8 | + - `tools/Vector Map Editor` |
| 9 | + - `tools/Vector Asset Studio` |
| 10 | + - `tools/Parallax Scene Studio` |
| 11 | +- Audited `tools/Tilemap Studio` for tool-local sample/demo entries. |
| 12 | +- Added migrated sample entries under `samples/phase-12` using next available IDs `1212` to `1220`. |
| 13 | +- Updated samples hub indexing through `samples/metadata/samples.index.metadata.json` (the data source used by `samples/index.html`). |
| 14 | +- Removed tool-local sample dropdown/select UI entries from processed tools while keeping explicit query-based preset input support. |
| 15 | + |
| 16 | +## Source To Destination Mapping |
| 17 | + |
| 18 | +### Vector Map Editor |
| 19 | +- Source tool: `tools/Vector Map Editor` |
| 20 | +- Source sample/demo path: `tools/Vector Map Editor/samples/overworld_route_map.editor.json` |
| 21 | +- Destination sample path: `samples/phase-12/1212/` |
| 22 | +- Assigned phase/id: `phase-12 / 1212` |
| 23 | +- Files moved/copied: |
| 24 | + - Created `samples/phase-12/1212/sample-1212-vector-map-editor.json` |
| 25 | + - Created `samples/phase-12/1212/index.html` |
| 26 | + - Created `samples/phase-12/1212/assets/images/preview.svg` |
| 27 | + |
| 28 | +- Source tool: `tools/Vector Map Editor` |
| 29 | +- Source sample/demo path: `tools/Vector Map Editor/samples/dungeon_layout_map.editor.json` |
| 30 | +- Destination sample path: `samples/phase-12/1213/` |
| 31 | +- Assigned phase/id: `phase-12 / 1213` |
| 32 | +- Files moved/copied: |
| 33 | + - Created `samples/phase-12/1213/sample-1213-vector-map-editor.json` |
| 34 | + - Created `samples/phase-12/1213/index.html` |
| 35 | + - Created `samples/phase-12/1213/assets/images/preview.svg` |
| 36 | + |
| 37 | +- Source tool: `tools/Vector Map Editor` |
| 38 | +- Source sample/demo path: `tools/Vector Map Editor/samples/arena_zone_map.editor.json` |
| 39 | +- Destination sample path: `samples/phase-12/1214/` |
| 40 | +- Assigned phase/id: `phase-12 / 1214` |
| 41 | +- Files moved/copied: |
| 42 | + - Created `samples/phase-12/1214/sample-1214-vector-map-editor.json` |
| 43 | + - Created `samples/phase-12/1214/index.html` |
| 44 | + - Created `samples/phase-12/1214/assets/images/preview.svg` |
| 45 | + |
| 46 | +### Vector Asset Studio |
| 47 | +- Source tool: `tools/Vector Asset Studio` |
| 48 | +- Source sample/demo path: `tools/Vector Asset Studio/samples/sky_gradient_scene.svg` |
| 49 | +- Destination sample path: `samples/phase-12/1215/` |
| 50 | +- Assigned phase/id: `phase-12 / 1215` |
| 51 | +- Files moved/copied: |
| 52 | + - Created `samples/phase-12/1215/sample-1215-vector-asset-studio.json` |
| 53 | + - Copied `samples/phase-12/1215/assets/data/vector/sky_gradient_scene.svg` |
| 54 | + - Created `samples/phase-12/1215/index.html` |
| 55 | + - Created `samples/phase-12/1215/assets/images/preview.svg` |
| 56 | + |
| 57 | +- Source tool: `tools/Vector Asset Studio` |
| 58 | +- Source sample/demo path: `tools/Vector Asset Studio/samples/mountain_range_scene.svg` |
| 59 | +- Destination sample path: `samples/phase-12/1216/` |
| 60 | +- Assigned phase/id: `phase-12 / 1216` |
| 61 | +- Files moved/copied: |
| 62 | + - Created `samples/phase-12/1216/sample-1216-vector-asset-studio.json` |
| 63 | + - Copied `samples/phase-12/1216/assets/data/vector/mountain_range_scene.svg` |
| 64 | + - Created `samples/phase-12/1216/index.html` |
| 65 | + - Created `samples/phase-12/1216/assets/images/preview.svg` |
| 66 | + |
| 67 | +- Source tool: `tools/Vector Asset Studio` |
| 68 | +- Source sample/demo path: `tools/Vector Asset Studio/samples/mario_style_learning_backdrop.svg` |
| 69 | +- Destination sample path: `samples/phase-12/1217/` |
| 70 | +- Assigned phase/id: `phase-12 / 1217` |
| 71 | +- Files moved/copied: |
| 72 | + - Created `samples/phase-12/1217/sample-1217-vector-asset-studio.json` |
| 73 | + - Copied `samples/phase-12/1217/assets/data/vector/mario_style_learning_backdrop.svg` |
| 74 | + - Created `samples/phase-12/1217/index.html` |
| 75 | + - Created `samples/phase-12/1217/assets/images/preview.svg` |
| 76 | + |
| 77 | +### Parallax Scene Studio |
| 78 | +- Source tool: `tools/Parallax Scene Studio` |
| 79 | +- Source sample/demo path: `tools/Parallax Scene Studio/samples/parallax_sample.json` |
| 80 | +- Destination sample path: `samples/phase-12/1218/` |
| 81 | +- Assigned phase/id: `phase-12 / 1218` |
| 82 | +- Files moved/copied: |
| 83 | + - Created `samples/phase-12/1218/sample-1218-parallax-editor.json` |
| 84 | + - Copied referenced assets into `samples/phase-12/1218/assets/data/parallax/` |
| 85 | + - Created `samples/phase-12/1218/index.html` |
| 86 | + - Created `samples/phase-12/1218/assets/images/preview.svg` |
| 87 | + |
| 88 | +- Source tool: `tools/Parallax Scene Studio` |
| 89 | +- Source sample/demo path: `tools/Parallax Scene Studio/samples/tilemap_parallax_sample.json` |
| 90 | +- Destination sample path: `samples/phase-12/1219/` |
| 91 | +- Assigned phase/id: `phase-12 / 1219` |
| 92 | +- Files moved/copied: |
| 93 | + - Created `samples/phase-12/1219/sample-1219-parallax-editor.json` |
| 94 | + - Copied referenced assets into `samples/phase-12/1219/assets/data/parallax/` |
| 95 | + - Created `samples/phase-12/1219/index.html` |
| 96 | + - Created `samples/phase-12/1219/assets/images/preview.svg` |
| 97 | + |
| 98 | +- Source tool: `tools/Parallax Scene Studio` |
| 99 | +- Source sample/demo path: `tools/Parallax Scene Studio/samples/mario_style_learning_level_parallax.json` |
| 100 | +- Destination sample path: `samples/phase-12/1220/` |
| 101 | +- Assigned phase/id: `phase-12 / 1220` |
| 102 | +- Files moved/copied: |
| 103 | + - Created `samples/phase-12/1220/sample-1220-parallax-editor.json` |
| 104 | + - Copied referenced assets into `samples/phase-12/1220/assets/data/parallax/` |
| 105 | + - Created `samples/phase-12/1220/index.html` |
| 106 | + - Created `samples/phase-12/1220/assets/images/preview.svg` |
| 107 | + |
| 108 | +### Tilemap Studio Audit Result |
| 109 | +- Source tool: `tools/Tilemap Studio` |
| 110 | +- Discovery result: no tool-local sample/demo `samples/` folder and no sample dropdown/select entries were found. |
| 111 | +- Migration action: none required for tool-local sample payloads. |
| 112 | + |
| 113 | +## Tool-Local Sample UI Removal |
| 114 | +- `tools/Vector Map Editor/index.html` |
| 115 | + - Removed sample dropdown/select and load button controls. |
| 116 | +- `tools/Vector Asset Studio/index.html` |
| 117 | + - Removed sample dropdown/select and refresh/load controls. |
| 118 | +- `tools/Parallax Scene Studio/index.html` |
| 119 | + - Removed sample dropdown/select and load controls. |
| 120 | +- `tools/Vector Asset Studio/main.js` |
| 121 | + - Added null-safe guards so removed controls do not break runtime. |
| 122 | +- `tools/Parallax Scene Studio/main.js` |
| 123 | + - Added null-safe guards so removed controls do not break runtime. |
| 124 | +- `tools/Tilemap Studio` |
| 125 | + - No sample dropdown/select existed, retained unchanged. |
| 126 | + |
| 127 | +## Samples Hub Update |
| 128 | +- Updated samples hub data source: |
| 129 | + - `samples/metadata/samples.index.metadata.json` |
| 130 | +- Added migrated sample rows for IDs: |
| 131 | + - `1212`, `1213`, `1214`, `1215`, `1216`, `1217`, `1218`, `1219`, `1220` |
| 132 | +- `samples/index.html` intro copy updated to reflect tool preset samples in hub listing. |
| 133 | + |
| 134 | +## Launch Test Result |
| 135 | + |
| 136 | +### Added/Updated Tests |
| 137 | +- Added `tests/tools/ToolLocalSampleMigration.test.mjs` |
| 138 | + - Verifies migrated sample IDs are indexed in metadata and files exist. |
| 139 | + - Verifies each migrated sample index launches correct tool route with `sampleId` and `samplePresetPath`. |
| 140 | + - Verifies old tool-local sample dropdown/select controls are removed from processed tool HTML. |
| 141 | + - Verifies query preset loading hooks remain in processed tool runtime files. |
| 142 | + |
| 143 | +- Updated `tests/run-tests.mjs` |
| 144 | + - Added explicit run hook for `ToolLocalSampleMigration` test. |
| 145 | + |
| 146 | +### Executed |
| 147 | +- `node --input-type=module -e "import('./tests/tools/ToolLocalSampleMigration.test.mjs').then((m)=>m.run())"` -> PASS |
| 148 | +- `node --input-type=module -e "import('./tests/tools/ToolEntryLaunchContract.test.mjs').then((m)=>m.run())"` -> PASS |
| 149 | + |
| 150 | +### Note |
| 151 | +- `SamplesProgramCombinedPass` currently reports pre-existing metadata parity mismatch (`samples.curriculum.validation.json progression.totalSamples`) that is outside this PR’s migration-only scope. |
| 152 | + |
| 153 | +## Roadmap Status |
| 154 | +- `docs/dev/roadmaps/MASTER_ROADMAP_ENGINE.md` was not updated because no explicit Level 10.3 status markers were present for this migration slice. |
| 155 | + |
| 156 | +## Tool-Local Sample UI Removed/Retained Summary |
| 157 | +- Removed: |
| 158 | + - Vector Map Editor sample select/load controls |
| 159 | + - Vector Asset Studio sample select/refresh/load controls |
| 160 | + - Parallax Scene Studio sample select/load controls |
| 161 | +- Retained: |
| 162 | + - Query-based preset loading (`sampleId`, `samplePresetPath`) for explicit sample/workspace input |
| 163 | + - Tilemap Studio explicit input flow (no local sample dropdown existed) |
0 commit comments