terra vidhal

Performance Review

Component

About

A performance review workspace with employee switching, weighted goal ratings, behaviour sliders, live overall scoring with a previous-cycle marker, band classification, unsaved-change tracking, written feedback and a saved review state.

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

Code

How Performance Review 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 {
  PerformanceReview,
  type ReviewEmployee,
} from "@/components/ui/performance-review";

const EMPLOYEES: ReviewEmployee[] = [
  {
    id: "amara",
    name: "Amara Okafor",
    role: "Product designer",
    team: "Experience",
    previousScore: 3.6,
    feedback:
      "Amara shaped the design system refresh and mentored two new designers. Next cycle, lead the research-to-concept handoff earlier.",
    goals: [
      { id: "system", title: "Ship the design system refresh", detail: "Tokens, components and docs adopted by three teams.", weight: 3, rating: 4 },
      { id: "research", title: "Run six usability sessions", detail: "Turn findings into a prioritised backlog.", weight: 2, rating: 3 },
      { id: "mentor", title: "Mentor two designers", detail: "Weekly critique and a shared growth plan.", weight: 1, rating: 5 },
    ],
    competencies: [
      { id: "craft", label: "Craft", rating: 5 },
      { id: "collaboration", label: "Collaboration", rating: 4 },
      { id: "communication", label: "Communication", rating: 4 },
      { id: "ownership", label: "Ownership", rating: 4 },
    ],
  },
  {
    id: "theo",
    name: "Theo Nakamura",
    role: "Backend engineer",
    team: "Platform",
    previousScore: 3.2,
    feedback:
      "Theo reduced checkout latency and documented the migration path. Pair more often on cross-team design reviews.",
    goals: [
      { id: "latency", title: "Cut checkout latency by 30%", detail: "Caching, query plans and one hot-path rewrite.", weight: 3, rating: 5 },
      { id: "migration", title: "Complete the data migration", detail: "Zero-downtime cutover with rollback tested.", weight: 2, rating: 3 },
      { id: "oncall", title: "Improve on-call runbooks", detail: "Fewer escalations and faster handovers.", weight: 1, rating: 3 },
    ],
    competencies: [
      { id: "craft", label: "Craft", rating: 4 },
      { id: "collaboration", label: "Collaboration", rating: 3 },
      { id: "communication", label: "Communication", rating: 3 },
      { id: "ownership", label: "Ownership", rating: 4 },
    ],
  },
  {
    id: "lena",
    name: "Lena Fischer",
    role: "Support lead",
    team: "Customer",
    previousScore: 4.1,
    feedback:
      "Lena rebuilt the escalation playbook and kept response times flat through a busy quarter. Ready to own the onboarding programme.",
    goals: [
      { id: "response", title: "Hold first response under two hours", detail: "Across every channel for the full half-year.", weight: 3, rating: 5 },
      { id: "playbook", title: "Rewrite the escalation playbook", detail: "Clear owners and severity definitions.", weight: 2, rating: 4 },
      { id: "quality", title: "Lift satisfaction to 4.5", detail: "Close the loop on detractor feedback.", weight: 1, rating: 4 },
    ],
    competencies: [
      { id: "craft", label: "Craft", rating: 4 },
      { id: "collaboration", label: "Collaboration", rating: 5 },
      { id: "communication", label: "Communication", rating: 5 },
      { id: "ownership", label: "Ownership", rating: 4 },
    ],
  },
];

export default function PerformanceReviewDemo() {
  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">
      <PerformanceReview
        employees={EMPLOYEES}
        title="Half-year performance review"
        period="H2 review"
      />
    </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