Miss. Train. Move.

Line-up

Agent tasks, uploads, jobs. A miss lunges and recovers, a goal pops.

  1. Pull last match stats90 minQueued

    Possession, shots and distance run, from the match feed.

  2. Build the training plan3 sessionsQueued

    First try failed: the pitch calendar was locked. Retried after it opened.

  3. Email the squad18 playersQueued

    One message per player with their sessions.

Sport
Football
Move
A miss lunges and recovers, a goal pops.
For
Agent tasks, uploads, jobs

running, done, failed · a miss lunges 8px · reduced: no motion

01 Install

Terminal
npx shadcn@latest add https://moveui-red.vercel.app/r/line-up.json

It brings the tokens with it. The first time, import the tokens once in your root layout:

app/layout.tsx
import "@/components/moveui/tokens.css";

Not using shadcn? Copy the files below into components/moveui/, and tokens.css next to them.

02 Use it

Example
import { LineUp } from "@/components/moveui/line-up/line-up";

<LineUp
  variant="cards"
  onRetry={(id) => retry(id)}
  tasks={[
    { id: "1", title: "Pull match stats", status: "done" },
    { id: "2", title: "Build the training plan", status: "running" },
    { id: "3", title: "Email the squad", status: "queued" },
  ]}
/>

03 Or ask your agent

Paste this into Claude Code, Cursor or any coding agent. It installs the piece and wires it in.

Prompt
Add the Move UI "Line-up" piece to this project. It's for: Agent tasks, uploads, jobs.

1. Install it: npx shadcn@latest add https://moveui-red.vercel.app/r/line-up.json
2. If the project doesn't import the Move UI tokens yet, add this once to the root layout: import "@/components/moveui/tokens.css";
3. Use it like this, adapted to where it belongs in my code:

import { LineUp } from "@/components/moveui/line-up/line-up";

<LineUp
  variant="cards"
  onRetry={(id) => retry(id)}
  tasks={[
    { id: "1", title: "Pull match stats", status: "done" },
    { id: "2", title: "Build the training plan", status: "running" },
    { id: "3", title: "Email the squad", status: "queued" },
  ]}
/>

Keep its reduced-motion behaviour and keyboard support. Don't hardcode durations, easing or colours: they come from the --ml-* tokens.
Docs: https://moveui-red.vercel.app/pieces/line-up

Want your agent to know the whole library and its motion rules? Add the Move UI skill to your project:

Terminal
npx shadcn@latest add https://moveui-red.vercel.app/r/skill.json

04 Code

components/moveui/line-up/line-up.tsx
"use client";

import { useEffect, useId, useRef, useState, type MouseEvent, type ReactNode } from "react";
import "./line-up.css";

/**
 * Line-up: live status rows for an agent's tasks: queued, running, done, failed.
 * Running: the shirt number sits inside a stopwatch sweep. Done: the mark fills green and the
 * tick draws on like a chalk line, with a small Kick. Failed: the row makes a Miss: it lunges
 * toward the problem, falls short, settles, and offers a retry. Each row can open its details.
 * Status is always written too ("Running", "Done", "Failed"), never shown by motion or colour alone.
 * Details: a click anywhere on the row opens or closes them, and they close on their own when you click
 * outside the row or press Escape. The chevron button is the keyboard way in.
 */
export type TaskStatus = "queued" | "running" | "done" | "failed";
export type Task = { id: string; title: ReactNode; meta?: ReactNode; status: TaskStatus; detail?: ReactNode };

type Props = {
  tasks: Task[];
  variant?: "cards" | "list";
  onRetry?: (id: string) => void;
  className?: string;
};

const LABEL: Record<TaskStatus, string> = { queued: "Queued", running: "Running", done: "Done", failed: "Failed" };

export function LineUp({ tasks, variant = "cards", onRetry, className }: Props) {
  return (
    <ol className={["ml-lineup", className].filter(Boolean).join(" ")} data-variant={variant}>
      {tasks.map((t, i) => (
        <Row key={t.id} task={t} n={i + 1} onRetry={onRetry} />
      ))}
    </ol>
  );
}

