Skip to content

No.309 · Data

Activity Stream

An activity log where time has weight: the space between two events grows with the time between them, so a busy half hour reads dense and a quiet afternoon reads as a pause. Days are set in an editorial margin, runs of the same thing fold into one line, and a focused event opens in place.

The prompt

Copy this text

Automatic copying is unavailable. Copy the selected text using your device’s copy command.

Written for the variant you picked above: Paper

Build a SaaS activity feed (deploys, comments, uploads, assignments, status changes, approvals) with a strong temporal hierarchy and an editorial feel, not a dotted vertical timeline. Days sit in a left margin: a large serif day numeral, the day name (Today / Yesterday / weekday) and the month, sticky while its events scroll. A full-width ink rule starts each day. Each event is one line: - a mono time column (relative for the last hour, 'just now' / '14 min ago', otherwise HH:MM, with the full date as a title) - a small outlined glyph for the kind - a sentence: bold actor, a verb, the object in medium weight, and an optional status pill (Ready, Failed, Approved, 12 / 12) The central idea is that vertical space encodes elapsed time. The margin before each event is 7·log2(1 + minutes/6)px, clamped to 2–56px, so a burst of activity packs tight and a long silence opens a visible gap. Gaps of 90 minutes or more are named inside the gap in italic serif with a dotted rule ('3 hours quiet'). You read the rhythm of the day before reading a word. Consecutive events with the same groupKey by the same actor within 30 minutes fold into one line ('Hamza uploaded 4 files to Wayfinder'); expanding lists them with their times. Clicking or pressing Enter on an event opens its detail in place (a deploy log, a comment's text) under the sentence, marked by a 2px accent rule — the rest of the stream stays exactly as it is. ↑/↓ move between events. New events enter at the top: existing rows FLIP down (420ms), and the new line fades and drops in with its time in the accent for a moment. There are a loading state (placeholder rows at uneven gaps) and an empty state written as a sentence. Under 34rem the margin becomes an inline day header. Paper and Night themes. Selected variant — Paper (paper): Palette for this theme (Paper): --as-accent #b4532a; --as-bad #b42318; --as-bg #fbfaf6; --as-faint rgb(27 26 23 / 0.1); --as-ink #1b1a17; --as-muted #7a766d; --as-ok #15803d; --as-warn #b45309. Treat these as the root colour tokens, one value per role, and name them to suit your code. Select it with the theme option set to "paper". Keep every dimension, spacing value, state and motion from the brief unchanged, and keep text at 4.5:1 contrast or better on these surfaces. This selection takes precedence over references to other themes or options in the general brief. Implement this selected appearance; do not add a variant picker or alternative appearances unless requested. Implementation requirements: Use React and TypeScript. Keep the component self-contained, with uniquely scoped CSS and no animation libraries. Include required imports, styles and font setup in the result. Interaction: Scan the rhythm, click an event to open it, press 'Simulate new event', or switch to the loading and empty states. Motion: Arrivals: 420ms FLIP for the stream plus a 520ms drop-in; detail fold 320ms. The spacing itself is static. Accessibility: A role=feed of articles, each with a button that controls its detail (aria-expanded). Days are labelled regions with full dates, and every time has an absolute-time title. Arrow keys move between events. Reduced motion removes the arrival and fold animations; the time spacing is layout, not motion, so it stays. Responsive behavior: Under 34rem of container width, the day margin becomes an inline header and the columns tighten. Preserve keyboard access, visible focus and reduced-motion behavior. Keep fictional demo data and simulated service calls in a separate usage example; expose callbacks for real actions and recover from rejected requests. Keep usage-example links inside the demo: use local buttons or prevent navigation. Demonstration links must not navigate to Vitrine routes or open other pages; preserve real URL support in the reusable component itself. Verify the result at narrow and wide viewport sizes, with keyboard input and reduced motion enabled.

Notes

Interaction
Scan the rhythm, click an event to open it, press 'Simulate new event', or switch to the loading and empty states.
Motion
Arrivals: 420ms FLIP for the stream plus a 520ms drop-in; detail fold 320ms. The spacing itself is static.
Accessibility
A role=feed of articles, each with a button that controls its detail (aria-expanded). Days are labelled regions with full dates, and every time has an absolute-time title. Arrow keys move between events. Reduced motion removes the arrival and fold animations; the time spacing is layout, not motion, so it stays.
Responsive
Under 34rem of container width, the day margin becomes an inline header and the columns tighten.