# Longlist review (/blocks/longlist-review)

## Try a decision [#try-a-decision]

Pick Yes or No on a candidate, enter your reason, then open the matching filter. Return to Everyone to see the whole longlist. A decision belongs to the person on this role.

## Build it for your desk [#build-it-for-your-desk]

Use the [review card](/ui/candidate-review-card), [decision with a reason](/ui/candidate-client-decision) and [filter chips](/ui/candidate-filter-chips). Read the role’s [candidate records](/api/reference/objects/job-candidate) and connect decisions to an authorised write in your app. For a worked brief, see [Review a shortlist before a client call](/workflows/review-a-shortlist).

Try it in Preview, or copy the React source in Code. The sample keeps changes in this browser tab until the page reloads.

Try the [Source to screen template](/templates/sourcing-and-screening) to review a longlist and carry a question into a screening call.
## Build prompt
Help me decide who to screen. Let me record a Yes or No with a reason and filter the longlist by decision.
Use the React source and fictional records at https://docs.kith.contact/blocks/longlist-review.md.
Build a working preview with sample data. Keep my changes local for now.
If you cannot fetch the page, ask me to paste its Markdown.
## React source
```tsx
"use client";

import { useState } from "react";
import { PersonAvatar } from "@epicbagel/saas-kit/primitives/person-avatar";
import { Stack } from "@epicbagel/saas-kit/primitives/stack";
import { Text } from "@epicbagel/saas-kit/primitives/text";
import { CandidateClientDecision } from "@recruiteros/recruit-ui/recruit/candidate-client-decision";
import { CandidateFilterChips } from "@recruiteros/recruit-ui/recruit/candidate-filter-chips";
import { CandidateReviewCard } from "@recruiteros/recruit-ui/recruit/candidate-review-card";

const people = [
  { id: "riley", name: "Riley Okafor", title: "GTM Engineer · Example Labs", evidence: "Built the first outbound system and ran the campaigns.", photo: "/people/riley-okafor.jpg" },
  { id: "sam", name: "Sam Lindqvist", title: "RevOps Lead · Sample Analytics", evidence: "Runs weekly campaigns. Check which parts of the stack Sam built.", photo: "/people/sam-lindqvist.jpg" },
  { id: "alex", name: "Alex Marchetti", title: "Growth Engineer · Fictional Robotics", evidence: "Built product-led growth tooling. Cold outbound experience is still open.", photo: "/people/alex-marchetti.jpg" },
];

type Decision = { decision: "yes" | "no"; reason: string };
const filters = [{ value: "waiting", label: "To review" }, { value: "yes", label: "Yes" }, { value: "no", label: "No" }];

export function LonglistReviewBlock() {
  const [answers, setAnswers] = useState<Record<string, Decision>>({});
  const [filter, setFilter] = useState<string | null>(null);
  const status = (id: string) => answers[id]?.decision ?? "waiting";
  const visible = people.filter(person => !filter || status(person.id) === filter);
  return (
    <Stack gap="md">
      <Text weight="semibold">Founding GTM Engineer · Longlist review</Text>
      <CandidateFilterChips value={filter} onChange={setFilter} allLabel="Everyone"
        options={filters.map(item => ({ value: item.value, label: `${item.label} (${people.filter(person => status(person.id) === item.value).length})` }))} />
      {visible.length === 0 && <Text role="status">No candidates in this group.</Text>}
      {visible.map(person => (
        <CandidateReviewCard key={person.id} name={person.name} headline={person.title} coverSize="compact"
          avatar={<PersonAvatar name={person.name} photoUrl={person.photo} size={40} decorative />}
          insight={{ label: "Evidence for this role", value: person.evidence }}
          actions={<CandidateClientDecision candidateName={person.name}
            decision={answers[person.id]?.decision} reason={answers[person.id]?.reason}
            onDecide={async (decision, reason) => setAnswers(previous => ({ ...previous, [person.id]: { decision, reason } }))} />}
        />
      ))}
    </Stack>
  );
}
```