Step Panel

Set up a workflow step in three stages, Setup › Configure › Test: its app and account, fields mapped from earlier steps, filter rules, and a test whose output later steps map from.

2. Create contact

Configure
Email (required)
Work email
Full name
Full name
Company
Company
Seats
Stage
Note
Submitted at

Sample: Asked for a demo on 2026-11-30T13:40:00Z.

Installation

pnpm dlx shadcn@latest add checkfu/uicontext/step-panel

Usage

import { type MapperData, type MapperField, StepPanel } from "./ui/uicontext/components/kit/StepPanel.ts"import type { StepPickerApp } from "./ui/uicontext/components/kit/StepPicker.ts"
const Message = UiSchema.TaggedEnum({	PickedStep: { step: Schema.String, app: Schema.String, event: Schema.String },	SetStepField: { step: Schema.String, field: Schema.String, value: Schema.String },	TestedStep: { step: Schema.String },})export const StepSetup = (	h: Html.H<typeof Message.Type>,	step: { readonly id: string; readonly app: string | null; readonly event: string | null },	apps: ReadonlyArray<StepPickerApp>,	fields: ReadonlyArray<MapperField>,	data: ReadonlyArray<MapperData>,) =>	StepPanel(h, {		key: step.id,		props: {			id: step.id,			title: "2. Create contact",			app: { value: step.app, options: [] },			event: { value: step.event, options: [] },			catalog: { apps, for: "action" },			fields,			data,			test: { note: "Testing creates a real contact." },			can: ["test", "change"],		},		onEmit: {			RequestedAppEvent: ({ id, app, event }) => Message.PickedStep({ step: id, app, event }),			RequestedField: ({ id, field, value }) => Message.SetStepField({ step: id, field, value }),			RequestedTest: ({ id }) => Message.TestedStep({ step: id }),			RequestedContinue: () => undefined,			RequestedApp: () => undefined,			RequestedEvent: () => undefined,			RequestedAccount: () => undefined,			RequestedConnect: () => undefined,			RequestedOptions: () => undefined,			RequestedSample: () => undefined,			RequestedRename: () => undefined,		},	})

Examples

A new step

A step added from the flow diagram opens the catalog first; once chosen, Change opens it again.

3. New step

Setup
    • Team ChatChannels and direct messages.
    • FilterOnly continue when conditions are true.
    • PathsSplit into paths with their own rules.
    • DelayWait before the next step.
    • FormatterChange text, numbers and dates.
    • Pipeline CRMContacts, companies and deals.
    • Team ChatChannels and direct messages.
    • MailSend and receive email.
    • BillingPayments and subscriptions.
    • Data WarehouseYour admin hasn’t allowed this app.

Filter conditions

A filter or a path takes rules: data, a comparison and a value. Rules in a group must all hold; any one "or" group is enough. The panel says them back in a sentence and checks each against the sample data.

2. Only big companies

Configure
Only continue if (required)
Company size

Sample: 240, holds

and
Work email

Sample: [email protected], holds

Company

Sample: Halcyon Health, holds

Passes when Company size is more than 200 and Work email exists, or Company contains “Health”.

The sample data passes.

A trigger with an expired account

The trigger's test found records to choose a sample from; its account needs signing in again before it can run.

1. New form response

Setup
FormsNew form response

This Forms account can’t be used: the sign-in expired on Nov 24.

Choose a working account to continue.

API reference

Props

StepPanel props
NameTypeDefaultDescription
idrequiredstring—The step's id, sent back with every request
titlerequiredstring—"2. Create contact"
apprequiredMapperChoice—Which app the step uses, and the apps to choose from
eventMapperChoice—Shown once there's an app
catalogMapperCatalog—The catalog to choose the app and event from; replaces the app and event lists
account{ connectLabel, reconnect }—Shown once there's an event that needs one; reconnect says why the chosen account needs signing in again
fieldsMapperField[]—The step's inputs, shown once the app, event and account are chosen
dataMapperData[]—Data from earlier steps, with samples, that fields can insert
testMapperTest—The last test of the step and what testing does
canrequiredStepPanelCapability[]—What the viewer may do: test the step, connect an account, rename it, change its app
readOnlyNotice—Why the step can't be changed; shows its setup without controls
outcomeOutcome | null—The app's answer to the request in flight; its request is "app", "event", "account", "field", "test", "connect", "rename" or "sample"
agentIdstringstep:<id>The id agents know this step by; step:<id> by default
autoFocusboolean—Move focus to the catalog's search when it shows, as for a step just added

Events

StepPanel events
EventPayloadDescription
RequestedApp{ id: string; app: string }The person picked an app for the step
RequestedEvent{ id: string; event: string }The person picked the app's event or action
RequestedAppEvent{ id: string; app: string; event: string }The person picked an app and its event at once, from the catalog
RequestedAccount{ id: string; account: string }The person picked a connected account
RequestedConnect{ id: string; account?: string }Start connecting an account (the app runs the sign-in); account names one to sign in to again
RequestedOptions{ id: string; field: string }Load a select field's choices again
RequestedField{ id: string; field: string; value: string }A field's new value: when a text field is left, a pill goes in or out, or a select or switch changes
RequestedSample{ id: string; sample: string }The person chose the record later steps use as their sample
RequestedRename{ id: string; title: string }The step's new name
RequestedTest{ id: string }Run a test of the step
RequestedContinue{ id: string }The step is set up and tested, and the person pressed Continue: open the next step

Agent actions

What agents can do with StepPanel
ActionDescription
ChoseAppChoose the app by value (see page_query)
ChoseEventChoose the event by value
PickedStepPickerChoose what the step does from the catalog, by app id and event id (choices app/event)
ChoseAccountChoose the account by value
ClickedConnectStart connecting a new account (a person signs in)
SetFieldSet a field by id. Map data with {{step.path}} tokens from page_query; a conditions field takes JSON {match, rules:[{left, op, right}]}.
ChoseSampleChoose the sample record later steps use
ClickedTestTest the step with the data it maps
ClickedStageOpen a stage: setup, configure or test. A stage opens once the ones before it are done.
ClickedContinueGo to the next stage, or, from the last one, ask to open the next step
ClickedAddRuleAdd a blank "and" rule to a conditions field's group (the last by default)
ClickedAddGroupAdd an "or" group with one blank rule to a conditions field

Accessibility

  • Setup, fields and test are fieldsets with legends; each field's hint, type warning and error are tied to it with aria-describedby.
  • A field's text and pills are one labelled group. Backspace at the start of a text run removes the pill before it, and the arrow keys step over pills.
  • Insert data opens a searchable list of earlier steps' outputs; the arrows and Enter insert one at the caret.
  • A text field sends its value when you leave it, so typing never sends a request per key. The test result is announced when it arrives.

Source