{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "block-pipeline",
  "type": "registry:block",
  "title": "Pipeline",
  "description": "A deal pipeline on a raised page: stages as columns of deal cards with each stage’s total, dragged between and within stages or moved from the keyboard, filtered by owner, close date and search.",
  "dependencies": [
    "@remixicon/react@^4.9.0"
  ],
  "registryDependencies": [
    "https://wideset.co/r/app-shell.json",
    "https://wideset.co/r/avatar.json",
    "https://wideset.co/r/block-styles.json",
    "https://wideset.co/r/breadcrumbs.json",
    "https://wideset.co/r/button.json",
    "https://wideset.co/r/date-picker.json",
    "https://wideset.co/r/divider.json",
    "https://wideset.co/r/dropdown-menu.json",
    "https://wideset.co/r/filter-button.json",
    "https://wideset.co/r/form-field.json",
    "https://wideset.co/r/icon-button.json",
    "https://wideset.co/r/list-item.json",
    "https://wideset.co/r/modal.json",
    "https://wideset.co/r/segmented-control.json",
    "https://wideset.co/r/select.json",
    "https://wideset.co/r/sidebar.json",
    "https://wideset.co/r/status-badge.json",
    "https://wideset.co/r/text-input.json",
    "https://wideset.co/r/toast.json",
    "https://wideset.co/r/utils.json"
  ],
  "files": [
    {
      "path": "src/blocks/pipeline/brand-mark.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/pipeline/brand-mark.tsx",
      "content": "'use client';\n\nimport { cn } from '@/lib/wideset/utils';\n\nconst TILE =\n  'M0 16C0 8.45753 0 4.68629 2.34315 2.34315C4.68629 0 8.45753 0 16 0C23.5425 0 27.3137 0 29.6569 2.34315C32 4.68629 32 8.45753 32 16C32 23.5425 32 27.3137 29.6569 29.6569C27.3137 32 23.5425 32 16 32C8.45753 32 4.68629 32 2.34315 29.6569C0 27.3137 0 23.5425 0 16Z';\n\n/**\n * Orbit's mark: a planet and its ring on the inverse tile, so it inverts in dark mode. It takes\n * the size of its place (32px in a sidebar, 36px in a larger switcher). Decorative beside the\n * product's name; give it a `label` when it stands alone.\n */\nexport function BrandMark({ className, label }: { className?: string; label?: string }) {\n  return (\n    <svg\n      viewBox=\"0 0 32 32\"\n      role={label ? 'img' : undefined}\n      aria-label={label}\n      aria-hidden={label ? undefined : true}\n      className={cn('size-ws-14 shrink-0', className)}\n    >\n      <path d={TILE} className=\"fill-(--ws-static-fill-inverse-background)\" />\n      <ellipse\n        cx=\"16\"\n        cy=\"16\"\n        rx=\"10.5\"\n        ry=\"4\"\n        transform=\"rotate(-28 16 16)\"\n        strokeWidth=\"1.75\"\n        className=\"fill-none stroke-(--ws-static-text-inverse-strong)\"\n      />\n      <circle cx=\"16\" cy=\"16\" r=\"4.75\" className=\"fill-(--ws-static-text-inverse-strong)\" />\n    </svg>\n  );\n}\n"
    },
    {
      "path": "src/blocks/pipeline/data.ts",
      "type": "registry:file",
      "target": "blocks/wideset/pipeline/data.ts",
      "content": "import {\n  type RemixiconComponentType,\n  RiBankCardLine,\n  RiContactsBook3Line,\n  RiHandCoinFill,\n  RiHandCoinLine,\n  RiHome5Line,\n  RiInbox2Line,\n  RiKey2Line,\n  RiLineChartLine,\n  RiPieChart2Line,\n  RiPlugLine,\n  RiQuestionLine,\n  RiSettings3Line,\n  RiTeamLine,\n} from '@remixicon/react';\nimport type { AvatarColor } from '@/components/ui/wideset/avatar/Avatar.colors';\n\n/*\n  Lumen Studio's new-business pipeline on 10 November 2026: 23 open deals in five stages, owned by\n  Maya and five teammates. Three of them have a close date that has already passed. Maya's four\n  deals match what Home lists for her (Halcyon Freight in Negotiation, Northwind Health in\n  Proposal, Kestrel Analytics in Discovery, Cobalt Security in Commit).\n*/\n\n/** The product is Orbit; the workspace is Lumen Studio. */\nexport const product = { name: 'Orbit' };\nexport const workspace = { name: 'Lumen Studio', initials: 'LS' };\nexport const account = { name: 'Maya Okafor', email: 'maya@lumenstudio.co', initials: 'MO' };\n\nexport type NavLink = {\n  id: string;\n  label: string;\n  icon: RemixiconComponentType;\n  /** The icon while the page is open (a line icon swaps for its fill). */\n  activeIcon?: RemixiconComponentType;\n};\n\nexport const mainLinks: NavLink[] = [\n  { id: 'home', label: 'Home', icon: RiHome5Line },\n  { id: 'inbox', label: 'Inbox', icon: RiInbox2Line },\n  { id: 'customers', label: 'Customers', icon: RiContactsBook3Line },\n  { id: 'deals', label: 'Deals', icon: RiHandCoinLine, activeIcon: RiHandCoinFill },\n  { id: 'revenue', label: 'Revenue', icon: RiLineChartLine },\n  { id: 'reports', label: 'Reports', icon: RiPieChart2Line },\n];\n\nexport const settingsLinks: NavLink[] = [\n  { id: 'general', label: 'General', icon: RiSettings3Line },\n  { id: 'members', label: 'Members', icon: RiTeamLine },\n  { id: 'billing', label: 'Billing', icon: RiBankCardLine },\n  { id: 'integrations', label: 'Integrations', icon: RiPlugLine },\n  { id: 'api-keys', label: 'API keys', icon: RiKey2Line },\n];\n\nexport const helpLink: NavLink = { id: 'help', label: 'Help and support', icon: RiQuestionLine };\n\n/** Today, as the close dates are judged. */\nexport const TODAY = '2026-11-10';\n\nexport const STAGES = [\n  { id: 'qualified', label: 'Qualified' },\n  { id: 'discovery', label: 'Discovery' },\n  { id: 'proposal', label: 'Proposal' },\n  { id: 'negotiation', label: 'Negotiation' },\n  { id: 'commit', label: 'Commit' },\n] as const;\n\nexport type StageId = (typeof STAGES)[number]['id'];\n\nexport type Person = { id: string; name: string; initials: string; color: AvatarColor };\n\nexport const PEOPLE: Person[] = [\n  { id: 'maya', name: 'Maya Okafor', initials: 'MO', color: 'orange' },\n  { id: 'jonas', name: 'Jonas Weber', initials: 'JW', color: 'blue' },\n  { id: 'priya', name: 'Priya Raman', initials: 'PR', color: 'purple' },\n  { id: 'tom', name: 'Tom Becker', initials: 'TB', color: 'green' },\n  { id: 'elena', name: 'Elena Silva', initials: 'ES', color: 'pink' },\n  { id: 'daniel', name: 'Daniel Reyes', initials: 'DR', color: 'teal' },\n];\n\nexport const CUSTOMERS = [\n  'Atlas Robotics',\n  'Cobalt Security',\n  'Halcyon Freight',\n  'Juniper Legal',\n  'Kestrel Analytics',\n  'Marlow & Finch',\n  'Northwind Health',\n  'Tidewater Energy',\n];\n\nexport type Deal = {\n  id: string;\n  customer: string;\n  name: string;\n  stage: StageId;\n  /** Annual contract value, in US dollars. */\n  amount: number;\n  /** Expected close, a calendar day. */\n  close: string;\n  ownerId: string;\n};\n\n/** The open deals; within a stage, in the order the board shows them. */\nexport const initialDeals: Deal[] = [\n  {\n    id: 'northwind-reporting',\n    customer: 'Northwind Health',\n    name: 'Reporting add-on',\n    stage: 'qualified',\n    amount: 5_400,\n    close: '2026-12-11',\n    ownerId: 'maya',\n  },\n  {\n    id: 'atlas-forecasting',\n    customer: 'Atlas Robotics',\n    name: 'Forecasting add-on',\n    stage: 'qualified',\n    amount: 8_400,\n    close: '2026-12-18',\n    ownerId: 'jonas',\n  },\n  {\n    id: 'cobalt-emea',\n    customer: 'Cobalt Security',\n    name: 'EMEA team, 30 seats',\n    stage: 'qualified',\n    amount: 14_000,\n    close: '2027-01-08',\n    ownerId: 'tom',\n  },\n  {\n    id: 'juniper-growth',\n    customer: 'Juniper Legal',\n    name: 'Growth plan, 25 seats',\n    stage: 'qualified',\n    amount: 11_700,\n    close: '2027-01-15',\n    ownerId: 'daniel',\n  },\n  {\n    id: 'tidewater-field',\n    customer: 'Tidewater Energy',\n    name: 'Field sales, 40 seats',\n    stage: 'qualified',\n    amount: 18_700,\n    close: '2027-01-29',\n    ownerId: 'elena',\n  },\n  {\n    id: 'marlow-pilot',\n    customer: 'Marlow & Finch',\n    name: 'Pilot, London office',\n    stage: 'qualified',\n    amount: 6_200,\n    close: '2027-02-12',\n    ownerId: 'priya',\n  },\n  {\n    id: 'halcyon-customs',\n    customer: 'Halcyon Freight',\n    name: 'Customs team, 15 seats',\n    stage: 'qualified',\n    amount: 7_000,\n    close: '2027-02-26',\n    ownerId: 'tom',\n  },\n  {\n    id: 'halcyon-dispatch',\n    customer: 'Halcyon Freight',\n    name: 'Dispatcher seats',\n    stage: 'discovery',\n    amount: 5_600,\n    close: '2026-11-06',\n    ownerId: 'priya',\n  },\n  {\n    id: 'kestrel-team',\n    customer: 'Kestrel Analytics',\n    name: 'Team plan, 45 seats',\n    stage: 'discovery',\n    amount: 9_600,\n    close: '2026-12-05',\n    ownerId: 'maya',\n  },\n  {\n    id: 'juniper-contracts',\n    customer: 'Juniper Legal',\n    name: 'Contract analytics',\n    stage: 'discovery',\n    amount: 12_500,\n    close: '2026-12-19',\n    ownerId: 'elena',\n  },\n  {\n    id: 'atlas-annual',\n    customer: 'Atlas Robotics',\n    name: 'Annual plan, 80 seats',\n    stage: 'discovery',\n    amount: 37_400,\n    close: '2026-12-30',\n    ownerId: 'jonas',\n  },\n  {\n    id: 'tidewater-forecast',\n    customer: 'Tidewater Energy',\n    name: 'Renewal forecasting',\n    stage: 'discovery',\n    amount: 16_800,\n    close: '2027-01-22',\n    ownerId: 'daniel',\n  },\n  {\n    id: 'cobalt-sso',\n    customer: 'Cobalt Security',\n    name: 'SSO and audit log',\n    stage: 'proposal',\n    amount: 7_200,\n    close: '2026-11-04',\n    ownerId: 'jonas',\n  },\n  {\n    id: 'northwind-clinics',\n    customer: 'Northwind Health',\n    name: 'Clinic network, 60 seats',\n    stage: 'proposal',\n    amount: 18_500,\n    close: '2026-11-27',\n    ownerId: 'maya',\n  },\n  {\n    id: 'kestrel-warehouse',\n    customer: 'Kestrel Analytics',\n    name: 'Data warehouse sync',\n    stage: 'proposal',\n    amount: 10_900,\n    close: '2026-12-08',\n    ownerId: 'elena',\n  },\n  {\n    id: 'marlow-scale',\n    customer: 'Marlow & Finch',\n    name: 'Scale upgrade',\n    stage: 'proposal',\n    amount: 24_800,\n    close: '2026-12-12',\n    ownerId: 'tom',\n  },\n  {\n    id: 'juniper-scale',\n    customer: 'Juniper Legal',\n    name: 'Scale plan, 40 seats',\n    stage: 'negotiation',\n    amount: 33_100,\n    close: '2026-11-07',\n    ownerId: 'daniel',\n  },\n  {\n    id: 'atlas-support',\n    customer: 'Atlas Robotics',\n    name: 'Support tier upgrade',\n    stage: 'negotiation',\n    amount: 7_200,\n    close: '2026-11-20',\n    ownerId: 'priya',\n  },\n  {\n    id: 'halcyon-renewal',\n    customer: 'Halcyon Freight',\n    name: 'Renewal, 120 seats',\n    stage: 'negotiation',\n    amount: 24_000,\n    close: '2026-11-30',\n    ownerId: 'maya',\n  },\n  {\n    id: 'tidewater-annual',\n    customer: 'Tidewater Energy',\n    name: 'Annual plan, 150 seats',\n    stage: 'negotiation',\n    amount: 70_200,\n    close: '2026-12-15',\n    ownerId: 'elena',\n  },\n  {\n    id: 'cobalt-annual',\n    customer: 'Cobalt Security',\n    name: 'Annual plan, 45 seats',\n    stage: 'commit',\n    amount: 21_000,\n    close: '2026-11-14',\n    ownerId: 'maya',\n  },\n  {\n    id: 'marlow-onboarding',\n    customer: 'Marlow & Finch',\n    name: 'Onboarding package',\n    stage: 'commit',\n    amount: 4_500,\n    close: '2026-11-21',\n    ownerId: 'tom',\n  },\n  {\n    id: 'northwind-analytics',\n    customer: 'Northwind Health',\n    name: 'Analytics seats',\n    stage: 'commit',\n    amount: 9_800,\n    close: '2026-11-28',\n    ownerId: 'jonas',\n  },\n];\n\nexport const ownerOptions = PEOPLE.map(({ id, name }) => ({ value: id, label: name }));\n\nexport type CloseWindow = 'overdue' | 'this-month' | 'next-month' | 'later';\n\nexport const closeOptions: { value: CloseWindow; label: string }[] = [\n  { value: 'overdue', label: 'Overdue' },\n  { value: 'this-month', label: 'This month' },\n  { value: 'next-month', label: 'Next month' },\n  { value: 'later', label: 'Later' },\n];\n\n/** Which window a close date falls in, judged from today. */\nexport function closeWindow(close: string): CloseWindow {\n  if (close < TODAY) return 'overdue';\n  if (close.slice(0, 7) === TODAY.slice(0, 7)) return 'this-month';\n  if (close.slice(0, 7) === '2026-12') return 'next-month';\n  return 'later';\n}\n"
    },
    {
      "path": "src/blocks/pipeline/deal-card.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/pipeline/deal-card.tsx",
      "content": "'use client';\n\n// TODO(custom): a deal card on a board (a link across the card, a move menu, drag handlers); Wideset has no board card or draggable item.\nimport { RiCheckLine, RiErrorWarningLine, RiMoreFill } from '@remixicon/react';\nimport { cn } from '@/lib/wideset/utils';\nimport { DropdownMenu } from '@/components/ui/wideset/dropdown/DropdownMenu';\nimport { IconButton } from '@/components/ui/wideset/button/IconButton';\nimport { ListItem } from '@/components/ui/wideset/list-item/ListItem';\nimport type { HTMLAttributes } from 'react';\n\nimport { type Deal, PEOPLE, type StageId, STAGES, TODAY } from './data';\nimport { formatClose, formatUsd } from './format';\nimport { PersonAvatar } from './person-avatar';\n\ntype DealCardProps = {\n  deal: Deal;\n  /** The card left in place while its copy follows the pointer. */\n  placeholder?: boolean;\n  /** The copy under the pointer: lifted, and without the menu. */\n  overlay?: boolean;\n  /** The id of the line that says how to move a card with the keyboard. */\n  hintId?: string;\n  onMoveTo?: (stage: StageId) => void;\n  /** Pointer and key handlers for dragging and moving, from the board. */\n  handlers?: HTMLAttributes<HTMLElement>;\n};\n\n/**\n * One deal: the customer, the deal, its amount, when it should close and who owns it. The whole\n * card is one link to the deal, so it is one tab stop; Alt and an arrow move it from there, and\n * the menu on hover moves it to a stage. Every card is drawn the same in every column; a close\n * date that has passed is the one negative mark on the board.\n */\nexport function DealCard({\n  deal,\n  placeholder = false,\n  overlay = false,\n  hintId,\n  onMoveTo,\n  handlers,\n}: DealCardProps) {\n  const owner = PEOPLE.find((person) => person.id === deal.ownerId)!;\n  const overdue = deal.close < TODAY;\n\n  return (\n    <article\n      data-deal={deal.id}\n      {...handlers}\n      className={cn(\n        'group p-ws-7 gap-ws-6 rounded-ws-container-md bg-ws-static-foreground relative flex touch-pan-y flex-col border select-none',\n        'outline-ws-dynamic-primary-strong-default has-[a:focus-visible]:wds-focus-visible',\n        overlay\n          ? 'border-ws-static-strong shadow-ws-medium cursor-grabbing'\n          : 'border-ws-static-base hover:border-ws-static-strong cursor-grab',\n        placeholder && 'cursor-grabbing opacity-40',\n      )}\n    >\n      <div className=\"gap-ws-5 flex items-start\">\n        {/* The link's box stretches over the card, so the card is one target. */}\n        <a\n          id={overlay ? undefined : `deal-${deal.id}`}\n          href={`#deals/${deal.id}`}\n          draggable={false}\n          aria-describedby={hintId}\n          tabIndex={overlay ? -1 : undefined}\n          className=\"gap-ws-1 after:inset-ws-0 flex min-w-0 flex-1 flex-col outline-none after:absolute\"\n        >\n          <span className=\"typography-label-strong-sm text-ws-static-strong truncate\">\n            {deal.customer}\n          </span>\n          <span className=\"typography-body-sm text-ws-static-subtle truncate\">{deal.name}</span>\n        </a>\n        {onMoveTo && !overlay && !placeholder && (\n          // Shown on hover or focus, and always where there is no hover.\n          <span className=\"-mt-ws-2 -mr-ws-3 relative opacity-0 group-focus-within:opacity-100 group-hover:opacity-100 has-[[data-state=open]]:opacity-100 [@media(hover:none)]:opacity-100\">\n            <DropdownMenu>\n              <DropdownMenu.Trigger asChild>\n                <IconButton\n                  icon={RiMoreFill}\n                  variant=\"secondary\"\n                  preset=\"ghost\"\n                  size=\"xs\"\n                  aria-label={`Move ${deal.customer}, ${deal.name}`}\n                />\n              </DropdownMenu.Trigger>\n              {/* The card moves to another column, so the board puts the focus on it there. */}\n              <DropdownMenu.Content className=\"ws-block-utility\"\n                align=\"end\"\n                onCloseAutoFocus={(event) => event.preventDefault()}\n              >\n                <DropdownMenu.Label>Move to</DropdownMenu.Label>\n                {STAGES.map((stage) => (\n                  <DropdownMenu.Item\n                    key={stage.id}\n                    disabled={stage.id === deal.stage}\n                    onSelect={() => onMoveTo(stage.id)}\n                  >\n                    <ListItem.Content>\n                      <ListItem.Label>{stage.label}</ListItem.Label>\n                    </ListItem.Content>\n                    {stage.id === deal.stage && (\n                      <ListItem.Suffix>\n                        <RiCheckLine aria-label=\"Current stage\" className=\"size-ws-9\" />\n                      </ListItem.Suffix>\n                    )}\n                  </DropdownMenu.Item>\n                ))}\n              </DropdownMenu.Content>\n            </DropdownMenu>\n          </span>\n        )}\n      </div>\n\n      <div className=\"gap-ws-5 flex items-center justify-between\">\n        <span className=\"typography-label-sm text-ws-static-strong tabular-nums\">\n          {formatUsd(deal.amount)}\n        </span>\n        <span className=\"gap-ws-5 flex min-w-0 items-center\">\n          <span\n            className={cn(\n              'gap-ws-2 typography-caption-md flex items-center whitespace-nowrap tabular-nums',\n              overdue ? 'text-ws-semantic-negative' : 'text-ws-static-subtle',\n            )}\n          >\n            {overdue && <RiErrorWarningLine aria-hidden=\"true\" className=\"size-ws-8\" />}\n            <span className=\"sr-only\">{overdue ? 'Overdue, was to close' : 'Closes'} </span>\n            {formatClose(deal.close, TODAY)}\n          </span>\n          <PersonAvatar\n            size=\"xs\"\n            name={owner.name}\n            initials={owner.initials}\n            color={owner.color}\n            title={owner.name}\n          />\n          <span className=\"sr-only\">, owned by {owner.name}</span>\n        </span>\n      </div>\n    </article>\n  );\n}\n"
    },
    {
      "path": "src/blocks/pipeline/format.ts",
      "type": "registry:file",
      "target": "blocks/wideset/pipeline/format.ts",
      "content": "// One locale for the whole screen; swap it for the user's.\nconst LOCALE = 'en-US';\n\nconst usd = new Intl.NumberFormat(LOCALE, {\n  style: 'currency',\n  currency: 'USD',\n  maximumFractionDigits: 0,\n});\nconst count = new Intl.NumberFormat(LOCALE);\n// Close dates are calendar days (`2026-11-30`), parsed as UTC midnight: format them in UTC too.\nconst dayThisYear = new Intl.DateTimeFormat(LOCALE, {\n  month: 'short',\n  day: 'numeric',\n  timeZone: 'UTC',\n});\nconst day = new Intl.DateTimeFormat(LOCALE, {\n  month: 'short',\n  day: 'numeric',\n  year: 'numeric',\n  timeZone: 'UTC',\n});\n\nexport const formatUsd = (value: number) => usd.format(value);\nexport const formatCount = (value: number) => count.format(value);\n\n/** \"Nov 30\", with the year only once it is another year than `today`'s. */\nexport const formatClose = (close: string, today: string) =>\n  (close.slice(0, 4) === today.slice(0, 4) ? dayThisYear : day).format(new Date(close));\n"
    },
    {
      "path": "src/blocks/pipeline/index.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/pipeline/index.tsx",
      "content": "'use client';\n\nimport '@/styles/wideset-blocks.css';\n\nimport { RiSideBarLine } from '@remixicon/react';\nimport { AppShell } from '@/components/ui/wideset/app-shell/AppShell';\nimport { Breadcrumbs } from '@/components/ui/wideset/breadcrumbs/Breadcrumbs';\nimport { cn } from '@/lib/wideset/utils';\nimport { IconButton } from '@/components/ui/wideset/button/IconButton';\nimport { ToastProvider, useToast } from '@/components/ui/wideset/toast/Toast.context';\nimport { useId, useState } from 'react';\n\nimport { closeWindow, type Deal, initialDeals, type StageId, STAGES } from './data';\nimport { formatCount, formatUsd } from './format';\nimport { NewDealDialog } from './new-deal-dialog';\nimport { PageHeader } from './page-header';\nimport { PipelineBoard } from './pipeline-board';\nimport { type Filters, PipelineToolbar } from './pipeline-toolbar';\nimport { PipelineSidebar } from './sidebar';\n\n/** One column of the page: the header, the toolbar and the board share its edges. */\nconst COLUMN = 'px-ws-14 mx-auto w-full max-w-[80rem]';\n\nconst NO_FILTERS: Filters = { query: '', owners: [], close: [] };\n\n/**\n * The page inside the card, under the toasts. It holds the deals and the filters; the board\n * fills the rest of the card's height, and its columns scroll on their own.\n */\nfunction PipelinePage() {\n  const { showToast } = useToast();\n  const [deals, setDeals] = useState(initialDeals);\n  const [filters, setFilters] = useState(NO_FILTERS);\n  const [adding, setAdding] = useState<{ stage: StageId; open: boolean }>({\n    stage: 'qualified',\n    open: false,\n  });\n\n  const query = filters.query.trim().toLowerCase();\n  const visible = deals.filter(\n    (deal) =>\n      (!query || `${deal.customer} ${deal.name}`.toLowerCase().includes(query)) &&\n      (!filters.owners.length || filters.owners.includes(deal.ownerId)) &&\n      (!filters.close.length || filters.close.includes(closeWindow(deal.close))),\n  );\n  const filtered = visible.length !== deals.length;\n  const total = visible.reduce((sum, deal) => sum + deal.amount, 0);\n  const summary = `${formatUsd(total)} open across ${formatCount(visible.length)} ${\n    filtered ? `of ${formatCount(deals.length)} deals` : 'deals'\n  }`;\n\n  /** Within a stage the board keeps the array's order, so a move is a splice. */\n  const move = (id: string, stage: StageId, beforeId: string | null) =>\n    setDeals((current) => {\n      const deal = { ...current.find((item) => item.id === id)!, stage };\n      const rest = current.filter((item) => item.id !== id);\n      const at = beforeId ? rest.findIndex((item) => item.id === beforeId) : rest.length;\n      return [...rest.slice(0, at), deal, ...rest.slice(at)];\n    });\n\n  const create = (deal: Omit<Deal, 'id'>) => {\n    // A new deal goes first in its stage, where it is seen.\n    setDeals((current) => [{ ...deal, id: `deal-${current.length + 1}` }, ...current]);\n    const stage = STAGES.find(({ id }) => id === deal.stage)!.label;\n    showToast({ status: 'success', content: `${deal.customer}, ${deal.name} added to ${stage}` });\n  };\n\n  return (\n    <div className={cn(COLUMN, 'gap-ws-12 pt-ws-14 pb-ws-12 flex min-h-0 flex-1 flex-col')}>\n      <PageHeader\n        summary={summary}\n        quiet={adding.open}\n        onNewDeal={() => setAdding({ stage: 'qualified', open: true })}\n      />\n      <div className=\"gap-ws-11 flex min-h-0 flex-1 flex-col\">\n        <PipelineToolbar\n          filters={filters}\n          onFiltersChange={setFilters}\n          onListView={() =>\n            showToast({ content: 'List view is not ready yet. The board shows every deal.' })\n          }\n        />\n        <PipelineBoard\n          deals={visible}\n          onMove={move}\n          onAddDeal={(stage) => setAdding({ stage, open: true })}\n        />\n      </div>\n      <NewDealDialog\n        stage={adding.stage}\n        open={adding.open}\n        onOpenChange={(open) => setAdding({ ...adding, open })}\n        onCreate={create}\n      />\n    </div>\n  );\n}\n\n/**\n * Pipeline (Inset direction): Lumen Studio's open deals as a board on the raised page beside the\n * workspace sidebar, with Deals open. The header gives the open total and New deal, the page's\n * one filled button; under it search, owner and close date filters and the view switch, then the\n * five stages as columns of deal cards with each stage's total. Cards are dragged between and\n * within columns, or moved from the keyboard, and the totals follow.\n */\nexport default function Pipeline() {\n  const sidebarId = useId();\n  const [collapsed, setCollapsed] = useState(false);\n\n  return (\n    <ToastProvider>\n      <AppShell className=\"ws-block-utility\" direction=\"inset\">\n        <PipelineSidebar id={sidebarId} collapsed={collapsed} onCollapsedChange={setCollapsed} />\n        <AppShell.Main>\n          <div className=\"h-ws-18 border-ws-static-base flex shrink-0 items-center border-b\">\n            {/* The bar belongs to the surround: it runs edge to edge. The sidebar's toggle is\n                pulled left so its glyph, not its box, sits 20px from the edge; the crumbs follow\n                it. */}\n            <div className=\"gap-ws-5 px-ws-11 flex w-full items-center\">\n              <IconButton\n                icon={RiSideBarLine}\n                variant=\"secondary\"\n                preset=\"ghost\"\n                size=\"sm\"\n                iconClassName=\"text-ws-static-subtle size-ws-9\"\n                aria-label={collapsed ? 'Expand sidebar' : 'Collapse sidebar'}\n                aria-expanded={!collapsed}\n                aria-controls={sidebarId}\n                onClick={() => setCollapsed(!collapsed)}\n                className=\"-ml-ws-5\"\n              />\n              <Breadcrumbs separator=\"arrow\">\n                <Breadcrumbs.Item asChild>\n                  <a href=\"#deals\">Deals</a>\n                </Breadcrumbs.Item>\n                <Breadcrumbs.Item>Pipeline</Breadcrumbs.Item>\n              </Breadcrumbs>\n            </div>\n          </div>\n\n          {/* The board fills the card under the bar; only its columns scroll. */}\n          <PipelinePage />\n        </AppShell.Main>\n      </AppShell>\n    </ToastProvider>\n  );\n}\n"
    },
    {
      "path": "src/blocks/pipeline/new-deal-dialog.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/pipeline/new-deal-dialog.tsx",
      "content": "'use client';\n\nimport { Button } from '@/components/ui/wideset/button/Button';\nimport { DatePicker } from '@/components/ui/wideset/datepicker/DatePicker';\nimport { FormField } from '@/components/ui/wideset/form-field/FormField';\nimport { Modal } from '@/components/ui/wideset/modal/Modal';\nimport { Select } from '@/components/ui/wideset/select/Select';\nimport { TextInput } from '@/components/ui/wideset/text-input/TextInput';\nimport { type FormEvent, useId, useState } from 'react';\n\nimport { account, CUSTOMERS, type Deal, PEOPLE, type StageId, STAGES } from './data';\n\nconst EMPTY = { customer: '', name: '', amount: '', close: '', ownerId: 'maya' };\n\n/**\n * A new deal: the customer, a name, the amount and when it should close, who owns it (Maya unless\n * changed) and its stage (the column it was started from). It is a form, so Enter adds it; the\n * errors wait for the first try.\n */\nexport function NewDealDialog({\n  stage,\n  open,\n  onOpenChange,\n  onCreate,\n}: {\n  stage: StageId;\n  open: boolean;\n  onOpenChange: (open: boolean) => void;\n  onCreate: (deal: Omit<Deal, 'id'>) => void;\n}) {\n  const id = useId();\n  const [values, setValues] = useState({ ...EMPTY, stage });\n  const [tried, setTried] = useState(false);\n  const set = (next: Partial<typeof values>) => setValues({ ...values, ...next });\n\n  const amount = Number(values.amount.replace(/[^0-9.]/g, ''));\n  const errors = {\n    customer: values.customer ? undefined : 'Choose the customer.',\n    name: values.name.trim() ? undefined : 'Name the deal, like “Annual plan, 40 seats”.',\n    amount: amount > 0 ? undefined : 'Enter the amount in US dollars, like 12,000.',\n    close: values.close ? undefined : 'Pick the day you expect it to close.',\n  };\n  const shown = (field: keyof typeof errors) => (tried ? errors[field] : undefined);\n\n  const submit = (event: FormEvent) => {\n    event.preventDefault();\n    setTried(true);\n    const first = (Object.keys(errors) as (keyof typeof errors)[]).find((field) => errors[field]);\n    if (first) {\n      document.getElementById(`${id}-${first}`)?.focus();\n      return;\n    }\n    onCreate({ ...values, name: values.name.trim(), amount, stage: values.stage as StageId });\n    onOpenChange(false);\n  };\n\n  return (\n    <Modal\n      open={open}\n      onOpenChange={(next) => {\n        if (next) {\n          setValues({ ...EMPTY, stage });\n          setTried(false);\n        }\n        onOpenChange(next);\n      }}\n    >\n      <Modal.Content className=\"ws-block-utility\">\n        <Modal.Header>\n          <Modal.Title>New deal</Modal.Title>\n          <Modal.Description>\n            It goes on the board in its stage, owned by {account.name} unless you change it.\n          </Modal.Description>\n        </Modal.Header>\n        <Modal.Body>\n          <form id={id} noValidate onSubmit={submit} className=\"gap-ws-11 flex flex-col\">\n            <FormField label=\"Customer\" htmlFor={`${id}-customer`} errorText={shown('customer')}>\n              <Select\n                id={`${id}-customer`}\n                className=\"w-full\"\n                placeholder=\"Choose a customer\"\n                variant={shown('customer') ? 'danger' : 'primary'}\n                options={CUSTOMERS.map((name) => ({ value: name, label: name }))}\n                value={values.customer}\n                onValueChange={(customer) => set({ customer })}\n              />\n            </FormField>\n            <FormField label=\"Deal name\" htmlFor={`${id}-name`} errorText={shown('name')}>\n              <TextInput\n                id={`${id}-name`}\n                autoComplete=\"off\"\n                placeholder=\"Annual plan, 40 seats\"\n                variant={shown('name') ? 'danger' : 'primary'}\n                value={values.name}\n                onChange={(event) => set({ name: event.target.value })}\n              />\n            </FormField>\n            <div className=\"gap-ws-9 grid grid-cols-2\">\n              <FormField label=\"Amount\" htmlFor={`${id}-amount`} errorText={shown('amount')}>\n                <TextInput\n                  id={`${id}-amount`}\n                  inputMode=\"decimal\"\n                  autoComplete=\"off\"\n                  placeholder=\"12,000\"\n                  variant={shown('amount') ? 'danger' : 'primary'}\n                  value={values.amount}\n                  onChange={(event) => set({ amount: event.target.value })}\n                />\n              </FormField>\n              <FormField label=\"Close date\" htmlFor={`${id}-close`} errorText={shown('close')}>\n                <DatePicker\n                  id={`${id}-close`}\n                  className=\"w-full\"\n                  placeholder=\"Pick a day\"\n                  variant={shown('close') ? 'danger' : 'primary'}\n                  selected={values.close || undefined}\n                  onSelect={(close) => set({ close: close ?? '' })}\n                />\n              </FormField>\n              <FormField label=\"Owner\" htmlFor={`${id}-owner`}>\n                <Select\n                  id={`${id}-owner`}\n                  className=\"w-full\"\n                  options={PEOPLE.map(({ id: value, name }) => ({ value, label: name }))}\n                  value={values.ownerId}\n                  onValueChange={(ownerId) => set({ ownerId })}\n                />\n              </FormField>\n              <FormField label=\"Stage\" htmlFor={`${id}-stage`}>\n                <Select\n                  id={`${id}-stage`}\n                  className=\"w-full\"\n                  options={STAGES.map(({ id: value, label }) => ({ value, label }))}\n                  value={values.stage}\n                  onValueChange={(next) => set({ stage: next as StageId })}\n                />\n              </FormField>\n            </div>\n          </form>\n        </Modal.Body>\n        <Modal.Footer>\n          <Modal.Close asChild>\n            <Button variant=\"secondary\" preset=\"border\">\n              Cancel\n            </Button>\n          </Modal.Close>\n          <Button type=\"submit\" form={id}>\n            Add deal\n          </Button>\n        </Modal.Footer>\n      </Modal.Content>\n    </Modal>\n  );\n}\n"
    },
    {
      "path": "src/blocks/pipeline/page-header.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/pipeline/page-header.tsx",
      "content": "'use client';\n\n// TODO(custom): page header (title, a line of description, the primary action); no PageHeader in Wideset.\nimport { RiAddLine } from '@remixicon/react';\nimport { Button } from '@/components/ui/wideset/button/Button';\n\n/**\n * The page's title, one line with the open pipeline's total, and New deal, the screen's one\n * filled button. While the New deal dialog holds the filled button, New deal steps back to a\n * bordered one (`quiet`), so the screen keeps one.\n */\nexport function PageHeader({\n  summary,\n  onNewDeal,\n  quiet,\n}: {\n  summary: string;\n  onNewDeal: () => void;\n  quiet?: boolean;\n}) {\n  return (\n    <header className=\"gap-ws-12 flex flex-wrap items-center justify-between\">\n      <div className=\"gap-ws-2 flex min-w-0 flex-col\">\n        <h1 className=\"typography-title-md text-ws-static-strong\">Pipeline</h1>\n        <p className=\"typography-body-md text-ws-static-subtle tabular-nums\">{summary}</p>\n      </div>\n      <Button\n        size=\"sm\"\n        variant={quiet ? 'secondary' : 'primary'}\n        preset={quiet ? 'border' : 'filled'}\n        onClick={onNewDeal}\n      >\n        <Button.Icon icon={RiAddLine} />\n        New deal\n      </Button>\n    </header>\n  );\n}\n"
    },
    {
      "path": "src/blocks/pipeline/people.assets.ts",
      "type": "registry:file",
      "target": "blocks/wideset/pipeline/people.assets.ts",
      "content": "// Portraits of the sample people as small JPEG data URLs (a block ships only .ts and .tsx).\n// Exported from the Wideset Core Figma file by people.cjs: do not edit by hand.\n\n/** A person’s photo by name. People who are not here show their initials. */\nexport const PHOTOS: Record<string, string | undefined> = {\n  'Maya Okafor':\n    'data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/4gHYSUNDX1BST0ZJTEUAAQEAAAHIAAAAAAQwAABtbnRyUkdCIFhZWiAH4AABAAEAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAA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NIY5AANOd/pW0lJjwY5J7yS2SfHKhWrqyLjsJIHD+mfuP3rduZ7JqO37TjY+WDWxfWu2tkhPUJCx8ONDOEa40WLQybFwafZ2n3fsqY1B49G9voT+mq//2Q==',\n};\n"
    },
    {
      "path": "src/blocks/pipeline/person-avatar.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/pipeline/person-avatar.tsx",
      "content": "'use client';\n\nimport type { AvatarProps } from '@/components/ui/wideset/avatar/Avatar.types';\nimport { Avatar } from '@/components/ui/wideset/avatar/Avatar';\n\nimport { PHOTOS } from './people.assets';\n\ntype PersonAvatarProps = Pick<\n  AvatarProps,\n  'size' | 'shape' | 'status' | 'color' | 'className' | 'title' | 'aria-hidden' | 'aria-label'\n> & {\n  /** The person's full name: the key their photo is filed under. */\n  name: string;\n  initials: string;\n  /** Leave empty beside the person's name; pass the name where the avatar stands alone. */\n  alt?: string;\n};\n\n/**\n * A person's avatar: their photo when the sample people have one, otherwise their initials in\n * their colour. A real product mixes the two, so every place the block draws a person asks here\n * and the choice is made once. The initials stay as the fallback if the image fails to load.\n */\nexport function PersonAvatar({ name, initials, color, alt = '', ...props }: PersonAvatarProps) {\n  const photo = PHOTOS[name];\n  return photo ? (\n    <Avatar src={photo} alt={alt} initials={initials} {...props} />\n  ) : (\n    <Avatar initials={initials} color={color} {...props} />\n  );\n}\n"
    },
    {
      "path": "src/blocks/pipeline/pipeline-board.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/pipeline/pipeline-board.tsx",
      "content": "'use client';\n\n// TODO(custom): drag and drop between board columns with pointer events (a copy under the pointer, the drop line, Alt+arrow moves, announcements); Wideset has no sortable list or board.\nimport { type HTMLAttributes, type PointerEvent, useEffect, useId, useRef, useState } from 'react';\n\nimport { type Deal, type StageId, STAGES } from './data';\nimport { DealCard } from './deal-card';\nimport { StageColumn } from './stage-column';\n\ntype Target = { stage: StageId; index: number };\n\ntype Drag = {\n  id: string;\n  pointerId: number;\n  /** Where the pointer went down, and where on the card. */\n  startX: number;\n  startY: number;\n  offsetX: number;\n  offsetY: number;\n  width: number;\n  x: number;\n  y: number;\n  /** Past a few pixels of movement a press becomes a drag. */\n  active: boolean;\n  target?: Target;\n};\n\n/** How far the pointer travels before a press on a card becomes a drag, in px. */\nconst THRESHOLD = 4;\n\n/**\n * The five stages side by side at a fixed 15.5rem, wide enough for a card to breathe: at 1440px four\n * stages fit and the fifth shows its edge, so the board reads as one that scrolls sideways. Cards\n * move three ways: dragged with the pointer, Alt and an arrow on a focused card (up and down within\n * its stage, left and right to the next one), or the card's Move to menu. Each move is announced,\n * and the focus stays on the card.\n */\nexport function PipelineBoard({\n  deals,\n  onMove,\n  onAddDeal,\n}: {\n  /** The deals the filters let through, in board order. */\n  deals: Deal[];\n  /** Puts a deal in a stage, before another deal, or last with `null`. */\n  onMove: (id: string, stage: StageId, beforeId: string | null) => void;\n  onAddDeal: (stage: StageId) => void;\n}) {\n  const hintId = useId();\n  const lists = useRef<Partial<Record<StageId, HTMLDivElement | null>>>({});\n  const [drag, setDrag] = useState<Drag>();\n  // A drag ends in a click on the card's link; this swallows it.\n  const dragged = useRef(false);\n  /** The card the press started on: it takes the pointer when the drag starts. */\n  const handle = useRef<HTMLElement | null>(null);\n  const [announcement, setAnnouncement] = useState('');\n  const [focusId, setFocusId] = useState<string>();\n\n  useEffect(() => {\n    if (!focusId) return;\n    document.getElementById(`deal-${focusId}`)?.focus();\n    setFocusId(undefined);\n  }, [focusId]);\n\n  const inStage = (stage: StageId) => deals.filter((deal) => deal.stage === stage);\n  const stageLabel = (stage: StageId) => STAGES.find(({ id }) => id === stage)!.label;\n\n  /** Moves a deal to `index` among the other cards of `stage`, and says where it went. */\n  const move = (deal: Deal, stage: StageId, index: number, keepFocus: boolean) => {\n    const others = inStage(stage).filter(({ id }) => id !== deal.id);\n    const at = Math.max(0, Math.min(index, others.length));\n    onMove(deal.id, stage, others[at]?.id ?? null);\n    setAnnouncement(\n      `${deal.customer}, ${deal.name} moved to ${stageLabel(stage)}, ${at + 1} of ${others.length + 1}`,\n    );\n    if (keepFocus) setFocusId(deal.id);\n  };\n\n  /** The column under the pointer, and the slot among its cards. */\n  const targetAt = (x: number, y: number, id: string): Target | undefined => {\n    for (const { id: stage } of STAGES) {\n      const list = lists.current[stage];\n      const box = list?.getBoundingClientRect();\n      if (!list || !box || x < box.left || x > box.right) continue;\n      const cards = Array.from(list.querySelectorAll<HTMLElement>('[data-deal]')).filter(\n        (card) => card.dataset.deal !== id,\n      );\n      const index = cards.findIndex((card) => {\n        const rect = card.getBoundingClientRect();\n        return y < rect.top + rect.height / 2;\n      });\n      return { stage, index: index === -1 ? cards.length : index };\n    }\n    return undefined;\n  };\n\n  // Tracked on the document: before the card captures the pointer, a move or a release over an\n  // empty column reaches no card.\n  useEffect(() => {\n    if (!drag) return;\n    const onPointerMove = (event: globalThis.PointerEvent) => {\n      if (drag.pointerId !== event.pointerId) return;\n      const distance = Math.hypot(event.clientX - drag.startX, event.clientY - drag.startY);\n      if (!drag.active && distance < THRESHOLD) return;\n      // The drag starts here: from now on the card follows the pointer even outside it.\n      if (!drag.active) handle.current?.setPointerCapture?.(event.pointerId);\n      setDrag({\n        ...drag,\n        active: true,\n        x: event.clientX,\n        y: event.clientY,\n        // Between two columns the line stays where it was.\n        target: targetAt(event.clientX, event.clientY, drag.id) ?? drag.target,\n      });\n    };\n    const onPointerUp = (event: globalThis.PointerEvent) => {\n      if (drag.pointerId !== event.pointerId) return;\n      const moved = deals.find(({ id }) => id === drag.id);\n      // The move that made it a drag may not have rendered yet.\n      const distance = Math.hypot(event.clientX - drag.startX, event.clientY - drag.startY);\n      const dragging = drag.active || distance >= THRESHOLD;\n      // From where the pointer is now: the board may have scrolled since the last move.\n      const target = targetAt(event.clientX, event.clientY, drag.id) ?? drag.target;\n      if (dragging && target && moved) {\n        dragged.current = true;\n        move(moved, target.stage, target.index, false);\n      }\n      setDrag(undefined);\n    };\n    const onPointerCancel = (event: globalThis.PointerEvent) => {\n      if (drag.pointerId === event.pointerId) setDrag(undefined);\n    };\n    document.addEventListener('pointermove', onPointerMove);\n    document.addEventListener('pointerup', onPointerUp);\n    document.addEventListener('pointercancel', onPointerCancel);\n    return () => {\n      document.removeEventListener('pointermove', onPointerMove);\n      document.removeEventListener('pointerup', onPointerUp);\n      document.removeEventListener('pointercancel', onPointerCancel);\n    };\n  });\n\n  const handlersFor = (deal: Deal): HTMLAttributes<HTMLElement> => ({\n    onPointerDown: (event: PointerEvent<HTMLElement>) => {\n      dragged.current = false;\n      // The menu button is not a handle, and its menu (in a portal) is not part of the card.\n      const target = event.target as HTMLElement;\n      if (event.button !== 0 || target.closest('button') || !event.currentTarget.contains(target))\n        return;\n      handle.current = event.currentTarget;\n      const box = event.currentTarget.getBoundingClientRect();\n      // No pointer capture yet: a press that never moves far enough stays a click on the deal's link.\n      setDrag({\n        id: deal.id,\n        pointerId: event.pointerId,\n        startX: event.clientX,\n        startY: event.clientY,\n        offsetX: event.clientX - box.left,\n        offsetY: event.clientY - box.top,\n        width: box.width,\n        x: event.clientX,\n        y: event.clientY,\n        active: false,\n      });\n    },\n    onClickCapture: (event) => {\n      if (!dragged.current) return;\n      event.preventDefault();\n      dragged.current = false;\n    },\n    onKeyDown: (event) => {\n      // Keys pressed in the card's menu reach here through the portal; they are the menu's.\n      if (!event.currentTarget.contains(event.target as Node)) return;\n      if (event.key === 'Escape' && drag) {\n        setDrag(undefined);\n        return;\n      }\n      if (!event.altKey) return;\n      const column = inStage(deal.stage);\n      const index = column.indexOf(deal);\n      const stage = STAGES.findIndex(({ id }) => id === deal.stage);\n      // `false`: the card is already at that edge.\n      const moves: Record<string, Target | false> = {\n        ArrowUp: index > 0 && { stage: deal.stage, index: index - 1 },\n        ArrowDown: index < column.length - 1 && { stage: deal.stage, index: index + 1 },\n        ArrowLeft: stage > 0 && { stage: STAGES[stage - 1].id, index },\n        ArrowRight: stage < STAGES.length - 1 && { stage: STAGES[stage + 1].id, index },\n      };\n      const to = moves[event.key];\n      if (to === undefined) return;\n      event.preventDefault();\n      if (to) move(deal, to.stage, to.index, true);\n      else setAnnouncement(`${deal.customer}, ${deal.name} cannot move further that way`);\n    },\n  });\n\n  const draggedDeal = drag?.active ? deals.find(({ id }) => id === drag.id) : undefined;\n\n  return (\n    // Padded like the columns, so a card's focus ring at the board's edge is not cut.\n    <div className=\"-mx-ws-3 px-ws-3 ws-scrollbar min-h-0 flex-1 overflow-x-auto\">\n      <div className=\"gap-ws-7 grid h-full grid-cols-[repeat(5,15.5rem)] grid-rows-[minmax(0,1fr)]\">\n        {STAGES.map((stage) => (\n          <StageColumn\n            key={stage.id}\n            stage={stage}\n            deals={inStage(stage.id)}\n            draggingId={draggedDeal?.id}\n            dropIndex={drag?.target?.stage === stage.id ? drag.target.index : undefined}\n            hintId={hintId}\n            listRef={(element) => {\n              lists.current[stage.id] = element;\n            }}\n            handlersFor={handlersFor}\n            onMoveTo={(deal, to) => move(deal, to, 0, true)}\n            onAddDeal={() => onAddDeal(stage.id)}\n          />\n        ))}\n      </div>\n\n      <p id={hintId} className=\"sr-only\">\n        Alt and the arrow keys move the deal: up and down within its stage, left and right to the\n        next stage.\n      </p>\n      <p aria-live=\"polite\" className=\"sr-only\">\n        {announcement}\n      </p>\n\n      {/* The copy under the pointer. Its place is the one value no class can hold. */}\n      {draggedDeal && drag && (\n        <div\n          aria-hidden=\"true\"\n          className=\"z-ws-popout top-ws-0 left-ws-0 pointer-events-none fixed\"\n          style={{\n            width: drag.width,\n            transform: `translate(${drag.x - drag.offsetX}px, ${drag.y - drag.offsetY}px)`,\n          }}\n        >\n          <DealCard deal={draggedDeal} overlay />\n        </div>\n      )}\n    </div>\n  );\n}\n"
    },
    {
      "path": "src/blocks/pipeline/pipeline-toolbar.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/pipeline/pipeline-toolbar.tsx",
      "content": "'use client';\n\nimport { RiKanbanView2, RiListUnordered, RiSearchLine } from '@remixicon/react';\nimport { FilterButton } from '@/components/ui/wideset/filter-button/FilterButton';\nimport { SegmentedControl } from '@/components/ui/wideset/segmented-control/SegmentedControl';\nimport { TextInput } from '@/components/ui/wideset/text-input/TextInput';\n\nimport { closeOptions, ownerOptions } from './data';\n\nexport type Filters = { query: string; owners: string[]; close: string[] };\n\n/**\n * The controls over the board: search and two filters narrow the deals, and the view switch on\n * the right only changes how they are shown. List is not built yet, so it says so instead of\n * switching.\n */\nexport function PipelineToolbar({\n  filters,\n  onFiltersChange,\n  onListView,\n}: {\n  filters: Filters;\n  onFiltersChange: (filters: Filters) => void;\n  onListView: () => void;\n}) {\n  const set = (next: Partial<Filters>) => onFiltersChange({ ...filters, ...next });\n\n  return (\n    <div className=\"gap-ws-5 flex flex-wrap items-center\">\n      <TextInput\n        size=\"sm\"\n        className=\"w-[18rem] max-w-full\"\n        value={filters.query}\n        onChange={(event) => set({ query: event.target.value })}\n      >\n        <TextInput.Prefix inner>\n          <TextInput.Icon icon={RiSearchLine} />\n        </TextInput.Prefix>\n        <TextInput.Input\n          type=\"search\"\n          placeholder=\"Search deals or customers\"\n          aria-label=\"Search deals\"\n        />\n        <TextInput.Suffix inner>\n          <TextInput.ClearButton aria-label=\"Clear search\" />\n        </TextInput.Suffix>\n      </TextInput>\n      <FilterButton\n        label=\"Owner\"\n        placeholder=\"Owner\"\n        options={ownerOptions}\n        value={filters.owners}\n        onChange={(owners) => set({ owners })}\n        clearFilterAriaLabel=\"Clear owner filter\"\n      />\n      <FilterButton\n        label=\"Close date\"\n        placeholder=\"Close date\"\n        options={closeOptions}\n        value={filters.close}\n        onChange={(close) => set({ close })}\n        clearFilterAriaLabel=\"Clear close date filter\"\n      />\n      <SegmentedControl\n        size=\"sm\"\n        aria-label=\"View\"\n        value=\"board\"\n        onValueChange={(value) => value === 'list' && onListView()}\n        className=\"ml-auto\"\n      >\n        <SegmentedControl.Item value=\"board\">\n          <SegmentedControl.Icon icon={RiKanbanView2} />\n          Board\n        </SegmentedControl.Item>\n        <SegmentedControl.Item value=\"list\">\n          <SegmentedControl.Icon icon={RiListUnordered} />\n          List\n        </SegmentedControl.Item>\n      </SegmentedControl>\n    </div>\n  );\n}\n"
    },
    {
      "path": "src/blocks/pipeline/sidebar.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/pipeline/sidebar.tsx",
      "content": "'use client';\n\n// TODO(custom): workspace switcher and account menu are composed by hand.\nimport {\n  RiAddLine,\n  RiArrowDownSLine,\n  RiLogoutBoxRLine,\n  RiSearchLine,\n  RiSettingsLine,\n} from '@remixicon/react';\nimport { Divider } from '@/components/ui/wideset/divider/Divider';\nimport { DropdownMenu } from '@/components/ui/wideset/dropdown/DropdownMenu';\nimport { IconButton } from '@/components/ui/wideset/button/IconButton';\nimport { ListItem } from '@/components/ui/wideset/list-item/ListItem';\nimport { Sidebar } from '@/components/ui/wideset/sidebar/Sidebar';\nimport { type SidebarProps } from '@/components/ui/wideset/sidebar/Sidebar.types';\nimport { TextInput } from '@/components/ui/wideset/text-input/TextInput';\nimport { useState } from 'react';\n\nimport { BrandMark } from './brand-mark';\nimport {\n  account,\n  helpLink,\n  mainLinks,\n  type NavLink,\n  product,\n  settingsLinks,\n  workspace,\n} from './data';\nimport { PersonAvatar } from './person-avatar';\n\n/**\n * The workspace sidebar: switcher, search, the app's pages, settings and the signed-in account.\n * Its toggle sits in the page bar, so the screen holds `collapsed` and passes it down; collapsed,\n * it keeps the mark, the page icons and the avatar.\n */\nexport function PipelineSidebar(\n  props: Pick<SidebarProps, 'id' | 'collapsed' | 'onCollapsedChange'>,\n) {\n  const [active, setActive] = useState('deals');\n\n  const link = ({ id, label, icon, activeIcon }: NavLink) => (\n    <Sidebar.Item\n      key={id}\n      href={`#${id}`}\n      icon={active === id ? (activeIcon ?? icon) : icon}\n      label={label}\n      active={active === id}\n      onClick={() => setActive(id)}\n    />\n  );\n\n  const nav = (\n    <nav aria-label=\"Workspace\" className=\"gap-ws-9 flex flex-col\">\n      <div className=\"flex flex-col\">{mainLinks.map(link)}</div>\n      <Divider weight=\"thin\" />\n      <div role=\"group\" aria-labelledby=\"sidebar-settings\" className=\"gap-ws-2 flex flex-col\">\n        <Sidebar.SectionHeader id=\"sidebar-settings\">Settings</Sidebar.SectionHeader>\n        {settingsLinks.map(link)}\n      </div>\n    </nav>\n  );\n\n  return (\n    <Sidebar {...props}>\n      <Sidebar.Header>\n        <Sidebar.Expanded>\n          <div className=\"gap-ws-9 flex flex-col\">\n            <div className=\"gap-ws-7 pt-ws-3 pb-ws-7 flex items-center\">\n              <BrandMark className=\"size-ws-15\" />\n              <div className=\"flex min-w-0 flex-1 flex-col\">\n                <span className=\"typography-label-strong-sm text-ws-static-strong truncate\">\n                  {workspace.name}\n                </span>\n                <span className=\"typography-caption-md text-ws-static-subtle truncate\">\n                  {product.name}\n                </span>\n              </div>\n              <DropdownMenu>\n                <DropdownMenu.Trigger asChild>\n                  <IconButton\n                    icon={RiArrowDownSLine}\n                    variant=\"secondary\"\n                    preset=\"ghost\"\n                    size=\"xs\"\n                    aria-label=\"Switch workspace\"\n                    className=\"mr-ws-3\"\n                  />\n                </DropdownMenu.Trigger>\n                <DropdownMenu.Content className=\"ws-block-utility\" align=\"end\">\n                  <DropdownMenu.Item data-state=\"checked\">\n                    <ListItem.Content>\n                      <ListItem.Label>{workspace.name}</ListItem.Label>\n                    </ListItem.Content>\n                  </DropdownMenu.Item>\n                  <DropdownMenu.Separator />\n                  <DropdownMenu.Item>\n                    <ListItem.Prefix>\n                      <RiAddLine className=\"size-ws-9\" />\n                    </ListItem.Prefix>\n                    <ListItem.Content>\n                      <ListItem.Label>New workspace</ListItem.Label>\n                    </ListItem.Content>\n                  </DropdownMenu.Item>\n                </DropdownMenu.Content>\n              </DropdownMenu>\n            </div>\n            <TextInput size=\"sm\">\n              <TextInput.Prefix inner>\n                <TextInput.Icon icon={RiSearchLine} />\n              </TextInput.Prefix>\n              <TextInput.Input type=\"search\" placeholder=\"Search\" aria-label=\"Search\" />\n            </TextInput>\n          </div>\n        </Sidebar.Expanded>\n        <Sidebar.Collapsed>\n          <div className=\"pt-ws-3 pb-ws-7 flex justify-center\">\n            <BrandMark className=\"size-ws-15\" />\n          </div>\n        </Sidebar.Collapsed>\n      </Sidebar.Header>\n\n      {/* A section draws only the slot for the state it is in, so the pages go in both. */}\n      <Sidebar.Section scrollable>{nav}</Sidebar.Section>\n\n      <Sidebar.Footer>\n        <div className=\"gap-ws-9 flex flex-col\">\n          <div className=\"flex flex-col\">{link(helpLink)}</div>\n          {/* On the grey ground the line keeps the nav's inset: run edge to edge, it would stop\n              short of the page and read as broken. */}\n          <div className=\"border-ws-static-base pt-ws-5 border-t\">\n            <Sidebar.Expanded>\n              <DropdownMenu>\n                <DropdownMenu.Trigger asChild>\n                  <button\n                    type=\"button\"\n                    className=\"gap-ws-5 px-ws-5 py-ws-3 rounded-ws-control-lg hover:bg-ws-dynamic-tertiary-alpha-strong-default focus-visible:wds-focus-visible outline-ws-dynamic-primary-strong-default flex w-full items-center text-left\"\n                  >\n                    <PersonAvatar name={account.name} initials={account.initials} color=\"orange\" />\n                    <span className=\"flex min-w-0 flex-1 flex-col\">\n                      <span className=\"typography-label-strong-sm text-ws-static-base truncate\">\n                        {account.name}\n                      </span>\n                      <span className=\"typography-caption-md text-ws-static-subtle truncate\">\n                        {account.email}\n                      </span>\n                    </span>\n                    <RiArrowDownSLine\n                      aria-hidden=\"true\"\n                      className=\"size-ws-9 text-ws-static-strong\"\n                    />\n                  </button>\n                </DropdownMenu.Trigger>\n                <DropdownMenu.Content side=\"top\" align=\"start\" className=\"ws-block-utility w-[14rem]\">\n                  <DropdownMenu.Item>\n                    <ListItem.Prefix>\n                      <RiSettingsLine className=\"size-ws-9\" />\n                    </ListItem.Prefix>\n                    <ListItem.Content>\n                      <ListItem.Label>Account settings</ListItem.Label>\n                    </ListItem.Content>\n                  </DropdownMenu.Item>\n                  <DropdownMenu.Separator />\n                  <DropdownMenu.Item variant=\"danger\">\n                    <ListItem.Prefix>\n                      <RiLogoutBoxRLine className=\"size-ws-9\" />\n                    </ListItem.Prefix>\n                    <ListItem.Content>\n                      <ListItem.Label>Log out</ListItem.Label>\n                    </ListItem.Content>\n                  </DropdownMenu.Item>\n                </DropdownMenu.Content>\n              </DropdownMenu>\n            </Sidebar.Expanded>\n            <Sidebar.Collapsed>\n              <div className=\"flex justify-center\">\n                <PersonAvatar\n                  name={account.name}\n                  initials={account.initials}\n                  color=\"orange\"\n                  title={account.name}\n                  alt={account.name}\n                />\n              </div>\n            </Sidebar.Collapsed>\n          </div>\n        </div>\n      </Sidebar.Footer>\n    </Sidebar>\n  );\n}\n"
    },
    {
      "path": "src/blocks/pipeline/stage-column.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/pipeline/stage-column.tsx",
      "content": "'use client';\n\n// TODO(custom): a board column (stage name, its total, cards that scroll on their own, a drop line, Add deal); Wideset has no board or column.\nimport { RiAddLine } from '@remixicon/react';\nimport { Button } from '@/components/ui/wideset/button/Button';\nimport { cn } from '@/lib/wideset/utils';\nimport { StatusBadge } from '@/components/ui/wideset/status-badge/StatusBadge';\nimport { type StatusBadgeProps } from '@/components/ui/wideset/status-badge/StatusBadge.types';\nimport { type HTMLAttributes, type Ref, useId } from 'react';\n\nimport type { Deal, StageId } from './data';\nimport { DealCard } from './deal-card';\nimport { formatUsd } from './format';\n\n/**\n * A stage's colour says how its deals stand, as on the sales overview: the early stages carry\n * nothing yet, a proposal is out and in progress, a negotiation needs a look, a commit is as good\n * as won.\n */\nconst STAGE_COLOR: Record<StageId, NonNullable<StatusBadgeProps['color']>> = {\n  qualified: 'neutral',\n  discovery: 'neutral',\n  proposal: 'info',\n  negotiation: 'notice',\n  commit: 'positive',\n};\n\n/** Where a dragged card would land: a thin brand line in the gap, taking no room. */\nfunction DropLine({ edge }: { edge: 'top' | 'bottom' }) {\n  return (\n    <span\n      aria-hidden=\"true\"\n      className={cn(\n        'h-ws-2 bg-ws-dynamic-primary-default rounded-ws-control-full inset-x-ws-0 pointer-events-none absolute',\n        edge === 'top' ? 'top-ws-0 -translate-y-1/2' : 'bottom-ws-0 translate-y-1/2',\n      )}\n    />\n  );\n}\n\n/**\n * One stage: a quiet grey container that holds its name as a badge in the stage's colour, the total\n * of its deals, the white deal cards, and Add deal under them. The fill groups a stage at a glance\n * and lets the white cards stand off it. The list scrolls on its own, so a long stage never pushes\n * the page.\n */\nexport function StageColumn({\n  stage,\n  deals,\n  draggingId,\n  dropIndex,\n  hintId,\n  listRef,\n  handlersFor,\n  onMoveTo,\n  onAddDeal,\n}: {\n  stage: { id: StageId; label: string };\n  deals: Deal[];\n  draggingId?: string;\n  /** Where a dragged card would land, among the cards other than it. */\n  dropIndex?: number;\n  hintId: string;\n  listRef: Ref<HTMLDivElement>;\n  handlersFor: (deal: Deal) => HTMLAttributes<HTMLElement>;\n  onMoveTo: (deal: Deal, stage: StageId) => void;\n  onAddDeal: () => void;\n}) {\n  const titleId = useId();\n  const others = deals.filter((deal) => deal.id !== draggingId);\n  const total = deals.reduce((sum, deal) => sum + deal.amount, 0);\n\n  /** The edge of a card's slot that shows the drop line, if the card would land there. */\n  const lineAt = (deal: Deal): 'top' | 'bottom' | undefined => {\n    if (dropIndex === undefined) return undefined;\n    const position = others.indexOf(deal);\n    // Only the dragged card is in this column: the line goes above it.\n    if (position === -1) return others.length === 0 ? 'top' : undefined;\n    if (position === dropIndex) return 'top';\n    if (position === others.length - 1 && dropIndex === others.length) return 'bottom';\n    return undefined;\n  };\n\n  return (\n    <section\n      aria-labelledby={titleId}\n      className=\"bg-ws-static-alpha-subtle rounded-ws-container-md p-ws-5 flex min-h-0 min-w-0 flex-col\"\n    >\n      {/* The badge's text lines up with the cards' text under it. */}\n      <header className=\"gap-ws-5 pl-ws-2 pr-ws-7 pb-ws-5 flex items-center justify-between\">\n        <StatusBadge size=\"lg\" color={STAGE_COLOR[stage.id]} className=\"min-w-0\">\n          <h2 id={titleId} className=\"truncate\">\n            {stage.label}\n          </h2>\n        </StatusBadge>\n        <span className=\"typography-label-sm text-ws-static-subtle tabular-nums\">\n          {formatUsd(total)}\n        </span>\n      </header>\n\n      {/* Padded, so the focus ring of a card is not cut by the scrolling edge. */}\n      <div\n        ref={listRef}\n        data-stage={stage.id}\n        className=\"-mx-ws-3 px-ws-3 ws-scrollbar relative flex min-h-0 flex-col overflow-y-auto\"\n      >\n        {deals.map((deal) => {\n          const line = lineAt(deal);\n          return (\n            <div key={deal.id} className=\"py-ws-3 relative\">\n              {line && <DropLine edge={line} />}\n              <DealCard\n                deal={deal}\n                placeholder={deal.id === draggingId}\n                hintId={hintId}\n                handlers={handlersFor(deal)}\n                onMoveTo={(to) => onMoveTo(deal, to)}\n              />\n            </div>\n          );\n        })}\n        {deals.length === 0 && (\n          <div className=\"py-ws-5 px-ws-7 relative\">\n            {dropIndex === 0 && <DropLine edge=\"top\" />}\n            <p className=\"typography-body-sm text-ws-static-subtle\">No deals in this stage</p>\n          </div>\n        )}\n      </div>\n\n      <Button\n        variant=\"secondary\"\n        preset=\"ghost\"\n        size=\"sm\"\n        className=\"mt-ws-3 self-start\"\n        onClick={onAddDeal}\n      >\n        <Button.Icon icon={RiAddLine} />\n        Add deal\n      </Button>\n    </section>\n  );\n}\n"
    }
  ],
  "meta": {
    "version": "1.1.0",
    "commit": "a734f9f0"
  }
}
