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 agentInstall RecruiterOS/recruit-ui and add a list of outreach drafts with approve and mark sent to the profile.
With the shadcn CLIpnpm dlx shadcn@latest add RecruiterOS/recruit-ui/recruit-workflows

Props

PropTypeWhat it does
draftsrequiredreadonly TDraft[]The drafts, newest first or in whatever order you choose.
loadingbooleanA skeleton row while there are no drafts to show yet, and no count.
titleReactNodeThe section heading. Defaults to "Outreach drafts".
emptyCandidateEmptyCopyThe blank slate's wording. Defaults to "No outreach drafts yet".
onApproveCandidateOutreachDraftCallback<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.
onDismissCandidateOutreachDraftCallback<TDraft>Adds Dismiss to each draft that offers it (by default, one that is still a `draft`).
onMarkSentCandidateOutreachDraftCallback<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) => stringWhat Copy puts on the clipboard. Defaults to `outreachDraftCopyText`.
border"none" | "top" | "bottom"The kit PanelSection's divider. Defaults to `bottom`.
labelsPartial<CandidateOutreachDraftListLabels>

Data

On the Kith data layer, drafts and their status are kept with the candidate. Writing and sending the messages stay with you.