Skip to content

Record Timeline

One record's history in one place: emails, calls, meetings, notes and stage changes grouped by day, filtered by type or person, with a note field at the top.

On this page
Used for
  • Contact history
  • Account activity
  • Deal log
  • Support case history
  • Candidate record

Examples

Order
Zone

Without filters or a note field

Installation

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

Props

events
TimelineEvent[]
{ id, kind, at, title, body?, author?, detail?, from?, to? }. kind is email, call, meeting, note or stage. at is an ISO date-time with a zone. A stage event shows from and to.
today
string
ISO date (YYYY-MM-DD) that makes the first group read Today and Yesterday.
timeZone
string
Default"UTC"
IANA zone for the days and times. An unknown zone falls back to UTC.
order
"newest" | "oldest"
Default"newest"
Days and events inside a day follow it.
onAddNote
(text) => void | Promise<void>
Shows the note field. The text is trimmed and limited to 2,000 characters. A rejection keeps the text and shows an error.
filter / onFilterChange
{ kinds, authors } / (filter) => void
Controlled filter. Without them the block keeps its own.
avatarFor
(author) => string | undefined
A picture for an author by name, shown small before the name.
filterable
boolean
Defaulttrue
Show the Type and Person filters.
title
ReactNode
Heading above the note field.

What it handles

  1. 01Lists one record's history grouped by day, newest first (or oldest first), with Today and Yesterday when you pass today.
  2. 02Gives each type its own icon and tint: email, call, meeting, note and stage change. A stage change reads Proposal to Negotiation.
  3. 03Shows who did it, a short detail (Received, 32 min) and the time in the zone you pass. Long bodies fold behind Show more.
  4. 04Filters by type and by person; a filter that matches nothing offers Clear filters.
  5. 05Composes a note inline: Ctrl or Cmd with Enter adds it, a saving state shows while your promise runs, and a failed save keeps the text.
  6. 06Holds no data and reads no clock: events, today and the time zone come in, a new note goes out.

States

First render
Nothing plays; the list paints as it is
none
No events
A line that says history will appear here
none
Filter matches nothing
A line and a Clear filters button
none
Saving a note
The button shows its loading state and the field is locked
button loading
Save failed
The text stays and the line under the field turns red
none
Reduced motion
Nothing here depends on motion
0ms

Works with

When to use

When to use

  • The history of one contact, company or deal: emails, calls, meetings, notes and stage changes.
  • An activity column beside a record header, with a note field.

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 Record Timeline to my app and wire it to my own data.
  • I need the history of one contact, company or deal: emails, calls, meetings, notes and stage changes. Set that up with the Knowns UI Record Timeline.
  • Which Record Timeline props do I need for a minimal setup? Show me a short example.

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

Need help?

Stuck on Record Timeline, or found something off? We read every message.