velxio/frontend/src/components/editor
David Montero 780b80778c feat(custom-chip): newly-added programmable chip auto-gets an editable program; chaser-c goes board-less
Two fixes from live testing feedback:

1. Adding a programmable chip (Z80/8080) from the gallery created NO program
   group — only the chip(s) from the example had one. Root cause: 'programmable'
   was detected by a non-empty programFile, but a fresh chip's programFile is
   empty until the user writes one. Now detection uses the canonical signal —
   chip.json's programTargets — via isProgrammableChip(). When such a chip
   lands with no program yet, the file explorer seeds an editable program.c
   (DEFAULT_CHIP_PROGRAM_C, a working walking-LED skeleton) into its own group
   and stamps programFile/programTarget onto the component so Compile/Run can
   build it. Behaviour/driver and predefined chips (no programTargets) still
   get no group — edited in the chip designer.

2. z80-led-chaser-c now runs board-less on a regulated power supply (no Arduino,
   mirroring z80-larson-no-board) — the Arduino only ever supplied 5V and added
   confusion. chaser.c stays the chip's editable program in its own section.

- romCompileService: isProgrammableChip(), DEFAULT_CHIP_PROGRAM_FILE/_C.
- FileExplorer: detect by programTargets; auto-seed program.c + persist
  programFile/programTarget for fresh chips.
- examples-retro-intel: chaser-c -> board-less (psu + 8 resistors + 8 LEDs),
  drop the now-unused Arduino sketch const; fix a stale sdcc --code-loc comment.
- Tests: board+chip case moved to z80-larson-scanner (still board-based);
  isProgrammableChip unit tests.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-03 22:52:11 +02:00
..
CodeEditor.tsx feat(editor): Monaco syntax highlight for 8080/Z80 assembly 2026-05-19 00:49:51 -03:00
CompilationConsole.tsx fix(editor): reset compilation console filter on each new compile 2026-06-01 20:20:54 +02:00
EditorToolbar.css feat(editor-toolbar): in-place Pro upgrade prompt + progressive overflow menu 2026-05-29 07:41:05 +02:00
EditorToolbar.tsx feat(custom-chip): program lives in its own editor group, not the board sketch 2026-06-03 22:07:56 +02:00
FileExplorer.css
FileExplorer.tsx feat(custom-chip): newly-added programmable chip auto-gets an editable program; chaser-c goes board-less 2026-06-03 22:52:11 +02:00
FileTabs.css
FileTabs.tsx
retroAsmLanguage.ts feat(editor): Monaco syntax highlight for 8080/Z80 assembly 2026-05-19 00:49:51 -03:00