Files
magpie/internal/gui
yetone 1cfa53b678 gui: a gateway key's management level is switched from its menu, under Advanced (#6307)
ljayic on X asked to give a key the management API without curl. A
key's … menu has Advanced (after Rotate key) for keys that can hold
the level: not the sharing key, a browser or read-only key, an issued
or expiring key (the same set access.Update and adminOf accept). It
opens the app's menu headed "Management API" with Off, From this
computer and From any computer, ticked at the key's level, and posts
/api/caller-keys/admin-key. A key that has a level says "Manages
magpie" in its row, its title saying from where. Strings in zh,
zh-TW, ja and de.

gateway-card's menu list now names Model names (on main since before
#6029) and Advanced, 8 items.

Run (GUI, Playwright 1.62.0, both engines, en/zh/zh-TW/ja/de, 1100
and 420px):
- gateway-key-admin (new), gateway-card, gateway-key-readonly,
  gateway-caller-keys: pass (mica).
- key-page, i18n-keys, i18n-en-no-cjk: pass (mote, repo root).
- gateway-key-admin with keys.js and i18n.js from HEAD: red 0/10
  (waits for .key-admin on ops).
- Whole gateway-*.test.cjs set, key-page, phone-connect-menu: the
  reds left are gateway-key-arrange at 420px, which is red without
  this change too (#6268), and gateway-card's 7 !== 6 on main (#6029),
  fixed here.

Not tried: the real app with a second computer calling the API.
2026-11-15 00:13:05 +08:00
..
…
…
…