About
A quarterly OKR tracker with objective cards, key results, progress rings, confidence filters, dated check-ins and undo.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Okr Tracker to your project and fits it to your theme.
Code
How Okr Tracker 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 {
OkrTracker,
type Objective,
type OkrCheckIn,
} from "@/components/ui/okr-tracker";
const OBJECTIVES: Objective[] = [
{
id: "onboarding",
title: "Make onboarding self-serve",
owner: "Mara Ellison",
quarter: "Q4 2026",
confidence: "high",
keyResults: [
{ id: "signups", title: "Self-serve signups", current: 1840, target: 2400, unit: "accounts" },
{ id: "activation", title: "Activation after the first run", current: 58, target: 70, unit: "%" },
{ id: "guide", title: "Setup guide completion", current: 72, target: 85, unit: "%" },
],
},
{
id: "support",
title: "Reduce the support queue",
owner: "Theo Nakamura",
quarter: "Q4 2026",
confidence: "medium",
keyResults: [
{ id: "coverage", title: "Help centre coverage", current: 64, target: 80, unit: "%" },
{ id: "deflection", title: "Self-serve deflection", current: 28, target: 45, unit: "%" },
{ id: "response", title: "First response under two hours", current: 72, target: 90, unit: "%" },
],
},
{
id: "reporting",
title: "Ship the reporting workspace",
owner: "Priya Raman",
quarter: "Q4 2026",
confidence: "high",
keyResults: [
{ id: "reporters", title: "Weekly active reporters", current: 420, target: 600, unit: "people" },
{ id: "views", title: "Saved report views", current: 1310, target: 2000, unit: "views" },
{ id: "exports", title: "Export success rate", current: 96, target: 99, unit: "%" },
],
},
{
id: "access",
title: "Strengthen access controls",
owner: "Jonas Weber",
quarter: "Q4 2026",
confidence: "low",
keyResults: [
{ id: "least", title: "Roles using least privilege", current: 6, target: 12, unit: "roles" },
{ id: "rotation", title: "Keys rotated on time", current: 22, target: 40, unit: "keys" },
{ id: "reviews", title: "Quarterly reviews completed", current: 1, target: 4, unit: "reviews" },
],
},
{
id: "q3-onboarding",
title: "Rebuild the first-run guide",
owner: "Mara Ellison",
quarter: "Q3 2026",
confidence: "high",
keyResults: [
{ id: "steps", title: "Guide steps rewritten", current: 12, target: 12, unit: "steps" },
{ id: "feedback", title: "Positive guide feedback", current: 78, target: 75, unit: "%" },
{ id: "dropoff", title: "Completion of step five", current: 66, target: 60, unit: "%" },
],
},
{
id: "q3-search",
title: "Bring search latency down",
owner: "Priya Raman",
quarter: "Q3 2026",
confidence: "medium",
keyResults: [
{ id: "latency", title: "Search under 200ms", current: 81, target: 95, unit: "%" },
{ id: "index", title: "Index freshness under a minute", current: 88, target: 99, unit: "%" },
],
},
];
const HISTORY: Record<string, OkrCheckIn[]> = {
support: [
{
id: "check-1",
time: "Nov 24",
note: "Two help-centre articles shipped; deflections moved up five points.",
confidence: "medium",
progress: 74,
},
{
id: "check-2",
time: "Nov 17",
note: "First-response coverage is stable, deflection is still the weak spot.",
confidence: "medium",
progress: 69,
},
{
id: "check-3",
time: "Nov 09",
note: "Queue volume is down but the self-serve paths need more coverage.",
confidence: "low",
progress: 61,
},
],
onboarding: [
{
id: "check-4",
time: "Nov 25",
note: "Setup guide completion reached 72 percent after the checklist rewrite.",
confidence: "high",
progress: 68,
},
],
};
export default function OkrTrackerDemo() {
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">
<OkrTracker
variant="plain"
objectives={OBJECTIVES}
quarters={["Q4 2026", "Q3 2026"]}
title="Company objectives"
defaultFilter="all"
defaultSelectedId="support"
defaultHistory={HISTORY}
/>
</main>
);
}







