Watch
0
0
Fork
You've already forked hyperhive
0

swarm ui: select several agents on the agents page and broadcast to them

Select mode picks agents from the list: the select button in the filter
card, a press on an agent's icon, or a long press on a card starts it. In
it a card toggles a tick instead of opening its details, and the card's own
controls stop answering. A bar at the foot of the list has select all shown,
clear, broadcast and done; Escape leaves the mode.

Broadcast opens a dialog with the picked agents and a message box, sending
through the existing broadcast endpoint; the composer's send and result
parts are now shared with the swarm page's broadcast card. A full send shows
a toast and ends select mode; a partial one keeps the result with a retry
for the agents that failed.
This commit is contained in:
iris 2026-11-22 18:47:53 +01:00
commit 56ed2e07da

View file

@ -146,10 +146,13 @@ export function FilterableView<T>(
// `barActions` (buttons, a refresh picker) sit at its trailing edge.
standalone?: boolean;
barActions?: ComponentChildren;
// Cards view only. Drawn after the cards with the rows the filter leaves, so
// a bar that acts on what is shown (select all) needs no copy of the filter.
footer?: (visibleRows: T[]) => ComponentChildren;
},
) {
const { columns, rows, rowKey, storageKey, renderCard, emptyMessage } = props;
const { standalone, barActions } = props;
const { standalone, barActions, footer } = props;
const {
visibleRows,
activeFilters,
@ -198,6 +201,7 @@ export function FilterableView<T>(
))}
</div>
) : null}
{footer ? footer(visibleRows) : null}
</>
);
}