terra vidhal

Risk Register

Component

About

A risk register with an interactive likelihood-impact matrix, clickable cell filters, open-risk and mitigation coverage summaries, a live severity mix bar, score-based levels, a searchable risk list, editable likelihood, impact, mitigation, owner and status, plus delete undo and save.

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

Code

How Risk Register 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 { RiskRegister, type Risk } from "@/components/ui/risk-register";

const RISKS: Risk[] = [
  {
    id: "r1",
    title: "Single region deployment",
    description: "The whole workspace runs in one region with no warm standby.",
    category: "Infrastructure",
    likelihood: 3,
    impact: 5,
    owner: "Theo",
    status: "mitigating",
    mitigation: "Add a standby region and rehearse the failover quarterly.",
  },
  {
    id: "r2",
    title: "Key person on billing",
    description: "Only one engineer understands the invoice reconciliation job.",
    category: "People",
    likelihood: 4,
    impact: 3,
    owner: "Lena",
    status: "open",
    mitigation: "Pair on the job and write a runbook before the next cycle.",
  },
  {
    id: "r3",
    title: "Third-party export limit",
    description: "The reporting provider caps exports during month end.",
    category: "Vendor",
    likelihood: 4,
    impact: 4,
    owner: "Jonas",
    status: "open",
    mitigation: "Queue exports earlier and cache the weekly report.",
  },
  {
    id: "r4",
    title: "Stale onboarding copy",
    description: "Screenshots in the setup guide are two releases behind.",
    category: "Content",
    likelihood: 5,
    impact: 2,
    owner: "Amara",
    status: "mitigating",
    mitigation: "Refresh screenshots in the release checklist.",
  },
  {
    id: "r5",
    title: "Unreviewed access grants",
    description: "Quarterly access review slipped past its deadline.",
    category: "Security",
    likelihood: 2,
    impact: 5,
    owner: "Priya",
    status: "open",
    mitigation: "Schedule the review and assign two reviewers.",
  },
  {
    id: "r6",
    title: "Duplicate webhook delivery",
    description: "Retries can send the same event twice to customers.",
    category: "Infrastructure",
    likelihood: 3,
    impact: 4,
    owner: "Theo",
    status: "mitigating",
    mitigation: "Add an idempotency key and dedupe window.",
  },
  {
    id: "r7",
    title: "Support macro drift",
    description: "Saved replies mention an outdated cancellation window.",
    category: "Content",
    likelihood: 2,
    impact: 2,
    owner: "Sam",
    status: "closed",
    mitigation: "Macros refreshed and reviewed by the support lead.",
  },
];

export default function RiskRegisterDemo() {
  return (
    <main className="flex min-h-screen w-full items-start justify-center bg-gradient-to-b from-muted/40 via-background to-background px-4 py-8 sm:px-6">
      <RiskRegister risks={RISKS} title="Workspace risk register" />
    </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
  • Notification Center

    Notification Center

    16
  • Audio Waveform

    Audio Waveform

    16
  • Kpi Counter

    Kpi Counter

    16
  • Topographic Lines

    Topographic Lines

    16

Explore more

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