An activity feed says what happened in a workspace and who did it: deployments, comments, files. It is a timeline for each day, newest first, with the person as the marker and what they touched in the words. A switch narrows it to one kind of event.
Activity feed
<section class="sheet container-inline flex flex-col overflow-hidden" data-example="activity-feed" aria-labelledby="activity-title"> <header class="flex flex-wrap items-center justify-between gap-sm p-md"> <div class="flex flex-col gap-3xs"> <h2 class="heading heading-sm" id="activity-title">Activity</h2> <p class="m(0) fg-text-muted" id="activity-count" aria-live="polite">7 events in Atlas Labs since Wednesday</p> </div> <div class="segmented segmented-sm" role="radiogroup" aria-label="Show"> <label class="segmented-item"> <input type="radio" class="segmented-input" name="activity-kind" value="all" checked>All</label> <label class="segmented-item"> <input type="radio" class="segmented-input" name="activity-kind" value="deploy">Deployments</label> <label class="segmented-item"> <input type="radio" class="segmented-input" name="activity-kind" value="comment">Comments</label> <label class="segmented-item"> <input type="radio" class="segmented-input" name="activity-kind" value="file">Files</label> </div> </header> <div class="flex flex-col gap-lg p-md bt(1) bt-solid b-line-hair" data-activity-days> <section class="flex flex-col gap-sm" aria-labelledby="activity-today"> <h3 class="m(0) text-xs font-medium fg-text-muted" id="activity-today">Today</h3> <ol class="timeline"> <li class="timeline-item" data-kind="deploy" aria-current="true"> <span class="timeline-marker"> <span class="avatar avatar-sm"> <img class="avatar-image" src="/demo/people/yiching-lin.webp" alt width="256" height="256"> </span> </span> <div class="timeline-body"> <p class="timeline-title">Yi-ching Lin deployed <a class="link" href="#activity-title">atlas.dev</a>to production</p> <div class="flex flex-wrap items-center gap-xs"> <span class="badge badge-success badge-dot">Ready</span> <span class="badge badge-category category-teal">Marketing site</span> <time class="timeline-time" datetime="2026-11-13T09:42">09:42</time> </div> <details class="expand max-w(420)" style="--expand-lines: 2"> <summary class="expand-toggle"> <span class="expand-more">Show the build</span> <span class="expand-less">Hide the build</span> <svg class="icon expand-chevron" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> <path d="M6 3.5L10.3586 7.8586A0.2 0.2 0 0 1 10.3586 8.1414L6 12.5" transform="rotate(90 8 8)" /> </svg> </summary> <dl class="data-list"> <div class="data-list-item"> <dt class="data-list-term">Commit</dt> <dd class="data-list-value">4f021c8, Add pricing for teams</dd> </div> <div class="data-list-item"> <dt class="data-list-term">Build</dt> <dd class="data-list-value">38 routes in 48 seconds</dd> </div> <div class="data-list-item"> <dt class="data-list-term">Regions</dt> <dd class="data-list-value">14, from Tokyo to São Paulo</dd> </div> <div class="data-list-item"> <dt class="data-list-term">Rollback</dt> <dd class="data-list-value">The 08:12 deployment stays ready</dd> </div> </dl> </details> </div> </li> <li class="timeline-item" data-kind="comment"> <span class="timeline-marker"> <span class="avatar avatar-sm"> <img class="avatar-image" src="/demo/people/misaki-sato.webp" alt width="256" height="256"> </span> </span> <div class="timeline-body"> <p class="timeline-title">Misaki Sato commented on <a class="link" href="#activity-title">Pricing page, preview 212</a> </p> <p class="timeline-description max-w(560)">“The yearly toggle reads well now. Can the Enterprise plan say how many seats it starts with?”</p> <div class="flex flex-wrap items-center gap-xs"> <span class="badge badge-category category-teal">Marketing site</span> <time class="timeline-time" datetime="2026-11-13T09:15">09:15</time> </div> </div> </li> <li class="timeline-item" data-kind="file"> <span class="timeline-marker"> <span class="avatar avatar-sm" aria-hidden="true">KN</span> </span> <div class="timeline-body"> <p class="timeline-title">Kenta Nakamura added 2 files to <a class="link" href="#activity-title">Edge functions</a> </p> <div class="flex flex-col items-start gap-xs max-w(420)"> <a class="file file-sm file-interactive" href="#activity-title"> <span class="file-page" aria-hidden="true">pdf</span> <span class="file-body"> <span class="file-name">Cold start profile.pdf</span> <span class="file-meta">1.2 MB</span> </span> </a> <a class="file file-sm file-interactive" href="#activity-title"> <span class="file-page" aria-hidden="true">csv</span> <span class="file-body"> <span class="file-name">Regions by latency.csv</span> <span class="file-meta">84 KB</span> </span> </a> </div> <div class="flex flex-wrap items-center gap-xs"> <span class="badge badge-category category-violet">Edge functions</span> <time class="timeline-time" datetime="2026-11-13T08:30">08:30</time> </div> </div> </li> </ol> </section> <section class="flex flex-col gap-sm" aria-labelledby="activity-yesterday"> <h3 class="m(0) text-xs font-medium fg-text-muted" id="activity-yesterday">Yesterday</h3> <ol class="timeline"> <li class="timeline-item" data-kind="deploy"> <span class="timeline-marker"> <span class="avatar avatar-sm" aria-hidden="true">SK</span> </span> <div class="timeline-body"> <p class="timeline-title">Seo-yeon Kim deployed <a class="link" href="#activity-title">api.atlas.dev</a>to production</p> <div class="flex flex-wrap items-center gap-xs"> <span class="badge badge-success badge-dot">Ready</span> <span class="badge badge-category category-blue">Public API</span> <time class="timeline-time" datetime="2026-11-12T17:40">17:40</time> </div> </div> </li> <li class="timeline-item" data-kind="deploy"> <span class="timeline-marker"> <span class="avatar avatar-sm" aria-hidden="true">SK</span> </span> <div class="timeline-body"> <p class="timeline-title">Seo-yeon Kim’s deployment of <a class="link" href="#activity-title">api.atlas.dev</a>failed</p> <div class="flex flex-wrap items-center gap-xs"> <span class="badge badge-danger badge-dot">Failed</span> <span class="badge badge-category category-blue">Public API</span> <time class="timeline-time" datetime="2026-11-12T17:05">17:05</time> </div> <details class="expand max-w(420)" style="--expand-lines: 2"> <summary class="expand-toggle"> <span class="expand-more">Show the error</span> <span class="expand-less">Hide the error</span> <svg class="icon expand-chevron" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> <path d="M6 3.5L10.3586 7.8586A0.2 0.2 0 0 1 10.3586 8.1414L6 12.5" transform="rotate(90 8 8)" /> </svg> </summary> <dl class="data-list"> <div class="data-list-item"> <dt class="data-list-term">Check</dt> <dd class="data-list-value">GET /status, every 10 seconds</dd> </div> <div class="data-list-item"> <dt class="data-list-term">Answered</dt> <dd class="data-list-value">503 three times in a row</dd> </div> <div class="data-list-item"> <dt class="data-list-term">Stopped</dt> <dd class="data-list-value">Before it took any traffic</dd> </div> <div class="data-list-item"> <dt class="data-list-term">Served</dt> <dd class="data-list-value">Tuesday’s deployment, until the fix at 17:40</dd> </div> </dl> </details> </div> </li> </ol> </section> <section class="flex flex-col gap-sm" aria-labelledby="activity-wednesday"> <h3 class="m(0) text-xs font-medium fg-text-muted" id="activity-wednesday">Wednesday, 11 November</h3> <ol class="timeline"> <li class="timeline-item" data-kind="comment"> <span class="timeline-marker"> <span class="avatar avatar-sm"> <img class="avatar-image" src="/demo/people/misaki-sato.webp" alt width="256" height="256"> </span> </span> <div class="timeline-body"> <p class="timeline-title">Misaki Sato commented on <a class="link" href="#activity-title">Cache the image pipeline</a> </p> <p class="timeline-description max-w(560)">“Each preview rebuilds every image. Caching them by hash should cut the build by a third.”</p> <div class="flex flex-wrap items-center gap-xs"> <span class="badge badge-category category-violet">Edge functions</span> <time class="timeline-time" datetime="2026-11-11T10:48">10:48</time> </div> </div> </li> <li class="timeline-item" data-kind="deploy"> <span class="timeline-marker"> <span class="avatar avatar-sm" aria-hidden="true">KN</span> </span> <div class="timeline-body"> <p class="timeline-title">Kenta Nakamura deployed <a class="link" href="#activity-title">fn.atlas.dev</a>to preview</p> <div class="flex flex-wrap items-center gap-xs"> <span class="badge badge-success badge-dot">Ready</span> <span class="badge badge-category category-violet">Edge functions</span> <time class="timeline-time" datetime="2026-11-11T09:05">09:05</time> </div> </div> </li> </ol> </section> </div></section>/** * The activity of a team, filtered by kind on the page. The events are markup the server wrote, so the feed reads * in full without this script; a choice in the switch keeps the events of that kind in their lists, takes out a * day that is left with none, and says how many are shown. Returns the function that stops it and puts every * event back. */export function mount(root) { const count = root.querySelector('#activity-count') const feed = root.querySelector('[data-activity-days]') const days = [...feed.children].map((day) => ({ day, list: day.querySelector('.timeline'), items: [...day.querySelectorAll('.timeline-item')] })) const words = { all: ['event', 'events'], deploy: ['deployment', 'deployments'], comment: ['comment', 'comments'], file: ['file change', 'file changes'] } const controller = new AbortController() const show = (kind) => { let shown = 0 const kept = [] for (const { day, list, items } of days) { const matching = items.filter((item) => kind === 'all' || item.dataset.kind === kind) list.replaceChildren(...matching) if (matching.length) kept.push(day) shown += matching.length } feed.replaceChildren(...kept) count.textContent = `${shown} ${words[kind][shown === 1 ? 0 : 1]} in Atlas Labs since Wednesday` } root.addEventListener('change', (event) => { if (event.target.name === 'activity-kind') show(event.target.value) }, { signal: controller.signal }) return () => { controller.abort() show('all') }}Blocks are markup to copy. They take the page's own text color and size; the previews set fg-text-body text-sm on the body. Each block is a size container, so it reflows by its own width: in a wide page, a sidebar's worth of room or a dialog.
#What is in it
- One sheet, its header and its days parted by a hairline,
bt(1) bt-solid b-line-hair. - A day is a heading and a timeline. Today, Yesterday, then dates, each an
<h3>over an<ol class="timeline">, newest first. The count in the header says how many events are shown, and agrees with the days under it. - The person is the marker. An avatar in
timeline-markertakes the place of the dot, at the marker's 24px; the line joins one person to the next. The name is in the sentence, so a photo'saltis empty and initials arearia-hidden. - What it touched is a link. The deployment, the preview or the issue in the title is a link to it; files are files a reader opens.
- Words keep a measure. A quoted comment is
max-w(560)and the files and the detailsmax-w(420), so a wide sheet does not stretch a sentence across itself; the rows are as wide as the sheet, the reading is not. - A status is a tone, a project is a category. "Ready" and "Failed" are status badges with a dot and the word; the project an event belongs to is
badge-categorywith its name, in the category the project has everywhere else. - The newest event is current.
aria-current="true"on its row takes the marker's ink, when the marker is a dot. - Details stay folded. The build of a deployment and the reason one failed are in an expand: its first lines show, and the native
<details>opens the rest, with find-in-page and the keyboard as they are. - The switch is a segmented control. It narrows the feed to deployments, comments or files; a day left with none leaves the list.
#What needs a script
The feed is markup the server writes, and reads in full without a script. main.js only narrows it: it keeps the events of the chosen kind in their lists, takes out a day that is left with none, and updates the count, which is a polite live region. A server that pages the feed answers the same switch as a query.
#Accessibility
- The sheet is a
<section>named by its heading; each day is a<section>named by its own. - Each event is one sentence that says who did what to which, so it reads without the avatar, the badges or the line.
- A status badge says the status in words; a category badge says the project's name, and its color only repeats it.
- Times are
<time datetime>elements, so a reader gets the exact moment and a program can read it. - The switch is a radio group named "Show"; the count after a choice is announced.
#Related
- SurfaceTrays, sheets and wells: the material ladder every component is built on.
- HeadingA title in the ink of the page, with the line over it and the paragraph under it.
- Segmented controlA few options in one well; a sheet glides to the current one.
- TimelineEvents in the order they happened.
- AvatarA person or a team as a photo or initials, alone or stacked.
- LinkText that goes somewhere, in the ink of its sentence.
- BadgeA small chip for a status, a category or a count.
- CategoryNamed colors that tell which category a piece of data belongs to.
- FileOne file as a thing with a name: an attachment, an upload or a download.
- ExpandA long text that shows its first lines and opens on request.
- Data listThe facts about one thing, as terms and values.
- Page headerThe top of an app page: where you are, what it is and what you can do.
- Table viewA table with its search, filters, selection and pages.
- MessagingA conversation: grouped messages, attachments, delivery and a composer.
- Notification inboxNotifications in a page: all or unread, read one by one or all at once.