recruit/candidate-outreach-drafts · CandidateOutreachDraftList
Outreach drafts
The messages drafted to a person, one card each: the channel, where the draft stands, and approve, dismiss, copy and mark sent.
Outreach drafts3
Email
draft
Quick intro
Hi Riley, A founder I work with is hiring their first GTM engineer. Your work at Example Labs is why I'm writing.
Message
approved
Following up on my email: worth ten minutes this week?
Email
sent
Role details
As promised, the brief is attached.
Install
With your coding agent
Install RecruiterOS/recruit-ui and add a list of outreach drafts with approve and mark sent to the profile.With the shadcn CLI
pnpm dlx shadcn@latest add RecruiterOS/recruit-ui/recruit-workflowsProps
| Prop | Type | What it does |
|---|---|---|
| draftsrequired | readonly TDraft[] | The drafts, newest first or in whatever order you choose. |
| loading | boolean | A skeleton row while there are no drafts to show yet, and no count. |
| title | ReactNode | The section heading. Defaults to "Outreach drafts". |
| empty | CandidateEmptyCopy | The blank slate's wording. Defaults to "No outreach drafts yet". |
| onApprove | CandidateOutreachDraftCallback<TDraft> | Adds Approve to each draft that offers it (by default, one that is still a `draft`). A returned promise disables the row until it settles, as it does for each callback. |
| onDismiss | CandidateOutreachDraftCallback<TDraft> | Adds Dismiss to each draft that offers it (by default, one that is still a `draft`). |
| onMarkSent | CandidateOutreachDraftCallback<TDraft> | Adds Mark sent to each draft that offers it (by default, an `approved` one). |
| availableActions | (draft: TDraft) => readonly CandidateOutreachDraftStatusAction[] | Which of Approve, Dismiss and Mark sent each draft offers, as your workflow decides; a button shows only when its callback is given too. Defaults to `defaultOutreachDraftActions`, an approve-then-send workflow. |
| copyText | (draft: TDraft) => string | What Copy puts on the clipboard. Defaults to `outreachDraftCopyText`. |
| border | "none" | "top" | "bottom" | The kit PanelSection's divider. Defaults to `bottom`. |
| labels | Partial<CandidateOutreachDraftListLabels> |
Data
On the Kith data layer, drafts and their status are kept with the candidate. Writing and sending the messages stay with you.