function Row({ task, n, onRetry }: { task: Task; n: number; onRetry?: (id: string) => void }) {
  const [open, setOpen] = useState(false);
  const id = useId();
  const row = useRef<HTMLLIElement>(null);
  const s = task.status;

  // Open details close by themselves: a click outside this row, or Escape.
  useEffect(() => {
    if (!open) return;
    const outside = (e: PointerEvent) => { if (!row.current?.contains(e.target as Node)) setOpen(false); };
    const esc = (e: KeyboardEvent) => { if (e.key === "Escape") setOpen(false); };
    document.addEventListener("pointerdown", outside);
    document.addEventListener("keydown", esc);
    return () => { document.removeEventListener("pointerdown", outside); document.removeEventListener("keydown", esc); };
  }, [open]);

  // A click anywhere on the row toggles it, except on its own buttons (Retry, the chevron) or a text selection.
  const onRowClick = (e: MouseEvent) => {
    if (!task.detail || (e.target as Element).closest("button, a") || getSelection()?.toString()) return;
    setOpen((o) => !o);
  };

  return (
    <li ref={row} className="ml-lineup__row" data-status={s} data-open={open ? "" : undefined} onClick={onRowClick}>
      <div className="ml-lineup__main">
        <span key={s} className="ml-lineup__mark" aria-hidden="true">
          {s === "done" ? (
            <svg viewBox="0 0 16 16"><path d="M4 8.4 6.8 11 12 5.5" /></svg>
          ) : s === "failed" ? (
            <svg viewBox="0 0 16 16"><path d="M8 4.2v4.6M8 11.4v.4" /></svg>
          ) : (
            <>
              <span>{n}</span>
              {s === "running" && <svg className="ml-lineup__watch" viewBox="0 0 28 28"><circle cx="14" cy="14" r="12.5" /></svg>}
            </>
          )}
        </span>
        <span className="ml-lineup__title">{task.title}</span>
        {task.meta && <span className="ml-lineup__meta">{task.meta}</span>}
        <span key={`b${s}`} className="ml-lineup__badge" role="status">{LABEL[s]}</span>
        {s === "failed" && onRetry && (
          <button type="button" className="ml-lineup__retry" onClick={() => onRetry(task.id)}>Retry</button>
        )}
        {task.detail && (
          <button
            type="button"
            className="ml-lineup__more"
            aria-expanded={open}
            aria-controls={id}
            aria-label={open ? "Hide details" : "Show details"}
            onClick={() => setOpen((o) => !o)}
          >
            <span aria-hidden="true" />
          </button>
        )}
      </div>
      {task.detail && (
        <div id={id} className="ml-lineup__panel" inert={!open}>
          <div className="ml-lineup__detail">{task.detail}</div>
        </div>
      )}
    </li>
  );
}
components/moveui/line-up/line-up.css
/*
  Line-up. Running: a stopwatch sweep (one turn per two beats). Done: the mark pops (Kick, --ml-ease-settle)
  and the tick draws on over --ml-dur-base. Failed: Miss, the row lunges 8px right toward the problem,
  falls short, settles (--ml-dur-travel). Details open with grid rows (Half-time motion).
  Reduced motion: no sweep, no lunge, no draw; colour and text still change.
*/
.ml-lineup { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.5rem; width: 100%; min-width: 0; list-style: none; margin: 0; padding: 0; font-size: 0.875rem; }
.ml-lineup[data-variant="list"] { gap: 0; border-top: 1px solid var(--ml-ink); }

.ml-lineup__row {
  border: 1px solid var(--ml-line);
  border-radius: var(--ml-radius);
  background: var(--ml-bg);
  transition: border-color var(--ml-dur-quick) var(--ml-ease-out);
}
[data-variant="list"] .ml-lineup__row { border-width: 0 0 1px; border-radius: 0; background: none; }
.ml-lineup__row[data-status="failed"] {
  border-color: var(--ml-miss);
  animation: ml-lineup-miss var(--ml-dur-travel) both;
}
[data-variant="list"] .ml-lineup__row[data-status="failed"] { border-color: var(--ml-line); }

.ml-lineup__main { display: flex; align-items: center; gap: 0.75rem; min-height: 3.25rem; padding: 0.5rem 0.75rem; }
[data-variant="list"] .ml-lineup__main { padding-inline: 0; }

/* The mark: shirt number, stopwatch, tick or miss */
.ml-lineup__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px; height: 28px; flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--ml-line);
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
[data-status="queued"] .ml-lineup__mark { color: var(--ml-fg-muted); }
[data-status="running"] .ml-lineup__mark { border-color: var(--ml-line); }
[data-status="done"] .ml-lineup__mark,
[data-status="failed"] .ml-lineup__mark {
  border: 0;
  animation: ml-lineup-kick var(--ml-dur-base) var(--ml-ease-settle) both;
}
[data-status="done"] .ml-lineup__mark { background: var(--ml-win); }
[data-status="failed"] .ml-lineup__mark { background: var(--ml-miss); }
.ml-lineup__mark svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[data-status="done"] .ml-lineup__mark path {
  stroke-dasharray: 14;
  animation: ml-lineup-chalk var(--ml-dur-base) var(--ml-ease-out) calc(var(--ml-dur-tap)) both;
}
.ml-lineup__watch {
  position: absolute;
  inset: -1.5px;
  width: 28px !important; height: 28px !important;
  stroke: var(--ml-ink) !important; stroke-width: 1.5 !important;
  stroke-dasharray: 20 60;
  animation: ml-lineup-sweep calc(var(--ml-beat) * 2) linear infinite;
}

