{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "block-goals",
  "type": "registry:block",
  "title": "Goals",
  "description": "Team goals on a raised page: each goal’s figure against its target with one bar, a judged state and key results to tick off, then the quarter’s leaderboard with your row marked “(you)” and the milestones reached, and a dialog to add a goal.",
  "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/card.json",
    "https://wideset.co/r/checkbox.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/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/progress-bar.json",
    "https://wideset.co/r/select.json",
    "https://wideset.co/r/sidebar.json",
    "https://wideset.co/r/status-badge.json",
    "https://wideset.co/r/table.json",
    "https://wideset.co/r/text-input.json",
    "https://wideset.co/r/toast.json",
    "https://wideset.co/r/utils.json"
  ],
  "files": [
    {
      "path": "src/blocks/goals/achievement-list.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/goals/achievement-list.tsx",
      "content": "'use client';\n\n// TODO(custom): milestone row (a neutral icon tile, what, who, when); Wideset has no award mark or activity row.\nimport type { RemixiconComponentType } from '@remixicon/react';\n\nimport { formatDay } from './format';\n\nexport type Milestone = {\n  id: string;\n  title: string;\n  /** Who reached it; left out where the page is already one person's. */\n  person?: string;\n  /** The day it was reached. */\n  date: string;\n  icon: RemixiconComponentType;\n};\n\n/**\n * Milestones as a quiet list, not a wall of badges: a small neutral tile with a line icon for the\n * kind of milestone, what was reached, who reached it, and the day. The tile is the timeline's\n * mark at a square, so it reads as a record, not a prize.\n */\nexport function AchievementList({ items }: { items: Milestone[] }) {\n  return (\n    <ul className=\"gap-ws-9 flex flex-col\">\n      {items.map(({ id, title, person, date, icon: Icon }) => (\n        <li key={id} className=\"gap-ws-7 flex items-center\">\n          <span\n            aria-hidden=\"true\"\n            className=\"size-ws-14 rounded-ws-control-lg border-ws-static-base text-ws-static-subtle flex shrink-0 items-center justify-center border\"\n          >\n            <Icon className=\"size-ws-8\" />\n          </span>\n          <div className=\"flex min-w-0 flex-1 flex-col\">\n            <span className=\"typography-label-strong-sm text-ws-static-strong truncate\">\n              {title}\n            </span>\n            <span className=\"typography-caption-md text-ws-static-subtle truncate tabular-nums\">\n              {person ? `${person}, ` : ''}\n              <time dateTime={date}>{formatDay(date)}</time>\n            </span>\n          </div>\n        </li>\n      ))}\n    </ul>\n  );\n}\n"
    },
    {
      "path": "src/blocks/goals/brand-mark.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/goals/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/goals/data.ts",
      "type": "registry:file",
      "target": "blocks/wideset/goals/data.ts",
      "content": "import {\n  type RemixiconComponentType,\n  RiBankCardLine,\n  RiCalendarCheckLine,\n  RiContactsBook3Line,\n  RiFlagFill,\n  RiFlagLine,\n  RiHandCoinLine,\n  RiHome5Line,\n  RiInbox2Line,\n  RiKey2Line,\n  RiLineChartLine,\n  RiMoneyDollarCircleLine,\n  RiPieChart2Line,\n  RiPlugLine,\n  RiPresentationLine,\n  RiQuestionLine,\n  RiSettings3Line,\n  RiTeamLine,\n} from '@remixicon/react';\n\n/*\n  The sales team's goals for Q4 2026 (Oct 1 – Dec 31), seen on Tuesday 10 November, 51 days\n  before the quarter ends. A goal's figure is what was counted before its key results plus the key\n  results ticked off, so ticking one moves the figure, and the state is worked out from the figure\n  against the pace the due date asks for. The leaderboard and the milestones agree with the goals:\n  Nina's renewals goal is met, Leo has booked 25 first meetings.\n*/\n\n/** The product is Orbit; the workspace using it 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 },\n  { id: 'revenue', label: 'Revenue', icon: RiLineChartLine },\n  { id: 'goals', label: 'Goals', icon: RiFlagLine, activeIcon: RiFlagFill },\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/** The sample is frozen on this day. */\nexport const TODAY = '2026-11-10';\nexport const QUARTER = { label: 'Q4 2026', from: '2026-10-01', to: '2026-12-31' };\n\nexport type Person = {\n  id: string;\n  name: string;\n  initials: string;\n  /** Pinned only for the signed-in user, to match the sidebar's account. */\n  color?: 'orange';\n};\n\nexport const maya: Person = {\n  id: 'maya',\n  name: account.name,\n  initials: account.initials,\n  color: 'orange',\n};\nconst jonas: Person = { id: 'jonas', name: 'Jonas Weber', initials: 'JW' };\nconst priya: Person = { id: 'priya', name: 'Priya Raman', initials: 'PR' };\nconst tom: Person = { id: 'tom', name: 'Tom Becker', initials: 'TB' };\nconst daniel: Person = { id: 'daniel', name: 'Daniel Reyes', initials: 'DR' };\nconst leo: Person = { id: 'leo', name: 'Leo Marchetti', initials: 'LM' };\nconst nina: Person = { id: 'nina', name: 'Nina Alvarez', initials: 'NA' };\n\n/** Who can own a goal, in the order the owner field lists them. */\nexport const people: Person[] = [maya, jonas, priya, daniel, nina, leo, tom];\n\n/** What a goal counts. Money is counted in dollars, the rest one by one. */\nexport type Measure = 'revenue' | 'pipeline' | 'meetings' | 'renewals' | 'demos';\n\nexport const MEASURES: Record<Measure, { label: string; money?: true; unit?: string }> = {\n  revenue: { label: 'Closed revenue', money: true },\n  pipeline: { label: 'Pipeline created', money: true },\n  meetings: { label: 'Meetings booked', unit: 'meetings' },\n  renewals: { label: 'Renewals signed', unit: 'renewals' },\n  demos: { label: 'Demos run', unit: 'demos' },\n};\n\n/** One thing that adds to a goal's figure once it is done: a deal, a meeting, a renewal. */\nexport type KeyResult = { id: string; title: string; value: number };\n\nexport type Goal = {\n  id: string;\n  name: string;\n  owner: Person;\n  measure: Measure;\n  target: number;\n  /** What was counted towards the goal before its key results. */\n  counted: number;\n  keyResults: KeyResult[];\n  /** The day the goal started counting and the day it is due. */\n  start: string;\n  due: string;\n};\n\nexport const goals: Goal[] = [\n  {\n    id: 'new-business',\n    name: 'New business',\n    owner: jonas,\n    measure: 'revenue',\n    target: 300_000,\n    counted: 151_600,\n    keyResults: [\n      { id: 'halcyon', title: 'Halcyon Freight, annual plan', value: 48_000 },\n      { id: 'atlas', title: 'Atlas Robotics, 120 seats', value: 32_000 },\n      { id: 'tidewater', title: 'Tidewater Energy, pilot', value: 14_400 },\n    ],\n    start: QUARTER.from,\n    due: QUARTER.to,\n  },\n  {\n    id: 'expansion',\n    name: 'Expansion in existing accounts',\n    owner: priya,\n    measure: 'revenue',\n    target: 150_000,\n    counted: 38_000,\n    keyResults: [\n      { id: 'northwind', title: 'Northwind Health, 40 more seats', value: 19_200 },\n      { id: 'kestrel', title: 'Kestrel Analytics, SSO add-on', value: 9_600 },\n      { id: 'cobalt', title: 'Cobalt Security, second team', value: 14_400 },\n    ],\n    start: QUARTER.from,\n    due: QUARTER.to,\n  },\n  {\n    id: 'meetings',\n    name: 'First meetings',\n    owner: leo,\n    measure: 'meetings',\n    target: 60,\n    counted: 24,\n    keyResults: [\n      { id: 'marlow', title: 'Marlow & Finch, managing partner', value: 1 },\n      { id: 'juniper', title: 'Juniper Legal, head of operations', value: 1 },\n    ],\n    start: QUARTER.from,\n    due: QUARTER.to,\n  },\n  {\n    id: 'renewals',\n    name: 'Renewals before year end',\n    owner: nina,\n    measure: 'renewals',\n    target: 12,\n    counted: 9,\n    keyResults: [\n      { id: 'northwind', title: 'Northwind Health', value: 1 },\n      { id: 'kestrel', title: 'Kestrel Analytics', value: 1 },\n      { id: 'cobalt', title: 'Cobalt Security', value: 1 },\n    ],\n    start: QUARTER.from,\n    due: '2026-11-30',\n  },\n  {\n    id: 'demos',\n    name: 'Technical demos',\n    owner: tom,\n    measure: 'demos',\n    target: 30,\n    counted: 10,\n    keyResults: [\n      { id: 'atlas', title: 'Atlas Robotics, security deep dive', value: 1 },\n      { id: 'tidewater', title: 'Tidewater Energy, pilot setup', value: 1 },\n      { id: 'marlow', title: 'Marlow & Finch, first demo', value: 1 },\n    ],\n    start: QUARTER.from,\n    due: QUARTER.to,\n  },\n  {\n    id: 'pipeline',\n    name: 'New pipeline',\n    owner: daniel,\n    measure: 'pipeline',\n    target: 600_000,\n    counted: 160_000,\n    keyResults: [\n      { id: 'juniper', title: 'Juniper Legal, 60 seats', value: 28_800 },\n      { id: 'marlow', title: 'Marlow & Finch, firm-wide plan', value: 36_000 },\n    ],\n    start: QUARTER.from,\n    due: QUARTER.to,\n  },\n];\n\n/** The key results done when the page opens, by goal. */\nexport const doneAtStart: Record<string, string[]> = {\n  'new-business': ['halcyon'],\n  expansion: ['kestrel'],\n  meetings: ['marlow'],\n  renewals: ['northwind', 'kestrel', 'cobalt'],\n  demos: ['atlas'],\n  pipeline: [],\n};\n\n/** A goal's figure: what was counted before, plus the key results ticked off. */\nexport const figureOf = (goal: Goal, done: string[]) =>\n  goal.counted +\n  goal.keyResults.reduce((sum, result) => sum + (done.includes(result.id) ? result.value : 0), 0);\n\nexport type GoalState = 'On track' | 'At risk' | 'Behind' | 'Done';\n\nconst DAY = 86_400_000;\nconst days = (from: string, to: string) => (Date.parse(to) - Date.parse(from)) / DAY;\n\n/**\n * Orbit's judgement: the share reached against the share of the time gone. Within 90% of the pace\n * is on track, within 70% at risk, anything slower behind. A goal that has met its target is done.\n */\nexport function stateOf(goal: Goal, figure: number, today = TODAY): GoalState {\n  if (figure >= goal.target) return 'Done';\n  const elapsed = Math.min(Math.max(days(goal.start, today) / days(goal.start, goal.due), 0), 1);\n  if (elapsed === 0) return 'On track';\n  const pace = figure / goal.target / elapsed;\n  return pace >= 0.9 ? 'On track' : pace >= 0.7 ? 'At risk' : 'Behind';\n}\n\nexport type Standing = {\n  person: Person;\n  /** Closed this quarter so far. */\n  revenue: number;\n  quota: number;\n  /** Where they stood a week ago. */\n  lastWeek: number;\n};\n\n/** The team's closed revenue this quarter, in no order: the leaderboard ranks it. */\nexport const standings: Standing[] = [\n  { person: jonas, revenue: 164_200, quota: 180_000, lastWeek: 2 },\n  { person: priya, revenue: 151_800, quota: 180_000, lastWeek: 1 },\n  { person: daniel, revenue: 118_900, quota: 180_000, lastWeek: 3 },\n  { person: maya, revenue: 96_400, quota: 120_000, lastWeek: 5 },\n  { person: nina, revenue: 88_300, quota: 150_000, lastWeek: 4 },\n];\n\nexport type Achievement = {\n  id: string;\n  /** What was reached, as a short line. */\n  title: string;\n  person: Person;\n  /** The day it was reached. */\n  date: string;\n  icon: RemixiconComponentType;\n};\n\n/** Milestones reached this quarter, newest first. */\nexport const achievements: Achievement[] = [\n  {\n    id: 'meetings-25',\n    title: '25 first meetings booked',\n    person: leo,\n    date: '2026-11-09',\n    icon: RiCalendarCheckLine,\n  },\n  {\n    id: 'renewals-done',\n    title: 'Renewals goal reached',\n    person: nina,\n    date: '2026-11-04',\n    icon: RiFlagLine,\n  },\n  {\n    id: 'demos-10',\n    title: 'Ten demos in October',\n    person: tom,\n    date: '2026-10-31',\n    icon: RiPresentationLine,\n  },\n  {\n    id: 'halcyon',\n    title: 'Largest deal this quarter',\n    person: jonas,\n    date: '2026-10-28',\n    icon: RiHandCoinLine,\n  },\n  {\n    id: 'priya-100k',\n    title: 'First $100,000 quarter',\n    person: priya,\n    date: '2026-10-22',\n    icon: RiMoneyDollarCircleLine,\n  },\n];\n"
    },
    {
      "path": "src/blocks/goals/format.ts",
      "type": "registry:file",
      "target": "blocks/wideset/goals/format.ts",
      "content": "import { type Measure, MEASURES } from './data';\n\n// One locale and currency for the whole screen; swap them for the workspace'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);\nconst share = new Intl.NumberFormat(LOCALE, { style: 'percent', maximumFractionDigits: 0 });\n// Days are calendar days (`2026-11-10`), parsed as UTC midnight: format them in UTC too.\nconst day = new Intl.DateTimeFormat(LOCALE, { month: 'short', day: 'numeric', timeZone: 'UTC' });\nconst fullDay = 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/** A share of a whole, in whole percent: `91%`. */\nexport const formatShare = (value: number) => share.format(value);\n/** `Dec 31`. */\nexport const formatDay = (iso: string) => day.format(new Date(iso));\n/** `Oct 1 – Dec 31, 2026`. */\nexport const formatRange = (from: string, to: string) =>\n  fullDay.formatRange(new Date(from), new Date(to));\n\n/** A figure in the goal's own unit: `$199,600` for money, `25` for anything counted. */\nexport const formatMeasure = (measure: Measure, value: number) =>\n  MEASURES[measure].money ? formatUsd(value) : formatCount(value);\n"
    },
    {
      "path": "src/blocks/goals/goal-list.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/goals/goal-list.tsx",
      "content": "'use client';\n\n// TODO(custom): goal rows that open onto their key results; Table has no expandable row.\nimport { RiArrowDownSLine, RiArrowRightSLine } from '@remixicon/react';\nimport { Card } from '@/components/ui/wideset/card/Card';\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 { useId } from 'react';\n\nimport { figureOf, type Goal, type GoalState, MEASURES, stateOf } from './data';\nimport { formatDay, formatMeasure } from './format';\nimport { GoalMeter } from './goal-meter';\nimport { KeyResultList } from './key-result-list';\nimport { PersonAvatar } from './person-avatar';\n\n/**\n * The columns every row shares, header and key results included: goal, owner, progress, state,\n * due. Inset 20px, like a card's title.\n */\nconst COLUMNS =\n  'gap-x-ws-12 px-ws-11 grid grid-cols-[minmax(0,1fr)_10rem_16rem_5.5rem_4.5rem] items-center';\n\n/** Every state carries its meaning: done and on track are good, at risk needs a look, behind is bad. */\nconst STATE_COLOR: Record<GoalState, StatusBadgeProps['color']> = {\n  'On track': 'positive',\n  'At risk': 'notice',\n  Behind: 'negative',\n  Done: 'positive',\n};\n\ntype GoalListProps = {\n  goals: Goal[];\n  /** Ids of the key results done, by goal. */\n  done: Record<string, string[]>;\n  /** Ids of the goals open on their key results. */\n  open: string[];\n  onOpenChange: (id: string, open: boolean) => void;\n  onDoneChange: (goalId: string, resultId: string, done: boolean) => void;\n};\n\n/**\n * The quarter's goals, the page's main thing, as rows in a card, split by lines, under one header\n * row: the goal and\n * what it measures, its owner, the figure against the target with one bar, the state and the due\n * date. A row does one thing, open its key results, so its name is a button stretched over the\n * whole row; the hover runs across it and the chevron turns.\n */\nexport function GoalList({ goals, done, open, onOpenChange, onDoneChange }: GoalListProps) {\n  const id = useId();\n\n  return (\n    <Card role=\"region\" aria-label=\"Goals\">\n      <div\n        aria-hidden=\"true\"\n        className={cn(\n          COLUMNS,\n          'h-ws-18 border-ws-static-base typography-label-strong-sm text-ws-static-base border-b',\n        )}\n      >\n        <span className=\"pl-ws-12\">Goal</span>\n        <span>Owner</span>\n        <span>Progress</span>\n        <span>State</span>\n        <span className=\"text-right\">Due</span>\n      </div>\n\n      <ul>\n        {goals.map((goal) => {\n          const expanded = open.includes(goal.id);\n          const goalDone = done[goal.id] ?? [];\n          const figure = figureOf(goal, goalDone);\n          const state = stateOf(goal, figure);\n          const resultsId = `${id}-${goal.id}`;\n          const Chevron = expanded ? RiArrowDownSLine : RiArrowRightSLine;\n\n          return (\n            // The last row ends on the card's border, so it draws no line of its own.\n            <li key={goal.id} className=\"border-ws-static-base border-b last:border-b-0\">\n              <div\n                className={cn(\n                  COLUMNS,\n                  'py-ws-7 hover:bg-ws-dynamic-secondary-alpha-hover relative',\n                )}\n              >\n                <button\n                  type=\"button\"\n                  aria-expanded={expanded}\n                  aria-controls={resultsId}\n                  onClick={() => onOpenChange(goal.id, !expanded)}\n                  className=\"gap-ws-5 focus-visible:wds-focus-visible outline-ws-dynamic-primary-strong-default after:inset-ws-0 flex min-w-0 cursor-pointer items-center text-left after:absolute\"\n                >\n                  <Chevron\n                    aria-hidden=\"true\"\n                    className=\"size-ws-9 text-ws-dynamic-secondary-default shrink-0\"\n                  />\n                  <span className=\"flex min-w-0 flex-col\">\n                    <span className=\"typography-label-strong-sm text-ws-static-strong truncate\">\n                      {goal.name}\n                    </span>\n                    <span className=\"typography-caption-md text-ws-static-subtle truncate\">\n                      {MEASURES[goal.measure].label}\n                    </span>\n                  </span>\n                </button>\n                <span className=\"gap-ws-5 typography-label-sm text-ws-static-base flex min-w-0 items-center\">\n                  <PersonAvatar\n                    size=\"sm\"\n                    name={goal.owner.name}\n                    initials={goal.owner.initials}\n                    color={goal.owner.color}\n                    aria-hidden\n                  />\n                  <span className=\"truncate\">{goal.owner.name}</span>\n                </span>\n                <GoalMeter\n                  figure={formatMeasure(goal.measure, figure)}\n                  target={formatMeasure(goal.measure, goal.target)}\n                  value={figure}\n                  max={goal.target}\n                  label={`${goal.name}, progress`}\n                />\n                <span>\n                  <StatusBadge size=\"sm\" color={STATE_COLOR[state]}>\n                    {state}\n                  </StatusBadge>\n                </span>\n                <span className=\"typography-label-sm text-ws-static-base text-right tabular-nums\">\n                  <span className=\"sr-only\">Due </span>\n                  {formatDay(goal.due)}\n                </span>\n              </div>\n\n              {expanded && (\n                <div id={resultsId}>\n                  <KeyResultList\n                    results={goal.keyResults}\n                    done={goalDone}\n                    measure={goal.measure}\n                    goal={goal.name}\n                    rowClassName={COLUMNS}\n                    onDoneChange={(resultId, value) => onDoneChange(goal.id, resultId, value)}\n                  />\n                </div>\n              )}\n            </li>\n          );\n        })}\n      </ul>\n    </Card>\n  );\n}\n"
    },
    {
      "path": "src/blocks/goals/goal-meter.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/goals/goal-meter.tsx",
      "content": "'use client';\n\n// TODO(custom): goal meter (figure against a target, a bar under it); ProgressBar's own label shows only a percentage.\nimport { cn } from '@/lib/wideset/utils';\nimport { ProgressBar } from '@/components/ui/wideset/progress-bar/ProgressBar';\n\nimport { formatShare } from './format';\n\ntype GoalMeterProps = {\n  /** The figure so far and the target, formatted in the goal's unit: `$199,600`, `$300,000`. */\n  figure: string;\n  target: string;\n  value: number;\n  max: number;\n  /** What the bar is the progress of, for its accessible name. */\n  label: string;\n  className?: string;\n};\n\n/**\n * The goal meter from the dashboard, at row size: the figure against its target and the share\n * reached on one line, one bar under it. The bar turns positive once the target is met.\n */\nexport function GoalMeter({ figure, target, value, max, label, className }: GoalMeterProps) {\n  const met = value >= max;\n\n  return (\n    <div className={cn('gap-ws-4 flex min-w-0 flex-col', className)}>\n      <div className=\"gap-ws-7 typography-label-sm flex items-baseline justify-between tabular-nums\">\n        <p className=\"min-w-0 truncate\">\n          <span className=\"text-ws-static-strong font-ws-medium\">{figure}</span>{' '}\n          <span className=\"text-ws-static-subtle\">of {target}</span>\n        </p>\n        <p className=\"text-ws-static-base\">{formatShare(Math.min(value / max, 1))}</p>\n      </div>\n      <ProgressBar\n        value={Math.min(value, max)}\n        max={max}\n        status={met ? 'success' : 'default'}\n        aria-label={label}\n        aria-valuetext={`${figure} of ${target}`}\n      />\n    </div>\n  );\n}\n"
    },
    {
      "path": "src/blocks/goals/index.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/goals/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 { AchievementList } from './achievement-list';\nimport {\n  achievements,\n  doneAtStart,\n  type Goal,\n  goals as goalsAtStart,\n  QUARTER,\n  standings,\n  TODAY,\n} from './data';\nimport { formatCount, formatRange } from './format';\nimport { GoalList } from './goal-list';\nimport { Leaderboard } from './leaderboard';\nimport { NewGoalModal } from './new-goal-modal';\nimport { PageHeader } from './page-header';\nimport { Panel } from './panel';\nimport { GoalsSidebar } from './sidebar';\n\n/** One column of the page: the header and the body share its edges. */\nconst COLUMN = 'px-ws-14 mx-auto w-full max-w-[80rem]';\n\nconst daysLeft = (Date.parse(QUARTER.to) - Date.parse(TODAY)) / 86_400_000;\n\nconst MILESTONES = achievements.map(({ person, ...milestone }) => ({\n  ...milestone,\n  person: person.name,\n}));\n\n/** The page: the goals first, then who is ahead and what was reached. */\nfunction GoalsPage() {\n  const sidebarId = useId();\n  const { showToast } = useToast();\n  const [collapsed, setCollapsed] = useState(false);\n  const [goals, setGoals] = useState(goalsAtStart);\n  const [done, setDone] = useState(doneAtStart);\n  // The goal at risk opens on load: ticking its next key result is what moves it back on track.\n  const [open, setOpen] = useState(['expansion']);\n  const [adding, setAdding] = useState(false);\n\n  const toggle = (id: string, value: boolean) =>\n    setOpen((all) => (value ? [...all, id] : all.filter((item) => item !== id)));\n\n  const tick = (goalId: string, resultId: string, value: boolean) =>\n    setDone((all) => {\n      const current = all[goalId] ?? [];\n      return {\n        ...all,\n        [goalId]: value ? [...current, resultId] : current.filter((item) => item !== resultId),\n      };\n    });\n\n  const add = (goal: Omit<Goal, 'id'>) => {\n    setGoals((all) => [...all, { ...goal, id: `goal-${all.length + 1}` }]);\n    setAdding(false);\n    showToast({ status: 'success', content: `Goal added: ${goal.name}` });\n  };\n\n  return (\n    <AppShell className=\"ws-block-utility\" direction=\"inset\">\n      <GoalsSidebar 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 pulled\n              left so its glyph, not its box, sits 20px from the edge; the crumbs follow 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>Goals</Breadcrumbs.Item>\n            </Breadcrumbs>\n          </div>\n        </div>\n\n        {/* The page scrolls inside the card, so the card's corners stay put. */}\n        <div className=\"ws-scrollbar min-h-0 flex-1 overflow-y-auto\">\n          <div className={cn(COLUMN, 'gap-ws-12 pt-ws-14 pb-ws-16 flex flex-col')}>\n            <PageHeader\n              summary={`The sales team’s goals for ${QUARTER.label}, ${formatRange(QUARTER.from, QUARTER.to)}. ${formatCount(daysLeft)} days left.`}\n              onNewGoal={() => setAdding(true)}\n              quiet={adding}\n            />\n\n            <div className=\"gap-ws-12 flex flex-col\">\n              <GoalList\n                goals={goals}\n                done={done}\n                open={open}\n                onOpenChange={toggle}\n                onDoneChange={tick}\n              />\n\n              {/* Two cards side by side: one height, so the row ends on one line. */}\n              <div className=\"gap-ws-12 grid grid-cols-1 lg:grid-cols-[minmax(0,1fr)_18rem]\">\n                <Panel title=\"Leaderboard\" flush>\n                  <Leaderboard standings={standings} />\n                </Panel>\n                <Panel title=\"Milestones this quarter\">\n                  <AchievementList items={MILESTONES} />\n                </Panel>\n              </div>\n            </div>\n          </div>\n        </div>\n      </AppShell.Main>\n\n      <NewGoalModal open={adding} onOpenChange={setAdding} onAdd={add} />\n    </AppShell>\n  );\n}\n\n/**\n * Goals (Inset direction): the sales team's goals for the quarter on the raised page beside the\n * workspace sidebar. Each part of the page is a card. The goals come first and weigh most: rows,\n * each with its owner, its figure against the target as one bar, a state in the colour of its\n * meaning, and its key results to tick off. Under them, the leaderboard as a plain ranked table\n * and the quarter's milestones as a quiet list. \"New goal\" is the one filled button and opens a\n * short dialog.\n */\nexport default function Goals() {\n  return (\n    <ToastProvider position=\"bottom-center\">\n      <GoalsPage />\n    </ToastProvider>\n  );\n}\n"
    },
    {
      "path": "src/blocks/goals/key-result-list.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/goals/key-result-list.tsx",
      "content": "'use client';\n\n// TODO(custom): key result checklist (rows that tick, the whole row the target); Wideset has no checklist or task row.\nimport { Checkbox } from '@/components/ui/wideset/checkbox/Checkbox';\nimport { cn } from '@/lib/wideset/utils';\nimport { useId } from 'react';\n\nimport { type KeyResult, type Measure, MEASURES } from './data';\nimport { formatMeasure } from './format';\n\ntype KeyResultListProps = {\n  results: KeyResult[];\n  /** Ids of the key results done. */\n  done: string[];\n  measure: Measure;\n  /** The goal's name, so every checkbox says which goal it belongs to. */\n  goal: string;\n  /** The goal row's columns and padding: a key result's value stands under the goal's figure. */\n  rowClassName: string;\n  onDoneChange: (id: string, done: boolean) => void;\n};\n\n/**\n * A goal's key results, the task list's rows at a step smaller: the whole row is the checkbox's\n * label, one target with the hover across it. Done, a row goes quiet and struck through; ticking\n * or unticking one adds its value to the goal's figure or takes it away. A money goal shows what\n * each result is worth under the goal's figure; a counted goal counts each as one.\n */\nexport function KeyResultList({\n  results,\n  done,\n  measure,\n  goal,\n  rowClassName,\n  onDoneChange,\n}: KeyResultListProps) {\n  const id = useId();\n\n  if (results.length === 0)\n    return (\n      <p className={cn(rowClassName, 'typography-body-md text-ws-static-subtle pb-ws-9')}>\n        <span className=\"pl-ws-12 col-span-full\">No key results yet.</span>\n      </p>\n    );\n\n  return (\n    <ul aria-label={`${goal}, key results`} className=\"pb-ws-5\">\n      {results.map((result) => {\n        const checked = done.includes(result.id);\n        const checkboxId = `${id}-${result.id}`;\n        return (\n          <li key={result.id}>\n            <label\n              htmlFor={checkboxId}\n              className={cn(\n                rowClassName,\n                'h-ws-16 hover:bg-ws-dynamic-secondary-alpha-hover cursor-pointer items-center',\n              )}\n            >\n              {/* Indented past the goal's chevron, so the box lines up with the goal's name. */}\n              <span className=\"gap-ws-7 pl-ws-12 col-span-2 flex min-w-0 items-center\">\n                <Checkbox\n                  id={checkboxId}\n                  checked={checked}\n                  onCheckedChange={(value) => onDoneChange(result.id, value === true)}\n                />\n                <span\n                  className={cn(\n                    'typography-label-sm min-w-0 truncate',\n                    checked ? 'text-ws-static-subtle line-through' : 'text-ws-static-strong',\n                  )}\n                >\n                  {result.title}\n                </span>\n              </span>\n              {MEASURES[measure].money && (\n                <span\n                  className={cn(\n                    'typography-label-sm tabular-nums',\n                    checked ? 'text-ws-static-subtle' : 'text-ws-static-base',\n                  )}\n                >\n                  {formatMeasure(measure, result.value)}\n                </span>\n              )}\n            </label>\n          </li>\n        );\n      })}\n    </ul>\n  );\n}\n"
    },
    {
      "path": "src/blocks/goals/leaderboard.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/goals/leaderboard.tsx",
      "content": "'use client';\n\n// TODO(custom): whole-row link done with a stretched <a>; Table has no row link.\nimport { RiArrowDownLine, RiArrowUpLine } from '@remixicon/react';\nimport { ProgressBar } from '@/components/ui/wideset/progress-bar/ProgressBar';\nimport { Table } from '@/components/ui/wideset/table/Table';\n\nimport { maya, type Standing } from './data';\nimport { formatShare, formatUsd } from './format';\nimport { PersonAvatar } from './person-avatar';\n\n/**\n * The table sits in a card, edge to edge: the outer cells are inset like the card's title, and\n * the last row leaves its line to the card's border.\n */\nconst IN_CARD =\n  '[&_tr>*:first-child]:pl-ws-11 [&_tr>*:last-child]:pr-ws-11 [&_tbody>tr:last-child>*]:border-b-0';\n\n/** Where a person moved since last week: a quiet arrow and the places, or a dash. */\nfunction RankChange({ from, to }: { from: number; to: number }) {\n  const places = from - to;\n  if (places === 0)\n    return (\n      <span className=\"text-ws-static-subtle\">\n        <span aria-hidden=\"true\">–</span>\n        <span className=\"sr-only\">No change</span>\n      </span>\n    );\n  const Arrow = places > 0 ? RiArrowUpLine : RiArrowDownLine;\n  return (\n    <span className=\"gap-ws-2 text-ws-static-subtle inline-flex items-center\">\n      <Arrow aria-hidden=\"true\" className=\"size-ws-8\" />\n      <span className=\"sr-only\">{places > 0 ? 'Up' : 'Down'} </span>\n      {Math.abs(places)}\n    </span>\n  );\n}\n\n/**\n * The team ranked by what it closed this quarter, each with the share of their quota and how far\n * they moved since last week. The share is progress to a target, so it is the bar the goals above\n * use (`ProgressBar`, positive once the quota is met), with the percentage beside it. No medals\n * and no podium: the rank is a number. The signed-in person's row says \"(you)\" after the name;\n * no selected fill, since nothing in the table is selected. A row opens the person's profile.\n */\nexport function Leaderboard({ standings }: { standings: Standing[] }) {\n  const ranked = [...standings].sort((a, b) => b.revenue - a.revenue);\n\n  return (\n    <Table size=\"md\" interactive aria-label=\"Leaderboard\" className={IN_CARD}>\n      <Table.Head>\n        <Table.Row>\n          <Table.Header align=\"right\" className=\"w-[3rem]\">\n            Rank\n          </Table.Header>\n          <Table.Header>Person</Table.Header>\n          <Table.Header align=\"right\" className=\"whitespace-nowrap\">\n            Closed revenue\n          </Table.Header>\n          <Table.Header className=\"w-[13rem] whitespace-nowrap\">Share of quota</Table.Header>\n          <Table.Header align=\"right\" className=\"whitespace-nowrap\">\n            Since last week\n          </Table.Header>\n        </Table.Row>\n      </Table.Head>\n      <Table.Body>\n        {ranked.map(({ person, revenue, quota, lastWeek }, index) => {\n          const you = person.id === maya.id;\n          const share = revenue / quota;\n          return (\n            <Table.Row key={person.id} className=\"relative\">\n              <Table.Cell align=\"right\" className=\"tabular-nums\">\n                {index + 1}\n              </Table.Cell>\n              <Table.Cell>\n                <span className=\"gap-ws-5 flex items-center\">\n                  <PersonAvatar\n                    size=\"sm\"\n                    name={person.name}\n                    initials={person.initials}\n                    color={person.color}\n                    aria-hidden\n                  />\n                  {/* The name's link stretches over the whole row: one target, the hover on every cell. */}\n                  <a\n                    href={`#members/${person.id}`}\n                    className=\"text-ws-static-strong focus-visible:wds-focus-visible outline-ws-dynamic-primary-strong-default after:inset-ws-0 truncate after:absolute\"\n                  >\n                    {person.name}\n                    {you && <span className=\"text-ws-static-subtle\"> (you)</span>}\n                  </a>\n                </span>\n              </Table.Cell>\n              <Table.Cell align=\"right\">\n                <span className=\"typography-number-sm text-ws-static-strong tabular-nums\">\n                  {formatUsd(revenue)}\n                </span>\n              </Table.Cell>\n              <Table.Cell>\n                <span className=\"gap-ws-7 flex items-center\">\n                  <ProgressBar\n                    value={Math.min(revenue, quota)}\n                    max={quota}\n                    status={share >= 1 ? 'success' : 'default'}\n                    aria-label={`${person.name}, share of quota`}\n                  />\n                  <span className=\"w-[2.5rem] shrink-0 text-right tabular-nums\">\n                    {formatShare(share)}\n                  </span>\n                </span>\n              </Table.Cell>\n              <Table.Cell align=\"right\" className=\"tabular-nums\">\n                <RankChange from={lastWeek} to={index + 1} />\n              </Table.Cell>\n            </Table.Row>\n          );\n        })}\n      </Table.Body>\n    </Table>\n  );\n}\n"
    },
    {
      "path": "src/blocks/goals/new-goal-form.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/goals/new-goal-form.tsx",
      "content": "'use client';\n\nimport { DatePicker } from '@/components/ui/wideset/datepicker/DatePicker';\nimport { FormField } from '@/components/ui/wideset/form-field/FormField';\nimport { Select } from '@/components/ui/wideset/select/Select';\nimport { TextInput } from '@/components/ui/wideset/text-input/TextInput';\nimport { type FormEvent, useState } from 'react';\n\nimport { type Goal, type Measure, MEASURES, people, QUARTER, TODAY } from './data';\nimport { formatCount } from './format';\nimport { PersonAvatar } from './person-avatar';\n\nconst SAMPLE_TODAY = new Date(`${TODAY}T00:00`);\n\nconst MEASURE_OPTIONS = (Object.keys(MEASURES) as Measure[]).map((value) => ({\n  value,\n  label: MEASURES[value].label,\n}));\n\nconst OWNER_OPTIONS = people.map((person) => ({\n  value: person.id,\n  label: person.name,\n  prefix: (\n    <PersonAvatar\n      size=\"xs\"\n      name={person.name}\n      initials={person.initials}\n      color={person.color}\n      aria-hidden\n    />\n  ),\n}));\n\ntype Values = { name: string; measure: Measure; target: string; owner: string; due?: string };\ntype Field = Exclude<keyof Values, 'measure'>;\n\n/** A typed target as a whole number: `300,000` → 300000. */\nconst parseTarget = (text: string) => Number(text.replace(/\\D/g, '')) || 0;\n\ntype NewGoalFormProps = {\n  /** The form's id: the submit button sits in the modal's footer and points at it with `form`. */\n  id: string;\n  /** Called with the new goal once every field holds something it can use. */\n  onAdd: (goal: Omit<Goal, 'id'>) => void;\n};\n\n/**\n * A new goal in five fields: its name, what it counts, the target, who owns it and when it is\n * due. The target's unit follows the measure ($ for money, the count's noun otherwise) and\n * settles into thousands on leaving the field. Submitting names every empty field at the field\n * and moves focus to the first. A new goal starts counting today, so it opens on track.\n */\nexport function NewGoalForm({ id, onAdd }: NewGoalFormProps) {\n  const [values, setValues] = useState<Values>({\n    name: '',\n    measure: 'revenue',\n    target: '',\n    owner: '',\n    due: QUARTER.to,\n  });\n  const [errors, setErrors] = useState<Partial<Record<Field, string>>>({});\n  const { money, unit } = MEASURES[values.measure];\n\n  const set = (patch: Partial<Values>) => {\n    setValues((all) => ({ ...all, ...patch }));\n    setErrors((all) => ({\n      ...all,\n      ...Object.fromEntries(Object.keys(patch).map((k) => [k, undefined])),\n    }));\n  };\n\n  const submit = (event: FormEvent<HTMLFormElement>) => {\n    event.preventDefault();\n    const target = parseTarget(values.target);\n    const owner = people.find((person) => person.id === values.owner);\n    const found: Partial<Record<Field, string>> = {\n      name: values.name.trim() ? undefined : 'Name the goal.',\n      target: target > 0 ? undefined : 'Enter a target above zero.',\n      owner: owner ? undefined : 'Choose who owns the goal.',\n      due: values.due ? undefined : 'Pick a due date.',\n    };\n    setErrors(found);\n    const first = (['name', 'target', 'owner', 'due'] as Field[]).find((field) => found[field]);\n    if (first) document.getElementById(`${id}-${first}`)?.focus();\n    else if (owner && values.due)\n      onAdd({\n        name: values.name.trim(),\n        owner,\n        measure: values.measure,\n        target,\n        counted: 0,\n        keyResults: [],\n        start: TODAY,\n        due: values.due,\n      });\n  };\n\n  return (\n    <form id={id} noValidate onSubmit={submit} className=\"gap-ws-11 flex flex-col\">\n      <FormField label=\"Name\" htmlFor={`${id}-name`} errorText={errors.name}>\n        <TextInput\n          id={`${id}-name`}\n          name=\"name\"\n          required\n          autoComplete=\"off\"\n          placeholder=\"e.g. Enterprise new business\"\n          value={values.name}\n          onChange={(event) => set({ name: event.target.value })}\n          variant={errors.name ? 'danger' : 'primary'}\n        />\n      </FormField>\n      <div className=\"gap-ws-9 grid grid-cols-2 items-start\">\n        <FormField label=\"Measure\" htmlFor={`${id}-measure`}>\n          <Select\n            id={`${id}-measure`}\n            name=\"measure\"\n            className=\"w-full\"\n            options={MEASURE_OPTIONS}\n            value={values.measure}\n            onValueChange={(measure) => set({ measure: measure as Measure })}\n          />\n        </FormField>\n        <FormField label=\"Target\" htmlFor={`${id}-target`} errorText={errors.target}>\n          <TextInput\n            id={`${id}-target`}\n            name=\"target\"\n            required\n            inputMode=\"numeric\"\n            autoComplete=\"off\"\n            placeholder={money ? '100,000' : '20'}\n            value={values.target}\n            onChange={(event) => set({ target: event.target.value.replace(/[^\\d,]/g, '') })}\n            // Leaving the field settles what was typed: 300000 → 300,000.\n            onBlur={() => {\n              const target = parseTarget(values.target);\n              if (target > 0) set({ target: formatCount(target) });\n            }}\n            variant={errors.target ? 'danger' : 'primary'}\n          >\n            {money && <TextInput.Prefix>$</TextInput.Prefix>}\n            <TextInput.Input className=\"tabular-nums\" />\n            {unit && <TextInput.Suffix>{unit}</TextInput.Suffix>}\n          </TextInput>\n        </FormField>\n      </div>\n      <div className=\"gap-ws-9 grid grid-cols-2 items-start\">\n        <FormField label=\"Owner\" htmlFor={`${id}-owner`} errorText={errors.owner}>\n          <Select\n            id={`${id}-owner`}\n            name=\"owner\"\n            className=\"w-full\"\n            options={OWNER_OPTIONS}\n            placeholder=\"Choose an owner\"\n            required\n            value={values.owner}\n            onValueChange={(owner) => set({ owner })}\n            variant={errors.owner ? 'danger' : 'primary'}\n          />\n        </FormField>\n        <FormField label=\"Due date\" htmlFor={`${id}-due`} errorText={errors.due}>\n          <DatePicker\n            id={`${id}-due`}\n            className=\"w-full\"\n            dateFormat=\"MMM d, yyyy\"\n            placeholder=\"Pick a due date\"\n            // The sample's own today, so the calendar agrees with the rest of the screen; drop\n            // both to follow the clock.\n            today={SAMPLE_TODAY}\n            defaultMonth={SAMPLE_TODAY}\n            disabledDates={{ before: SAMPLE_TODAY }}\n            selected={values.due}\n            onSelect={(due) => set({ due })}\n            variant={errors.due ? 'danger' : 'primary'}\n          />\n        </FormField>\n      </div>\n    </form>\n  );\n}\n"
    },
    {
      "path": "src/blocks/goals/new-goal-modal.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/goals/new-goal-modal.tsx",
      "content": "'use client';\n\nimport { Button } from '@/components/ui/wideset/button/Button';\nimport { Modal } from '@/components/ui/wideset/modal/Modal';\nimport { useId } from 'react';\n\nimport { type Goal, QUARTER } from './data';\nimport { NewGoalForm } from './new-goal-form';\n\ntype NewGoalModalProps = {\n  open: boolean;\n  onOpenChange: (open: boolean) => void;\n  onAdd: (goal: Omit<Goal, 'id'>) => void;\n};\n\n/**\n * \"New goal\": a short form over the page. The form lives in the body and the actions in the\n * footer, the submit button pointing at the form by id; the modal's one filled button names what\n * it does. The form is unmounted with the modal, so it opens empty every time, focus in the name.\n */\nexport function NewGoalModal({ open, onOpenChange, onAdd }: NewGoalModalProps) {\n  const formId = useId();\n\n  return (\n    <Modal open={open} onOpenChange={onOpenChange}>\n      <Modal.Content className=\"ws-block-utility\"\n        onOpenAutoFocus={(event) => {\n          event.preventDefault();\n          document.getElementById(`${formId}-name`)?.focus();\n        }}\n      >\n        <Modal.Header>\n          <Modal.Title>New goal</Modal.Title>\n          <Modal.Description>\n            A goal for the team in {QUARTER.label}. Orbit counts it from the deals and activity\n            logged against it.\n          </Modal.Description>\n        </Modal.Header>\n        <Modal.Body>\n          <NewGoalForm id={formId} onAdd={onAdd} />\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={formId}>\n            Add goal\n          </Button>\n        </Modal.Footer>\n      </Modal.Content>\n    </Modal>\n  );\n}\n"
    },
    {
      "path": "src/blocks/goals/page-header.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/goals/page-header.tsx",
      "content": "'use client';\n\n// TODO(custom): page header (title, a line of description, the action on the right); no PageHeader in Wideset.\nimport { RiAddLine } from '@remixicon/react';\nimport { Button } from '@/components/ui/wideset/button/Button';\n\ntype PageHeaderProps = {\n  /** What the goals cover, in words: the quarter, its days and what is left of it. */\n  summary: string;\n  onNewGoal: () => void;\n  /** While the dialog holds the filled button: New goal steps back to a bordered one. */\n  quiet?: boolean;\n};\n\n/** The page's title, the quarter its goals cover, and the screen's one filled button. */\nexport function PageHeader({ summary, onNewGoal, quiet }: PageHeaderProps) {\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\">Goals</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={onNewGoal}\n      >\n        <Button.Icon icon={RiAddLine} />\n        New goal\n      </Button>\n    </header>\n  );\n}\n"
    },
    {
      "path": "src/blocks/goals/panel.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/goals/panel.tsx",
      "content": "'use client';\n\nimport { Card } from '@/components/ui/wideset/card/Card';\nimport { type ReactNode, useId } from 'react';\n\n/**\n * One part of the page in a bordered card: a 16px title in the header names the region, the\n * content under it. A `flush` panel holds a table, which runs edge to edge and pads its own\n * cells.\n */\nexport function Panel({\n  title,\n  flush,\n  className,\n  children,\n}: {\n  title: string;\n  flush?: boolean;\n  className?: string;\n  children: ReactNode;\n}) {\n  const id = useId();\n\n  return (\n    <Card role=\"region\" aria-labelledby={id} className={className}>\n      <Card.Header>\n        <h2 id={id} className=\"typography-label-strong-md text-ws-static-strong\">\n          {title}\n        </h2>\n      </Card.Header>\n      {/* A table goes straight in the card: Card.Content's scrollbar gutter would stop its lines\n          short. Anything else keeps the content's padding, with the gutter given back. */}\n      {flush ? children : <Card.Content contentClassName=\"pr-ws-6\">{children}</Card.Content>}\n    </Card>\n  );\n}\n"
    },
    {
      "path": "src/blocks/goals/people.assets.ts",
      "type": "registry:file",
      "target": "blocks/wideset/goals/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/4gHYSUNDX1BST0ZJTEUAAQEAAAHIAAAAAAQwAABtbnRyUkdCIFhZWiAH4AABAAEAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlkZXNjAAAA8AAAACRyWFlaAAABFAAAABRnWFlaAAABKAAAABRiWFlaAAABPAAAABR3dHB0AAABUAAAABRyVFJDAAABZAAAAChnVFJDAAABZAAAAChiVFJDAAABZAAAAChjcHJ0AAABjAAAADxtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAAgAAAAcAHMAUgBHAEJYWVogAAAAAAAAb6IAADj1AAADkFhZWiAAAAAAAABimQAAt4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h1BkgrhKMV3uB8yD7dvaiNi8XVlAvGj7R5QR5/hl1YtiHmX2Hz/X4nKKKd7tpq42ZSviI6i0OjqBlB9+3vTTVyliuOZDsTMW0vS3JYpB98ftO6cXd1hxf/AFYx511e22iPCZS220kBI7CmXRkMRHExjsh5suJH9QOD9sVMEjEhKfNJ+1ZDKy3yX2x6dhCXw7h1WDWFUel3Pt/qIHI45hgda3ZjhG9KlI+Yp7GvRLe1RNSx3I/etF2vUICpDRbkAYS82cLHv396QI4fvMtIQ1KbWUdFLSUn3xmpklHpXunKaj2YlVh2wkivLtrGlPSR2Bo98DEmU2B5NgnP71JIVui2tJLKMuEYKzuo/2rZJJ716Yp1WLXX1UdY23Ktt6Mek81oU8rKz7VoWEJ7ZNe/etSCd/KpGpH3PBxhLzakKQCk7EEbGuW640MzborlygIUlKVfmND9IHmPL6V1fJQyk9zWJ0duXGWwtIU2tJCge+akY2S9DhlPx98hZ2DVmVFHHXsfYZ/9k=',\n};\n"
    },
    {
      "path": "src/blocks/goals/person-avatar.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/goals/person-avatar.tsx",
      "content": "'use client';\n\nimport { Avatar } from '@/components/ui/wideset/avatar/Avatar';\nimport { type AvatarProps } from '@/components/ui/wideset/avatar/Avatar.types';\n\nimport { PHOTOS } from './people.assets';\n\ntype PersonAvatarProps = Pick<\n  AvatarProps,\n  'size' | 'shape' | 'status' | 'color' | 'className' | 'style' | 'title' | 'aria-hidden'\n> & {\n  name: string;\n  initials: string;\n  /** The photo's text: empty beside the person's name, their name where the avatar stands alone. */\n  alt?: string;\n};\n\n/**\n * A person's avatar: their photo when `people.assets.ts` has one, with the initials as its\n * fallback, otherwise the initials on their colour. Every place that draws a person uses it, so\n * someone has the same face across the screen and photos mix with initials as in a real product.\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/goals/sidebar.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/goals/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 GoalsSidebar(props: Pick<SidebarProps, 'id' | 'collapsed' | 'onCollapsedChange'>) {\n  const [active, setActive] = useState('goals');\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                  alt={account.name}\n                  title={account.name}\n                />\n              </div>\n            </Sidebar.Collapsed>\n          </div>\n        </div>\n      </Sidebar.Footer>\n    </Sidebar>\n  );\n}\n"
    }
  ],
  "meta": {
    "version": "1.1.0",
    "commit": "a734f9f0"
  }
}
