Routing's Hide accounts (账号打码) also masked the Providers page,
where nothing showed it was on or let you turn it off (Discord
#feedback, 1566189346665799752). The Providers page now has its own
switch beside its search box, placed and drawn like Routing's
(.rt-mask moved from routing.css to app.css), and each page follows
its own switch: Routing, Usage and the tray panel follow
magpie.maskEmails, Providers follows magpie.maskProviders.
The user's own choice is kept: when maskProviders was never stored,
it is seeded from maskEmails and written at once, so someone who had
masking on stays masked on both pages after the update, and someone
who turned it off stays unmasked. A switch with a stored choice is not
changed by Mask personal data's follow(); turning Mask personal data
on still masks both (hideAccounts.set(true, true), in app.js and
plugins/redact/page.js). show() asks hideAccounts.page() to re-mask
when the page in sight follows the other switch. No new strings: the
button reuses Routing's translated label and title. app.js
1,310,438, core under its budget, no raise.
Run:
- New internal/gui/tests/provider-mask.test.cjs, both engines, all
5 languages, at 1000 and 420 wide, plus the touched window-mask,
account-eye, privacy-hides-accounts, mask-emails,
plugin-name-unmasked, masking-demo-unblurred: 134/134 on mote. At
the rebased head (origin/main 573b21f4b) with gui-zh, gui-ja and
i18n-keys: 140/141, the red is gui-ja's ja string from a7b47d57e
(#4580), red on main.
- provider-mask on origin/main's assets: 60/60 red (no #pvMask).
- Broken by hand (chromium en), each red: cur() always Routing's
switch ("Providers shows the account while its own switch is
off"); the seed taken out (the upgrade on/off cases); show()'s
page() call taken out.
- gofmt -l clean; go vet, GOOS=linux -tags nogui and GOOS=windows vet
ok; the three builds ok; go test -tags nogui -timeout 45m ./... on
mote at base 6712e367e: every package ok but internal/gui's
TestSettingsSaveKeepsWhatItDoesNotSend, red on main too (#4514).
At the rebased head: internal/gui's budget tests ok.
- Whole GUI suite on Linux (WSL magpie-desktop, concurrency 6, host at
100% CPU), files a to l so far, the rest on mote: each red file was
run alone at this head and at origin/main 6712e367e. Red alone at
both, already filed: agent-panel-name-width (#4203), context-map
webkit 420 (#3488), gateway-caller-keys (#3797), gateway-key-models
(#4081), header-centre webkit ResizeObserver (#3479), key-replace
webkit 420 (#4126), gui-ja (#4580). Red only under the whole run,
green alone at this head: agent-plugin-agents (#4481), agent-prefs
(#4552), allow-ips (#3699), api-key-theme (#3307), click-scroll,
codex-predictions, currency (#3101), editor-advanced-align, fonts,
gateway-key-limit, group-from-model-add, group-member-fast,
group-member-off, group-morph, icon-url, inner-scroll-contain,
keep-awake, lan-docker, ledger-hscroll, library-chip-fan,
library-items, library-mcp-hub, library-mcp-tools, list-sort (the
load class, #4400,
#4471).
Not tried: the real desktop app's webview (Wails), and the GUI suite
on macOS beyond the files above.