From 03d67588f58b59712443dd43695bc6f6a11c2a84 Mon Sep 17 00:00:00 2001 From: Rogier Reerink Date: Sat, 24 Oct 2026 12:53:54 +0200 Subject: [PATCH] Table in transaction history. --- .../scheduled-transactions/+page.svelte | 2 +- .../routes/transaction-history/+page.svelte | 64 +++++++++++++++++++ 2 files changed, 65 insertions(+), 1 deletion(-) diff --git a/web/src/routes/scheduled-transactions/+page.svelte b/web/src/routes/scheduled-transactions/+page.svelte index 2eacd2c..78fd1f2 100644 --- a/web/src/routes/scheduled-transactions/+page.svelte +++ b/web/src/routes/scheduled-transactions/+page.svelte @@ -39,7 +39,7 @@ amount: 200 }, { - checked: true, + checked: false, id: 3, name: 'Yet another transaction', description: 'Yet another description, but longer than the others', diff --git a/web/src/routes/transaction-history/+page.svelte b/web/src/routes/transaction-history/+page.svelte index 438863d..61f1e93 100644 --- a/web/src/routes/transaction-history/+page.svelte +++ b/web/src/routes/transaction-history/+page.svelte @@ -1,6 +1,70 @@ + + Transaction history | Expenses + + (row?.checked ? ['highlight'] : [])}> + {#snippet header({ key, label })} + {#if key === 'checked'} + data.forEach((row) => (row.checked = e.currentTarget.checked))} + checked={data.every((row) => row.checked)} + /> + {:else} + {label} + {/if} + {/snippet} + {#snippet cell({ key, value, row })} + {#if key === 'checked'} + + {:else} + {value} + {/if} + {/snippet} +