diff --git a/client/src/components/dynamic-groups/cron-job-builder.tsx b/client/src/components/dynamic-groups/cron-job-builder.tsx index 7832d20..6eb8960 100644 --- a/client/src/components/dynamic-groups/cron-job-builder.tsx +++ b/client/src/components/dynamic-groups/cron-job-builder.tsx @@ -281,10 +281,8 @@ export const CronJobBuilder: React.FC = ({ return `Runs weekly on ${schedule.dayOfWeek || 'Monday'} at ${formatTime(schedule.hour, schedule.minute)}`; case 'monthly': return `Runs monthly on day ${schedule.dayOfMonth || 1} at ${formatTime(schedule.hour, schedule.minute)}`; - case 'custom': - return 'Custom schedule'; default: - return 'Custom schedule'; + return 'Advanced schedule'; } }; @@ -724,6 +722,34 @@ export const CronJobBuilder: React.FC = ({
+
+ + +
{weekdays.map((day) => ( + +
{Array.from({ length: 31 }, (_, i) => i + 1).map((day) => ( + +
{[ 'January', 'February', 'March', 'April', diff --git a/shared/schema.ts b/shared/schema.ts index 0b92fea..df85793 100644 --- a/shared/schema.ts +++ b/shared/schema.ts @@ -154,8 +154,7 @@ export const scheduleFrequencies = [ "daily", "weekly", "monthly", - "yearly", - "custom" + "yearly" ] as const; export const weekdays = [ @@ -172,7 +171,7 @@ export const weekdays = [ export const scheduleRules = pgTable("schedule_rules", { id: serial("id").primaryKey(), ruleId: integer("rule_id").references(() => dynamicGroupRules.id, { onDelete: "cascade" }).notNull(), - frequency: text("frequency").notNull(), // once, minutely, hourly, daily, weekly, monthly, yearly, custom + frequency: text("frequency").notNull(), // once, minutely, hourly, daily, weekly, monthly, yearly minute: integer("minute"), // 0-59 hour: integer("hour"), // 0-23 dayOfMonth: integer("day_of_month"), // 1-31