groceries stats: fix array/json params for the app client (live store filter 500), CPI axis, header spacing
All checks were successful
Deploy production / deploy (push) Successful in 1m11s

This commit is contained in:
2026-10-25 20:48:00 +00:00
parent 8e35a58095
commit 6dcbcfee25
2 changed files with 14 additions and 7 deletions

View File

@@ -394,7 +394,12 @@
tooltip: { trigger: 'axis', valueFormatter: (v: number) => (v == null ? '–' : v.toFixed(2)) },
legend: legend(t),
xAxis: { type: 'category', data: (s?.days ?? []).map(fmtDay), axisLabel: { color: t.muted } },
yAxis: axisVal(t),
yAxis: {
...axisVal(t),
scale: true,
minInterval: 0.1,
axisLabel: { color: t.muted, formatter: (v: number) => v.toFixed(1) }
},
series: ids.map((k) => ({
name: sname(Number(k)),
type: 'line',
@@ -588,8 +593,8 @@
<p class="mt-2 flex flex-wrap items-center gap-1.5 text-sm text-[var(--site-muted)]">
<Lock size={14} aria-hidden="true" />
{#if ready && meta}
Snapshot of {fmtDay(ready.day)} · {historyDays} day{historyDays === 1 ? '' : 's'} of price history{#if ready.durationMs}
· computed in {(ready.durationMs / 1000).toFixed(1)} s{/if}
Snapshot of {fmtDay(ready.day)} · {historyDays} day{historyDays === 1 ? '' : 's'} of price history
{#if ready.durationMs}· computed in {(ready.durationMs / 1000).toFixed(1)} s{/if}
{:else}Who's cheapest, how often, and by how much.{/if}
</p>
</div>