From 7e4222ef0092704a1334023ba4df37510d0f761f Mon Sep 17 00:00:00 2001 From: Developer Date: Sun, 12 Jul 2026 12:00:11 +0000 Subject: [PATCH] fix(widgets): expose unit/scale options in the frontend widget registry MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The config dialog reads each widget kind's schema from the static frontend SERVICE_REGISTRY (registry.ts), not the backend pydantic schema. The previous commit added unit/scale to the backend configs but not to the frontend mirror, so the options never appeared in the dialog — the Prometheus "chart" binding still listed only promql/window and the qBittorrent "speed" binding had an empty configSchema. Add a shared AXIS_FORMAT_PROPERTIES fragment (unit + scale enums) and spread it into the prometheus chart and qbittorrent speed bindings, with matching defaultConfig (chart: none/auto; speed: bytes_per_sec/auto). Combined with the enum