Skip to content

Add Show/Hide Event Groups view to the timeline - #4134

Merged
laurakwhit merged 15 commits into
mainfrom
laura/fe-212-timeline-shows-event-groups
Nov 12, 2026
Merged

laurakwhit merged 15 commits into
mainfrom
laura/fe-212-timeline-shows-event-groups

Conversation

@laurakwhit

@laurakwhit laurakwhit commented Nov 5, 2026 •

Copy link
Copy Markdown
Collaborator

Description & motivation 💭

Re-adds the Show/Hide Event Groups view from #3899 to the workflow timeline, built on the event group filtering that shipped in #3986.

  • A Show/Hide Event Groups toggle sits next to the Event Groups filter. It only appears when the run has event groups.
  • With grouping on, the timeline shows one row per event group spanning its first to last event, labelled with the group name and event count.
  • Clicking a group expands it in place and has a header with name, duration, status badges (failed, timed out, retries, canceled, terminated, paused), event count and close, followed by the group's own lifecycle rows.
  • Grouped rows respect the event type filter (a group's span, count and rows narrow to the selected types), the Event Groups filter and the failed/pending filter.
  • The Hide/Show Event Groups setting lives in in state so it survives switching between History and Timeline, but resets on refresh.

Screenshots (if applicable) 📸

Screenshot 2026-11-05 at 1 01 16 PM Screenshot 2026-11-05 at 1 01 41 PM Screenshot 2026-11-05 at 1 02 08 PM

Design Considerations 🎨

Testing 🧪

How was this tested 👻

  • Manual testing
  • E2E tests added
  • Unit tests added
pnpm test -- --run src/lib/models/event-history/timeline-event-groups.test.ts src/lib/services/grouped-event-buffer.test.ts
PW_MODE=integration npx playwright test tests/integration/timeline-event-groups.spec.ts tests/integration/workflow-event-history.spec.ts

Steps for others to test: 🚶🏽‍♂️🚶🏽‍♀️

pnpm catalog dev

  1. Run the Event marker groups catalog example and open its workflow.
  2. On Timeline, click Show Event Groups and verify rows collapse to one per group.
  3. Click a group to expand it, check the header, badges and rows and close it.
  4. Combine with the Event Type and Event Groups filters and verify it updates as expected.
  5. Switch to History and back and verify grouping stays on.
  6. Narrow the window. Toolbars should wrap in order, menus should stay on screen, and History tabs should stay attached to the table.

Checklists

Draft Checklist

Merge Checklist

Issue(s) closed

FE-212
FE-213
FE-1496

Docs

Any docs updates needed?

@vercel

vercel Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
holocene Ready Ready Preview Nov 10, 2026 12:19am UTC

Request Review

@acav-temporalio

Copy link
Copy Markdown

design approved so we can get this unblocked and start getting some feedback. putting the caveat that we're reaching critical mass of buttons on that row and are due for a filter refresh for the timeline, but do not want that to block this going out.

@acav-temporalio
acav-temporalio marked this pull request as ready for review November 5, 2026 21:29
@acav-temporalio
acav-temporalio requested a review from a team as a code owner November 5, 2026 21:29
@Alex-Tideman

Copy link
Copy Markdown
Collaborator

I think we should default to showing groups if there are any. With all those toggle buttons, it's going to definitely slow adoption/feedback if we don't default to showing them. This is an opt-in feature anyways on the SDK side, so if they use it I think we should assume they want to see it by default.

@Alex-Tideman

Copy link
Copy Markdown
Collaborator

I'd even consider adding a toggle/checkbox in the Event Groups dropdown to show/hide so we can remove a button

@rossnelson rossnelson left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Nice work bringing this back on top of the new filtering. A few things I found while going through it, mostly around how grouping lines up with the filters. The first four seem worth fixing before merge, the nits are small, and the last two are older bugs this view makes more obvious.

I ran this through the /winston:pr-review skill first (finders, 3 verifiers voting, and a UAT pass that rendered the timeline), then went through what it found.

This branch was successfully deployed

1 active deployment
Preview — 9eca1919 Deployed Nov 10, 2026 by vercel[bot]
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.

4 participants