feat(atelier): bouton Déployer avec sélecteur de carte #115
Reference in New Issue
Block a user
Delete Branch "feat/zacus-hotload-hub"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bouton « Déployer » dans l'Atelier (studio Blockly) avec sélecteur de carte : sauvegarde le YAML de l'espace de travail sur le gateway (PUT /v1/studio/scenario/atelier_live.yaml) puis flashe la carte choisie (POST /v1/flash/{board}). Les cartes sans IP relayées par le master en ESP-NOW (plip, box3, p7_coffre) sont signalées dans le sélecteur et routées via le master automatiquement ; le panneau affiche les étapes FlashResult et le fan-out du relay. Le gateway gagne un CORSMiddleware (ZACUS_HUB_CORS_ORIGINS, défaut *) pour le client navigateur — l'auth reste sur le bearer token. Vérifié : tsc --noEmit propre, vite build vert, py_compile OK.
DeployPanel + useDeploy hook: saves the current Blockly workspace YAML to the gateway (PUT /v1/studio/scenario/atelier_live.yaml) then flashes the selected board (POST /v1/flash/{board}). Boards without an IP that the master relays over ESP-NOW (plip, box3, p7_coffre) are flagged in the selector and routed through the master automatically; the panel shows the FlashResult steps and relay fan-out. Gateway gains a CORSMiddleware (ZACUS_HUB_CORS_ORIGINS, default *) so the browser client can reach it — auth stays on the bearer token (VITE_GATEWAY_TOKEN / VITE_GATEWAY_BASE_URL). Verified: tsc --noEmit clean, vite build green, py_compile OK.