{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "block-whats-new",
  "type": "registry:block",
  "title": "What’s new",
  "description": "What’s new in a dialog over Home: the latest update with a drawn sketch, what it does and why, trying it, and earlier updates that open in place.",
  "dependencies": [
    "@remixicon/react@^4.9.0"
  ],
  "registryDependencies": [
    "https://wideset.co/r/accordion.json",
    "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/checkbox.json",
    "https://wideset.co/r/divider.json",
    "https://wideset.co/r/dropdown-menu.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/sidebar.json",
    "https://wideset.co/r/status-badge.json",
    "https://wideset.co/r/text-input.json",
    "https://wideset.co/r/utils.json"
  ],
  "files": [
    {
      "path": "src/blocks/whats-new/brand-mark.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/whats-new/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/whats-new/data.ts",
      "type": "registry:file",
      "target": "blocks/wideset/whats-new/data.ts",
      "content": "import {\n  type RemixiconComponentType,\n  RiBankCardLine,\n  RiContactsBook3Line,\n  RiHandCoinLine,\n  RiHome5Fill,\n  RiHome5Line,\n  RiInbox2Line,\n  RiKey2Line,\n  RiLineChartLine,\n  RiMegaphoneLine,\n  RiPieChart2Line,\n  RiPlugLine,\n  RiQuestionLine,\n  RiSettings3Line,\n  RiTeamLine,\n} from '@remixicon/react';\n\n/*\n  Maya's Tuesday in Orbit, the morning after a release: Home opens with what changed. The latest\n  update is the condition filter on Deals (the filter-popover block); the earlier ones are the\n  forecast categories, customer health and meeting notes that other screens already show.\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 = {\n  name: 'Maya Okafor',\n  firstName: 'Maya',\n  email: 'maya@lumenstudio.co',\n  initials: 'MO',\n};\n\n/** The sample is frozen on this day. */\nexport const TODAY = '2026-11-10';\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, activeIcon: RiHome5Fill },\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: '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\n/** In the help area, over Help and support: it opens the updates, it is not a page. */\nexport const whatsNewLink = { label: 'What’s new', icon: RiMegaphoneLine };\nexport const helpLink: NavLink = { id: 'help', label: 'Help and support', icon: RiQuestionLine };\n\nexport type Task = {\n  id: string;\n  title: string;\n  /** The customer it is about, when it is about one. */\n  customer?: string;\n  /** When it is due, as a local date and time; a task added on the page has only today. */\n  due?: string;\n};\n\n/** Today's tasks, earliest first; the first was due yesterday. */\nexport const tasks: Task[] = [\n  {\n    id: 'redlines',\n    title: 'Send the contract redlines back',\n    customer: 'Juniper Legal',\n    due: '2026-11-09T16:00',\n  },\n  {\n    id: 'attendees',\n    title: 'Confirm who is joining Thursday’s demo',\n    customer: 'Kestrel Analytics',\n    due: '2026-11-10T08:30',\n  },\n  { id: 'forecast', title: 'Update the November forecast', due: '2026-11-10T09:00' },\n  {\n    id: 'quote',\n    title: 'Send the revised quote',\n    customer: 'Halcyon Freight',\n    due: '2026-11-10T10:00',\n  },\n  {\n    id: 'pricing',\n    title: 'Prepare the pricing review',\n    customer: 'Northwind Health',\n    due: '2026-11-10T13:30',\n  },\n  {\n    id: 'notes',\n    title: 'Log notes from the discovery call',\n    customer: 'Atlas Robotics',\n    due: '2026-11-10T16:30',\n  },\n];\n\n/** The tasks already ticked off when the page opens, in the order they were done. */\nexport const doneAtStart = ['forecast', 'attendees'];\n\nexport type Meeting = {\n  id: string;\n  title: string;\n  customer: string;\n  /** When it starts, as a local date and time. */\n  start: string;\n  minutes: number;\n};\n\n/** The next meetings on Maya's calendar. */\nexport const meetings: Meeting[] = [\n  {\n    id: 'atlas',\n    title: 'Discovery call',\n    customer: 'Atlas Robotics',\n    start: '2026-11-10T11:30',\n    minutes: 45,\n  },\n  {\n    id: 'northwind',\n    title: 'Pricing review',\n    customer: 'Northwind Health',\n    start: '2026-11-10T14:00',\n    minutes: 30,\n  },\n  {\n    id: 'juniper',\n    title: 'Contract walkthrough',\n    customer: 'Juniper Legal',\n    start: '2026-11-11T10:00',\n    minutes: 60,\n  },\n  {\n    id: 'kestrel',\n    title: 'Product demo',\n    customer: 'Kestrel Analytics',\n    start: '2026-11-12T15:00',\n    minutes: 45,\n  },\n];\n\nexport type Update = {\n  id: string;\n  /** The day it shipped (`2026-11-06`). */\n  date: string;\n  title: string;\n  /** One line: what it does. */\n  summary: string;\n  /** The rest, read on opening: how it works and why it is there. */\n  detail: string;\n};\n\n/** The latest update, shown in full with a drawn preview and a way to try it. */\nexport const latest = {\n  id: 'deal-filters',\n  date: '2026-11-06',\n  title: 'Filters with conditions on Deals',\n  what: 'Build a filter on the deals list from conditions: a field, a test and a value, such as stage is Proposal or amount greater than $10,000. Join them with and or or; the list keeps them as chips above the table, each one removable.',\n  why: 'Pipeline reviews used to start with an export to a spreadsheet. Now the list you review is the list in Orbit.',\n  /** Where Try it goes: the deals list, with the filter open. */\n  href: '#deals?filter=open',\n  readMore: '#changelog/deal-filters',\n};\n\n/** Earlier updates, newest first. */\nexport const earlier: Update[] = [\n  {\n    id: 'forecast-categories',\n    date: '2026-10-23',\n    title: 'Forecast categories',\n    summary: 'Mark each deal as commit, best case or pipeline.',\n    detail:\n      'The category sits beside the stage, so a deal can be in negotiation and still not one you would commit to. Revenue adds the three up against your target.',\n  },\n  {\n    id: 'customer-health',\n    date: '2026-10-09',\n    title: 'Customer health on the list',\n    summary: 'Each customer shows as healthy, at risk or churned.',\n    detail:\n      'A customer turns at risk when its seats in use drop by a fifth or a renewal conversation goes quiet for two weeks. The At risk tab on Customers collects them.',\n  },\n  {\n    id: 'meeting-notes',\n    date: '2026-09-25',\n    title: 'Meeting notes on the timeline',\n    summary: 'Notes from a call land on the customer’s activity timeline.',\n    detail:\n      'Connect your calendar under Integrations and every meeting with a customer gets a place for notes. They join the e-mails on the timeline as soon as you save them.',\n  },\n];\n"
    },
    {
      "path": "src/blocks/whats-new/feature-preview.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/whats-new/feature-preview.tsx",
      "content": "'use client';\n\n// TODO(custom): a drawn sketch of a feature's UI for release notes; Wideset has no preview, and blocks ship no images.\nimport { cn } from '@/lib/wideset/utils';\n\nconst SHEET = 'fill-(--ws-static-fill-foreground) stroke-(--ws-static-stroke-subtle)';\nconst SURFACE = 'fill-(--ws-static-fill-overlay) stroke-(--ws-static-stroke-base)';\nconst FIELD = 'fill-none stroke-(--ws-static-stroke-base)';\nconst TEXT = 'fill-(--ws-static-fill-alpha-strong)';\nconst QUIET = 'fill-(--ws-static-fill-alpha-base)';\nconst RULE = 'stroke-(--ws-static-stroke-subtle)';\n\n/** The table's rows behind the popover: a name, a stage, an amount on the right. */\nconst TABLE_ROWS = [100, 124, 148, 172, 196];\n/** The popover's conditions: where each box starts and how long the words in it are. */\nconst CONDITIONS = [\n  { y: 82, words: [26, 30, 40] },\n  { y: 106, words: [34, 38, 30] },\n  { y: 130, words: [30, 26, 46] },\n];\n\n/** A small rounded box with a line of words in it: a field, a button, a select. */\nfunction Box({\n  x,\n  y,\n  width,\n  words,\n  className,\n}: Record<'x' | 'y' | 'width' | 'words', number> & {\n  className?: string;\n}) {\n  return (\n    <g>\n      <rect x={x} y={y} width={width} height={16} rx={4} className={cn(FIELD, className)} />\n      <rect x={x + 6} y={y + 6} width={words} height={4} rx={2} className={TEXT} />\n    </g>\n  );\n}\n\n/** An ×, the remove mark on a chip or a condition. */\nfunction Cross({ x, y }: { x: number; y: number }) {\n  return (\n    <path\n      d={`M${x - 2.5} ${y - 2.5}l5 5m0-5l-5 5`}\n      strokeWidth={1.25}\n      strokeLinecap=\"round\"\n      className=\"stroke-(--ws-static-stroke-strong)\"\n    />\n  );\n}\n\n/**\n * The deals list with its filter open, drawn in a few neutral marks: the toolbar with Filter and\n * Sort at its end, the applied conditions as chips, the table, and the popover's three rows of\n * field, test and value over it. One grey family and the surfaces' own colours, so it sits in the\n * modal like a screenshot would, without being one, and turns with the theme. Decorative: the\n * title and lines beside it say what it shows.\n */\nexport function FeaturePreview({ className }: { className?: string }) {\n  return (\n    <div\n      aria-hidden=\"true\"\n      className={cn('bg-ws-static-alpha-subtle rounded-ws-container-md overflow-hidden', className)}\n    >\n      <svg viewBox=\"0 0 552 200\" className=\"block h-auto w-full\">\n        {/* The page, running off the bottom edge. */}\n        <rect x={32} y={28} width={488} height={200} rx={8} className={SHEET} />\n\n        {/* Toolbar: search on the left, Filter (the feature, a stronger line) and Sort right. */}\n        <Box x={48} y={44} width={140} words={60} />\n        <Box x={404} y={44} width={52} words={26} className=\"stroke-(--ws-static-stroke-strong)\" />\n        <Box x={462} y={44} width={42} words={22} />\n\n        {/* The conditions applied, as chips. */}\n        {[\n          { x: 48, width: 92 },\n          { x: 146, width: 82 },\n        ].map(({ x, width }) => (\n          <g key={x}>\n            <rect x={x} y={70} width={width} height={16} rx={8} className={QUIET} />\n            <rect x={x + 8} y={76} width={width - 30} height={4} rx={2} className={TEXT} />\n            <Cross x={x + width - 11} y={78} />\n          </g>\n        ))}\n\n        {/* The table. */}\n        {TABLE_ROWS.map((y) => (\n          <g key={y}>\n            <line x1={48} x2={504} y1={y - 8} y2={y - 8} className={RULE} />\n            <rect x={48} y={y} width={88} height={5} rx={2.5} className={TEXT} />\n            <rect x={168} y={y} width={44} height={5} rx={2.5} className={QUIET} />\n            <rect x={460} y={y} width={44} height={5} rx={2.5} className={QUIET} />\n          </g>\n        ))}\n\n        {/* The popover under Filter, lined up with its end. */}\n        <rect x={240} y={68} width={264} height={116} rx={8} className={SURFACE} />\n        {CONDITIONS.map(({ y, words: [field, test, value] }, row) => (\n          <g key={y}>\n            <rect x={252} y={y + 6} width={row ? 16 : 24} height={4} rx={2} className={QUIET} />\n            <Box x={282} y={y} width={56} words={field} />\n            <Box x={344} y={y} width={56} words={test} />\n            <Box x={406} y={y} width={70} words={value} />\n            <Cross x={489} y={y + 8} />\n          </g>\n        ))}\n        <line x1={240} x2={504} y1={156} y2={156} className={RULE} />\n        <rect x={252} y={168} width={36} height={4} rx={2} className={QUIET} />\n        <rect x={448} y={162} width={44} height={16} rx={4} className={TEXT} />\n      </svg>\n    </div>\n  );\n}\n"
    },
    {
      "path": "src/blocks/whats-new/format.ts",
      "type": "registry:file",
      "target": "blocks/wideset/whats-new/format.ts",
      "content": "// One locale for the whole screen; swap it for the user's.\nconst LOCALE = 'en-US';\n\n// Days are calendar days (`2026-11-10`), parsed as UTC midnight: format them in UTC too.\nconst longDay = new Intl.DateTimeFormat(LOCALE, {\n  weekday: 'long',\n  month: 'long',\n  day: 'numeric',\n  timeZone: 'UTC',\n});\nconst shortDay = new Intl.DateTimeFormat(LOCALE, {\n  weekday: 'short',\n  month: 'short',\n  day: 'numeric',\n  timeZone: 'UTC',\n});\nconst fullDate = new Intl.DateTimeFormat(LOCALE, { dateStyle: 'long', timeZone: 'UTC' });\nconst monthDay = new Intl.DateTimeFormat(LOCALE, {\n  month: 'short',\n  day: 'numeric',\n  timeZone: 'UTC',\n});\n// Times are local (`2026-11-10T11:30`, no zone): parsed and formatted in the reader's zone, so\n// the clock on screen is the one in the data.\nconst time = new Intl.DateTimeFormat(LOCALE, { hour: 'numeric', minute: '2-digit' });\nconst relative = new Intl.RelativeTimeFormat(LOCALE, { numeric: 'auto' });\n\nconst DAY = 86_400_000;\n\n/** November 6, 2026: the day an update shipped. */\nexport const formatDate = (iso: string) => fullDate.format(new Date(iso));\n/** Oct 23: an earlier update's day, in a list of this year's. */\nexport const formatMonthDay = (iso: string) => monthDay.format(new Date(iso));\n/** Tuesday, November 10. */\nexport const formatLongDay = (iso: string) => longDay.format(new Date(iso));\n/** 11:30 AM. */\nexport const formatTime = (iso: string) => time.format(new Date(iso));\n\n/** A day as the week reads it: `Today`, `Tomorrow`, then `Thu, Nov 12`. */\nexport function formatDay(iso: string, today: string) {\n  const day = iso.slice(0, 10);\n  const away = (Date.parse(day) - Date.parse(today)) / DAY;\n  if (away < 0 || away > 1) return shortDay.format(new Date(day));\n  const text = relative.format(away, 'day');\n  return text.charAt(0).toUpperCase() + text.slice(1);\n}\n"
    },
    {
      "path": "src/blocks/whats-new/index.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/whats-new/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 { useId, useState } from 'react';\n\nimport { account, doneAtStart, meetings, type Task, tasks as tasksAtStart, TODAY } from './data';\nimport { formatLongDay } from './format';\nimport { HomeSidebar } from './sidebar';\nimport { TaskList } from './task-list';\nimport { UpcomingMeetings } from './upcoming-meetings';\nimport { WhatsNewModal } from './whats-new-modal';\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\n/**\n * What's new (Inset direction): the updates since the last visit, open on load over a quiet Home\n * (today's tasks and what is coming up), the way a product shows them the morning after a release.\n * What's new in the sidebar's help area opens them again.\n */\nexport default function WhatsNew() {\n  const sidebarId = useId();\n  const [collapsed, setCollapsed] = useState(false);\n  const [tasks, setTasks] = useState<Task[]>(tasksAtStart);\n  const [done, setDone] = useState(doneAtStart);\n  const [open, setOpen] = useState(true);\n  const [muted, setMuted] = useState(false);\n\n  const mark = (id: string, value: boolean) =>\n    setDone((current) => (value ? [...current, id] : current.filter((item) => item !== id)));\n  const add = (title: string) =>\n    setTasks((current) => [...current, { id: `added-${current.length}`, title }]);\n\n  return (\n    <AppShell className=\"ws-block-utility\" direction=\"inset\">\n      <HomeSidebar\n        id={sidebarId}\n        collapsed={collapsed}\n        onCollapsedChange={setCollapsed}\n        onWhatsNew={() => setOpen(true)}\n      />\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>Home</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            <header className=\"gap-ws-2 flex flex-col\">\n              <h1 className=\"typography-title-md text-ws-static-strong\">\n                Good morning, {account.firstName}\n              </h1>\n              <p className=\"typography-body-md text-ws-static-subtle\">\n                {formatLongDay(TODAY)}. Your tasks and meetings for the day.\n              </p>\n            </header>\n\n            <div className=\"gap-ws-16 grid grid-cols-1 items-start lg:grid-cols-[minmax(0,1fr)_18rem]\">\n              <TaskList tasks={tasks} done={done} today={TODAY} onDoneChange={mark} onAdd={add} />\n              <UpcomingMeetings meetings={meetings} today={TODAY} />\n            </div>\n          </div>\n        </div>\n      </AppShell.Main>\n      <WhatsNewModal open={open} onOpenChange={setOpen} muted={muted} onMutedChange={setMuted} />\n    </AppShell>\n  );\n}\n"
    },
    {
      "path": "src/blocks/whats-new/people.assets.ts",
      "type": "registry:file",
      "target": "blocks/wideset/whats-new/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/4gHYSUNDX1BST0ZJTEUAAQEAAAHIAAAAAAQwAABtbnRyUkdCIFhZWiAH4AABAAEAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlkZXNjAAAA8AAAACRyWFlaAAABFAAAABRnWFlaAAABKAAAABRiWFlaAAABPAAAABR3dHB0AAABUAAAABRyVFJDAAABZAAAAChnVFJDAAABZAAAAChiVFJDAAABZAAAAChjcHJ0AAABjAAAADxtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAAgAAAAcAHMAUgBHAEJYWVogAAAAAAAAb6IAADj1AAADkFhZWiAAAAAAAABimQAAt4UAABjaWFlaIAAAAAAAACSgAAAPhAAAts9YWVogAAAAAAAA9tYAAQAAAADTLXBhcmEAAAAAAAQAAAACZmYAAPKnAAANWQAAE9AAAApbAAAAAAAAAABtbHVjAAAAAAAAAAEAAAAMZW5VUwAAACAAAAAcAEcAbwBvAGcAbABlACAASQBuAGMALgAgADIAMAAxADb/2wBDAAQDAwQDAwQEBAQFBQQFBwsHBwYGBw4KCggLEA4RERAOEA8SFBoWEhMYEw8QFh8XGBsbHR0dERYgIh8cIhocHRz/2wBDAQUFBQcGBw0HBw0cEhASHBwcHBwcHBwcHBw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/blocks/whats-new/person-avatar.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/whats-new/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/whats-new/sidebar.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/whats-new/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  whatsNewLink,\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. The help area at the foot holds What's new,\n * a button and not a page: it opens the updates over whatever page is open.\n */\nexport function HomeSidebar({\n  onWhatsNew,\n  ...props\n}: Pick<SidebarProps, 'id' | 'collapsed' | 'onCollapsedChange'> & { onWhatsNew: () => void }) {\n  const [active, setActive] = useState('home');\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\">\n            <Sidebar.Item asChild icon={whatsNewLink.icon} label={whatsNewLink.label}>\n              <button type=\"button\" aria-haspopup=\"dialog\" onClick={onWhatsNew} />\n            </Sidebar.Item>\n            {link(helpLink)}\n          </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/whats-new/task-list.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/whats-new/task-list.tsx",
      "content": "'use client';\n\n// TODO(custom): task checklist (progress, rows that tick off into a Done group, an add row); Wideset has no checklist or task row.\nimport { RiAddLine } from '@remixicon/react';\nimport { Checkbox } from '@/components/ui/wideset/checkbox/Checkbox';\nimport { cn } from '@/lib/wideset/utils';\nimport { ProgressBar } from '@/components/ui/wideset/progress-bar/ProgressBar';\nimport { StatusBadge } from '@/components/ui/wideset/status-badge/StatusBadge';\nimport { TextInput } from '@/components/ui/wideset/text-input/TextInput';\nimport { type FormEvent, useEffect, useId, useRef, useState } from 'react';\n\nimport type { Task } from './data';\nimport { formatTime } from './format';\n\n/** A row of the list: 44px, a step taller than the table's under it, on the same lines and inset. */\nconst ROW = 'h-ws-17 gap-ws-7 px-ws-9 flex items-center';\n\ntype TaskRowProps = {\n  task: Task;\n  done: boolean;\n  /** Due before today and still open: the one judgement in the list, so the one colour. */\n  overdue: boolean;\n  checkboxId: string;\n  onDoneChange: (done: boolean) => void;\n};\n\n/**\n * One task. The row does one thing, so the whole row is the checkbox's label: one target, the\n * hover across it. Done, it goes quiet and struck through.\n */\nfunction TaskRow({ task, done, overdue, checkboxId, onDoneChange }: TaskRowProps) {\n  const titleId = `${checkboxId}-title`;\n\n  return (\n    <li className=\"border-ws-static-base border-b\">\n      <label\n        htmlFor={checkboxId}\n        className={cn(ROW, 'hover:bg-ws-dynamic-secondary-alpha-hover cursor-pointer')}\n      >\n        <Checkbox\n          id={checkboxId}\n          checked={done}\n          onCheckedChange={(checked) => onDoneChange(checked === true)}\n          aria-labelledby={titleId}\n        />\n        <span\n          id={titleId}\n          className={cn(\n            'min-w-0 flex-1 truncate',\n            done\n              ? 'typography-label-sm text-ws-static-subtle line-through'\n              : 'typography-label-strong-sm text-ws-static-strong',\n          )}\n        >\n          {task.title}\n        </span>\n        <span className=\"typography-label-sm text-ws-static-subtle w-[10rem] shrink-0 truncate\">\n          {task.customer}\n        </span>\n        <span className=\"flex w-[5rem] shrink-0 justify-end\">\n          {overdue ? (\n            <StatusBadge size=\"sm\" color=\"negative\">\n              Overdue\n            </StatusBadge>\n          ) : (\n            <span className=\"typography-label-sm text-ws-static-subtle tabular-nums\">\n              {task.due ? formatTime(task.due) : 'Today'}\n            </span>\n          )}\n        </span>\n      </label>\n    </li>\n  );\n}\n\ntype TaskListProps = {\n  tasks: Task[];\n  /** Ids of the tasks done, in the order they were ticked. */\n  done: string[];\n  /** The calendar day it is (`2026-11-10`). */\n  today: string;\n  onDoneChange: (id: string, done: boolean) => void;\n  onAdd: (title: string) => void;\n};\n\n/**\n * Today's tasks, the page's main thing: what is left on top, an add row under it, what is done\n * below. Ticking a task moves it to Done and moves the progress; unticking brings it back. The\n * focus follows the task, so the keyboard can undo the tick it just made.\n */\nexport function TaskList({ tasks, done, today, onDoneChange, onAdd }: TaskListProps) {\n  const id = useId();\n  const [draft, setDraft] = useState('');\n  const moved = useRef<string | null>(null);\n\n  const open = tasks.filter((task) => !done.includes(task.id));\n  const finished = done.flatMap((taskId) => tasks.find((task) => task.id === taskId) ?? []);\n  const checkboxId = (task: Task) => `${id}-${task.id}`;\n\n  // A ticked row leaves one list and is drawn again in the other, which drops the focus.\n  useEffect(() => {\n    if (moved.current) document.getElementById(moved.current)?.focus();\n    moved.current = null;\n  }, [done]);\n\n  const row = (task: Task, isDone: boolean) => (\n    <TaskRow\n      key={task.id}\n      task={task}\n      done={isDone}\n      overdue={!isDone && task.due !== undefined && task.due.slice(0, 10) < today}\n      checkboxId={checkboxId(task)}\n      onDoneChange={(value) => {\n        moved.current = checkboxId(task);\n        onDoneChange(task.id, value);\n      }}\n    />\n  );\n\n  const add = (event: FormEvent) => {\n    event.preventDefault();\n    if (!draft.trim()) return;\n    onAdd(draft.trim());\n    setDraft('');\n  };\n\n  return (\n    <section aria-labelledby={`${id}-title`} className=\"gap-ws-9 flex flex-col\">\n      <div className=\"gap-ws-9 flex items-center justify-between\">\n        <h2 id={`${id}-title`} className=\"typography-label-strong-md text-ws-static-strong\">\n          Today’s tasks\n        </h2>\n        <div className=\"gap-ws-7 flex items-center\">\n          <p role=\"status\" className=\"typography-label-sm text-ws-static-subtle tabular-nums\">\n            {finished.length} of {tasks.length} done\n          </p>\n          {/* The bar fills its container: the container sets how small it is. */}\n          <div className=\"w-[6rem]\">\n            <ProgressBar\n              value={finished.length}\n              max={tasks.length}\n              status={open.length ? 'default' : 'success'}\n              aria-label=\"Tasks done today\"\n              aria-valuetext={`${finished.length} of ${tasks.length} tasks done`}\n            />\n          </div>\n        </div>\n      </div>\n\n      <div>\n        <ul aria-label=\"To do\" className=\"border-ws-static-base border-t\">\n          {open.map((task) => row(task, false))}\n          <li className=\"border-ws-static-base border-b\">\n            {/* Enter adds the task; an empty line adds nothing. */}\n            <form onSubmit={add} className={cn(ROW, 'px-ws-6')}>\n              <TextInput\n                preset=\"ghost\"\n                size=\"sm\"\n                value={draft}\n                onChange={(event) => setDraft(event.target.value)}\n              >\n                <TextInput.Prefix inner>\n                  <TextInput.Icon icon={RiAddLine} />\n                </TextInput.Prefix>\n                <TextInput.Input placeholder=\"Add a task\" aria-label=\"Add a task for today\" />\n              </TextInput>\n            </form>\n          </li>\n        </ul>\n\n        {finished.length > 0 && (\n          <>\n            <h3\n              id={`${id}-done`}\n              className=\"typography-label-sm text-ws-static-subtle border-ws-static-base px-ws-9 pt-ws-9 pb-ws-5 border-b\"\n            >\n              Done\n            </h3>\n            <ul aria-labelledby={`${id}-done`}>{finished.map((task) => row(task, true))}</ul>\n          </>\n        )}\n      </div>\n    </section>\n  );\n}\n"
    },
    {
      "path": "src/blocks/whats-new/upcoming-meetings.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/whats-new/upcoming-meetings.tsx",
      "content": "'use client';\n\n// TODO(custom): agenda list (a time column, then the meeting and who it is with); Wideset has no agenda or event row.\nimport { useId } from 'react';\n\nimport type { Meeting } from './data';\nimport { formatDay, formatTime } from './format';\n\n/**\n * The next few meetings: when on the left, in one column so the times line up, then what the\n * meeting is and the customer it is with. Plain rows, nothing to click: the calendar owns them.\n */\nexport function UpcomingMeetings({ meetings, today }: { meetings: Meeting[]; today: string }) {\n  const titleId = useId();\n\n  return (\n    <section aria-labelledby={titleId} className=\"gap-ws-9 flex flex-col\">\n      <h2 id={titleId} className=\"typography-label-strong-md text-ws-static-strong\">\n        Coming up\n      </h2>\n      <ul className=\"gap-ws-9 flex flex-col\">\n        {meetings.map((meeting) => (\n          <li key={meeting.id} className=\"gap-ws-9 flex items-start\">\n            <time dateTime={meeting.start} className=\"flex w-[4.5rem] shrink-0 flex-col\">\n              <span className=\"typography-label-sm text-ws-static-strong tabular-nums\">\n                {formatTime(meeting.start)}\n              </span>\n              <span className=\"typography-caption-md text-ws-static-subtle\">\n                {formatDay(meeting.start, today)}\n              </span>\n            </time>\n            <div className=\"flex min-w-0 flex-col\">\n              <span className=\"typography-label-strong-sm text-ws-static-strong truncate\">\n                {meeting.title}\n              </span>\n              <span className=\"typography-caption-md text-ws-static-subtle truncate\">\n                {meeting.customer} · {meeting.minutes} min\n              </span>\n            </div>\n          </li>\n        ))}\n      </ul>\n    </section>\n  );\n}\n"
    },
    {
      "path": "src/blocks/whats-new/whats-new-modal.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/whats-new/whats-new-modal.tsx",
      "content": "'use client';\n\nimport { Accordion } from '@/components/ui/wideset/accordion/Accordion';\nimport { Button } from '@/components/ui/wideset/button/Button';\nimport { Checkbox } from '@/components/ui/wideset/checkbox/Checkbox';\nimport { Divider } from '@/components/ui/wideset/divider/Divider';\nimport { Modal } from '@/components/ui/wideset/modal/Modal';\nimport { useId } from 'react';\n\nimport { earlier, latest } from './data';\nimport { FeaturePreview } from './feature-preview';\nimport { formatDate, formatMonthDay } from './format';\n\ntype WhatsNewModalProps = {\n  open: boolean;\n  onOpenChange: (open: boolean) => void;\n  /** Whether updates like this stop opening on their own. */\n  muted: boolean;\n  onMutedChange: (muted: boolean) => void;\n};\n\n/**\n * What's new, read like release notes: the latest update in full (a sketch of it, the day it\n * shipped, what it does and why), then Try it, the modal's one filled button, and a quiet Read\n * more. Under a line, the earlier updates as a list of day, title and one line, each opening in\n * place for the rest. The footer holds only the choice to keep these opening on load; the X and\n * Esc close it. No colour, no illustration: the sketch is grey and the words carry it.\n */\nexport function WhatsNewModal({ open, onOpenChange, muted, onMutedChange }: WhatsNewModalProps) {\n  const latestId = useId();\n  const earlierId = useId();\n\n  return (\n    <Modal open={open} onOpenChange={onOpenChange}>\n      {/* Focus starts on Try it, the one thing the modal offers; Radix's own first pick skips links\n          and would land on the earlier updates. */}\n      <Modal.Content className=\"ws-block-utility\"\n        onOpenAutoFocus={(event) => {\n          event.preventDefault();\n          document.getElementById(`${latestId}-try`)?.focus();\n        }}\n      >\n        <Modal.Header>\n          <Modal.Title>What’s new in Orbit</Modal.Title>\n          <Modal.Description>The latest changes to your workspace, newest first.</Modal.Description>\n        </Modal.Header>\n        <Modal.Body className=\"gap-ws-12 flex flex-col\">\n          <article aria-labelledby={latestId} className=\"gap-ws-9 flex flex-col\">\n            <FeaturePreview />\n            <div className=\"gap-ws-3 flex flex-col\">\n              <time dateTime={latest.date} className=\"typography-caption-md text-ws-static-subtle\">\n                {formatDate(latest.date)}\n              </time>\n              <h3 id={latestId} className=\"typography-subtitle-xs text-ws-static-strong\">\n                {latest.title}\n              </h3>\n            </div>\n            <div className=\"gap-ws-5 typography-body-md text-ws-static-base flex flex-col\">\n              <p>{latest.what}</p>\n              <p>{latest.why}</p>\n            </div>\n            <div className=\"gap-ws-5 flex items-center\">\n              <Button asChild>\n                <a id={`${latestId}-try`} href={latest.href} onClick={() => onOpenChange(false)}>\n                  Try it\n                </a>\n              </Button>\n              <Button asChild variant=\"secondary\" preset=\"ghost\">\n                <a href={latest.readMore}>Read more</a>\n              </Button>\n            </div>\n          </article>\n\n          <Divider weight=\"thin\" />\n\n          <section aria-labelledby={earlierId} className=\"gap-ws-5 flex flex-col\">\n            <h3 id={earlierId} className=\"typography-label-strong-md text-ws-static-strong\">\n              Earlier updates\n            </h3>\n            <Accordion type=\"single\" collapsible>\n              {earlier.map((update) => (\n                <Accordion.Item key={update.id} value={update.id}>\n                  <Accordion.Trigger>\n                    <div className=\"gap-ws-1 flex min-w-0 flex-1 flex-col\">\n                      <Accordion.Title>{update.title}</Accordion.Title>\n                      <Accordion.Caption>{update.summary}</Accordion.Caption>\n                    </div>\n                    <time\n                      dateTime={update.date}\n                      className=\"typography-caption-md text-ws-static-subtle shrink-0 tabular-nums\"\n                    >\n                      {formatMonthDay(update.date)}\n                    </time>\n                  </Accordion.Trigger>\n                  <Accordion.Content>{update.detail}</Accordion.Content>\n                </Accordion.Item>\n              ))}\n            </Accordion>\n          </section>\n        </Modal.Body>\n        <Modal.Footer className=\"justify-start\">\n          {/* Said in the positive (the checkbox spec): on means they keep opening on load. */}\n          <Checkbox\n            size=\"sm\"\n            label=\"Show updates like this\"\n            checked={!muted}\n            onCheckedChange={(checked) => onMutedChange(checked !== true)}\n          />\n        </Modal.Footer>\n      </Modal.Content>\n    </Modal>\n  );\n}\n"
    }
  ],
  "meta": {
    "version": "1.1.0",
    "commit": "a734f9f0"
  }
}
