From f73281b0667c34adb0e6ed14da9f9dce500d1efe Mon Sep 17 00:00:00 2001 From: waleed Date: Sun, 14 Jun 2026 05:19:47 -0700 Subject: [PATCH 01/11] feat(scheduled-tasks): pause/resume, mutation toasts, submit guards, empty state - Toasts on every job mutation (create/update/delete/exclude/pause/resume) so failures are never silent - TaskModal stays open until the save persists; submit disabled in-flight to block double-submit - Pause/Resume recurring tasks via the context menu; paused occurrences render dimmed so they stay resumable - First-run empty state with a create CTA when the workspace has no tasks --- .../calendar-event-chip.tsx | 5 +- .../schedule-calendar/schedule-calendar.tsx | 37 ++++++++++- .../task-context-menu/task-context-menu.tsx | 27 +++++++- .../components/task-modal/task-modal.tsx | 46 ++++++++----- .../hooks/use-scheduled-tasks.ts | 51 +++++++++++++-- .../scheduled-tasks/scheduled-tasks.tsx | 14 ++++ .../utils/schedule-events.test.ts | 22 ++++++- .../scheduled-tasks/utils/schedule-events.ts | 24 ++++++- apps/sim/hooks/queries/schedules.ts | 64 +++++++++++++++++++ 9 files changed, 258 insertions(+), 32 deletions(-) diff --git a/apps/sim/app/workspace/[workspaceId]/scheduled-tasks/components/schedule-calendar/components/calendar-event-chip/calendar-event-chip.tsx b/apps/sim/app/workspace/[workspaceId]/scheduled-tasks/components/schedule-calendar/components/calendar-event-chip/calendar-event-chip.tsx index 87f0ca6b6ca..54198191861 100644 --- a/apps/sim/app/workspace/[workspaceId]/scheduled-tasks/components/schedule-calendar/components/calendar-event-chip/calendar-event-chip.tsx +++ b/apps/sim/app/workspace/[workspaceId]/scheduled-tasks/components/schedule-calendar/components/calendar-event-chip/calendar-event-chip.tsx @@ -24,7 +24,9 @@ interface CalendarEventChipProps { * details modal carries the state. The pill is the grid's real `