Ballmac UI home

Dispatch 1: field service board

A dispatch board for field work: waiting jobs with urgent ones first and named, a lane per technician with their jobs in time order, assignment by a labelled select instead of a drag, take-back, and changes undone with the reason.

State

The normal view. Pick a state to see what the block shows while it loads, is empty or fails.

Open in v0 (opens in a new tab)

Installation

$ pnpm dlx shadcn@latest add @ballmac/dispatch-1

Usage

Example: dispatch-1-demo.tsx
"use client"

import { Dispatch1 } from "@/components/ballmac/blocks/dispatch-1/dispatch-1"

export default function Dispatch1Demo() {
  return <Dispatch1 onAssign={() => new Promise((r) => setTimeout(r, 400))} />
}

States

Pass state and the block does the rest: skeletons that match its layout, a clear empty message, an error you can retry, and announcements for screen readers.

  • Loading

    Skeleton for the waiting list and the lanes under the real heading, announced as loading.

    state="loading"
  • No jobs today

    Says no jobs today; emptyState sets the copy.

    state="empty"
  • Could not load

    An alert saying nothing was assigned or changed, with Try again (onRetry). A failed assignment is undone and says why.

    state="error"

Dependencies

Use with AI

A dispatch board. <Dispatch1 technicians={[{ id, name, area?, now? }]} jobs={[{ id, title, address, window, priority: 'normal' | 'urgent', assignedTo?: techId, status?: 'scheduled' | 'en-route' | 'on-site' | 'done' }]} onAssign={(jobId, techId | null) => Promise} />. Waiting jobs list urgent first. Assigning uses a labelled select (no drag), and only a scheduled job can be taken back. With the shadcn MCP server set up (guide), ask your agent:

Add the Ballmac UI Dispatch 1: field service board (@ballmac/dispatch-1) to this project with the shadcn MCP, then use it where it fits.

Use it for

  • An office view for assigning field jobs to technicians
  • Any queue where jobs wait and are given to people

Not for

  • A kitchen's tickets by station; use kitchen-1
  • A calendar of a person's day; use calendar-1

Registry JSON: https://ui.ballmac.com/r/dispatch-1.json

Free to use in personal and commercial projects.

Ballmac UI Pro

Need the whole screen, not one piece?

150 premium blocks (dashboards, settings, calendars, mail, shops, onboarding), a private shadcn registry and Figma tokens. Blocks that show data come with loading, empty and error states built in.

Not ready? Try three Pro blocks free

Leave your email and the blocks appear right here, ready to copy. Yours to use in any project.