velxio/frontend/src/utils
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
..
analytics.ts seo/analytics: real GA attribution, tight robots.txt, no build-date lastmod, GA only on velxio.dev 2026-08-18 16:04:48 +02:00
boardCompile.ts flash: compile before flashing, stale-build warning, i18n dialog, entitlement seam (#207) 2026-08-18 20:21:57 +02:00
boardPinMapping.ts feat(m5stack-core): header pins resolve, and PWM tones carry their real pitch 2026-08-12 15:19:30 +02:00
boardProtocols.ts fix(uart): la Pi puede hablar por serie con la placa de al lado 2026-07-29 07:40:13 +02:00
breadboardNets.ts
…
breadboardOccupancy.ts
…
breadboardSnap.ts
…
captureCanvasPreview.ts
…
compilationLogger.ts fix(console): the final flush speaks in whole lines, from the real buffer 2026-08-09 08:05:43 +02:00
countryFlag.ts
…
dropSlot.ts feat(canvas): ver donde cae lo que anades, y clicks con sentido 2026-07-30 15:40:52 +02:00
esp32ImageParser.ts
…
exampleToBuildNetlistInput.ts
…
fatImage.ts feat(sd): live Card contents in the SD panel - list and download what the sketch wrote 2026-08-04 16:29:54 +02:00
firmwareLoader.ts
…
generateExamplePreview.tsx
…
hexParser.ts
…
importProject.ts
…
keyButtonBindings.ts
…
libraryManifest.ts feat(libraries): manifest auto-migration + name-affinity ranking + install-declares 2026-08-04 06:03:32 +02:00
loadExample.ts feat(metrics): compiles and runs remember which gallery example they came from 2026-08-09 22:34:26 +02:00
piUpload.ts feat(pi-family): one-click run UX — autoRun + guestHome + clean serial mirror 2026-07-28 16:28:02 +02:00
pinInspectorLayout.ts fix(picker+inspector): dedupe Pi cards, wire Zero/1/2 as real boards, readable many-pin inspectors 2026-08-07 23:03:05 +02:00
pinPositionCalculator.ts fix(wires): stop board-corner wire anchors — alias fallbacks for pin-name spellings 2026-08-15 20:08:47 +02:00
projectPayload.ts fix(editor): reconcile active file-group pointers; stop persisting compiledProgram 2026-08-15 08:29:39 +02:00
reservedUsernames.ts
…
sdCardFiles.ts feat(sd): source files stay off the card - only project DATA files auto-copy 2026-08-04 19:58:31 +02:00
socketSnap.ts fix(sockets): a board a hair off the seat is still plugged in 2026-08-01 06:14:43 +02:00
sourceFingerprint.ts flash: compile before flashing, stale-build warning, i18n dialog, entitlement seam (#207) 2026-08-18 20:21:57 +02:00
useSEO.ts seo: /v2 and /v2-5 canonical to the home and out of the sitemap 2026-08-18 17:29:54 +02:00
useTouchDevice.ts
…
uuid.ts
…
vlxFile.ts Merge remote-tracking branch 'origin/master' into v3.2-worktree 2026-08-10 17:00:24 +02:00
wireAutoRoute.ts
…
wireColors.ts
…
wireHitDetection.ts
…
wireUtils.ts
…
wokwiZip.ts
…
workspaceDraft.ts feat(editor): folders - create/delete folder trees in the file explorer 2026-08-05 06:48:38 +02:00