Commit 784b89a
authored
fix(ui): avoid empty-state flicker on suite detail page (#200)
## Summary
`useIndex()`'s `isLoading` wasn't consumed on the suite detail page, so
while the index was still loading, `suiteRunsAll` was empty and the "No
runs found for this suite" message briefly flashed before the real runs
rendered.
Now:
- While the index is still loading and no runs are available yet → show
a spinner.
- Once the index has resolved → either render the runs table, or (if
genuinely zero runs for the suite) show the empty-state message.
## Test plan
- [x] TypeScript + ESLint clean
- [ ] Manual: hard-reload a suite detail page, confirm no "No runs
found" flash — spinner appears instead until the runs load
- [x] Manual: navigate to a suite that has genuinely zero runs, confirm
the empty-state message still appears1 parent 60b338c commit 784b89a
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
289 | | - | |
| 289 | + | |
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
| |||
903 | 903 | | |
904 | 904 | | |
905 | 905 | | |
906 | | - | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
907 | 911 | | |
908 | 912 | | |
909 | 913 | | |
| |||
0 commit comments