{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "activity-feed",
  "title": "Activity feed",
  "description": "A card timeline of recent events — avatar, action text, and a relative timestamp per entry.",
  "registryDependencies": [
    "card",
    "avatar",
    "badge",
    "https://www.quilldesignsystem.com/r/icon.json"
  ],
  "files": [
    {
      "path": "registry/blocks/activity-feed.tsx",
      "content": "import { Card, CardHeader, CardTitle, CardDescription, CardContent } from '@/components/ui/card'\nimport { Avatar, AvatarFallback } from '@/components/ui/avatar'\nimport { Badge } from '@/components/ui/badge'\nimport { Icon } from '@/components/ui/icon'\n\nconst events = [\n  {\n    who: 'AL',\n    name: 'Ada Lovelace',\n    action: 'published',\n    what: 'The Brief · 004',\n    when: '2 hours ago',\n    icon: 'ink_pen',\n  },\n  {\n    who: 'JD',\n    name: 'John Doe',\n    action: 'commented on',\n    what: 'Discovery findings',\n    when: 'Yesterday',\n    icon: 'chat_bubble',\n  },\n  {\n    who: 'MM',\n    name: 'Meeting Mapper',\n    action: 'archived',\n    what: 'Q2 planning notes',\n    when: '2 days ago',\n    icon: 'archive',\n  },\n  {\n    who: 'AL',\n    name: 'Ada Lovelace',\n    action: 'invited',\n    what: 'two new collaborators',\n    when: 'Last week',\n    icon: 'person_add',\n  },\n] as const\n\n/** A card timeline of recent events — avatar, action text, and a relative timestamp per entry. */\nexport function ActivityFeed() {\n  return (\n    <Card className=\"w-card-lg\">\n      <CardHeader>\n        <div className=\"flex items-center justify-between gap-2\">\n          <CardTitle>Activity</CardTitle>\n          <Badge variant=\"ghost\">This week</Badge>\n        </div>\n        <CardDescription>What happened while you were away.</CardDescription>\n      </CardHeader>\n      <CardContent>\n        <ol className=\"relative flex flex-col gap-5 before:absolute before:top-2 before:bottom-2 before:left-4 before:w-px before:bg-border\">\n          {events.map((e, i) => (\n            <li key={i} className=\"relative flex items-start gap-3\">\n              <Avatar className=\"relative z-above ring-4 ring-card\">\n                <AvatarFallback>{e.who}</AvatarFallback>\n              </Avatar>\n              <div className=\"flex min-w-0 flex-1 flex-col gap-0.5 pt-1\">\n                <p className=\"text-sm leading-ui\">\n                  <span className=\"font-medium text-foreground\">{e.name}</span>{' '}\n                  <span className=\"text-muted-foreground\">{e.action}</span>{' '}\n                  <span className=\"font-medium text-foreground\">{e.what}</span>\n                </p>\n                <span className=\"flex items-center gap-1 text-xs text-muted-foreground\">\n                  <Icon name={e.icon as never} className=\"size-icon-xs\" aria-hidden /> {e.when}\n                </span>\n              </div>\n            </li>\n          ))}\n        </ol>\n      </CardContent>\n    </Card>\n  )\n}\n",
      "type": "registry:component",
      "target": "components/quill/activity-feed.tsx"
    }
  ],
  "meta": {
    "intent": [
      "data-display"
    ],
    "use_when": "You need to show a chronological history of what happened — recent events with who, what, and when.",
    "not_for": "the events need an unread/read state and a mark-all-read action, not just a read-only history → notifications; the events are really records you need to filter, sort, or act on, not just skim chronologically → data-table"
  },
  "docs": "A card timeline of recent events — avatar, action text, and a relative timestamp per entry. Do: Use relative timestamps (\"2 hours ago\") for recent activity — they read faster than absolute dates. Don't: Force users to parse a full timestamp for something that happened minutes ago. Use notifications when the events need an unread/read state and a mark-all-read action, not just a read-only history. Use data-table when the events are really records you need to filter, sort, or act on, not just skim chronologically.",
  "categories": [
    "data-display"
  ],
  "type": "registry:block"
}