From 0050b0a285450fcc7fa3110073372653178653d0 Mon Sep 17 00:00:00 2001 From: NaeemDosh Date: Wed, 19 Aug 2026 23:07:31 +0500 Subject: [PATCH] i18n: system-prompt desc, search-filter/model/files labels, hide notif badge for users MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - System prompt description ('Remove the base system prompt...') wrapped in BOTH places: AgentEditorPage (create) and AgentViewerModal (summary). - Search filter (ActionsPopover/SwitchList): Enable All / Disable All now use the existing chat.actions keys (added useTranslation hook). - Model selector: 'Search models...' placeholder -> model_selector.search_placeholder. - File picker: 'Recent Files' / 'All Recent Files' -> files.* keys. - Notification BADGE on the sidebar account button now also gated by canSeeNotifications — non-admins see no bell, no panel, and no count badge; admins keep the full unfiltered notification centre. Patch 66 files, applies clean to v4.5.2; apply green; missing-hook + duplicate-hook scans CLEAN. Build verification next. --- branding/i18n/end-user-i18n.patch | 106 +++++++++++++++++++++++++++--- branding/i18n/locales/de.json | 10 ++- branding/i18n/locales/en.json | 10 ++- 3 files changed, 116 insertions(+), 10 deletions(-) diff --git a/branding/i18n/end-user-i18n.patch b/branding/i18n/end-user-i18n.patch index a95f648..7e74096 100644 --- a/branding/i18n/end-user-i18n.patch +++ b/branding/i18n/end-user-i18n.patch @@ -12253,6 +12253,35 @@ index ec3163e2..e2b8dc10 100644 } /> )} +diff --git a/web/src/refresh-components/popovers/ActionsPopover/SwitchList.tsx b/web/src/refresh-components/popovers/ActionsPopover/SwitchList.tsx +index dbccb093..f22401e2 100644 +--- a/web/src/refresh-components/popovers/ActionsPopover/SwitchList.tsx ++++ b/web/src/refresh-components/popovers/ActionsPopover/SwitchList.tsx +@@ -1,6 +1,7 @@ + "use client"; + + import React, { useMemo, useState } from "react"; ++import { useTranslation } from "react-i18next"; + import { + Button, + InputTypeIn, +@@ -44,6 +45,7 @@ export default function SwitchList({ + onBack, + footer, + }: SwitchListProps) { ++ const { t } = useTranslation(); + const [searchTerm, setSearchTerm] = useState(""); + const filteredItems = useMemo(() => { + if (!searchTerm) return items; +@@ -85,7 +87,7 @@ export default function SwitchList({ + icon={allDisabled ? SvgPlug : SvgUnplug} + onClick={allDisabled ? onEnableAll : onDisableAll} + > +- {allDisabled ? "Enable All" : "Disable All"} ++ {allDisabled ? t("chat.actions.enable_all", "Enable All") : t("chat.actions.disable_all", "Disable All")} + , + + ...filteredItems.map((item) => { diff --git a/web/src/refresh-components/popovers/ActionsPopover/index.tsx b/web/src/refresh-components/popovers/ActionsPopover/index.tsx index fbfec909..b0ecc713 100644 --- a/web/src/refresh-components/popovers/ActionsPopover/index.tsx @@ -12523,7 +12552,7 @@ index fbfec909..b0ecc713 100644 diff --git a/web/src/refresh-components/popovers/FilePickerPopover.tsx b/web/src/refresh-components/popovers/FilePickerPopover.tsx -index ab8a8b33..2f588d05 100644 +index ab8a8b33..d56d4728 100644 --- a/web/src/refresh-components/popovers/FilePickerPopover.tsx +++ b/web/src/refresh-components/popovers/FilePickerPopover.tsx @@ -1,6 +1,7 @@ @@ -12557,6 +12586,24 @@ index ab8a8b33..2f588d05 100644 , // Separator +@@ -137,7 +139,7 @@ function FilePickerPopoverContents({ + hasFiles && ( +
+ +- Recent Files ++ {t("files.recent_files", "Recent Files")} + +
+ ), +@@ -159,7 +161,7 @@ function FilePickerPopoverContents({ + icon={SvgMoreHorizontal} + onClick={openRecentFilesModal} + > +- All Recent Files ++ {t("files.all_recent_files", "All Recent Files")} + + ), + ]} diff --git a/web/src/sections/agents/AgentsFilters.tsx b/web/src/sections/agents/AgentsFilters.tsx index a508c392..11ab9ea1 100644 --- a/web/src/sections/agents/AgentsFilters.tsx @@ -13097,7 +13144,7 @@ index 87a4ee38..93bd54fc 100644 diff --git a/web/src/sections/modals/AgentViewerModal.tsx b/web/src/sections/modals/AgentViewerModal.tsx -index cab609ce..a073b0b0 100644 +index cab609ce..e8c8c994 100644 --- a/web/src/sections/modals/AgentViewerModal.tsx +++ b/web/src/sections/modals/AgentViewerModal.tsx @@ -1,5 +1,7 @@ @@ -13174,15 +13221,17 @@ index cab609ce..a073b0b0 100644 description={agent.system_prompt} sizePreset="main-ui" variant="section" -@@ -366,7 +369,7 @@ export default function AgentViewerModal({ agent }: AgentViewerModalProps) { +@@ -366,8 +369,8 @@ export default function AgentViewerModal({ agent }: AgentViewerModalProps) { )} + diff --git a/web/src/sections/modals/CreateProjectModal.tsx b/web/src/sections/modals/CreateProjectModal.tsx index 257eafc9..af7fddfc 100644 --- a/web/src/sections/modals/CreateProjectModal.tsx @@ -13364,6 +13413,35 @@ index 66a7a6b1..bc7f79d6 100644 )}