feat(journal): add per-user mood journal module (task 86)
Ship journal entries with mood tracking, insights, and Recharts charts. Adds v1 API endpoints per ADR 0005 and migration 0020_journal_entries.
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import { recordedDayKey } from "@/modules/journal/day-key";
|
||||
import { JournalIndex } from "@/modules/journal/components/journal-index";
|
||||
import { listJournalEntries } from "@/modules/journal/server/queries";
|
||||
|
||||
export default async function JournalPage() {
|
||||
const entries = await listJournalEntries();
|
||||
const entryDays = [...new Set(entries.map((entry) => recordedDayKey(entry.recordedAt)))];
|
||||
return <JournalIndex entries={entries} entryDays={entryDays} />;
|
||||
}
|
||||
Reference in New Issue
Block a user