feat: journal dashboard widgets, agent polish, and edit-mode live previews
Journal dashboard widgets and quick-add; rich-text quick-add dialogs. Dashboard draft sync for live edit previews; assistant bubble + API tools. Journal UX: stress slider, mood grid, query cap fix.
This commit is contained in:
@@ -27,3 +27,28 @@ export const plantInput = z.object({
|
||||
});
|
||||
|
||||
export const plantUpdateInput = plantInput.partial();
|
||||
|
||||
export const careLogInput = z.object({
|
||||
plantId: z.string().uuid(),
|
||||
careType: z.string().trim().min(1).max(40),
|
||||
notes: z.string().trim().max(2000).nullable().optional(),
|
||||
performedAt: z.string().optional(),
|
||||
});
|
||||
|
||||
export const careScheduleInput = z.object({
|
||||
plantId: z.string().uuid(),
|
||||
careType: z.string().trim().min(1).max(40),
|
||||
intervalDays: z.number().int().min(1).max(365),
|
||||
enabled: z.boolean().optional(),
|
||||
});
|
||||
|
||||
export const careScheduleToggleInput = z.object({
|
||||
id: z.string().uuid(),
|
||||
enabled: z.boolean(),
|
||||
});
|
||||
|
||||
export const scheduleOnCalendarInput = z.object({
|
||||
scheduleId: z.string().uuid(),
|
||||
calendarId: z.string().uuid(),
|
||||
reminderMinutesBefore: z.number().int().min(0).max(1440).optional(),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user