Skip to content
caliper ui pro docs

Edit review

Review what an agent changed across several files. Files with changes left to decide stay on top and settle to the bottom as you finish them, each file is a sweep-apply review of its own, and Accept all travels through the files one after another, then offers Undo.

Pro

Review changes

Fix retry on declined cards · 3 files from the checkout agent

0 accepted · 0 rejected · 6 pending

app/checkout/retry.ts3 of 3 changes pending
Line 2
import { log } from "../lib/log";
​
Removed: const MAX_ATTEMPTS = 3;
Added: const MAX_ATTEMPTS = 4;
​
export async function chargeWithRetry(card: Card, amount: number) {
Line 10
const result = await charge(card, amount);
if (result.ok) return result;
Removed: if (result.reason === "declined") break;
Removed: await sleep(attempt * 200);
Added: if (result.reason === "declined" && attempt > 1) break;
Added: await sleep(2 ** attempt * 100);
}
Removed: log("charge failed", { amount });
Added: log("charge failed", { amount, attempts: MAX_ATTEMPTS });
throw new Error("Payment failed");
}
Line 21
}
​
Removed: export function describe(result: { ok: boolean }) {
Added: export function describe(result: { ok: boolean; retried?: boolean }) {
Added: if (result.retried) return "paid after retry";
return result.ok ? "paid" : "failed";
}
State

When to use

  • Coding agents and any tool that proposes edits across a project.
  • Reviewing generated changes before they are written.

When not to use

  • Comparing two versions of one file; use the file diff or version history.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/edit-review

Adds its 15 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.

API reference

EditReview

5 props
PropTypeDefaultDescription
titlestring"Review changes"
descriptionstring—
files *readonly ReviewFile[]—
onApply((results: ReviewResult[]) => void)—Called with each file's text after your accepted changes.
classNamestring—

Keyboard

  • No custom key handling; Tab and the native activation keys do the work.

Accessibility

It exposes img and status semantics, with aria-label, aria-hidden and aria-current kept in step with state. Changes that matter are announced through a live region.

Notes for AI

Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.

/docs/components/edit-review.md

The index of every part is at /llms.txt.

More in Developer tools