swarm-ui: the hives card and the alerts table show placeholder rows under their own header while they load
TableSkeleton is the twin of Table: the same columns, so the same header cells, with a placeholder shape in each cell of three blank rows and no sort or filter, which have nothing to work on yet. The hives card and the alerts table use it in place of their "loading…" text.
This commit is contained in:
parent
33c230665b
commit
e149ff3315
1 changed files with 54 additions and 3 deletions
|
|
@ -23,6 +23,7 @@ import {
|
|||
} from "../ui/refresh-interval/RefreshInterval.js";
|
||||
import { SplitView } from "../ui/split-view/SplitView.js";
|
||||
import { Table, type TableColumn } from "../ui/table/Table.js";
|
||||
import { TableSkeleton } from "../ui/table/TableSkeleton.js";
|
||||
import { TextField } from "../ui/text-field/TextField.js";
|
||||
import { TextAreaField } from "../ui/text-area-field/TextAreaField.js";
|
||||
import {
|
||||
|
|
@ -491,6 +492,9 @@ export function ComponentsPage() {
|
|||
<AgentListSkeleton count={2} />
|
||||
</SkeletonRegion>
|
||||
</Sample>
|
||||
<Sample label="table placeholder">
|
||||
<TableSkeleton columns={TABLE_COLUMNS} label="the rows" />
|
||||
</Sample>
|
||||
</Section>
|
||||
|
||||
<Section title="MultiselectFilter">
|
||||
|
|
|
|||
Loading…
Reference in a new issue