Activity Timeline
NewAudit log and activity feed grouped by day, with avatars, outcomes, type filters and expandable details.
Monday, Nov 23
Michael deployed api-gateway v2.14, success
Build 1842 · 38s · 3 regions healthy
- R
Riley commented on Billing retries
Can we cap retries at three? Stripe already backs off. Jayden rotated the key Production webhook, warning
Sunday, Nov 22
Michael merged #482 Saved table views, info
Riley deployed web v5.2, error
Rolled back: health check failed in eu-west-1
Saturday, Nov 21
- J
Jayden invited avery@example.com
Installation
$ pnpm dlx shadcn@latest add @synccn/activity-timelineFirst time in this project? Connect synccn with one command.
Usage
import { ActivityTimeline } from "@/components/ui/activity-timeline";<ActivityTimeline events={events} types={{ deploy: "Deploys" }} />API reference
Generated from the component's TypeScript types, so it always matches the code.
ActivityTimeline
Chronological feed for audit logs, deploy history and project activity: grouped by day, newest first, with avatars or type icons, outcome dots, expandable details and an optional type filter.
- eventsrequired
ActivityEvent[]Events, in any order.
- types
Record<string, string>Show a filter for these event types. Labels keyed by `type`.
- groupByDay
booleanDefault
trueGroup events under day headings. Default true.
- empty
React.ReactNodeDefault
"No activity yet."Shown when nothing matches.
- className
stringExtra classes for the root element.
Dependencies
Read from the component's imports when the site builds. The CLI installs all of these for you.
Components
- Avatar for
Avatar
npm packages
- clsx for cn()
- tailwind-merge for cn()
- lucide-react for ChevronDown
Used by
Keyboard
- TabMove between type filters and Details buttons
- EnterorSpaceFilter, or show and hide details
Accessibility
- Events are an ordered list per day, inside sections named after the day.
- Times use <time> with a machine-readable datetime and the full date on hover.
- Outcome dots are repeated as text for screen readers; Details buttons use aria-expanded and aria-controls.
From the source
Read from this component's code when the site builds, so it can't drift.
- ARIA roles: group
- ARIA attributes: aria-controls, aria-expanded, aria-label, aria-pressed
- Shows a visible focus ring for keyboard users
- Includes text only screen readers hear