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 expression0 9 * * 1-5Weekdays at 09:00 · run_failed
Shapes
Static preview: these schedule shapes do not update or remove a host workflow*/15 * * * *30 * * * *0 9 * * *30 17 * * 1,30 9 15 * *Disabled
Static preview: the disabled row does not update or remove a host workflow0 9 * * 1-5Component documentation
Automation Trigger Row
components/workflow/automation-trigger-row.tsxPurpose
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.