diff --git a/CLAUDE.md b/CLAUDE.md index f016f88..8994159 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -354,6 +354,18 @@ Three macros are available: - **`pagination_header(items, navigator, target_selector)`** — prev/next buttons, page count, rows-per-page selector; hidden on mobile via `pagination-controls hidden md:flex` - **`sortable_header(label, key, navigator, target_selector)`** — clickable column header with sort direction arrows +### "Added" Column + +Every table has a sortable "Added" column as its **first column**, sorted by `created-at`. It uses a distinct smaller style to visually separate it from content columns: + +```html +
| Weight | - {% call table::sortable_header("Added", "created-at", navigator, "#bag-list") %} {% - call table::sortable_header("Finished", "finished-at", navigator, "#bag-list") %} + {% call table::sortable_header("Finished", "finished-at", navigator, "#bag-list") %}|||||
|---|---|---|---|---|---|
| + {{ bag.created_at }} + | {{ bag.roaster_name }} | {{ bag.roast_name }} | {{ bag.amount }}g | -{{ bag.created_at }} | {{ bag.finished_at }} |
| Coffee | Grind | Recipe | Temp | Brewer | - {% call table::sortable_header("Date", "created-at", navigator, "#brew-list") %} {% if is_authenticated %}Actions | {% endif %} @@ -24,6 +24,9 @@
|---|---|---|---|---|---|
| + {{ brew.created_at }} + |
@@ -61,7 +64,6 @@
{% if let Some(fp_name) = brew.filter_paper_name %}
{{ fp_name }} |
{% endif %}
- {{ brew.created_at }} |
{% if is_authenticated %}
| |