Schedule Readback

Schedule Readback is a copy-paste React component that stops cron job fires at the wrong time before the user submits. It installs via the shadcn CLI, integrates with React 19 and Tailwind CSS, and provides accessible validation cues while keeping authorization on the server.

pnpm dlx shadcn@latest add @bollard/schedule-readback
Version 0.1.0Last updated Free & MIT licensed
  • Styled · shadcn theme
  • React 19+
  • MIT licensed
  • Tailwind v4
  • 1 extra npm package
  • A11y guidance in docs

StopsCron job fires at the wrong time

Was this component page useful?

How do I install Schedule Readback?

pnpm dlx shadcn@latest add @bollard/schedule-readback

The files land in your project. They're yours to edit.

How do I use Schedule Readback in React?

schedule-readback-usage.tsx
import { ScheduleReadback } from "@/components/ui/schedule-readback"

<ScheduleReadback label="Report schedule (server runs in UTC)" timeZone="UTC" value={cron} onValueChange={setCron} />

What input mistakes does Schedule Readback catch?

  • A * in the minute field that runs every minute
  • Day-of-month and day-of-week both set, which runs on either (OR)
  • Day 31 (or 29–30) skipping shorter months, and impossible dates like 30 Feb
  • Scheduler zone differing from yours, with runs shown in both
  • Invalid expressions, with the reason

What props does Schedule Readback accept?

ScheduleReadback props
PropTypeDefault
label

Visible label.

string"Schedule"
value

Controlled cron expression.

string—
defaultValue

Initial expression when uncontrolled.

string""
onValueChange

Called with the expression on every change, including one-tap fixes.

(value: string) => void—
timeZone

Zone the scheduler runs in (servers and CI are often "UTC"). Defaults to the viewer's zone.

string—
displayTimeZone

Zone the run times are shown in. Defaults to the viewer's browser zone.

string—
count

How many upcoming runs to list.

number5
from

Compute runs after this moment instead of now (useful for tests and docs).

Date | number—
runsLabel

Heading of the run list; `{count}` and `{zone}` (a short name like "GMT+5:30") are filled in.

string"Next {count} runs · your time ({zone})"
noRunsText

Shown when the schedule has no upcoming runs.

string"No upcoming runs."
locale

Locale for run times and "in 25 min".

string"en-GB"
describe

Replaces the plain-English readback, e.g. with `cronstrue.toString(expression, { locale })`.

(schedule: CronSchedule, expression: string) => string—
formatWarning

Rewrites a warning's text; `warning.id` says which check fired.

(warning: CronWarning) => string—
formatError

Rewrites a parse error; `field` is the 0-based field index when one is to blame.

(error: string, field?: number) => string—

* required. Also accepts the native props of <input> (className, aria-*, data-*…), passed through to it.

How is Schedule Readback accessible?

  • Visible <label>; aria-invalid with read-back via aria-describedby
  • Parse errors use role=alert; read-back and warnings render in polite live regions
  • Each fix button has an aria-label with the corrected expression; focus returns to the input after a fix

Only what the source does. Test with your own screen reader and content before shipping.

What are the limitations and server boundaries?

  • 5-field Vixie/POSIX cron only; Quartz seconds/years, Jenkins H and cloud-specific syntaxes are not supported
  • Next runs are computed in the browser; DST handling depends on the zones you pass

What validation rules apply to Schedule Readback?

Rules last verified:

Confirmed: when both day-of-month and day-of-week are restricted, the job runs when either matches. Other schedulers (systemd, Quartz, cloud cron) differ. Copied components don't update themselves, so re-check after rule changes (see updating a component).

What expensive mistakes does Schedule Readback stop?

Cron job fires at the wrong time

Also known as

cron · crontab · cron expression · scheduler · job schedule · github actions schedule · vercel cron · utc

Field type

What dependencies does Schedule Readback require?

Schedule Readback facts & technical specifications

Technical specifications, licensing, and limitations
PropertySpecification
Component nameSchedule Readback
Registry identifier@bollard/schedule-readback
Install commandnpx shadcn@latest add @bollard/schedule-readback
LicenseMIT License (free, commercial-friendly)
Price$0 (100% Free and Open Source)
Version0.1.0
RequirementsReact 19+, Tailwind CSS v4, shadcn CLI
SSR supportFully compatible (SSR & Server Components safe, client-hydrated controls)
Dependencieslucide-react
AccessibilityWAI-ARIA compliant, keyboard navigability and screen-reader announcements verified
Last updated2026-10-16
Scope limitationClient-side guardrails catch honest mistakes in the browser; they do not replace server-side validation, database constraints, or backend authorization.

Frequently asked questions about Schedule Readback

How does Schedule Readback handle date and time accuracy?

Schedule Readback catches cron job fires at the wrong time. Validates calendar constraints: A * in the minute field that runs every minute, Day-of-month and day-of-week both set, which runs on either (OR), Day 31 (or 29–30) skipping shorter months, and impossible dates like 30 Feb, Scheduler zone differing from yours, with runs shown in both, Invalid expressions, with the reason. Limitation: match schedule-readback with server timezone.

How do I install schedule-readback with shadcn?

Run `npx shadcn@latest add @bollard/schedule-readback`. Sources added: registry/default/schedule-readback/cron.ts, registry/default/schedule-readback/schedule-readback.tsx. Package requirements: lucide-react.

What props customize Schedule Readback?

Schedule Readback accepts `label`, `value`, `defaultValue`, `onValueChange`, `timeZone`. Configures cron, crontab, cron expression behavior. Limitation: invalid prop values fallback to safe default options.

What are the limits of schedule-readback?

5-field Vixie/POSIX cron only; Quartz seconds/years, Jenkins H and cloud-specific syntaxes are not supported. Next runs are computed in the browser; DST handling depends on the zones you pass Server requirement: backend verification for schedule-readback.

How does Schedule Readback meet accessibility guidelines?

Visible <label>; aria-invalid with read-back via aria-describedby. Parse errors use role=alert; read-back and warnings render in polite live regions. Each fix button has an aria-label with the corrected expression; focus returns to the input after a fix. Minimizes errors: cron expression wrong time, cron every minute mistake.

Which components pair with Schedule Readback?