Files
famapp/src/app/garden/plants/[id]/page.tsx
T
ginnoir 0fef3d4ab6 feat: garden care tracking - logs, schedules, reminders (task 73)
- logCare/deleteCareLog actions with schedule update and reminder wiring
- upsertCareSchedule/deleteCareSchedule/toggleCareSchedule actions
- updateScheduleAfterCare helper cancels old reminder, schedules new one
- getCareLogs/getCareSchedules/getOverduePlants/getCareDueSoon queries
- CareLogForm, CareScheduleEditor, CareHistoryList components
- Plant detail Care tab wired up with schedule editor + log form + history
- Log plant care quick-add added to garden manifest
2026-06-01 20:23:43 -05:00

20 lines
641 B
TypeScript

import { notFound } from "next/navigation";
import { getCareLogs, getCareSchedules, getPlant } from "@/modules/garden/server/queries";
import { PlantDetail } from "@/modules/garden/components/plant-detail";
export default async function PlantPage({ params }: { params: Promise<{ id: string }> }) {
const { id } = await params;
const [plant, careLogs, careSchedules] = await Promise.all([
getPlant(id),
getCareLogs(id),
getCareSchedules(id),
]);
if (!plant) notFound();
return (
<div className="page-content">
<PlantDetail plant={plant} careLogs={careLogs} careSchedules={careSchedules} />
</div>
);
}