From 073acaa05381dc5499816e9633c0f8e31113c70c Mon Sep 17 00:00:00 2001 From: RockChinQ Date: Sat, 6 Jun 2026 11:33:46 -0400 Subject: [PATCH] feat(plugin-market): move extension count into search box placeholder MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Mirror the langbot-space marketplace change: drop the '共 xxx 个扩展' stats line below the tag filter, surface the count in the search placeholder ('搜索 xxx 个扩展、能力或场景...') when no query is active, and show the total at the bottom via allLoadedCount when searching. Adds searchPlaceholderCount + allLoadedCount to all 8 locales. --- .../plugin-market/PluginMarketComponent.tsx | 19 ++++++++----------- web/src/i18n/locales/en-US.ts | 3 +++ web/src/i18n/locales/es-ES.ts | 3 +++ web/src/i18n/locales/ja-JP.ts | 3 +++ web/src/i18n/locales/ru-RU.ts | 3 +++ web/src/i18n/locales/th-TH.ts | 3 +++ web/src/i18n/locales/vi-VN.ts | 3 +++ web/src/i18n/locales/zh-Hans.ts | 2 ++ web/src/i18n/locales/zh-Hant.ts | 2 ++ 9 files changed, 30 insertions(+), 11 deletions(-) diff --git a/web/src/app/home/plugins/components/plugin-market/PluginMarketComponent.tsx b/web/src/app/home/plugins/components/plugin-market/PluginMarketComponent.tsx index 03c7b49d..1f7980b2 100644 --- a/web/src/app/home/plugins/components/plugin-market/PluginMarketComponent.tsx +++ b/web/src/app/home/plugins/components/plugin-market/PluginMarketComponent.tsx @@ -632,7 +632,11 @@ function MarketPageContent({
0 + ? t('market.searchPlaceholderCount', { count: total }) + : t('market.searchPlaceholder') + } value={searchQuery} onChange={(e) => handleSearchInputChange(e.target.value)} onCompositionStart={() => { @@ -816,15 +820,6 @@ function MarketPageContent({ ); })}
- - {/* 搜索结果统计 */} - {total > 0 && ( -
- {searchQuery - ? t('market.searchResults', { count: total }) - : t('market.totalPlugins', { count: total })} -
- )} {/* Scrollable extension list section */} @@ -884,7 +879,9 @@ function MarketPageContent({ {/* No more data hint */} {!hasMore && plugins.length > 0 && (
- {t('market.allLoaded')} + {searchQuery + ? t('market.allLoadedCount', { count: total }) + : t('market.allLoaded')} {' · '}