From 235c327608b1e5d40ede83190f26a083104f6a22 Mon Sep 17 00:00:00 2001 From: Joshua Date: Sat, 26 Sep 2026 09:39:04 -0400 Subject: [PATCH] Keep the quest-log meta line's class when a quest is not late The open quest card built its meta line as class="meta ${meta.late ? "late" : nothing}"; Lit drops the whole attribute when any interpolated part is nothing, so every on-time quest lost the meta class and its styling. Choose the full class string instead, rebuild the panel bundle, and add a rendered regression test. Co-Authored-By: Claude Opus 5.5 --- .../nestquest/www/nestquest-cards.js | 2 +- frontend/src/cards/quest-log.ts | 2 +- tests/test_panel_cards.py | 59 +++++++++++++++++++ 3 files changed, 61 insertions(+), 2 deletions(-) diff --git a/custom_components/nestquest/www/nestquest-cards.js b/custom_components/nestquest/www/nestquest-cards.js index 453bd1a..228aaa9 100644 --- a/custom_components/nestquest/www/nestquest-cards.js +++ b/custom_components/nestquest/www/nestquest-cards.js @@ -3225,7 +3225,7 @@ const Rt = "polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%)", ln = "polygon(50%
${t.title} - ${r.text} + ${r.text}