acmilan_ on Discord asked to import masking words in bulk instead of adding
them one at a time. Settings > Privacy's Masked words row now has Import...
and Copy beside Show. Import... opens a box under the list: what is pasted
there, a word a line or split at commas (either width), is added after the
list's words in one save. A word the list already has, or one pasted twice,
is passed over; the box counts the new ones as you type, and once saved the
status says "Words added: 3 · already in the list: 2". Cmd/Ctrl+Enter
imports, Escape and Cancel close it without saving; a redraw keeps the box
open with what it holds; a save that fails says no count. Copy puts the
list on the clipboard a word a line, the form Import takes. Never mask
uses the same wordList, so it gets both too. The pasted text is drawn as
dots while the words are hidden. Strings in zh, zh-TW, ja and de.
Test: internal/gui/tests/redact-words-import.test.cjs, Chromium and WebKit,
en/zh/zh-TW/ja/de at 400px: 10 of 10 ok on mote. Broken by hand: with the
dedupe against the list taken out it fails ("New words: 5", expected 3);
with the saved-words check before the count taken out, the failed save's
error is written over and the test times out waiting for it.
Looked at it in both engines at 400px (screenshots, en and zh).
Run (mote, at the pushed head of this commit and the two after it,
bae625cdf on origin/main 8a8079680):
- node --test redact-words-import, i18n-en-no-cjk, zcode-site,
zcode-site-layout, plugin-moved-signin, plugin-other-ways, zhipu-team,
gui-de, gui-ja, gui-zh-tw, i18n-keys, agent-leave-magpie,
agent-own-direct, checkin-now-account, checkin-account, plugin-checkin,
usage-checkin: 215 of 215 ok.
- go test ./internal/gui/...: ok but TestMainWindowCorners/macOS_26_SDK,
red the same at origin/main 8a8079680 (#3949, macOS 27 on mote);
TestCoreScriptBudget ok.
- The whole GUI suite was not run before the push: both test boxes were
running other sessions' GUI suites (one suite a machine). It runs after
the tag; reds are filed.
- Rebased on origin/main d02b8a000 (agent-own-direct, app.js, i18n.js
changed there) and run again at the pushed tree: TestCoreScriptBudget,
i18n-en-no-cjk, i18n-keys, gui-de, gui-ja, gui-zh-tw and
agent-own-direct, 37 of 37 ok.