Conflict Status
Where an opportunity's conflict check stands: the shield in its colour and its reading, then the Firm Pilot mark. With an assessment the mark is brand and opens it; without one it's grey and asks Firm Pilot to run the check.
BetaReady to use. Its API can still change in a minor release; the changelog says when.
LEAP CRMBuilt for the CRM from the core library. It knows about the CRM's own records, so it isn't a general building block.
import { ConflictStatus, ConflictAssessmentCard } from "@leap-crm/design-system";Playground
Change a prop and the component follows. Its code is under Props.
Props
Best practices
When to use it, and the rules that apply in particular places.
| Guidance | Practice |
|---|---|
| Do | Pass assessment once Firm Pilot has assessed the opportunity, so the brand mark opens its verdict, the lawyer's determination and its reasoning. |
| Do | Pass onRequestCheck while there is no assessment yet, so the grey mark asks Firm Pilot to run the check. With neither, the mark only shows. |
| Do | Write determination as what the lawyer has to decide. The card adds “Requires lawyer determination:” and puts it above the reasoning, so the decision is read first. |
| Do | Set floating={false} on a ConflictAssessmentCard placed inside a surface that already has a border and shadow, like a popover or panel, so it doesn't draw a second one. |
| Don't | Show a conflict state with a coloured dot or a tinted row. Use ConflictStatus: each state has its own shield symbol and words, so it never rests on colour alone. |
Props
ConflictStatus
| Prop | Type | Default | Description |
|---|---|---|---|
| state * | "required" | "passed" | "at-risk" | "detected" | — | Where the check stands: required, passed, at risk or detected. |
| label | string | — | Overrides the state's own label. |
| assessment | { /** What Firm Pilot concluded: clear, matches found or conflicts detected. */ outcome: ConflictAssessmentOutcome; /** Firm Pilot's reasoning; its paragraphs are kept. */ summary: string; /** What the lawyer has to decide, led by "Requires lawyer determination:". */ determination?: string | null; /** When it was assessed, like "22 hours ago". */ age?: ReactNode; } | — | Firm Pilot's latest assessment: the mark turns brand and opens it. |
| onRequestCheck | () => void | — | With no assessment, pressing the grey mark asks Firm Pilot to run the check. |
ConflictAssessmentCard
| Prop | Type | Default | Description |
|---|---|---|---|
| outcome * | | "clear" | "matches_found" | "conflicts_detected" | — | What Firm Pilot concluded: clear, matches found or conflicts detected. |
| summary * | string | — | Firm Pilot's reasoning; its paragraphs are kept. |
| determination | string | null | — | What the lawyer has to decide, led by "Requires lawyer determination:". |
| age | ReactNode | — | When it was assessed, like "22 hours ago". |
| floating | boolean | true | Its own floating surface. Off inside a popover, which brings one. |
Code
What the playground shows, ready to copy.
import { ConflictStatus } from "@leap-crm/design-system";
<ConflictStatus state="required" />Assessment card
Firm Pilot's verdict and age, then what the lawyer has to decide, led in the Firm Pilot gold, then its reasoning with its paragraphs kept.
Firm Pilot - No Conflicts Detected
22 hours agoRequires lawyer determination: Jane Doe is the Other Side on Children for Toby Cumming and Property & Children for Rohan McAdam, both enquiries, matched on name alone.
Jane Doe is the Other Side on two enquiries and matched on name alone, with no identifier corroborating the match. 22 other people share only part of the name, matched at low confidence. None is recorded with a corroborating identifier. Coverage complete.
What the examples share
The imports and the scaffolding the examples above call. The scaffolding lives in this page, not in the library.
import { ConflictAssessmentCard, ConflictStatus, type ConflictAssessment, type ConflictCheckState } from "@leap-crm/design-system";
const states: ConflictCheckState[] = [
"required",
"passed",
"at-risk",
"detected",
];
const assessment: ConflictAssessment = {
outcome: "clear",
age: "22 hours ago",
determination:
"Jane Doe is the Other Side on Children for Toby Cumming and Property & Children for Rohan McAdam, both enquiries, matched on name alone.",
summary:
"Jane Doe is the Other Side on two enquiries and matched on name alone, with no identifier corroborating the match.\n\n22 other people share only part of the name, matched at low confidence. None is recorded with a corroborating identifier.\n\nCoverage complete.",
};Keyboard
The keys it answers to. Tab moves between components, arrows move within them.
| Keys | What they do |
|---|---|
| EnterSpace | Opens the popover from its button. |
| Escape | Closes the popover and returns focus to the button. |







