This commit is contained in:
Dominik Klarkowski
2026-06-22 11:32:27 +02:00
parent bf8624c954
commit d908965c95
16 changed files with 642 additions and 103 deletions

View File

@@ -1,6 +1,7 @@
import { notFound } from "next/navigation";
import { AiAnalysisCard } from "@/components/ai-analysis-card";
import { ElevationChart } from "@/components/elevation-chart";
import { NotesEditor } from "@/components/notes-editor";
import { RouteMapSection } from "@/components/route-map-section";
import { GcbChart } from "@/components/gcb-chart";
import { RunMetricChart } from "@/components/run-metric-chart";
@@ -12,6 +13,7 @@ import {
type RunningActivity,
} from "@/lib/models/running";
import { getCurrentUserId } from "@/lib/session";
import { saveRunningNotes } from "@/app/running/actions";
export const dynamic = "force-dynamic";
@@ -198,6 +200,11 @@ export default async function RunningActivityPage({
</div>
)}
<NotesEditor
initialNotes={activity.notes ?? ""}
onSave={saveRunningNotes.bind(null, activity._id.toString())}
/>
<AiAnalysisCard
targetType="running"
targetId={activity._id.toString()}