Skip to content

Activity Feed

A timeline of what people and agents did: who, what they did, to which thing, and when. Tabs with counts narrow it by type, unread rows carry a dot, and Mark all read clears them with a short sweep. A row opens in place to show its full snippet, a diff summary or a tool call. New events wait behind a pill instead of moving the list. The names, projects and runs shown are made up.

On this page
Used for
  • Agent run timeline
  • Team activity stream
  • Deploy and merge log
  • Unread updates inbox
  • Audit trail with details

Examples

Installation

npx knowns-ui@latest add activity-feed
For Claude Code, Cursor or Codex: installs it and wires the props to your own data.

Props

itemsrequired
ActivityItem[]
id, at (ms), type, actor { name, agent, src }, verb, object, plus unread, project, snippet and details (diff | tool | text).
now / timeZone
number / string
Defaultfirst render / "UTC"
The clock and the zone that cuts days; fix both so server and client match.
filters
boolean
Defaulttrue
Show the type tabs with counts and the Everyone / People / Agents control.
who / onWhoChange
"all" | "people" | "agents"
Defaultuncontrolled
The who filter.
types / onTypesChange
string[]
Defaultuncontrolled
The selected tab: empty is All, one entry is that type.
typeMeta
Record<string, { label, icon }>
Defaultcomment, change, deploy, file, invite
Tab label and avatar badge icon per type; merged over the defaults.
onMarkRead
(ids: string[]) => void
A row was opened and became read.
onMarkAllRead
(ids: string[]) => void
Mark all read was pressed; ids are the rows it cleared. Also shows the header when no item has unread.
holdNew
boolean
Defaultfalse
Hold arriving items behind the pill even when the list is at the top.
onOpen
(item) => void
"Open" in an expanded row was pressed.
onLoadMore / hasMore / loadingMore
() => void / boolean / boolean
"Show older" at the end of the list.
label
string
Default"Activity"
The name of the feed region.
headingLevel
2 | 3 | 4
Default3
Level of the day headings; set it so heading levels do not skip on your page.
emptyText
string
Default"No activity matches these filters."
Shown when the filters leave nothing.

Give the feed a height (className="h-[560px]") so it scrolls inside the page. The feed keeps read state itself and tells you through onMarkRead and onMarkAllRead; set unread on new items so they get a dot. New items wait behind the "N new updates" pill (always with holdNew, otherwise only while scrolled) and are announced through a polite live region. Rows are buttons with aria-expanded, tabs follow the tablist pattern with arrow keys, and the sweep is skipped for reduced motion and keyboard use.

What it handles

  1. 01Groups events by calendar day in the time zone you pass, newest first, with sticky Today and Yesterday headings and a short relative time on each row.
  2. 02Filters by type through tabs with counts, and by Everyone, People or Agents through a segmented control, either of them controllable from outside.
  3. 03Opens a row in place to show its snippet and a diff, tool or text detail, and offers an Open button that calls `onOpen`.
  4. 04Tracks unread rows with a dot, counts them in the header, and Mark all read clears them with a short staggered sweep and reports the ids to `onMarkAllRead`.
  5. 05Holds items that arrive while the list is scrolled down, or always with `holdNew`, behind an N new updates pill so the page never shifts under the reader.
  6. 06Names the type of each event with a badge icon from `typeMeta`, merged over the built-in comment, change, deploy, file and invite types.

States

First render
Nothing. The list paints as it is
none
Hover a type tab or a row
Background and colour change
120ms, ease out
Mark all read
The unread dots fade to grey, staggered row by row
180ms, ease out, up to 4 steps of 40ms
Open a row
The details show at once and the row reads as read
none
New updates pill
The pill appears at the top of the list
none
Reduced motion
Mark all read clears every dot at once
0ms

Works with

When to use

When to use

  • A project or workspace timeline of what people and agents did.
  • An inbox-like feed that tracks unread, with type tabs and rows that open in place.

When not to use

Using with AI

Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:

  • Add the Knowns UI Activity Feed to my app and wire it to my own data.
  • I need a project or workspace timeline of what people and agents did. Set that up with the Knowns UI Activity Feed.
  • Which Activity Feed props do I need for a minimal setup? Show me a short example.

With the server connected, your assistant calls get_component({ name: "activity-feed" }) and search_docs({ query: "activity feed" }).

Need help?

Stuck on Activity Feed, or found something off? We read every message.