gui: the Providers page has its own Hide accounts switch
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/main573b21f4b) with gui-zh, gui-ja and i18n-keys: 140/141, the red is gui-ja's ja string froma7b47d57e(#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 base6712e367e: 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/main6712e367e. 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.
This commit is contained in:
@@ -223,8 +223,8 @@
|
||||
#view-routing .row-head { margin: 14px 0 6px; padding: 0 2px; gap: 0; }
|
||||
#view-routing .row-head .note { font-size: 11px; color: var(--faint); margin-left: 8px; }
|
||||
#view-routing .row-head .rt-livedot + .note { margin-left: 8px; }
|
||||
.rt-mask, .rt-newgroup, .rt-gogroups { display: inline-flex; align-items: center; gap: 5px; }
|
||||
.rt-mask svg, .rt-newgroup svg, .rt-gogroups svg { width: 13px; height: 13px; flex: none; }
|
||||
.rt-newgroup, .rt-gogroups { display: inline-flex; align-items: center; gap: 5px; }
|
||||
.rt-newgroup svg, .rt-gogroups svg { width: 13px; height: 13px; flex: none; }
|
||||
/* the routing groups, far below with many models: the head goes to them */
|
||||
.rt-gogroups { margin-right: 6px; flex: none; }
|
||||
.rt-gogroups[data-fit="icon"] > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
|
||||
@@ -234,9 +234,6 @@
|
||||
requests, out of sight on a first look (#944) */
|
||||
.rt-newgroup { margin-right: 6px; }
|
||||
.rt-gnew { display: inline-flex; align-items: center; gap: 4px; }
|
||||
/* on, it says so in its struck eye and its words, a shade darker: a
|
||||
page tool, not a banner */
|
||||
.rt-mask[aria-pressed="true"] { color: var(--fg-2); }
|
||||
/* an email, hidden: stand-in letters of its shape, softly blurred —
|
||||
coming in out of focus when asked for */
|
||||
.pii { filter: blur(2.2px); opacity: .5; user-select: none; }
|
||||
|
||||
Reference in New Issue
Block a user