Skip to content

Let readers scroll through the life of an event instead of stepping through it - #151

Merged
phelma merged 1 commit into
mainfrom
t3/improve-life-of-event-interactive
Nov 23, 2026
Merged

phelma merged 1 commit into
mainfrom
t3/improve-life-of-event-interactive

Conversation

@phelma

@phelma phelma commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary

"The life of an event" on the overview was a stepper. You could only see one of its 12 steps at a time, its height jumped between steps (389–620px), so the Back/Next buttons moved under your cursor, and Play advanced every 5 seconds however fast you read. Clicking only paged through text, so there was nothing to interact with. Hiding the other steps also meant you couldn't compare a step with the last one (NewEvent → StoredEvent), find a step with Ctrl-F or link to one.

Now it's a timeline you scroll through. Steps 1–4 come first because both paths share them, then the page forks into On demand and In the background, each numbered 5–8.

 <EventJourney>
-  branch toggle · package chips that light up
-  step nav · one visible step · Back / Play / Next
-  <script> (branch, step, autoplay state)
+  <ol> shared steps 1–4
+    <JourneyStep>  title + its own package chips
+                   text + code │ "What you have now"
+  <section> On demand          steps 5–8
+  <section> In the background  steps 5–8
  • The step content is unchanged. Only the layout changed, and there's no client-side script any more.
  • Each step and both branches have anchors, e.g. #journey-stored and #journey-in-the-background.
  • journeyPackages is gone from library.ts, since nothing uses it now.

Evidence

  • Before / After at 1440px:
Before After
  • After: the fork from step 4 into the two paths, at 1440px and at 390px.
Desktop Mobile
  • invoke docs.build passes and starlight-links-validator reports all internal links valid.

Merge Danger

Door: two-way

Docs only, so a revert brings the stepper back.

Blast Radius: overview

  • Page length: at 1440px the overview grows from 4,823px to 8,872px, because all 12 steps are now on screen.
  • Unstyled code blocks: in production builds, the overview's code blocks are still unstyled. The page links /_astro/ec.w36nc.css, which the build never writes, so there are no syntax colours and wrap has no effect. That's the problem Refocus the library overview on orientation for readers who know event sourcing #150 noted. On a phone the longest lines therefore push the page wider than the screen, as main already does on most steps. Now that every step is visible at once, it happens throughout the section. Fixing it belongs in a separate PR.

Created with Claude Opus 5.5 in Claude Code.

The stepper hid all but one step, its height jumped between steps so the
controls moved, and autoplay ran at a fixed pace regardless of how fast
people read. Show every step at once, with the shared steps followed by
both branches, and each step's packages alongside it.
Copilot AI balanced review requested due to automatic review settings November 23, 2026 11:07

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@phelma
phelma merged commit 3e1bcd0 into main Nov 23, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants