swarm ui: remove the config PR filter from the agents page
The filter bar no longer offers a filter on an agent's config PR. A filter saved on it before is dropped by the table's existing handling of columns that no longer exist.
This commit is contained in:
parent
6a18bf1e02
commit
c24f3c3d88
2 changed files with 4 additions and 10 deletions
|
|
@ -150,10 +150,10 @@ above the details shuts them and the list takes the width again, and focus
|
||||||
returns to the agent's card. A name the roster doesn't have, from a stale link,
|
returns to the agent's card. A name the roster doesn't have, from a stale link,
|
||||||
shows "no agent named …" and the same button. The filter card, which also holds
|
shows "no agent named …" and the same button. The filter card, which also holds
|
||||||
the **+ agent** button and the refresh picker, filters by name, hive, status,
|
the **+ agent** button and the refresh picker, filters by name, hive, status,
|
||||||
message, wanted state and config PR. While the agent list loads for the first
|
message and wanted state. While the agent list loads for the first time, the
|
||||||
time, the page shows grey placeholder cards with the same layout as the real
|
page shows grey placeholder cards with the same layout as the real ones, so the
|
||||||
ones, so the cards don't jump when the data arrives. The placeholders stand
|
cards don't jump when the data arrives. The placeholders stand still where
|
||||||
still where motion is off.
|
motion is off.
|
||||||
|
|
||||||
To act on several agents at once, press the **select** button in the filter
|
To act on several agents at once, press the **select** button in the filter
|
||||||
card, select an agent's icon, or press and hold a card (half a second; moving
|
card, select an agent's icon, or press and hold a card (half a second; moving
|
||||||
|
|
|
||||||
|
|
@ -92,12 +92,6 @@ const FIELDS: FilterColumn<AgentRow>[] = [
|
||||||
filterValues: (a) => [a.wanted ?? "no declaration"],
|
filterValues: (a) => [a.wanted ?? "no declaration"],
|
||||||
filterMode: "multiselect",
|
filterMode: "multiselect",
|
||||||
},
|
},
|
||||||
{
|
|
||||||
key: "config-pr",
|
|
||||||
header: "config PR",
|
|
||||||
sortBy: (a) => a.config_pr?.pr_number ?? 0,
|
|
||||||
filterValue: (a) => (a.config_pr ? `#${a.config_pr.pr_number}` : ""),
|
|
||||||
},
|
|
||||||
];
|
];
|
||||||
|
|
||||||
export function AgentsPage() {
|
export function AgentsPage() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue