Commit 378cad9
fix(badges): aggregate incident timeline status count (#27)
* fix: aggregate timeline status badges
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>
* fix(badges): preserve timeline status phases
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
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: mr.Shu <mr@shu.io>1 parent 5e29cd6 commit 378cad9
1 file changed
Lines changed: 17 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
132 | 148 | | |
133 | 149 | | |
134 | 150 | | |
| |||
1265 | 1281 | | |
1266 | 1282 | | |
1267 | 1283 | | |
1268 | | - | |
| 1284 | + | |
1269 | 1285 | | |
1270 | 1286 | | |
1271 | 1287 | | |
| |||
0 commit comments