187 files

This commit is contained in:
Home Assistant Version Control
2026-10-09 11:57:31 +00:00
parent 28fa34d78a
commit 1e1b12d52b
187 changed files with 40899 additions and 32654 deletions
@@ -38,7 +38,7 @@ class TaskMateActivityCard extends LitElement {
// Everything else (penalty, bonus, gift, manual add/remove) is reversible.
static get _UNDO_DENY_PREFIXES() {
return [
"Weekend bonus", "Streak milestone bonus", "Perfect week bonus",
"Weekend bonus", "Streak milestone bonus", "Perfect week bonus", "Weekly target bonus",
"Allocated to pool:", "Pool refund", "Points decay",
"Savings interest", "Badge", "Streak freeze",
"Wish savings", "Wish refund", "Wish pledge", "Wish redeemed",
@@ -1099,7 +1099,9 @@ class TaskMateActivityCard extends LitElement {
const verb = isAdd ? this._t('activity.received') : isSpend ? this._t('activity.spent') : this._t('activity.lost');
const sign = isAdd ? '+' : '−';
const tone = isAdd ? 'good' : (isSpend ? 'accent' : 'bad');
const emoji = reason.startsWith('Inspection passed:') ? '🔍' : isAdd ? '⭐' : (isPenalty ? '⚠️' : '➖');
const emoji = reason.startsWith('Inspection passed:') ? '🔍'
: isAdd ? html`<ha-icon style="--mdc-icon-size:1.1em" icon="${pointsIcon}"></ha-icon>`
: (isPenalty ? '⚠️' : '➖');
return {
childName, tone, emoji, sign, pts,
text: html`<strong>${childName}</strong> ${verb} <strong>${pts}</strong>${item.reason ? html` <span class="reason">— ${displayReason}</span>` : ''}`,