fix(t-paliad-110): hide Überfällig card on Beides view
Spec is explicit that Überfällig is deadline-view-only — only showing it on type=deadline matches the rationale that 'overdue' is a deadline- specific concept (appointments don't go overdue, they happen). The previous logic also surfaced the card on Beides whenever the deadline-side overdue count > 0, which would have rendered an alarm card on a mixed view. Caught during live verification on paliad.de.
This commit is contained in:
@@ -291,13 +291,17 @@ async function loadSummary() {
|
||||
}
|
||||
}
|
||||
|
||||
// Überfällig is deadline-view-only per t-paliad-110 spec. It stays hidden
|
||||
// in Beides mode even when overdue > 0 — the design treats "overdue" as a
|
||||
// deadline-specific concept (appointments don't go overdue, they happen),
|
||||
// so showing the card in mixed mode would be a category error.
|
||||
function applyOverdueState(overdue: number) {
|
||||
const card = document.querySelector<HTMLElement>('.frist-summary-card[data-bucket="overdue"]');
|
||||
if (!card) return;
|
||||
const includeDeadlines = currentType === "deadline" || currentType === "all";
|
||||
const hidden = !includeDeadlines || overdue === 0;
|
||||
const isDeadlineView = currentType === "deadline";
|
||||
const hidden = !isDeadlineView || overdue === 0;
|
||||
card.classList.toggle("frist-card-overdue-hidden", hidden);
|
||||
card.classList.toggle("frist-card-alarm", !hidden && overdue > 0);
|
||||
card.classList.toggle("frist-card-alarm", isDeadlineView && overdue > 0);
|
||||
}
|
||||
|
||||
async function loadList() {
|
||||
|
||||
Reference in New Issue
Block a user