recruit/candidate-role-matches · CandidateRoleMatchList

Role matches

Roles a person may fit: a compact summary of rows, and a list with why and a confirmed add action.

Summary

Open a role

Possible roles for Riley

A — Strong fit

Built the outbound stack at Example Labs and wants to do it again from scratch.

C — Worth a screen

Strong on tooling, but has not led a team yet.

Added · screening

Install

With your coding agentInstall RecruiterOS/recruit-ui and add a list of the roles a person may fit, with why and an add to role action.
With the shadcn CLIpnpm dlx shadcn@latest add RecruiterOS/recruit-ui/recruit-workflows

Props

CandidateRoleMatchList

PropTypeWhat it does
headingrequiredReactNodeThe eyebrow over the list, such as "Possible roles for Mei".
matchesrequiredreadonly TItem[]
onOpen(id: TItem["id"]) => voidOpens a role in place. When set, a click on the title calls it instead of following `href`, for a surface that already shows the person.
onAddToRole(id: TItem["id"]) => Promise<void>Enables the add action. Resolve once the candidate is on the role (the row then shows the added badge); reject when it failed, having told the person why, and the role stays addable.
confirmrequiredCandidateRoleMatchConfirm<TItem>
labelsPartial<CandidateRoleMatchListLabels>

CandidateRoleMatchSummary

PropTypeWhat it does
matchesrequiredreadonly TItem[]
onOpenrequired(id: TItem["id"]) => voidCalled with a role's id when its row is activated.

Data

The component takes plain values and callbacks and keeps no records of its own. Pass it yours, from the Kith data layer or from a backend you already run.