Commit 1e9b46e
DavidQ
Root cause fixed: Asset Browser was hardcoded to a Vector Arcade catalog, so it ignored the active workspace asset.
What I changed:
1. Replaced hardcoded asset list with context-driven catalog loading from `workspace.asset-catalog.json` using launch/query/shared-manifest context sources in [main.js](C:/Users/davidq/Documents/GitHub/HTML-JavaScript-Gaming/tools/Asset Browser/main.js:171).
2. Removed default fallback catalog behavior. If no valid workspace catalog is found, the tool now shows explicit empty/error messaging instead of showing unrelated assets in [main.js](C:/Users/davidq/Documents/GitHub/HTML-JavaScript-Gaming/tools/Asset Browser/main.js:504) and [main.js](C:/Users/davidq/Documents/GitHub/HTML-JavaScript-Gaming/tools/Asset Browser/main.js:733).
3. Ensured initial selection prefers the current shared asset handoff (`Asset Workflow` asset) when present in [main.js](C:/Users/davidq/Documents/GitHub/HTML-JavaScript-Gaming/tools/Asset Browser/main.js:379).
4. Added `Skins` category support and mapped it to handoff type `skin` in [main.js](C:/Users/davidq/Documents/GitHub/HTML-JavaScript-Gaming/tools/Asset Browser/main.js:17) and [main.js](C:/Users/davidq/Documents/GitHub/HTML-JavaScript-Gaming/tools/Asset Browser/main.js:412).
Validation run:
- `node --check tools/Asset Browser/main.js` passed.
- Per your instruction, I did not run browser/manual tests.
Commit comment:
`fix(asset-browser): remove vector-arcade default catalog and hydrate approved assets from active workspace catalog; prefer shared asset selection and show explicit no-catalog state`1 parent c5a676e commit 1e9b46e
5 files changed
Lines changed: 368 additions & 75 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
325 | 325 | | |
326 | 326 | | |
327 | 327 | | |
328 | | - | |
329 | | - | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
330 | 337 | | |
331 | 338 | | |
332 | 339 | | |
| |||
345 | 352 | | |
346 | 353 | | |
347 | 354 | | |
348 | | - | |
| 355 | + | |
349 | 356 | | |
350 | 357 | | |
351 | 358 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
0 commit comments