velxio/frontend/src/components/editor
David Montero 9936d1956c flash: compile before flashing, stale-build warning, i18n dialog, entitlement seam (#207)
"Flash to real board" no longer needs a prior Compile. The menu item is
enabled for every Arduino/ESP-IDF board (MicroPython keeps its own
gating) and the Flash dialog compiles first when the board has no program
or its code changed since the last build — compiler output streams into
the dialog's console, a red build ends in an error banner there with a
"Recompile & flash" retry, and only a green build reaches the flasher.
Web Serial's port picker needs a user gesture, so the web flow asks the
overlay to grant the port at the click (new WebFlashImpl.preparePort)
before the compile that may take minutes.

Stale detection: compileBoardProgram() now records a fingerprint of the
sources + language + build options (BoardInstance.compiledSourceHash,
utils/sourceFingerprint.ts); the dialog warns and rebuilds when the live
sources differ. utils/boardCompile.ts holds the compile request builder
shared with the toolbar (same files, same options).

The whole dialog and the menu hints are translated (editor.flash.* and
editor.canvas.flashHint.* in the 9 locales); before, every string was
hard-coded English.

Entitlement seam for #207 (desktop "upload to board"): lib/proWebFlash.ts
gains installHardwareFlashGate(); OSS default allows, and when a gate
blocks, the dialog shows a paid-license panel with a "See plans" link
instead of the port picker.
2026-08-18 20:21:57 +02:00
..
CodeEditor.tsx fix(editor): quick suggestions stay alive inside snippet placeholders 2026-08-15 21:31:01 +02:00
CompilationConsole.tsx
…
EditorMenuBar.css ux(menubar): Account menu replaces the top-level Language menu 2026-08-08 04:02:32 +02:00
EditorMenuBar.tsx fix(editor): toolbar never overlaps on a narrow bar; layout switches live in the View menu 2026-08-18 00:17:38 +02:00
EditorToolbar.css fix(editor): the workspace panel stacks its actions, and the toolbar stops growing a hole 2026-08-18 18:42:38 +02:00
EditorToolbar.tsx flash: compile before flashing, stale-build warning, i18n dialog, entitlement seam (#207) 2026-08-18 20:21:57 +02:00
FileExplorer.css fix(editor): the workspace panel stacks its actions, and the toolbar stops growing a hole 2026-08-18 18:42:38 +02:00
FileExplorer.tsx fix(editor): the workspace panel stacks its actions, and the toolbar stops growing a hole 2026-08-18 18:42:38 +02:00
NewProjectDialog.css Revert "ux(editor): the pristine starter picker is a screen, not a modal" 2026-08-08 06:24:47 +02:00
NewProjectDialog.tsx feat(editor): M5Stack section (Cardputer ADV, Core) ahead of STM32 in the starter dialog 2026-08-17 18:50:37 +02:00
retroAsmLanguage.ts
…