Watch
0
0
Fork
You've already forked hyperhive
0

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:
iris 2026-11-22 22:31:44 +01:00
commit c24f3c3d88
2 changed files with 4 additions and 10 deletions

View file

@ -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,
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,
message, wanted state and config PR. While the agent list loads for the first
time, the page shows grey placeholder cards with the same layout as the real
ones, so the cards don't jump when the data arrives. The placeholders stand
still where motion is off.
message and wanted state. While the agent list loads for the first time, the
page shows grey placeholder cards with the same layout as the real ones, so the
cards don't jump when the data arrives. The placeholders stand still where
motion is off.
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

View file

@ -92,12 +92,6 @@ const FIELDS: FilterColumn<AgentRow>[] = [
filterValues: (a) => [a.wanted ?? "no declaration"],
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() {