.ml-lineup__title { flex: 1; min-width: 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[data-status="queued"] .ml-lineup__title { color: var(--ml-fg-muted); }
.ml-lineup__meta { color: var(--ml-fg-muted); white-space: nowrap; }
@container (max-width: 22rem) { .ml-lineup__meta { display: none; } }
.ml-lineup { container-type: inline-size; }

.ml-lineup__badge {
  padding: 0.3rem 0.5rem;
  border-radius: var(--ml-radius);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  animation: ml-lineup-badge var(--ml-dur-base) var(--ml-ease-settle) both;
}
[data-status="queued"] .ml-lineup__badge { color: var(--ml-fg-muted); }
[data-status="running"] .ml-lineup__badge { background: var(--ml-surface-2); }
[data-status="done"] .ml-lineup__badge { background: var(--ml-win-soft); color: var(--ml-win-fg); }
[data-status="failed"] .ml-lineup__badge { background: var(--ml-miss-soft); color: var(--ml-miss); }

.ml-lineup__retry,
.ml-lineup__more {
  appearance: none;
  border: 1px solid var(--ml-ink);
  border-radius: var(--ml-radius-control);
  background: var(--ml-bg);
  color: var(--ml-fg);
  font: inherit;
  cursor: pointer;
}
.ml-lineup__retry { padding: 0.35rem 0.6rem; font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; animation: ml-lineup-badge var(--ml-dur-base) var(--ml-ease-settle) var(--ml-dur-base) both; }
.ml-lineup__retry:hover { background: var(--ml-ink); color: var(--ml-ink-fg); }
.ml-lineup__more { display: grid; place-items: center; width: 28px; height: 28px; border-color: transparent; }
/* The chevron is narrower than its 28px tap area: pull the button out so the icon lines up with the row's
   right padding, the same distance as the status mark on the left. */
.ml-lineup__more { margin-right: -9px; }
/* The whole row opens and closes its details */
.ml-lineup__row:has(.ml-lineup__more) .ml-lineup__main,
.ml-lineup__row[data-open] .ml-lineup__panel { cursor: pointer; }
.ml-lineup__more:hover { border-color: var(--ml-line); }
.ml-lineup__more span {
  width: 7px; height: 7px;
  border: solid currentColor; border-width: 0 1.5px 1.5px 0;
  rotate: 45deg; translate: 0 -2px;
  transition: rotate var(--ml-dur-base) var(--ml-ease-settle), translate var(--ml-dur-base) var(--ml-ease-settle);
}
[data-open] .ml-lineup__more span { rotate: 225deg; translate: 0 2px; }
.ml-lineup__retry:focus-visible,
.ml-lineup__more:focus-visible { outline: 2px solid var(--ml-focus); outline-offset: 2px; }

.ml-lineup__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--ml-dur-exit) var(--ml-ease-out); }
[data-open] > .ml-lineup__panel { grid-template-rows: 1fr; transition: grid-template-rows var(--ml-dur-base) var(--ml-ease-settle); }
.ml-lineup__detail { min-height: 0; overflow: hidden; }
.ml-lineup__detail > * { margin: 0 0.75rem 0.75rem calc(0.75rem + 28px + 0.75rem); color: var(--ml-fg-muted); line-height: 1.45; }
[data-variant="list"] .ml-lineup__detail > * { margin-left: calc(28px + 0.75rem); margin-right: 0; }

@keyframes ml-lineup-kick { 0% { scale: 0.6; } }
@keyframes ml-lineup-chalk { from { stroke-dashoffset: 14; } }
@keyframes ml-lineup-sweep { to { rotate: 360deg; } }
@keyframes ml-lineup-badge { from { opacity: 0; translate: 0 3px; } }
/* Miss: lunge toward the problem, fall short, come back ready */
@keyframes ml-lineup-miss {
  0% { translate: 0 0; animation-timing-function: var(--ml-ease-kick); }
  22% { translate: 8px 0; animation-timing-function: var(--ml-ease-out); }
  48% { translate: -3px 0; animation-timing-function: var(--ml-ease-out); }
  72% { translate: 1px 0; }
  100% { translate: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ml-lineup__row[data-status="failed"],
  .ml-lineup__mark,
  .ml-lineup__mark path,
  .ml-lineup__watch { animation: none !important; }
}