Skip to content

fix(cards): give the Routine card a working visual editor - #1217

Merged
tempus2016 merged 2 commits into
mainfrom
fix/routine-card-editor
Nov 4, 2026
Merged

tempus2016 merged 2 commits into
mainfrom
fix/routine-card-editor

Conversation

@tempus2016

Copy link
Copy Markdown
Owner

Builds on the previous PR in this batch (perf/lazy-locales-editors).

fix(cards): give the Routine card a working visual editor

The Routine card had an editor that Home Assistant never opened, so it
could only be set up in YAML. Its fields were also English-only, the
child and time-of-day dropdowns showed raw ids and values, and its
options used a list component current Home Assistant no longer ships.

The card now opens a visual editor like every other TaskMate card: pick
the child by name, the time of day the routine covers (Whole day takes
every chore due today), an optional title, the card design and the
header colour. Every label and helper is translated, the card's defaults
stay out of the YAML, and the YAML editor round-trips.

fix(cards): style the header-colour picker in four card editors

The Heatmap, Personal Bests, Raffle and Wishlist card editors drew the
shared header-colour picker without its styles, so it showed as a plain
colour input, a row of tiny bare buttons and an unstyled Reset button.
It now looks like it does in every other TaskMate card editor: a round
swatch, the hex value, round preset colours and a Reset chip.

Testing

  • Unit and frontend tests for this change are included in the diff; the whole batch passes the full suite.
  • Checked on the dev Home Assistant instance as part of the v7.7.1 pre-release gate (desktop and 360/375/393/768 phone/tablet widths).

@github-actions github-actions Bot added documentation Improvements or additions to documentation cards Lovelace cards / frontend (www/*.js) translations i18n / locale strings tests Test suite labels Nov 4, 2026
@tempus2016
tempus2016 merged commit 99464c8 into main Nov 4, 2026
18 checks passed
@tempus2016
tempus2016 deleted the fix/routine-card-editor branch November 4, 2026 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cards Lovelace cards / frontend (www/*.js) documentation Improvements or additions to documentation tests Test suite translations i18n / locale strings

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant