spaxel/dashboard
jedarden d347bdb09a fix(onboard): detect flash size, validate chip family, auto-derive mothership host
- flashSize: 'detect' — esptool.js now detects the physical flash size and
  updates the binary header before writing. Fixes boot panic on devices with
  4MB embedded flash (e.g. ESP32-S3 WROOM-1-N4R2) when firmware was compiled
  for 16MB: spi_flash_init() no longer sees a header/physical mismatch.

- Chip family validation — after loader.main() returns the detected chip,
  check it against build.chipFamily from the manifest. Throw a UserError if
  a non-ESP32-S3 (or unsupported chip family) is connected, instead of
  silently flashing incompatible firmware.

- Better post-flash error messaging — track flashSucceeded flag; if flashing
  succeeded but provisioning failed, show "Provisioning failed / unplug and
  replug" instead of the misleading "Device not in download mode" help.

- Mothership auto-detection — offline fallback and ms-host placeholder now
  use window.location.hostname instead of the hardcoded spaxel-mothership.local.
  The browser is already talking to the mothership via this hostname, so it is
  the correct default for the device to reach it as well.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-17 09:48:37 -04:00
..
css feat(ui): implement command palette (Component 34) with tests 2026-04-13 19:51:16 -04:00
js fix(onboard): detect flash size, validate chip family, auto-derive mothership host 2026-04-17 09:48:37 -04:00
node_modules feat: implement repeated-setting change detection with guided calibration 2026-04-11 00:18:19 -04:00
ambient.html remove(auth): drop PIN-based auth — Google OAuth handles access 2026-04-13 20:44:12 -04:00
fleet.html remove(auth): drop PIN-based auth — Google OAuth handles access 2026-04-13 20:44:12 -04:00
help_articles.json feat: implement contextual help system with searchable overlay 2026-04-11 00:44:54 -04:00
index.html refactor: replace esp-web-tools with vendored esptool-js, auto-start flash 2026-04-16 09:54:35 -04:00
integrations.html feat: home automation integration (MQTT and webhooks) 2026-04-11 06:29:51 -04:00
jest.config.js feat: implement spatial quick actions context menu for 3D scene 2026-04-10 22:56:17 -04:00
package-lock.json feat(dashboard): interactive onboarding wizard for ESP32-S3 node provisioning 2026-03-28 02:36:58 -04:00
package.json feat(dashboard): interactive onboarding wizard for ESP32-S3 node provisioning 2026-03-28 02:36:58 -04:00
simple.html fix(simple): load esp-web-tools for firmware flashing 2026-04-13 21:58:53 -04:00