Updated
PR Review Card
ProCustomize
Approvals needed2
Check time2.4s
checks
Merged colour
Width480px
Installation
ProPR Review Card is a Pro component
Sign in to see the source, or install it with a license key. The live preview and props above are free to explore.
Install with a key
- Add the Pro registry to
components.json:components.json { "registries": { "@uibrik-pro": { "url": "https://uibrik.com/r/pro/{name}.json", "headers": { "Authorization": "Bearer ${UIBRIK_LICENSE}" } } } } - Put your key in
.env.localand add that file to.gitignore:.env.local UIBRIK_LICENSE=your-license-key - Install it:
Terminal npx shadcn@latest add @uibrik-pro/pr-review-card
Loading your installation…
Usage
import { PrReviewCard } from "@/components/uibrik/pr-review-card/pr-review-card";const checks = [ { name: "Lint", status: "success", duration: 18 }, { name: "Type check", status: "success", duration: 41 }, // …5 more];const reviewers = [ { name: "Kai Müller", state: "approved" }, { name: "Nora Lind", state: "approved" }, // …1 more];const files = [ { path: "app/onboarding/page.tsx", additions: 148, deletions: 62 }, { path: "app/onboarding/steps.tsx", additions: 124, deletions: 0 }, // …3 more];<PrReviewCard title="New three-step onboarding" repo="acme/web" branch="feat/onboarding-v2" requiredApprovals={2} simulate checkTime={2.4} defaultTab="checks" mergedColor="#7c5cff" width={480} checks={checks} reviewers={reviewers} files={files} author="Elena Rossi" number={482} base="main" // merged={false} // onMerge={() => {}}/>Where to use PR Review Card
Developer dashboards
Checks, reviews and change size fit one card, with the detail a tap away.
Pairs with Deploy Pipeline
Dev tool landing pages
Checks finishing live and a merge that unlocks show the review flow in a few seconds.
Pairs with Git Graph
Team activity feeds
Each open pull request reads at a glance, and the reason it's blocked is always spelled out.
Props
PrReviewCard- title
- Type string
- "New three-step onboarding"
- Pull request title.
- repo
- Type string
- "acme/web"
- Repository shown above the title.
- branch
- Type string
- "feat/onboarding-v2"
- Branch being merged.
- requiredApprovals
- Type number
- 2
- Approvals needed before Merge unlocks.
- simulate
- Type boolean
- true
- Finish running checks on their own once in view.
- checkTime
- Type number
- 2.4
- Seconds each running check takes when simulating.
- defaultTab
- Type "" | "checks" | "reviews" | "changes"
- "checks"
- Tile open on mount.
- mergedColor
- Type string
- "#7c5cff"
- Colour of the merged state.
- width
- Type number
- 480
- Width of the card; never wider than its container.
- checks
- Type { name: string; status: "success" | "failed" | "running" | "queued"; duration?: number }[]
- –
- CI checks in order. duration is seconds.
- reviewers
- Type { name: string; avatar?: string; state: "approved" | "changes" | "commented" | "pending" }[]
- –
- Requested reviewers and their verdicts.
- files
- Type { path: string; additions: number; deletions: number }[]
- –
- Changed files.
- author / number / base
- Type string / number / string
- –
- Who opened it, its number, and the branch it merges into.
- merged / onMerge
- Type boolean / () => void
- –
- Controlled merged state, and a callback when Merge is pressed.
- className
- Type string
- –
- Classes for the wrapper.