Commit 4fc0682
authored
v6: Add an empty state to the History panel (#4418)
## Summary
The History panel had no empty state. With no run history and no
favorites (first run, or right after "Clear"), it rendered only its
header and nothing below, just blank space. Add a "No queries run yet."
message for that case, styled to match the Collections panel's existing
empty state.
## Test plan
- [x] Open a fresh GraphiQL instance with no query history. Open the
History panel and confirm it shows a "No queries run yet." message below
the header instead of blank space.
- [x] Run a query. Reopen the History panel and confirm the empty-state
message is gone, replaced by the new history entry.
- [x] Click "Clear" to remove all history and favorites. Confirm the
empty-state message reappears.
- [x] Favorite an item, then delete the remaining regular history so
only the favorite is left. Confirm the empty-state message stays hidden
(favorites alone should not trigger it).
- [x] Check both Dark and Light themes. The empty-state text should be
legible and match Collections' muted styling in each.
Refs: #42191 parent 7123fd6 commit 4fc0682
2 files changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
57 | 61 | | |
58 | 62 | | |
59 | 63 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
16 | 22 | | |
17 | 23 | | |
18 | 24 | | |
| |||
0 commit comments