Project Pulse
Latest update per project with status badge and progress bar.
import { Badge } from "@/components/ui/badge"
import { Progress } from "@/components/ui/progress"
const COPY = {
title: "Project pulse",
subtitle: "Latest movement across your projects.",
} as const
const PROJECTS = [
{
id: 1,
name: "Website redesign",
status: "On track",
progress: 72,
update: "Sian published the new homepage hero.",
time: "1h ago",
},
{
id: 2,
name: "Mobile app v3",
status: "At risk",
progress: 41,
update: "Push notification work slipped a week.",
time: "3h ago",
},
{
id: 3,
name: "Billing migration",
status: "On track",
progress: 88,
update: "Raja finished the invoice export.",
time: "Yesterday",
},
{
id: 4,
name: "Help center",
status: "Done",
progress: 100,
update: "All 42 articles are published.",
time: "Mon",
},
] as const
export default function ActivityFeedProjectPulse() {
return (
<section className="mx-auto w-full max-w-lg rounded-2xl border bg-card p-5 text-card-foreground">
<h2 className="text-base font-semibold">{COPY.title}</h2>
<p className="mt-1 text-sm text-muted-foreground">{COPY.subtitle}</p>
<ul className="mt-5 space-y-5">
{PROJECTS.map((p) => (
<li key={p.id}>
<div className="flex items-center justify-between gap-3">
<p className="text-sm font-medium">{p.name}</p>
<Badge
variant={
p.status === "At risk"
? "destructive"
: p.status === "Done"
? "default"
: "secondary"
}
>
{p.status}
</Badge>
</div>
<Progress value={p.progress} className="mt-2" />
<p className="mt-2 text-sm text-muted-foreground">
{p.update} <span className="text-xs">{p.time}</span>
</p>
</li>
))}
</ul>
</section>
)
}
Installation
pnpm dlx shadcn@latest add @01orbital/project-pulse-01npx shadcn@latest add @01orbital/project-pulse-01yarn dlx shadcn@latest add @01orbital/project-pulse-01bunx --bun shadcn@latest add @01orbital/project-pulse-01Make it yours
- Its words are in
COPYat the top ofcomponents/blocks/feed/project-pulse-01/index.tsx: change them there, not in the markup. PROJECTS, also at the top of the file, holds its lists and settings.
Built from
Built from these parts. The CLI adds each one that is missing and won't replace a file you already have unless you choose to:
The shadcn parts here are their Base UI versions, and this piece uses Base UI's API. A Radix version you already have won't work with it.
Last updated on