Repository navigation
Releases
Releases · juju35/ha-docker-card
v3.9.1
v3.9.0
Features
- Animated illustrated header on the full and mini cards (90 px): the Docker whale carries its containers on the sea, over a quay strip. The containers show the host's state — all coloured with the whale spouting when every container runs, grey ones for stopped containers, a blinking red one when a container is unhealthy, the whale grey and asleep when the host is offline. Day and night pictures (
illustration_theme:autois night whensun.sunis below the horizon or Home Assistant's theme is dark;day;night), honouring "reduce motion";illustration: falsekeeps the classic header. Both options are in the visual editors and translated in every language. - The header icon now always takes the colour of the host's overall state: green when every container runs, orange when some are stopped, red when one is unhealthy or the host is offline, grey when unknown.
- On the banner the status chip sits right after the title, in the icon's status colour, only when the whole title and its whole label fit there, otherwise on its own line under the subtitle (then kept to one line), and only its dot when even that does not fit in the banner (measured on the rendered card, so that it fits in every language); the mini card's expand/collapse button is a 24 px frosted round button in the banner's top-right corner.
- The classic header (
illustration: false) puts its status chip in the same place, right after the title (under the subtitle when the whole title and label do not fit side by side), instead of at the far right; on both headers the chip keeps its label down to 201 px, only its dot at 200 px or less. - Night picture with the dark theme even while the sun is up
Fixes
- The 24 h sparklines no longer run under the text: on the full card they sit in their own 24 px band under each ring and its label ("12 cores", memory used/total), on a container row in a thin band under its details, and on the mini card behind the bar only, clear of the label and the value.
v3.8.2
Fixes
- The mini card's visual editor now offers the full card's options its detail button uses (
show_system,show_counts,show_stacks,show_containers,show_controls,only_problems,expand_stacks,expand_containers), andshow_title/show_subtitle, which the mini card's header reads: they could only be set in YAML.
v3.8.1
Fixes
- Folding back on a tap elsewhere now works on iOS (Safari and the companion app): a tap on something that is not clickable sent no click to the page, so the unfolded sections, the restart confirmation and the detailed view of the mini card stayed open. The press and the release are caught instead; a slider dragged out of the card and a scroll do not fold anything.
- Leaving the card (another dashboard view, a conditional card hidden) brings it back in its default state: sections folded as configured, confirmation closed, mini card compact.
- Clicks lost under an update: Home Assistant updates the card several times a second, and an update between the press and the release could replace the element pressed or give it another row's content (a container appearing or going away above it), so that the click did nothing or acted on the wrong row. The card is no longer rewritten while a press is in progress; the pending update is drawn right after the click.
v3.8.0
Features
show_titleandshow_subtitleoptions (also in the visual editor) hide the header's title and its subtitle, separately, for a card placed under a section heading of its own (asked in juju35/ha-vehicle-card#72).
v3.7.2
Improvements
- The 24 h curves have a scale in their tooltip: the CPU and memory gauges, the mini card's rows and each container's row give the curve's lowest and highest values (CPU · 24 h 2% – 34%). A tap still opens the entity.
v3.7.1
Maintenance
- No code change: released again to check the installation from the Marketplace.
v3.7.0
Features
- Container curves: while the containers list is open, each container's CPU over the last 24 hours is drawn behind its row, from the same statistics query as the host's CPU and memory curves (its CPU sensor's 5-minute means;
show_history: falseturns them off with the others). The curve takes the lower half of the row, in the theme's primary color.
Maintenance
- Styles: removed leftover rules of the former host tiles (
.htile), whose dangling first line broke the rule after it.
v3.6.1
Fixes
- Translations: the cards are defined once the page's language file has arrived (at most 1.5 s; Home Assistant builds a card when its element gets defined), so the first render is already translated instead of English then redrawn; until a language file is in, a missing text reads the English one wherever the card has no fallback of its own.
v3.6.0
Performance
- Translations load on demand: the bundle keeps English only (153 KB → 98 KB) and each other language is its own
docker-card.i18n.<lang>.jsfile next to it, fetched the first time a card needs it. Home Assistant loads every dashboard resource on every dashboard, so each page used to download and parse all 22 languages to use one. Until a language file has arrived (a few milliseconds), texts fall back to English, and the cards redraw once it is there.
Maintenance
- Build:
scripts/i18n-split.mjssplits the built bundle and rebuilds every table from the split files to check them (the build fails on any difference);src/keeps every language as before. - Release: every file of
dist/is attached. Manual installation copies the translation files too.