Skip to content

fix(badges): aggregate incident timeline status count#27

Merged
mrshu merged 2 commits into
mrshu:masterfrom
balazstasi:fix/timeline-status-badge-counts
May 14, 2026
Merged

fix(badges): aggregate incident timeline status count#27
mrshu merged 2 commits into
mrshu:masterfrom
balazstasi:fix/timeline-status-badge-counts

Conversation

@balazstasi
Copy link
Copy Markdown
Contributor

@balazstasi balazstasi commented Apr 29, 2026

Description

I noticed that we have multiple Update/Resolved/etc badges on the site which by themselves don't hold that much more info, so might as well have one Update/Resolved/etc badge with the number near it for the updates.

Screenshots

Before

SCR-20260429-jizz

After

SCR-20260429-jixq

Summary

  • aggregate repeated incident timeline statuses into a single badge per status
  • append the total count for repeated statuses like Update (7) or Resolved (2)
  • keep the original incident update history unchanged while simplifying the card timeline view

Show one badge per status in incident timeline cards and append the total count for repeated statuses.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@balazstasi balazstasi changed the title fix: aggregate incident timeline status badges fix(badges): aggregate incident timeline status count Apr 29, 2026
Previously status badges were counted globally, which could hide repeated
non-contiguous incident phases. This commit summarizes only consecutive
runs and keeps malformed status sequences from breaking card rendering.

- Make `summarizeStatuses` ignore non-array inputs
- Collapse adjacent duplicate statuses while preserving timeline order
- Keep repeated phase transitions visible in incident cards
@mrshu
Copy link
Copy Markdown
Owner

mrshu commented May 14, 2026

Thanks a bunch @balazstasi -- I only ran into a small problem here but we can easily merge it in!

@mrshu mrshu merged commit 378cad9 into mrshu:master May 14, 2026
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