Hulian UIv0.93.5413 components0 components
  • Start
  • Components
  • Blocks
  • Pages
  • Demos
  • Changelog
ChineseEnglish
  • ComponentsComponents
  • ThemeTheme

Overlays

  • Dialog
  • Modal
  • AlertDialog
  • Drawer
  • Popover
  • Tooltip
  • HoverCard
  • Glimpse
  • HeroVideoDialog
  • ElementSelectionOverlay

Messages

  • Alert
  • InterceptCard
  • Callout
  • Banner
  • Toast
  • Notification
  • ServiceMessage
  • Result
  • GiftFeed
  • FloatingReactions
  • Popconfirm

Loading and Progress

  • Spin
  • Spinner
  • Progress

Guidance

  • Tour

InterceptCard

intercept-card

Interrupts a flow with a contextual decision card and explicit actions.

Usage

Complete interception account

What is the rule · Where is the source · Where is the violation · How to change it. Only when these four things are in place will users follow it instead of turning it off.

Blocked

Upper limit of parallel subtasks

A maximum of 2 parallel subtasks are allowed in the same session (≥ 3 is considered excessive splitting)

Violation
This is the third sub-task: "Sort out the historical root causes"
Suggested fix
Let the first two run out before sending them out; or combine the three things into a clearer task.
Source: Team Agreement · Hard Constraint 4
tsx
<InterceptCard
  severity="block"
  title="Parallel subtask upper limit"
  message="Maximum of 2 parallel subtasks allowed in the same session"
  source="Team Agreement · Hard Constraint 4"
  violation="This is the 3rd subtask"
  suggestion="Let the first two finish running before sending them out"
/>

With release entrance (reason required)

Point release will not take effect directly. The reason must be written first. The confirmation button is disabled when the reason is empty - releasing without a reason equals no management.

Blocked

Upper limit of parallel subtasks

A maximum of 2 parallel subtasks are allowed in the same session (≥ 3 is considered excessive splitting)

Violation
This is the third sub-task: "Sort out the historical root causes"
Suggested fix
Let the first two run out before sending them out; or combine the three things into a clearer task.
Source: Team Agreement · Hard Constraint 4
tsx
<InterceptCard
  {...rule}
  onOverride={async (reason) => {
    await api.override(event.id, reason);
  }}
/>

Three levels of intensity tied

The left edge color bar is the only visual anchor for severity. Do not dye the entire card - when the card appears in a row, the entire card will become a color block.

Blocked

Upper limit of parallel subtasks

A maximum of 2 parallel subtasks are allowed in the same session (≥ 3 is considered excessive splitting)

Violation
This is the third sub-task: "Sort out the historical root causes"
Suggested fix
Let the first two run out before sending them out; or combine the three things into a clearer task.
Source: Team Agreement · Hard Constraint 4
Confirmation required

Confirmation is required when writing meta-products

Don't take the initiative to write meta-products such as "pit trampling records/candidate marks/drift explanations" (will be written after users ask)

Violation
~/.config/notes/skills/xxx/NOTE.md
Suggested fix
Confirm that this is the output explicitly requested by the user before releasing it.
Source: Team Agreement · Hard Constraint 5
Notice

Style patch reminder

The UI of this project should all be carried by the design system components to avoid partial overwriting

Violation
apps/console/src/app/custom.css
Source: Engineering Specifications · §7.1
tsx
<InterceptCard severity="block" ... />
<InterceptCard severity="confirm" ... />
<InterceptCard severity="notice" ... />

When to use

  • Explain and optionally override a policy or permission block.
  • Review a risk-control match manually.
  • Present a compliance failure, rejected approval, or alert acknowledgment.

When not to use

ScenarioUseWhy
One-sentence messageAlertIt has no provenance or action and can be read at a glance.
Full-page outcomeResultThe outcome is the page's primary content.
Field-level validationField error stateFeedback belongs next to the field and does not need a card.

Props

NameTypeDefaultDescription
severity"block" | "confirm" | "notice"-Interception severity. Built-in Chinese badges are "\u5df2\u62e6\u622a" (“Blocked”), "\u5f85\u786e\u8ba4" (“Confirmation required”), and "\u63d0\u9192" (“Notice”).
titleReactNode-Rule name or reason.
messageReactNode-Original rule text or explanation.
sourceReactNode-Provenance; strongly recommended.
violationReactNode-Specific violation, rendered in monospace.
suggestionReactNode-Recommended compliant alternative.
onOverride(reason: string) => void | Promise<void>-Renders the override flow when provided.
overrideLabelReactNode"\u653e\u884c\u672c\u6b21"Override-button copy. The built-in Chinese text means “Override this time.”
overridePlaceholderstring"\u4e3a\u4ec0\u4e48\u8fd9\u6b21\u53ef\u4ee5\u653e\u884c\uff1f\uff08\u5fc5\u586b\uff0c\u4f1a\u8fdb\u5165\u5ba1\u8ba1\u8bb0\u5f55\uff09"Required-reason placeholder. The built-in Chinese copy asks why this override is permitted and notes that the answer enters the audit record.
overridden{ reason, at? }-Existing override reason and optional time.

Design decisions

Provenance is first-class. When an interception cannot identify its source, people are more likely to dismiss it than follow it. source is optional in the type, but omitting it removes much of the component's value.

An override reason is required and enforced. The confirmation control stays disabled for an empty reason, and onOverride is never called. An unexplained exception cannot be audited later.

The left border is the sole severity anchor. Tinting the entire card would turn a list of interceptions into large color blocks and make severity harder to scan.

Override takes two steps. Selecting the built-in override action first reveals the reason field; it does not immediately apply the exception. A consequential action should not happen in one accidental click. The remaining built-in Chinese controls are "\u786e\u8ba4\u653e\u884c" (“Confirm override”), "\u5904\u7406\u4e2d\u2026" (“Processing…”), and "\u53d6\u6d88" (“Cancel”).

Playground

Blocked

Upper limit of parallel subtasks

A maximum of 2 parallel subtasks are allowed in the same session (≥ 3 is considered excessive splitting)

Violation
This is the third sub-task: "Sort out the historical root causes"
Suggested fix
Let the first two run out before sending them out; or combine the three things into a clearer task.
Source: Team Agreement · Hard Constraint 4
<InterceptCard
  severity="block"
  title="Parallel subtask upper limit"
  message="Maximum of 2 parallel subtasks allowed in the same session"
  source="Team Agreement · Hard Constraint 4"
  violation="This is the 3rd subtask"
  onOverride={(reason) => api.override(id, reason)}
/>
PreviousAlertFeedbackNextCallout

On this page

  • Usage
  • Documentation
    • When to use
    • When not to use
    • Props
    • Design decisions
  • Playground