terra vidhal

Deploy Pipeline

Component

About

A release pipeline with stage states, environment switching, a live deploy log, release history, failed-stage retry and rollback.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Deploy Pipeline to your project and fits it to your theme.

Code

How Deploy Pipeline is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

/**
 * PrequelUI Animate — MIT — https://prequeluianimate.terravidhal.me
 */

import {
  DeployPipeline,
  type Deployment,
  type LogLine,
  type PipelineStage,
  type StageState,
} from "@/components/ui/deploy-pipeline";

const STAGES: PipelineStage[] = [
  {
    id: "build",
    name: "Build",
    description: "Install dependencies, type-check and bundle the application.",
    estimate: "~40s",
  },
  {
    id: "test",
    name: "Test",
    description: "Run unit and integration suites against the release candidate.",
    estimate: "~55s",
  },
  {
    id: "security",
    name: "Security scan",
    description: "Check dependencies and secrets against the release threshold.",
    estimate: "~35s",
  },
  {
    id: "deploy",
    name: "Deploy",
    description: "Upload the bundle and swap traffic to the new version.",
    estimate: "~25s",
  },
  {
    id: "smoke",
    name: "Smoke checks",
    description: "Verify sign-in, billing and the main navigation after the swap.",
    estimate: "~20s",
  },
];

const HISTORY: Deployment[] = [
  {
    id: "release-280",
    version: "v2.8.0",
    message: "Guard rails for the import service",
    author: "Mara Ellison",
    environment: "Production",
    status: "live",
    time: "18m ago",
    duration: "2m 41s",
  },
  {
    id: "release-272",
    version: "v2.7.2",
    message: "Faster invoice exports",
    author: "Theo Nakamura",
    environment: "Production",
    status: "previous",
    time: "2h ago",
    duration: "3m 08s",
  },
  {
    id: "release-271",
    version: "v2.7.1",
    message: "Retry webhook deliveries",
    author: "Priya Raman",
    environment: "Production",
    status: "failed",
    time: "5h ago",
    duration: "1m 12s",
  },
  {
    id: "release-270",
    version: "v2.7.0",
    message: "Unified navigation shell",
    author: "Jonas Weber",
    environment: "Production",
    status: "previous",
    time: "Yesterday",
    duration: "2m 55s",
  },
];

const STAGE_STATES: Record<string, StageState> = {
  build: "success",
  test: "success",
  security: "failed",
  deploy: "idle",
  smoke: "idle",
};

const LOGS: LogLine[] = [
  { id: "l1", level: "info", text: "Preparing a production deployment from the main branch." },
  { id: "l2", level: "info", text: "Build started." },
  { id: "l3", level: "success", text: "Build passed." },
  { id: "l4", level: "info", text: "Test started." },
  { id: "l5", level: "success", text: "Test passed — 412 unit and 38 integration checks." },
  { id: "l6", level: "info", text: "Security scan started." },
  {
    id: "l7",
    level: "error",
    text: "2 high-severity findings are above the configured threshold. Deployment stopped.",
  },
];

export default function DeployPipelineDemo() {
  return (
    <main className="flex min-h-screen w-full items-center justify-center bg-gradient-to-b from-muted/40 via-background to-background px-4 py-6 sm:px-6">
      <DeployPipeline
        variant="plain"
        stages={STAGES}
        history={HISTORY}
        title="Release pipeline"
        commit={{ branch: "main", sha: "4c1e7a9", author: "Priya Raman" }}
        defaultSelectedDeployment="release-271"
        defaultStageStates={STAGE_STATES}
        defaultFailedAt="security"
        defaultLogs={LOGS}
      />
    </main>
  );
}

Dependencies

More by terra vidhal

View all
  • Project Timeline

    Project Timeline

    30
  • Kanban Board

    Kanban Board

    20
  • Gravity Stars Background

    Gravity Stars Background

    20
  • Booking Calendar

    Booking Calendar

    18
  • Kpi Counter

    Kpi Counter

    17
  • Notification Center

    Notification Center

    16
  • Audio Waveform

    Audio Waveform

    16
  • Topographic Lines

    Topographic Lines

    16

Explore more

Part of PrequelUI Animate — browse the full library on 21st.dev.