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.

Requires Check

Props

state

Best practices

When to use it, and the rules that apply in particular places.

GuidancePractice
DoPass assessment once Firm Pilot has assessed the opportunity, so the brand mark opens its verdict, the lawyer's determination and its reasoning.
DoPass onRequestCheck while there is no assessment yet, so the grey mark asks Firm Pilot to run the check. With neither, the mark only shows.
DoWrite 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.
DoSet 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'tShow 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

PropTypeDefaultDescription
state *"required" | "passed" | "at-risk" | "detected"—Where the check stands: required, passed, at risk or detected.
labelstring—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

PropTypeDefaultDescription
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.
determinationstring | null—What the lawyer has to decide, led by "Requires lawyer determination:".
ageReactNode—When it was assessed, like "22 hours ago".
floatingbooleantrueIts 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 ago

Requires 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.

KeysWhat they do
EnterSpaceOpens the popover from its button.
EscapeCloses the popover and returns focus to the button.