対応キューActionQueueExperimental

The severity-sorted 'action-needed' worklist: the triage surface every back-office / dispatch / ops / CRM home screen opens with (失効防止 / 更新 / 満期 / 誕生日, ダイヤ乱れ・遅延・運休, アラート対応). Each row carries a severity (critical/warning/info/neutral → icon + tone, never colour alone, with an sr-only severity label), a category chip (kind), a headline + detail, trailing meta (due / time / count) and optional action buttons; rows sort critical → neutral. The other half of the morning dashboard alongside StatGroup (the KPI strip). For a single notice use Alert; for an ambient bell tray use NotificationCenter; this is the inline, act-now list. Presentational by default — onSelect makes a row's body activatable.

プレビュー

  • 重大
    失効リスク田所 慎一さま — 終身保険が今月末で失効

    保険料未入金。失効防止コールを本日中に。

    本日
  • 警告
    更新三宅 加奈さま — 収入保障保険の更新期限

    更新手続き書類の送付がまだ。

    あと7日
  • 警告
    満期黒川 大悟さま — 学資保険が満期

    満期金のご案内と次プランの提案。

    あと14日
  • 情報
    誕生日宇佐美 結菜さま — お誕生日

    ご連絡のきっかけ。医療特約の見直し提案も。

    明日
  • 情報
    誕生日永田 龍一さま — お誕生日
    あと3日

Props

表は横にスクロールできます
プロパティ初期値説明
itemsActionItem[]-対応項目の配列。
ActionItem.severity"critical" | "warning" | "info" | "neutral""neutral"重大度。アイコン+トーン+(ソート時の)並び順を決める。色だけに依存しない(アイコン形+sr-only ラベル)。
ActionItem.kindReactNode-種別チップ(失効リスク / 更新 / 満期 / 遅延拡大 …)。
ActionItem.titleReactNode-見出し(何を・誰/どこに対して)。
ActionItem.detailReactNode-補足行(推奨アクション・文脈)。
ActionItem.metaReactNode-右寄せの副次テキスト(期日 / 時刻 / 件数)。
ActionItem.actionsReactNode-末尾のアクションボタン(行ボタンに入れ子にせず兄弟として描画)。
ActionItem.onSelect() => void-行の本文を活性化(詳細を開く)。任意——省略すると行は表示専用。
sortBySeveritybooleantrue描画前に重大度(critical → neutral)でソート。
emptyLabelReactNode"対応が必要な項目はありません"項目が無いときの破線プレースホルダ。

Usage

import { ActionQueue, Button } from "@gunjo/ui"

<ActionQueue
  items={[
    { severity: "critical", kind: "失効リスク", title: "田所さま — 終身保険が今月末で失効",
      detail: "失効防止コールを本日中に。", meta: "本日",
      actions: <Button size="sm">対応</Button> },
    { severity: "warning", kind: "更新", title: "三宅さま — 更新期限", meta: "あと7日" },
    { severity: "info", kind: "誕生日", title: "宇佐美さま — お誕生日", meta: "明日" },
  ]}
/>

使用コンポーネント