From 9ceb1a2b697a620bc3e4b8511d9aa8d745a32f8b Mon Sep 17 00:00:00 2001 From: Jon Seager Date: Sat, 7 Feb 2026 11:03:52 +0000 Subject: [PATCH] feat(timeline): add expand/collapse all toggle per month - Add "Expand all" / "Collapse all" link under each month heading - Individual cards remain toggleable even when month is expanded - Three signals coordinate state: _expandedMonths (month-level), _expandedCard (single card), _collapsedCards (individual overrides) --- templates/pages/timeline.html | 2 ++ templates/partials/timeline_month.html | 24 ++++++++++++++++-------- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/templates/pages/timeline.html b/templates/pages/timeline.html index abb17ab..e6f5b3f 100644 --- a/templates/pages/timeline.html +++ b/templates/pages/timeline.html @@ -3,6 +3,8 @@
{% if months.is_empty() %} diff --git a/templates/partials/timeline_month.html b/templates/partials/timeline_month.html index 95fe697..5bd6c6e 100644 --- a/templates/partials/timeline_month.html +++ b/templates/partials/timeline_month.html @@ -4,6 +4,14 @@ + {% for event in month.events %}
@@ -14,27 +22,27 @@ >
{# Category — always visible #} {{ event.kind_label }} {# Relative date — shown when collapsed #} - · {{ event.relative_date_label }} + · {{ event.relative_date_label }} {# Full timestamp — shown when expanded #} {# Expand/collapse chevron #} - + {{ icons::chevron_down("h-4 w-4") }} -
@@ -45,7 +53,7 @@