velxio/frontend/public
davidmonterocrespo24 7f0f72862c fix: regenerate components-metadata + plug vitest worker leak
Two CI failures landed together on master after PR #194 merged:

1. **components-metadata.json stale.** The `power-supply` thumbnail
   in scripts/component-overrides.json was updated (grey placeholder
   → branded PSU SVG with voltage/current labels) but the generated
   JSON wasn't regenerated. The pre-merge check
   `git diff --quiet frontend/public/components-metadata.json` now
   fails on master. Fix: `cd frontend && npm run generate:metadata`,
   commit the result.

2. **Frontend Tests > test (20/22): vitest worker hang.**
   `circuit-simulation-service.test.ts` had been calling
   `service.start()` in ~10 tests without storing the returned
   unsubscribe handle. Each call subscribes the service to the
   simStore; the listener captures the service + scheduler in
   its closure. After all tests complete, vitest's forks pool
   tries to terminate the worker but the still-active listeners
   keep the event loop pinned, producing:
       "Worker exited unexpectedly / Timeout terminating forks worker"
   All assertions actually pass — only the worker shutdown hangs.

   Fix: introduce a `startTracked(service)` helper that records
   the unsubscribe in a module-level array, plus an `afterEach`
   that drains the array. `__resetMixedModeScheduler()` still runs
   after to dispose the scheduler singleton. Replaced all 9 raw
   `service.start()` callsites.

Both are independent of any production code change. The fix is
test/scaffolding only.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-19 15:38:22 +02:00
..
boards feat(design): tokens, webfonts, Lucide icons, board PNG/WebP picture strip 2026-05-07 20:45:44 +02:00
component-svgs fix(scripts): generate-component-svgs no longer skips bmp280 / fails on ssd1306 2026-05-09 00:05:28 -03:00
examples-thumbs feat(examples): add 53 missing thumbnails — 100-days IoT + Pico W WiFi 2026-05-08 05:57:35 +02:00
firmware feat: add MicroPython support for ESP32-C3 (RISC-V) boards 2026-03-29 23:40:05 -03:00
fonts feat(design): tokens, webfonts, Lucide icons, board PNG/WebP picture strip 2026-05-07 20:45:44 +02:00
marketing feat(marketing): replace mock hero with live editor screenshot 2026-05-07 21:21:52 +02:00
wasm/ngspice-interactive feat(sim/spice): vendor ngspice+XSpice WASM and add NgSpiceInteractive client (Phase 1a) 2026-05-15 16:14:50 +02:00
android-chrome-192.png
android-chrome-512.png
apple-touch-icon.png
components-metadata.json fix: regenerate components-metadata + plug vitest worker leak 2026-05-19 15:38:22 +02:00
favicon-16x16.png
favicon-32x32.png
favicon-48x48.png
favicon.ico
favicon.svg
image.png perf: optimize hero image for faster load times 2026-03-28 20:33:40 +01:00
image.webp perf: optimize hero image for faster load times 2026-03-28 20:33:40 +01:00
manifest.webmanifest
og-image.png feat(design): tokens, webfonts, Lucide icons, board PNG/WebP picture strip 2026-05-07 20:45:44 +02:00
og-image.svg
robots.txt feat: update SEO handling across various pages, enhance mobile tab navigation, and improve .gitignore for sensitive files 2026-03-23 17:15:29 -03:00
sitemap.xml Refactor code structure for improved readability and maintainability 2026-05-18 21:50:45 -03:00
vite.svg