hzlxb on X asked for Library -> MCP servers to keep the servers turned off
apart, folded, as Providers keeps the providers turned off. The list now
holds the servers on. The ones off sit below it, above "+ Add server",
under a "Servers turned off (N)" fold drawn with Providers' Turned off
markup (row-head off-head, .fold with the chevron, the count in .note).
It is folded at first and remembered in localStorage
magpie.offServersOpen, as magpie.offProvidersOpen is. A server switched
off moves under the fold, and one switched on comes back up. While
picking (Select) the fold is held open and disabled, so every server
picked is in sight, as Providers holds its fold open while searching.
The MCP tab has no filter of its own, so there is nothing else for it to
hide from. With every server off only the fold shows. With none off
there is no fold. Strings are in en, zh, zh-TW, ja and de.
Run:
- library-mcp-off-fold.test.cjs (new): Chromium and WebKit, 1100 and
420 wide, en/zh/zh-TW/ja/de. It checks order, label, count, title,
aria-expanded, that opening by a wheel-scrolled click leaves the head
where it is and opens no editor, the reload memory, moving on a
switch, picking, all off and none off. It is red on the old library
files (no fold; checked on mica in chromium).
- Library/MCP/i18n/click-scroll/providers-off-fold GUI files (102 files,
both engines) on mote at the pre-rebase head 29a5f10f9: 2304 of 2310 pass. The 6
reds are library-open-again's 1100px cases, red the same alone on the
old tree (filed as #6751).
- go test -count=1 ./internal/gui/ on mica at this head: ok (143s).
gofmt clean.
- The whole GUI suite on mote at 29a5f10f9, in two parts (mote rebooted
mid-run; the rest ran after it came back, under suite.lock). Part 1:
411 not ok in 75 files. Part 2 (640 files): 11355 tests, 10911 pass,
444 fail. No red is in the files this change touches except
library-open-again (#6751). Every red file has an open issue saying it
is red on main: skill-fold-all/skill-manual (#6667, #6668, the
window's /api/update/using), skill-group-shared (#6687),
view-open-wheel (#4723), view-trackpad-coast (#4724),
view-wheel-unheard (#5158), usage-* (#6743, #4263), the rest in #6709
or by name; icon-tile was unfiled and is now #6759 (dim-color from
2649d5d72, not in app.css's tile rule).
- After rebasing on origin/main 923cc8747 (1f04ed219 touched
library.css): Library/i18n/click-scroll/providers-off/gui-* files on
mote: 1837 of 1847 pass. Reds: library-open-again's 1100px
cases (#6751), library-env de (#6675, NO_PROXYlocalhost) and
library-chip-fan de no-preference (#3072), both chromium only; those
two pass 3 of 3 alone at this head and at origin/main 923cc8747; go test -count=1 ./internal/gui/ on mica: ok (154s).
Not tried: the real app, including WebKitGTK on Linux. The fold has no
motion of its own (it uses Providers' chevron rotation).