From 6e6e25f7d3424398abfe22d821fc03d646e628a1 Mon Sep 17 00:00:00 2001 From: Joshua Date: Sat, 26 Sep 2026 08:27:05 -0400 Subject: [PATCH] Fix the missing shield crest in the child's Quest Log header Lit removes an attribute entirely when any interpolated part of it is `nothing`, so `class="crest${away ? " away" : nothing}"` rendered a present child's crest as a bare, unstyled span: an 11x51 sliver with a 16px black initial instead of the 96x110 brand-gradient shield. Use an empty string for the present case, and widen the ring from 3px to the spec's 4px. Adds a jsdom test on the rendered crest classes (present and away) and a stylesheet test pinning the PANEL-SPEC crest geometry, and rebuilds the committed bundle. Co-Authored-By: Claude Opus 5.5 --- .../nestquest/www/nestquest-cards.js | 4 +- frontend/src/cards/quest-log.ts | 4 +- tests/test_panel_cards.py | 68 +++++++++++++++++++ 3 files changed, 72 insertions(+), 4 deletions(-) diff --git a/custom_components/nestquest/www/nestquest-cards.js b/custom_components/nestquest/www/nestquest-cards.js index 8f0296d..b221b38 100644 --- a/custom_components/nestquest/www/nestquest-cards.js +++ b/custom_components/nestquest/www/nestquest-cards.js @@ -1765,7 +1765,7 @@ const Nt = "polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%)", Ye = "polygon(50% flex: none; width: 96px; height: 110px; - padding: 3px; + padding: 4px; clip-path: ${v(Nt)}; background: rgba(255, 255, 255, 0.22); } @@ -3091,7 +3091,7 @@ class un extends A { const e = this._childSlug(), n = t.kind === "away", i = n ? t.name : this._childName(e) ?? (e ? Y(e) : null), { due: r, completed: o } = this._childCounts(e), l = this._remaining(), a = this._partyCounts(), p = i ? `${i}'s Quest Log` : "Quest Log", u = (i?.charAt(0) || "?").toUpperCase(); return d`
-