From 075be203a37b86817a4d2de49c55af504439ff2d Mon Sep 17 00:00:00 2001 From: alphaeusmote <41258468-alphaeusmote@users.noreply.replit.com> Date: Fri, 11 Apr 2025 03:38:18 +0000 Subject: [PATCH] Enhance cron job builder with "Select All" options for time units Replit-Commit-Author: Agent Replit-Commit-Session-Id: 705f2157-ef97-4fbd-89e4-8c7f2ecaea90 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7ed01c5f-a82d-405a-b728-b2e3d127c60c/d15e2650-48cd-4f25-a56f-8106c89a9940.jpg --- .../dynamic-groups/cron-job-builder.tsx | 62 ++++++++++++++++++- 1 file changed, 60 insertions(+), 2 deletions(-) diff --git a/client/src/components/dynamic-groups/cron-job-builder.tsx b/client/src/components/dynamic-groups/cron-job-builder.tsx index e3b8fe5..7832d20 100644 --- a/client/src/components/dynamic-groups/cron-job-builder.tsx +++ b/client/src/components/dynamic-groups/cron-job-builder.tsx @@ -116,8 +116,8 @@ export const CronJobBuilder: React.FC = ({ const day = schedule.dayOfMonth || 1; cronExpression = `${schedule.minute} ${schedule.hour} ${day} * *`; break; - case 'custom': - // For custom schedules, if there's no existing cron expression, use a default + default: + // For any other schedules, if there's no existing cron expression, use a default cronExpression = schedule.cronExpression || '0 0 * * *'; break; } @@ -594,6 +594,35 @@ export const CronJobBuilder: React.FC = ({
+
+ + +
{Array.from({ length: 60 }, (_, i) => i).map((minute) => ( + +
{Array.from({ length: 24 }, (_, i) => i).map((hour) => (