Watch
0
0
Fork
You've already forked hyperhive
0

swarm-ui: the permissions box lists every permission instead of a narrow scroll area

The checkbox list was capped at 12em and scrolled, and the box shrinks the
list to its widest label, so the scrollbar sat in the middle of the popover
with the lower permissions hidden. The permissions are a short fixed list:
MultiselectFilterOptions takes scrollable={false} and the permissions box
uses it. Filter lists that can grow long keep the scroll area.
This commit is contained in:
iris 2026-11-06 00:22:14 +01:00 • committed by mara
commit 33c230665b

View file

@ -690,7 +690,8 @@ a badge reading the default set, none, or a count. A swarm
grant is the agent's whole set, so it follows the agent to whichever hive runs
it. Selecting the badge opens a box under it with one checkbox per permission the controller
knows (`GET /api/permissions`), ticked as the grant stands, or on the default
set when the swarm sets none.
set when the swarm sets none. The box lists every permission at once, without a
scroll area.
Each tick saves at once, as a `PUT /api/agents/{agent}/permissions` of the ticked boxes. A
`PUT` replaces the stored list whole, so an unticked box revokes that