From dac5433353bbb5b1825f17d65b940c5806d70062 Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Fri, 22 May 2026 14:59:50 -0400 Subject: [PATCH] fix(journal): captures panel filter uses date_from and date_to /api/journal/moments takes date_from + date_to query params, not the single 'date' name the frontend was sending. Filter was silently ignored; the panel showed every moment in the database ordered by recency, making it look like a weird recap of past events instead of today's captures. No backend change; just send the right param names. Co-Authored-By: Claude Opus 4.7 (1M context) --- frontend/src/views/JournalView.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/JournalView.vue b/frontend/src/views/JournalView.vue index 40b4b1b..c28a108 100644 --- a/frontend/src/views/JournalView.vue +++ b/frontend/src/views/JournalView.vue @@ -76,7 +76,15 @@ async function loadMoments() { } momentsLoading.value = true try { - moments.value = await listJournalMoments({ date: selectedDay.value, limit: 100 }) + // /api/journal/moments takes date_from + date_to (NOT `date`). + // Passing a single ISO date for both bounds gives us the moments + // recorded on that calendar day, which is what the captures panel + // means by "today". + moments.value = await listJournalMoments({ + date_from: selectedDay.value, + date_to: selectedDay.value, + limit: 100, + }) } catch { /* silent — moments may not exist yet */ } finally {