diff --git a/CLAUDE.md b/CLAUDE.md index 0c8b889..86afce9 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -132,6 +132,28 @@ showcase updates itself. (Manual local regen still works too; the sandbox needs Newest first. One short entry per working session: what shipped + open threads. +### 2026-07-21 — Editor text fields: drop `ha-textfield` for native `` (v0.16.4) +- **User (screenshots):** couldn't change the power card title — the visual + editor was **missing every text field** (Title, Name, Icon, Unit, Decimals, + Bar max, Energy label, History window). What still rendered: entity pickers, + the accent + mode dropdowns, and the switches. +- **Root cause:** the shared `_tf()` helper built fields with `ha-textfield`. + That HA element isn't guaranteed to be registered in every frontend build; in + this user's HA it was **undefined**, so each field rendered as an empty + invisible custom element → silently dropped. The surviving controls use + `ha-entity-picker` / native `` inside a + `.field` wrapper (label + input), matching the native ` (not `ha-textfield`): that + // HA element isn't guaranteed to be registered in every frontend build, and + // when it's missing it renders as an empty invisible node — which silently + // dropped every text field (Title, Name, …) from the editors. A native + // input always renders and matches the native (not `ha-textfield`): that + // HA element isn't guaranteed to be registered in every frontend build, and + // when it's missing it renders as an empty invisible node — which silently + // dropped every text field (Title, Name, …) from the editors. A native + // input always renders and matches the native