Commit 2e92bad
authored
feat(ui): add "N in progress" indicator and clean up filter layout (#201)
## Summary
### "N in progress" indicator
A small indicator button now sits next to the **Status** dropdown in
`RunFilters` (used on both `/runs` and the suite detail page). It shows
a pulsing blue dot + live-run count (e.g. `● 3 in progress`), shares the
same box height and text size as the adjacent dropdowns, and clicking it
toggles the existing "In progress" status filter on/off.
- Rendered only when `liveRunsCount > 0` — zero visual noise when
nothing is live.
- On the suite detail page the count is scoped to live runs for the
current suite.
### Fix status filter on suite detail page
The suite detail page's filter logic was missing the `status ===
'running'` case (so choosing "In progress" did nothing), and its `status
=== 'passing' / 'failing'` checks used `total - passed` regardless of
whether the row is live. Now matches the RunsPage logic: live rows use
the reported `tests_failed` for pass/fail filtering, and `running`
filters down to in-progress rows.
### Cleaner header layout on /runs
- Row 1: `Runs (N)` title
- Row 2: `Metric steps:` row
- Row 3: all filter dropdowns (Client, Image, Suite, Strategy, Status,
Live indicator) — left-aligned, wrapping on narrow screens
## Test plan
- [x] TypeScript + ESLint clean
- [x] Manual: start a live run, confirm the indicator appears on `/runs`
next to the Status dropdown with the correct count
- [x] Manual: click the indicator, confirm the runs table filters to
only in-progress rows; click again to clear
- [x] Manual: open the suite detail page for that suite, confirm the
indicator appears and is scoped to this suite
- [x] Manual: select "In progress" from the Status dropdown on the suite
detail page, confirm the table filters correctly (was broken before this
PR)
- [x] Manual: confirm no indicator renders when no live runs are present1 parent 784b89a commit 2e92bad
3 files changed
Lines changed: 98 additions & 53 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
32 | 37 | | |
33 | 38 | | |
34 | 39 | | |
| |||
124 | 129 | | |
125 | 130 | | |
126 | 131 | | |
| 132 | + | |
| 133 | + | |
127 | 134 | | |
128 | 135 | | |
129 | 136 | | |
| |||
184 | 191 | | |
185 | 192 | | |
186 | 193 | | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
187 | 220 | | |
188 | 221 | | |
189 | 222 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
377 | 377 | | |
378 | 378 | | |
379 | 379 | | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
400 | | - | |
401 | | - | |
402 | | - | |
403 | | - | |
404 | | - | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | | - | |
413 | | - | |
414 | | - | |
415 | | - | |
416 | | - | |
417 | | - | |
418 | | - | |
419 | | - | |
420 | | - | |
421 | | - | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | | - | |
427 | | - | |
428 | | - | |
429 | | - | |
430 | | - | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
431 | 406 | | |
432 | 407 | | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
433 | 434 | | |
434 | 435 | | |
435 | 436 | | |
| |||
580 | 581 | | |
581 | 582 | | |
582 | 583 | | |
| 584 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
536 | 536 | | |
537 | 537 | | |
538 | 538 | | |
539 | | - | |
540 | | - | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
541 | 548 | | |
542 | 549 | | |
| 550 | + | |
543 | 551 | | |
544 | 552 | | |
545 | 553 | | |
| |||
1210 | 1218 | | |
1211 | 1219 | | |
1212 | 1220 | | |
| 1221 | + | |
| 1222 | + | |
1213 | 1223 | | |
1214 | 1224 | | |
1215 | 1225 | | |
| |||
0 commit comments