feat(ui): show the number of hidden label on the overview modal

We only render top 9 labels, add a counter showing how many were skipped
This commit is contained in:
Łukasz Mierzwa
2019-07-14 19:09:20 +01:00
parent b0042af41a
commit d41fbff99e
3 changed files with 370 additions and 1 deletions

View File

@@ -37,6 +37,17 @@ describe("<OverviewModalContent />", () => {
{ value: "bar3", raw: "foo=bar3", hits: 4, percent: 25, offset: 75 }
]
},
{
name: "bar",
hits: 20,
values: Array.from(Array(20).keys()).map(i => ({
value: `baz${i + 1}`,
raw: `bar=baz${i + 1}`,
hits: 1,
percent: 5,
offset: i * 5
}))
},
{
name: "alertname",
hits: 5,