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.
- 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-feedPaste this into your coding agent (Claude Code, Cursor, Codex). It checks your project, sets up the registry, runs the install and verifies it.
Install Activity feed from Knowns UI into this project. Work step by step, show me each change, and ask before you edit files outside this project.
Context: Knowns UI (https://ui.knowns.dev) is a shadcn registry. Items land in the project as source files. Docs: https://ui.knowns.dev/docs/activity-feed
1. Check the project first. Stop and tell me if any of these is missing:
- React 19 and Tailwind CSS v4.
- A components.json at the project root. If there is none, ask me before running `npx knowns-ui@latest init --no-key` (it runs shadcn init when needed, then adds the registries).
2. Run:
```bash
npx knowns-ui@latest add activity-feed
```
It writes these files:
- lib/knowns/run.ts
- lib/knowns/json.tsx
- lib/knowns/status.ts
- lib/knowns/tone.ts
- lib/knowns/types.ts
- lib/knowns/use-abortable.ts
- lib/knowns/utils.ts
- lib/knowns/motion.tsx
- lib/knowns/motion-utils.ts
- components/ui/knowns/use-floating.ts
- components/ui/knowns/tooltip.tsx
- components/ui/knowns/tooltip-utils.ts
- components/ui/knowns/avatar.tsx
- components/ui/knowns/spinner.tsx
- components/ui/knowns/button.tsx
- components/ui/knowns/segmented-control.tsx
- components/ui/knowns/blocks/application/activity-feed.tsx
- components/ui/knowns/blocks/application/app-feed-utils.ts
- components/ui/knowns/blocks/application/activity-utils.ts
and installs these npm packages: clsx@^2.1.1, tailwind-merge@^3.7.0, class-variance-authority@^0.7.1.
3. While it runs:
- It also adds a few @keyframes (all named kn-*) to the global CSS file (globals.css or the file components.json points at). Let it: they only add animations.
- If it asks to overwrite files under lib/knowns/: these are shared by every Knowns UI item. List them, say whether I changed them (check git), and ask me before you answer.
- If it asks to overwrite any other file, show me the diff and ask me.
4. Verify:
- Every file in the list above exists.
- The project type-checks (for example `npx tsc --noEmit`) and the dev build has no new errors.
5. Use it: follow the examples and props on https://ui.knowns.dev/docs/activity-feed, and ask me if anything about my data is unclear.
If the Knowns UI MCP server is connected (https://ui.knowns.dev/docs/ai-and-mcp), use get_component({ name: "activity-feed" }) or search_docs for details.
Finish with a short summary: the files you added or changed, the packages you installed, and anything I still need to do.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- Default
first render / "UTC" - The clock and the zone that cuts days; fix both so server and client match.
- filters
boolean- Default
true - Show the type tabs with counts and the Everyone / People / Agents control.
- who / onWhoChange
"all"|"people"|"agents"- Default
uncontrolled - The who filter.
- types / onTypesChange
string[]- Default
uncontrolled - The selected tab: empty is All, one entry is that type.
- typeMeta
Record<string, { label, icon }>- Default
comment, 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- Default
false - 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- Default
3 - 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.
| Prop | Type | Default | Description |
|---|---|---|---|
| itemsrequired | ActivityItem[] | required | id, at (ms), type, actor { name, agent, src }, verb, object, plus unread, project, snippet and details (diff | tool | text). |
| now / timeZone | number / string | first render / "UTC" | The clock and the zone that cuts days; fix both so server and client match. |
| filters | boolean | true | Show the type tabs with counts and the Everyone / People / Agents control. |
| who / onWhoChange | "all" | "people" | "agents" | uncontrolled | The who filter. |
| types / onTypesChange | string[] | uncontrolled | The selected tab: empty is All, one entry is that type. |
| typeMeta | Record<string, { label, icon }> | comment, 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 | false | 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 | "Activity" | The name of the feed region. |
| headingLevel | 2 | 3 | 4 | 3 | Level of the day headings; set it so heading levels do not skip on your page. |
| emptyText | string | "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
- 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.
- 02Filters by type through tabs with counts, and by Everyone, People or Agents through a segmented control, either of them controllable from outside.
- 03Opens a row in place to show its snippet and a diff, tool or text detail, and offers an Open button that calls `onOpen`.
- 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`.
- 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.
- 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
| State | What moves | Timing |
|---|---|---|
| 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
- Things that need the reader to act or clear them: use Notification Center.
- A single run's steps with timing: use Trace Waterfall.
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" }).