diff --git a/docs/subsystems/gui-shell.md b/docs/subsystems/gui-shell.md
index a35173395..e4fc70902 100644
--- a/docs/subsystems/gui-shell.md
+++ b/docs/subsystems/gui-shell.md
@@ -894,26 +894,34 @@ See `TestGatewayPauseAndResume`, `TestGatewayPauseRollsBack`,
`TestGatewayResumesOnWire`, `TestGatewayPauseFileUnreadable`,
`TestTrayMenuLabels` and `gateway-pause.test.cjs`.
-### The Update pill waits until it is news
+### The Update pill and its 3-day ×
-A release comes every few minutes, so a newer one is nearly always out and
-downloaded, and a pill lit for each was never out (certhon520, jkd6688,
-Yuyuaneth and milianxinqi on X, 11-12). The header's Update pill (window and
-tray panel alike) lights only when `/api/update` has no `quiet`:
-this version has been behind for `update.Quiet` (3 days, the Stable
-channel's soak), counted from the first newer version seen and kept across
-restarts in `update-behind.json` (`update.Behind`, for the version running,
-so an update starts it over), or an urgent release is out (a line starting
-"**Urgent release:**" in the latest's notes, or in any release between this
-one and it, `urgentBetween`). An urgent release lights the pill at once and
-a dismissal does not hide it. Dismissing with the × hides that version and
-starts the quiet over (`quietAgain`), so the pill is not back with the next
-release. The pill waiting changes nothing else: Settings › Version, the
-tray's Restart to update, quitting and Restart automatically work at any
-time. Plugin updates have their own dot on Plugins, which lights only for
-a plugin that does not update by itself. See `TestPillWaitsForTheQuiet`,
-`TestUrgentLightsThePillAtOnce`, `TestDismissalStartsTheQuietOver`,
-`TestUpdateQuietUntilBehindAWhile` and `update-quiet.test.cjs`.
+The header's Update pill (window and tray panel alike) lights as soon as a
+newer version is downloaded and waiting (`ready`), found with downloads off
+(`found`) or out where magpie can't download it (`available`), unless
+`/api/update` says `quiet`. A release comes every few minutes, so the ×
+(or a right-click) that hid the pill only until the next version had it
+back within minutes (certhon520, jkd6688, Yuyuaneth and milianxinqi on X,
+11-12): it now also hushes it for `update.Quiet` (3 days, the Stable
+channel's soak) across the releases out meanwhile (`quietAgain`,
+`update.QuietAgain`), kept across restarts in `update-behind.json`
+(`update.Behind.Hushed`, for the version running, so an update starts
+afresh). Settings › Update button says "Hidden for 3 days" while it holds,
+with Show again (`unhush`, `update.Unhush`, an empty `update-skip`).
+Nothing else holds the pill. From 0.1.3879 to 0.1.4179 a quiet was also
+counted from the first newer version seen; with a release every few
+minutes it started over on each update, so a downloaded update waited
+with no pill for days (visamzh and normalcoder_ on X, 11-14). Those
+versions' notes keep that time as `since`, which is never read as a
+dismissal. An urgent release (a line starting "**Urgent release:**" in the
+latest's notes, or in any release between this one and it,
+`urgentBetween`) lights the pill through a dismissal. Settings › Version,
+the tray's Restart to update, quitting and Restart automatically work at
+any time. Plugin updates have their own dot on Plugins, which lights only
+for a plugin that does not update by itself. See
+`TestPillLightsWhenANewerVersionIsOut`, `TestUrgentLightsThePillAtOnce`,
+`TestDismissalHoldsForTheQuiet`, `TestUpdateQuietUntilBehindAWhile`,
+`update-quiet.test.cjs` and `update-hide.test.cjs`.
### A restart to update hands the gateway over
diff --git a/internal/gui/api.go b/internal/gui/api.go
index 7780043f2..a4dfadfdf 100644
--- a/internal/gui/api.go
+++ b/internal/gui/api.go
@@ -1890,6 +1890,8 @@ func Handler(w Windows, gw *gateway.Server) http.Handler {
s.UpdateSkip = strings.TrimSpace(in.Version)
if s.UpdateSkip != "" {
updates.quietAgain() // a dismissal holds for the quiet, not only the next release
+ } else {
+ updates.unhush() // Show again
}
if err := settings.Save(s); err != nil {
fail(rw, err)
diff --git a/internal/gui/assets/app.js b/internal/gui/assets/app.js
index b424f9e9f..d6d53100a 100644
--- a/internal/gui/assets/app.js
+++ b/internal/gui/assets/app.js
@@ -4414,9 +4414,9 @@ for (const k of "pointerdown keydown input wheel".split(" ")) addEventListener(k
}, true);
// renderUpdateBadge shows the header's Update pill once a newer magpie is
-// downloaded or out and has been for a while (u.quiet: releases come every
-// few minutes, so a pill lit for each is never out; an urgent one lights it
-// at once); Settings or its × keeps it away.
+// downloaded or out; Settings or its × keeps it away (u.quiet: the × holds
+// for 3 days, not only until the next release, minutes later; an urgent
+// release lights it through that).
async function renderUpdateBadge() {
const b = $("#update"), label = b.querySelector("span");
@@ -4434,7 +4434,7 @@ async function renderUpdateBadge() {
if (b.hidden !== !on) b.hidden = !on;
if (!on) return;
const hide = $("#updateHide");
- hide.setAttribute("aria-label", t("Hide until the next version"));
+ hide.setAttribute("aria-label", t("Hide for 3 days"));
hide.onclick = b.oncontextmenu = (e) => {
e.preventDefault();
skipUpdate(u.latest);
@@ -4532,7 +4532,7 @@ async function skipUpdate(v) {
const ns = await writingPrefs(api("settings/update-skip", { version: v }));
prefs = ns;
if (state) state.settings = ns;
- if (v) status(t("Update hidden until the next version; Settings still has it"), "ok", 3000);
+ if (v) status(t("Update hidden for 3 days; Settings still has it"), "ok", 3000);
} catch (e) {
statusErr(e);
}
@@ -20231,10 +20231,11 @@ function renderSettings() {
const pill = row(t("Update button"), t("Shows in the header when a newer magpie is out"),
"", segs([["off", t("Off")], ["on", t("On")]], s.noUpdatePill ? "off" : "on", (v) => savePrefs({ ...keep, noUpdatePill: v === "off" }).then(renderUpdateBadge)));
pill.classList.add("update-pill-row");
- if (s.updateSkip && !s.noUpdatePill) {
+ // hidden by its × for 3 days, across the releases out meanwhile (u.quiet)
+ if (!s.noUpdatePill) {
api(updatePath("update")).then((u) => {
- if (!pill.isConnected || !u || u.latest !== s.updateSkip) return;
- pill.querySelector(".sub").textContent = t("Hidden for {v} until a newer version is out", { v: u.latest });
+ if (!pill.isConnected || !u?.quiet) return;
+ pill.querySelector(".sub").textContent = t("Hidden for 3 days");
const back = el("button", "text", t("Show again"));
back.onclick = () => skipUpdate("");
pill.querySelector(".val").prepend(back);
diff --git a/internal/gui/assets/i18n.js b/internal/gui/assets/i18n.js
index ba081462a..72c9a6931 100644
--- a/internal/gui/assets/i18n.js
+++ b/internal/gui/assets/i18n.js
@@ -4034,14 +4034,15 @@ const I18N = {
"Update": "更新",
"Update failed": "更新失败",
"Hide until the next version": "隐藏,直到下一个版本",
- "Update hidden until the next version; Settings still has it": "已隐藏更新按钮,下一个版本发布时再显示;设置里仍可更新",
+ "Hide for 3 days": "隐藏 3 天",
+ "Update hidden for 3 days; Settings still has it": "已隐藏更新按钮 3 天;设置里仍可更新",
"The `magpie` command is a copy": "终端里的 `magpie` 命令是一份拷贝",
"{file} was damaged (the computer likely stopped mid-write), so magpie restored it from its backup of {time}. A change made after that may be missing; the damaged file is kept beside it.": "{file} 已损坏(多半是电脑在写入途中停机),magpie 已从 {time} 的备份恢复。之后的改动可能缺失;损坏的文件保留在旁边。",
"{file} was damaged (the computer likely stopped mid-write), so magpie restored it from its backup. A change made after that may be missing; the damaged file is kept beside it.": "{file} 已损坏(多半是电脑在写入途中停机),magpie 已从备份恢复。之后的改动可能缺失;损坏的文件保留在旁边。",
"The `magpie` command at {path} is a copied file, not the installer's link to the app: it won't follow the app's updates, and an old copy can break what a new one fixed. Re-run the installer, or link it by hand.": "`magpie` 命令({path})是拷贝的文件,不是安装脚本建立的应用链接:不会随应用更新,旧拷贝可能使新版的修复失效。请重新运行安装脚本,或手动建立链接。",
"Update button": "更新按钮",
"Shows in the header when a newer magpie is out": "magpie 有新版本时显示在顶栏",
- "Hidden for {v} until a newer version is out": "{v} 已隐藏,更新的版本发布时再显示",
+ "Hidden for 3 days": "已隐藏 3 天",
"Show again": "重新显示",
"Automatic updates": "自动更新",
"Checks for a newer magpie by itself": "自动检查 magpie 新版本",
@@ -9298,14 +9299,15 @@ const I18N = {
"Update": "更新",
"Update failed": "更新失敗",
"Hide until the next version": "隱藏,直到下一個版本",
- "Update hidden until the next version; Settings still has it": "已隱藏更新按鈕,下一個版本釋出時再顯示;設定裡仍可更新",
+ "Hide for 3 days": "隱藏 3 天",
+ "Update hidden for 3 days; Settings still has it": "已隱藏更新按鈕 3 天;設定裡仍可更新",
"The `magpie` command is a copy": "終端機裡的 `magpie` 命令是一份複製",
"{file} was damaged (the computer likely stopped mid-write), so magpie restored it from its backup of {time}. A change made after that may be missing; the damaged file is kept beside it.": "{file} 已損壞(多半是電腦在寫入途中停機),magpie 已從 {time} 的備份還原。之後的變更可能缺失;損壞的檔案保留在旁邊。",
"{file} was damaged (the computer likely stopped mid-write), so magpie restored it from its backup. A change made after that may be missing; the damaged file is kept beside it.": "{file} 已損壞(多半是電腦在寫入途中停機),magpie 已從備份還原。之後的變更可能缺失;損壞的檔案保留在旁邊。",
"The `magpie` command at {path} is a copied file, not the installer's link to the app: it won't follow the app's updates, and an old copy can break what a new one fixed. Re-run the installer, or link it by hand.": "`magpie` 命令({path})是複製的檔案,不是安裝指令碼建立的應用連結:不會隨應用更新,舊複製可能使新版的修復失效。請重新執行安裝指令碼,或手動建立連結。",
"Update button": "更新按鈕",
"Shows in the header when a newer magpie is out": "magpie 有新版本時顯示在頂欄",
- "Hidden for {v} until a newer version is out": "{v} 已隱藏,更新的版本釋出時再顯示",
+ "Hidden for 3 days": "已隱藏 3 天",
"Show again": "重新顯示",
"Automatic updates": "自動更新",
"Checks for a newer magpie by itself": "自動檢查 magpie 新版本",
@@ -14577,14 +14579,15 @@ const I18N = {
"Update": "アップデート",
"Update failed": "アップデートに失敗しました",
"Hide until the next version": "次のバージョンまで非表示",
- "Update hidden until the next version; Settings still has it": "次のバージョンまでアップデートを非表示にしました。設定からは引き続きアップデートできます",
+ "Hide for 3 days": "3 日間非表示",
+ "Update hidden for 3 days; Settings still has it": "アップデートを 3 日間非表示にしました。設定からは引き続きアップデートできます",
"The `magpie` command is a copy": "`magpie` コマンドはコピーです",
"{file} was damaged (the computer likely stopped mid-write), so magpie restored it from its backup of {time}. A change made after that may be missing; the damaged file is kept beside it.": "{file} が破損していました(書き込み中にコンピューターが停止した可能性があります)。magpie は {time} のバックアップから復元しました。それ以降の変更は失われている可能性があります。破損したファイルはそのそばに残してあります。",
"{file} was damaged (the computer likely stopped mid-write), so magpie restored it from its backup. A change made after that may be missing; the damaged file is kept beside it.": "{file} が破損していました(書き込み中にコンピューターが停止した可能性があります)。magpie はバックアップから復元しました。それ以降の変更は失われている可能性があります。破損したファイルはそのそばに残してあります。",
"The `magpie` command at {path} is a copied file, not the installer's link to the app: it won't follow the app's updates, and an old copy can break what a new one fixed. Re-run the installer, or link it by hand.": "{path} にある `magpie` コマンドはコピーされたファイルで、インストーラーが作成したアプリへのリンクではありません。アプリのアップデートに追従せず、古いコピーは新しいバージョンで修正された内容を壊すことがあります。インストーラーを再実行するか、手動でリンクを作成してください。",
"Update button": "アップデートボタン",
"Shows in the header when a newer magpie is out": "新しい magpie が出たときにヘッダーに表示します",
- "Hidden for {v} until a newer version is out": "新しいバージョンが出るまで {v} を非表示にしています",
+ "Hidden for 3 days": "3 日間非表示にしています",
"Show again": "再表示",
"Automatic updates": "自動アップデート",
"Checks for a newer magpie by itself": "新しい magpie を自動で確認します",
@@ -19865,14 +19868,15 @@ const I18N = {
"Update": "Aktualisieren",
"Update failed": "Update fehlgeschlagen",
"Hide until the next version": "Bis zur nächsten Version ausblenden",
- "Update hidden until the next version; Settings still has it": "Update bis zur nächsten Version ausgeblendet; in den Einstellungen weiterhin verfügbar",
+ "Hide for 3 days": "3 Tage ausblenden",
+ "Update hidden for 3 days; Settings still has it": "Update für 3 Tage ausgeblendet; in den Einstellungen weiterhin verfügbar",
"The `magpie` command is a copy": "Der Befehl `magpie` ist eine Kopie",
"{file} was damaged (the computer likely stopped mid-write), so magpie restored it from its backup of {time}. A change made after that may be missing; the damaged file is kept beside it.": "{file} war beschädigt (der Computer ist wohl mitten im Schreiben ausgefallen), daher hat magpie die Datei aus ihrer Sicherung vom {time} wiederhergestellt. Spätere Änderungen fehlen eventuell; die beschädigte Datei liegt daneben.",
"{file} was damaged (the computer likely stopped mid-write), so magpie restored it from its backup. A change made after that may be missing; the damaged file is kept beside it.": "{file} war beschädigt (der Computer ist wohl mitten im Schreiben ausgefallen), daher hat magpie die Datei aus ihrer Sicherung wiederhergestellt. Spätere Änderungen fehlen eventuell; die beschädigte Datei liegt daneben.",
"The `magpie` command at {path} is a copied file, not the installer's link to the app: it won't follow the app's updates, and an old copy can break what a new one fixed. Re-run the installer, or link it by hand.": "Der Befehl `magpie` unter {path} ist eine kopierte Datei, nicht die Verknüpfung des Installers zur App: Er folgt den Updates der App nicht, und eine alte Kopie kann kaputt machen, was eine neue behoben hat. Führen Sie den Installer erneut aus oder verknüpfen Sie ihn von Hand.",
"Update button": "Update-Button",
"Shows in the header when a newer magpie is out": "Erscheint in der Kopfzeile, wenn eine neuere magpie-Version verfügbar ist",
- "Hidden for {v} until a newer version is out": "Für {v} ausgeblendet, bis eine neuere Version erscheint",
+ "Hidden for 3 days": "Für 3 Tage ausgeblendet",
"Show again": "Wieder anzeigen",
"Automatic updates": "Automatische Updates",
"Checks for a newer magpie by itself": "Sucht selbst nach einer neueren magpie-Version",
diff --git a/internal/gui/assets/index.html b/internal/gui/assets/index.html
index 09c0d4365..53cc5b052 100644
--- a/internal/gui/assets/index.html
+++ b/internal/gui/assets/index.html
@@ -92,7 +92,7 @@
Update
-