From 14ecf44ce445ea66e42e074764ed85a2111f4da3 Mon Sep 17 00:00:00 2001 From: Bowen Liang Date: Tue, 8 Sep 2026 19:35:41 +0800 Subject: [PATCH] refactor(client): drop the Context Trend card's subtitle hint MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The "✂ marks compaction/prune, Step/Turn switches granularity" caption restated controls that are already visible in the card's own title row, so it only crowded the header. The subtitle span now renders solely for the transient focus state ("Showing {cat} only"), and the unused trend.hint key leaves both dictionaries. --- src/client/components/contextView.tsx | 4 +++- src/client/i18n.ts | 2 -- tests/client/components/contextView.spec.ts | 5 +++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/client/components/contextView.tsx b/src/client/components/contextView.tsx index 19ff961..5dfd513 100644 --- a/src/client/components/contextView.tsx +++ b/src/client/components/contextView.tsx @@ -380,7 +380,9 @@ export function makeContextView(
{t('trend.title')} - {focusCat !== null ? t('trend.focus', { cat: kit.catLabel(focusCat) }) : t('trend.hint')} + {focusCat !== null + ? {t('trend.focus', { cat: kit.catLabel(focusCat) })} + : null}