Skip to content

fix(cards): give the Family Goal and Photo Gallery cards a visual editor - #1219

Merged
tempus2016 merged 1 commit into
mainfrom
fix/family-goal-photo-editors
Nov 4, 2026
Merged

tempus2016 merged 1 commit into
mainfrom
fix/family-goal-photo-editors

Conversation

@tempus2016

Copy link
Copy Markdown
Owner

Builds on the previous PR in this batch (fix/editor-colour-picker-targets).

fix(cards): give the Family Goal and Photo Gallery cards a visual editor

Opening either card in the dashboard editor showed "Visual editor not
supported", so they could only be set up in YAML. Both now open a visual
editor like the other TaskMate cards. The Family Goal card takes the
overview entity, an optional title (blank shows the goal's name), the
card design and the header colour. The Photo Gallery card takes the
activity entity, an optional title, how many photos to show (blank shows
them all), 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. The editors load only when opened.

fix(cards): keep the Family Goal card's header when no goal is set

With no family goal switched on, the Family Goal card showed only its
"No family goal set" placeholder, so a title, header colour or design
picked in its editor made no visible difference in the preview. The
card now draws its header in every state: the title (or "Family goal"),
in the header colour and card design, with the placeholder beneath.
The Photo Gallery card already kept its header with no photos; it and
the Family Goal card now also keep it when the entity can't be found.

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 0cc30ce into main Nov 4, 2026
18 checks passed
@tempus2016
tempus2016 deleted the fix/family-goal-photo-editors branch November 4, 2026 10:16
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