Files
famapp/src/modules/garden/server/lists-bridge.ts
T
ginnoir 7f2c5a44dd feat: garden care reminder bodies, task sync, upload cleanup
- care reminders now fire with plant-specific body ("Time to water Pothos")
  via title/body columns on the reminders table (migration 0016)
- bi-directional task sync: checking off a garden-linked task list item
  creates a care log; logging care from garden marks the linked task done
  (list_items.metadata stores gardenPlantId + gardenCareType linkage)
- upload error response no longer leaks debug detail; error message
  corrected from "5 MB" to "100 MB"
2026-06-01 23:58:00 -05:00

22 lines
620 B
TypeScript

export { addItem as addListItem } from "@/modules/lists/server/actions";
export { getList, listLists } from "@/modules/lists/server/queries";
import { addItem } from "@/modules/lists/server/actions";
export async function addGardenCareTask(input: {
listId: string;
text: string;
notes?: string | null;
dueAt?: Date | null;
gardenPlantId: string;
gardenCareType: string;
}) {
return addItem({
listId: input.listId,
text: input.text,
notes: input.notes ?? null,
dueAt: input.dueAt ?? null,
metadata: { gardenPlantId: input.gardenPlantId, gardenCareType: input.gardenCareType },
});
}