Kanshō/Automation trigger row

Automation trigger row

One trigger on an automation: a kind select plus a friendly schedule builder (minutes / hourly / daily / weekly / monthly) over a cron expression, with a custom-cron escape hatch and a live plain-language preview. The expression is the single source of truth — the builder re-derives its controls from it on every render.

Included in the single kansho full pack. Components are not offered as separate installs.

Interactive

edit, add, and remove triggers — state round-trips through the cron expression
Weekdays at 09:000 9 * * 1-5

Weekdays at 09:00 · run_failed

Shapes

Static preview: these schedule shapes do not update or remove a host workflow
Every 15 minutes
Every 15 minutes*/15 * * * *
Hourly
Hourly at :3030 * * * *
Daily
Daily at 09:000 9 * * *
Weekly (Mon, Wed)
Monday, Wednesday at 17:3030 17 * * 1,3
Monthly (day 15)
Monthly on day 15 at 09:000 9 15 * *
Custom cron
Custom schedule
Run finished

Disabled

Static preview: the disabled row does not update or remove a host workflow
Weekdays at 09:000 9 * * 1-5

Component documentation

Automation Trigger Row

components/workflow/automation-trigger-row.tsx

Purpose

Edits one automation trigger and converts friendly schedules to and from cron expressions.

Appropriate use

Use in controlled workflow forms for cron, run-finished, or run-failed triggers.

Example

components/workflow/automation-trigger-row.tsx has a representative live example in the "Interactive" section on /components/automation-trigger-row.

States

Trigger kinds are cron, run_finished, and run_failed; cron schedule shapes are minutes, hourly, daily, weekly, monthly, and custom; the row can be disabled.

API and props

Exports AutomationTriggerRow, AutomationTriggerValue, parseScheduleShape, buildCronExpression, and describeCronExpression; row props are trigger, onChange, onRemove, disabled, and className.

Dependencies

Direct imports are React, Lucide icons, Input, and cn.

Accessibility

Selects and inputs have accessible labels, weekday toggles expose pressed state, the row is a labelled group, and remove is named.

Limitations

It does not validate full cron semantics, schedule jobs, choose time zones, or persist changes; the expression remains the caller's source of truth.

Source

Source: components/workflow/automation-trigger-row.tsx.

Full pack

components/workflow/automation-trigger-row.tsx is documented at /components/automation-trigger-row and installs only through the single Kansho full pack; no individual component install is offered.