gui: Settings' update check interval says it is about updates, so "更新" finds it
jen_celeus on X (tweet 2121683828754530565): the row under Automatic
updates was named "Check every" (zh 检查间隔), so Settings' search for
"更新" didn't find it. It is now "Update check interval": zh 检查更新间隔,
zh-TW 檢查更新間隔, ja アップデートの確認間隔, de Update-Prüfintervall.
The saved updateEvery and its choices are unchanged.
settings-search now types the language's word for update (update, 更新,
更新, アップデート, update) and needs the interval's row shown under
About; with the old zh label it is red ("更新" finds the update check's
interval), checked by putting 检查间隔 back. update-auto finds the row by
its new name.
Run at 658af9118 (this stack on origin/main 9cd5f3652), mica via
mica-run (mote was over its load): node --test of the 45 files
i18n-*, gui-* (zh-TW, ja, de), update-*, about-*, settings-*, Chromium
and WebKit, every language: 897 tests, 885 pass, 12 fail. The 12 are in
settings-groups (#6597), settings-hints (#6107, #6073) and
settings-lines-wrap (#6353); the same 12 fail on origin/main 4aa64500f
alone (56 tests, 44 pass). i18n-keys, update-channel,
update-stable-newest, update-auto and settings-search pass in both
engines and every language.
Not tried: the real app; the whole 1,500-file GUI suite.
This commit is contained in:
@@ -20248,7 +20248,7 @@ function renderSettings() {
|
||||
// kept in place while off, dimmed, its height the same (a row or a line
|
||||
// taken away would shorten the page under the click), for when they are
|
||||
// turned on again
|
||||
row(t("Check every"), s.noAutoUpdate ? t("While automatic updates are on") : t("How often magpie looks for a newer version"), "",
|
||||
row(t("Update check interval"), s.noAutoUpdate ? t("While automatic updates are on") : t("How often magpie looks for a newer version"), "",
|
||||
segs(UPDATE_EVERY.map((m) => [m, m < 60 ? t("{n} min", { n: m }) : t("{n} h", { n: m / 60 })]), s.updateEvery || 360,
|
||||
(updateEvery) => savePrefs({ ...keep, updateEvery }))).classList.add("update-every-row", ...(s.noAutoUpdate ? ["off"] : []));
|
||||
// which versions an update offers (ssharpcc on X): every one as it comes
|
||||
|
||||
@@ -4073,7 +4073,7 @@ const I18N = {
|
||||
"Checks for a newer magpie by itself": "自动检查 magpie 新版本",
|
||||
"Every update is signed: its SHA-256 checksums carry an ed25519 signature, checked against a key built into magpie": "每个更新都带签名:它的 SHA-256 校验和附有 ed25519 签名,用内置在 magpie 里的公钥校验",
|
||||
"Its SLSA build attestation, signed through Sigstore, is checked too: it shows magpie's release workflow on GitHub built those exact files. An update that fails a check is not installed": "它的 SLSA 构建证明(经 Sigstore 签名)也会校验:证明这些文件正是 GitHub 上 magpie 的发布流程构建的。任何一项校验不通过,更新都不会安装",
|
||||
"Check every": "检查间隔",
|
||||
"Update check interval": "检查更新间隔",
|
||||
"Update channel": "更新渠道",
|
||||
"Every version": "尝鲜版",
|
||||
"Stable": "稳定版",
|
||||
@@ -9366,7 +9366,7 @@ const I18N = {
|
||||
"Checks for a newer magpie by itself": "自動檢查 magpie 新版本",
|
||||
"Every update is signed: its SHA-256 checksums carry an ed25519 signature, checked against a key built into magpie": "每個更新都帶簽章:它的 SHA-256 校驗和附有 ed25519 簽章,以內建在 magpie 中的公鑰驗證",
|
||||
"Its SLSA build attestation, signed through Sigstore, is checked too: it shows magpie's release workflow on GitHub built those exact files. An update that fails a check is not installed": "它的 SLSA 建置證明(經 Sigstore 簽章)也會驗證:證明這些檔案正是 GitHub 上 magpie 的發布流程建置的。任一項驗證未通過,更新都不會安裝",
|
||||
"Check every": "檢查間隔",
|
||||
"Update check interval": "檢查更新間隔",
|
||||
"Update channel": "更新管道",
|
||||
"Every version": "搶先版",
|
||||
"Stable": "穩定版",
|
||||
@@ -14674,7 +14674,7 @@ const I18N = {
|
||||
"Checks for a newer magpie by itself": "新しい magpie を自動で確認します",
|
||||
"Every update is signed: its SHA-256 checksums carry an ed25519 signature, checked against a key built into magpie": "すべてのアップデートは署名されています:SHA-256 チェックサムに ed25519 署名があり、magpie に組み込まれた鍵で検証します",
|
||||
"Its SLSA build attestation, signed through Sigstore, is checked too: it shows magpie's release workflow on GitHub built those exact files. An update that fails a check is not installed": "Sigstore で署名された SLSA ビルド証明も検証し、GitHub 上の magpie のリリースワークフローがそのファイルをビルドしたことを確かめます。どちらかの検証に失敗したアップデートはインストールされません",
|
||||
"Check every": "確認間隔",
|
||||
"Update check interval": "アップデートの確認間隔",
|
||||
"Update channel": "アップデートチャネル",
|
||||
"Every version": "先行版",
|
||||
"Stable": "安定版",
|
||||
@@ -19991,7 +19991,7 @@ const I18N = {
|
||||
"Checks for a newer magpie by itself": "Sucht selbst nach einer neueren magpie-Version",
|
||||
"Every update is signed: its SHA-256 checksums carry an ed25519 signature, checked against a key built into magpie": "Jedes Update ist signiert: Seine SHA-256-Prüfsummen tragen eine ed25519-Signatur, die gegen einen in magpie eingebauten Schlüssel geprüft wird",
|
||||
"Its SLSA build attestation, signed through Sigstore, is checked too: it shows magpie's release workflow on GitHub built those exact files. An update that fails a check is not installed": "Auch seine SLSA-Build-Attestierung, über Sigstore signiert, wird geprüft: Sie zeigt, dass genau diese Dateien vom Release-Workflow von magpie auf GitHub gebaut wurden. Ein Update, das eine Prüfung nicht besteht, wird nicht installiert",
|
||||
"Check every": "Prüfen alle",
|
||||
"Update check interval": "Update-Prüfintervall",
|
||||
"Update channel": "Update-Kanal",
|
||||
"Every version": "Jede Version",
|
||||
"Stable": "Stabil",
|
||||
|
||||
@@ -1047,7 +1047,7 @@ never NaN, which it said while the answer left `done` out. The click doesn't
|
||||
move the page. English and Chinese.
|
||||
|
||||
`update-auto.test.cjs` checks Settings → Automatic updates (#472): on, every
|
||||
6 h, with nothing set; Check every saves 30 min, 1 h, 6 h or 24 h; Off is
|
||||
6 h, with nothing set; Update check interval saves 30 min, 1 h, 6 h or 24 h; Off is
|
||||
saved and kept through a reload, the interval staying in place, dimmed, for
|
||||
when it is on again; the version row, not asked yet, says automatic updates
|
||||
are off and its Check asks the backend. No click moves the page. English and
|
||||
|
||||
@@ -137,6 +137,13 @@ for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium",
|
||||
assert.equal(await seen(page, "#trayUsagePick"), false);
|
||||
assert.equal(await seen(page, "#provPrefLinks .agent-pref-link"), false, "no provider's link for currency");
|
||||
|
||||
// the update check's interval says it is about updates (jen_celeus
|
||||
// on X: "更新" didn't find it)
|
||||
const upd = { en: "update", zh: "更新", "zh-TW": "更新", ja: "アップデート", de: "update" }[lang];
|
||||
await type(page, upd);
|
||||
assert(await seen(page, ".update-every-row"), `"${upd}" finds the update check's interval`);
|
||||
assert((await state(page)).parts.includes("about"), "under About");
|
||||
|
||||
// the warm-ups, in their providers' editors now: a link for each
|
||||
// provider that has one, named as the Add sheet names the
|
||||
// subscription (ChatGPT for Codex's, Claude for Claude Code's), and the
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Run with Node's test runner and Playwright on the module path; see README.md.
|
||||
// Settings → Automatic updates turns magpie's own update checks (and the
|
||||
// downloads they start) off and on, and Check every picks how often they
|
||||
// downloads they start) off and on, and Update check interval picks how often they
|
||||
// run: 30 min, 1 h, 6 h (the default, nothing set) or 24 h (#472). Off, the
|
||||
// interval stays, dimmed, kept for when it is on again, and the version
|
||||
// row, not asked yet, says so and offers Check, which asks the backend.
|
||||
@@ -21,10 +21,10 @@ const { watchSettingsReads, settingsDrawn, openPart } = require("./reader.cjs");
|
||||
const assets = path.resolve(__dirname, "../assets");
|
||||
|
||||
const words = {
|
||||
en: { auto: "Automatic updates", every: "Check every", off: "Off", on: "On", m30: "30 min", h6: "6 h", h24: "24 h",
|
||||
en: { auto: "Automatic updates", every: "Update check interval", off: "Off", on: "On", m30: "30 min", h6: "6 h", h24: "24 h",
|
||||
version: "Version", check: "Check", isOff: "Automatic updates are off", latest: "Up to date", whileOn: "While automatic updates are on", often: "How often magpie looks for a newer version",
|
||||
what: "Checks for a newer magpie by itself", signed: "ed25519", attested: "Sigstore" },
|
||||
zh: { auto: "自动更新", every: "检查间隔", off: "关闭", on: "开启", m30: "30 分钟", h6: "6 小时", h24: "24 小时",
|
||||
zh: { auto: "自动更新", every: "检查更新间隔", off: "关闭", on: "开启", m30: "30 分钟", h6: "6 小时", h24: "24 小时",
|
||||
version: "版本", check: "检查", isOff: "自动更新已关闭", latest: "已是最新", whileOn: "自动更新开启时生效", often: "magpie 多久检查一次新版本",
|
||||
what: "自动检查 magpie 新版本", signed: "ed25519", attested: "Sigstore" },
|
||||
};
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// Settings → Restart automatically (#2096): off by default; on, a downloaded
|
||||
// update is restarted into without cutting off an agent request. The switch
|
||||
// is saved as autoRestart and kept across a reload, with Automatic updates
|
||||
// and Check every left as they were. With automatic updates off it is kept,
|
||||
// and Update check interval left as they were. With automatic updates off it is kept,
|
||||
// dimmed, and says it works while they are on. No click moves the page, and
|
||||
// the row fits a narrow window. Every language, both engines, at 1100 and
|
||||
// 420 wide; no backend, the API is faked.
|
||||
|
||||
Reference in New Issue
Block a user