The list under Library in the sidebar was one flat column mixing what every
agent shares, what one agent has and magpie's own add-ons. It now has three
quiet section names, as a Mac source list's: "Every agent" (Instructions,
Memory, MCP servers, Skills, Hooks, Subagents), "One agent" (Claude plugins,
Pi packages) and "magpie" (RTK, billion-context). Same pages, same strip,
same routes; the page's own strip is unchanged. A section with no tab showing
has no name, and a list of one section (agentless) has none at all. The names
are said in zh, zh-TW, ja and de ("One agent" is new; "Every agent" was
already there); no colour, no gradient, no border.
The grouping and the sort live in navicons.js (loaded with the first list,
which then draws again), so the core script budget holds; a few navSubs
comments were cut for the bytes.
Run:
- library-groups.test.cjs (new): the three names and the rows' order in en
zh zh-TW ja de, no names in the strip, a name is no tab, quiet style, a tab
still opens, hidden-only section loses its name, one section none, 420px and
dark: Chromium and WebKit, 16 of 16 on mote before the rebase, 100 of 100
with library-bili on Windows (xiaomi-gpu) after it, and with sidebar.test.cjs
on WSL.
- Broken by hand: names always shown made the hidden-section case red in both
engines.
- go test -run Budget ./internal/gui: ok before the rebase.
- Screenshots zh light/dark at 900 and 420, before and after, in
magpie-wt/library-groups-scratch/shots.
- Wider sidebar and library set on mote: 302 of 304; the 2 reds were
library-bili in WebKit, a click by an index read before the redraw
(fixed in the next commit). mote could not launch browsers afterwards.
Not tried: the whole GUI suite (mote refused connections and then browser
launches for hours; run after the tag), the real Linux WebKitGTK app.