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"
This commit is contained in:
@@ -1,2 +1,21 @@
|
||||
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 },
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user