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,21 @@
|
||||
import Link from "next/link";
|
||||
import { DetailBackLink } from "@/components/detail-back-link";
|
||||
import { MoodTrackerView } from "@/modules/journal/components/mood-tracker-view";
|
||||
import { listJournalEntries } from "@/modules/journal/server/queries";
|
||||
|
||||
export default async function JournalMoodPage() {
|
||||
const entries = await listJournalEntries({ limit: 500 });
|
||||
|
||||
return (
|
||||
<div className="mx-auto grid w-full max-w-5xl gap-4 min-w-0">
|
||||
<DetailBackLink href="/journal" label="Journal" />
|
||||
<div className="flex items-center justify-between gap-3">
|
||||
<h2 className="serif text-[22px] tracking-tight">Mood tracker</h2>
|
||||
<Link href="/journal/insights" className="text-[13px] text-[var(--accent)] hover:underline">
|
||||
View insights
|
||||
</Link>
|
||||
</div>
|
||||
<MoodTrackerView entries={entries} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user