Skip to content
synccn

Activity Timeline

New

Audit log and activity feed grouped by day, with avatars, outcomes, type filters and expandable details.

Monday, Nov 23

  1. Michael deployed api-gateway v2.14, success

  2. R

    Riley commented on Billing retries

  3. Jayden rotated the key Production webhook, warning

Sunday, Nov 22

  1. Michael merged #482 Saved table views, info

  2. Riley deployed web v5.2, error

Saturday, Nov 21

  1. J

    Jayden invited avery@example.com

Installation

$ pnpm dlx shadcn@latest add @synccn/activity-timeline

First 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
    boolean

    Default true

    Group events under day headings. Default true.

  • empty
    React.ReactNode

    Default "No activity yet."

    Shown when nothing matches.

  • className
    string

    Extra 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

Helpers

npm packages

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