swarm ui: the agents page uses more of the width with an agent selected
With a selected agent the shell's 90em column left a wide screen mostly empty. The page now raises that cap to 160em while two columns are showing, and the details take three parts to the list's one (the list keeps at least 24em). The cap and the columns move with the same easing.
This commit is contained in:
parent
b6d0790eb4
commit
6a18bf1e02
1 changed files with 40 additions and 21 deletions
|
|
@ -136,22 +136,24 @@ paused, destroy), a **paused by hive** badge when the agent's own harness paused
|
|||
its turn loop (hover for the reason; set the agent **up** to resume it), and a
|
||||
**login needed** badge with a **log in** button when its claude has no session.
|
||||
|
||||
Select a card to open the agent's details. The address becomes
|
||||
`/agents/<name>`, so a link or a reload lands on the same agent, and the
|
||||
browser's back and forward buttons walk through the selections. Until you select
|
||||
an agent the list takes the whole width. Selecting one narrows the list to a
|
||||
third of the page and slides the details in on the right, which scroll on their
|
||||
own while the list stays in view, and the selected card gets a purple border and fill. The widths animate,
|
||||
and stand still where motion is off. A screen narrower than 60em has room for one
|
||||
column, so the details replace the list. At any width, the **← agents** button 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.
|
||||
Select a card to open the agent's details. The address becomes `/agents/<name>`,
|
||||
so a link or a reload lands on the same agent, and the browser's back and
|
||||
forward buttons walk through the selections. Until you select an agent the list
|
||||
takes the whole width, in the shell's 90em column. Selecting one narrows the
|
||||
list to a quarter of the page (never under 24em) and slides the details in on
|
||||
the right, which scroll on their own while the list stays in view, and the
|
||||
selected card gets a purple border and fill. The page spreads to 160em for the
|
||||
two columns, so a wide screen shows more of the details. The widths animate, and
|
||||
stand still where motion is off. A screen narrower than 60em has room for one
|
||||
column, so the details replace the list. At any width, the **← agents** button
|
||||
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.
|
||||
|
||||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue