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,10 @@
|
||||
import { notFound } from "next/navigation";
|
||||
import { JournalEntryEditor } from "@/modules/journal/components/entry-editor";
|
||||
import { getJournalEntry } from "@/modules/journal/server/queries";
|
||||
|
||||
export default async function JournalEntryPage({ params }: { params: Promise<{ id: string }> }) {
|
||||
const { id } = await params;
|
||||
const entry = await getJournalEntry(id).catch(() => null);
|
||||
if (!entry) notFound();
|
||||
return <JournalEntryEditor entry={entry} />;
|
||||
}
|
||||
Reference in New Issue
Block a user