From 1a864f156ee71c50e64bf9cfe7baf7ecd7a9b599 Mon Sep 17 00:00:00 2001 From: yetone Date: Mon, 2 Nov 2026 10:29:06 +0800 Subject: [PATCH] usage: a hidden card a menu bar cell showed offers Show in Overview, not Hide again MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Found while fixing yuu003348's report (dee1afa40). A card hidden from Usage › Overview still shows when a menu bar cell asks for it (usagePeek), and the "{n} hidden" line leaves it out while it shows. Its menu offered only "Hide from Overview" again, so from that card there was no way back. Now its menu has "Show in Overview" (unhides what of it is hidden) and no Hide items. Translated in zh, zh-TW, ja, de; gui-shell.md says it. Run (mote, node --test, chromium and webkit): - usage-hidden-way-back (now with the peek case, every language and width), usage-cards-hide, usage-count-client, i18n-keys: ok. - usage-agents-hide and tray-cell-click: red as at origin/main fdfce4d98 (#2276/#3414, #4790), same messages. Broken by hand: the new test on dee1afa40's page.js is 32 of 32 red, the peek card's menu reads ['Hide from Overview'], not ['Show in Overview']. Not tried: a real menu bar cell click in the real app. At the pushed head (rebased on d39358f1b, both commits): usage-hidden-way- back, usage-cards-hide, usage-count-client, i18n-keys and claude-quota-onboarding, 100 of 100 ok. --- docs/subsystems/gui-shell.md | 2 +- internal/gui/assets/plugins/usage/i18n.js | 4 ++++ internal/gui/assets/plugins/usage/page.js | 8 +++++-- .../gui/tests/usage-hidden-way-back.test.cjs | 23 +++++++++++++++---- 4 files changed, 29 insertions(+), 8 deletions(-) diff --git a/docs/subsystems/gui-shell.md b/docs/subsystems/gui-shell.md index 37b5cf2f2..40e9886aa 100644 --- a/docs/subsystems/gui-shell.md +++ b/docs/subsystems/gui-shell.md @@ -502,7 +502,7 @@ covers it in both engines, every language and a narrow window. - There are no native `