feat: label AI-rescheduled appointments and add manual confirm option
- Add movedByAi boolean column to Appointment table (default false) - reschedule-graph: set movedByAi=true when AI moves an appointment - PATCH /api/appointments/:id/confirm endpoint clears the movedByAi flag - Schedule grid: show teal AI badge on appointment cards where movedByAi=true - Right-click context menu: 'Manually Confirmed' removes the AI badge via the confirm endpoint Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -21,6 +21,7 @@ const makeSchema = () => z.object({
|
||||
notes: z.union([SortOrderSchema, z.lazy(() => SortOrderInputObjectSchema)]).optional(),
|
||||
procedureCodeNotes: z.union([SortOrderSchema, z.lazy(() => SortOrderInputObjectSchema)]).optional(),
|
||||
status: SortOrderSchema.optional(),
|
||||
movedByAi: SortOrderSchema.optional(),
|
||||
createdAt: SortOrderSchema.optional(),
|
||||
eligibilityStatus: SortOrderSchema.optional(),
|
||||
_count: z.lazy(() => AppointmentCountOrderByAggregateInputObjectSchema).optional(),
|
||||
|
||||
Reference in New Issue
Block a user