Skip to content

1 variant

Diff Review

A coding agent's edit to one file as a diff to accept or reject, with line numbers, added and removed counts, and code that folds away once decided.

export async function GET(request: Request) {
1212 const { searchParams } = new URL(request.url);
13- const page = searchParams.get("page");
14- const items = await db.item.findMany();
13+ const page = Number(searchParams.get("page") ?? 1);
14+ const items = await db.item.findMany({
15+ take: PAGE_SIZE,
16+ skip: (page - 1) * PAGE_SIZE,
17+ });
1518
1619 return Response.json({ items, page });
1720 }

Install

$ bunx --bun shadcn add @easeui-pro/diff-review