diff --git a/branding/branding.config.json b/branding/branding.config.json index 1dfe3ab..97c53a9 100644 --- a/branding/branding.config.json +++ b/branding/branding.config.json @@ -85,7 +85,7 @@ }, "notifications": { - "$comment": "The notification bell content is generated by the backend (official onyx-backend image we do NOT rebuild), so it is rebranded at render time in the web image. `sanitize` rewrites any 'Onyx' in a notification's title/description to the brand name. `suppressTypes` hides whole notification categories that are upstream/EE product messaging irrelevant to a white-labeled CE deployment (e.g. the permissions-migration announcement and license/trial warnings). Operational notifications (reindex, approvals, connector errors, scheduled tasks) are kept. Empty the list to show everything (still sanitized).", + "$comment": "The notification bell content is generated by the backend (official onyx-backend image we do NOT rebuild), so it is rebranded at render time in the web image. `sanitize` rewrites any 'Onyx' in a notification's title/description to the brand name. `suppressTypes` hides whole notification categories that are upstream/EE product messaging irrelevant to a white-labeled CE deployment (e.g. the permissions-migration announcement and license/trial warnings). Operational notifications (reindex, approvals, connector errors, scheduled tasks) are kept. Empty the list to show everything (still sanitized). NOTE: the notification centre (bell + panel) is also hidden for non-admin end users via the i18n patch (AccountPopover → canSeeNotifications); admins/curators still see it. To show it for everyone, remove that gate from the patch.", "sanitize": true, "suppressTypes": [ "feature_announcement", diff --git a/branding/i18n/end-user-i18n.patch b/branding/i18n/end-user-i18n.patch index a293c10..847414e 100644 --- a/branding/i18n/end-user-i18n.patch +++ b/branding/i18n/end-user-i18n.patch @@ -11919,6 +11919,62 @@ index 2950afe4..e20a049c 100644 updateUserChatBackground, updateUserDefaultModel, updateUserDefaultAppMode, +diff --git a/web/src/refresh-components/buttons/BackButton.tsx b/web/src/refresh-components/buttons/BackButton.tsx +index b371985e..b92d41ec 100644 +--- a/web/src/refresh-components/buttons/BackButton.tsx ++++ b/web/src/refresh-components/buttons/BackButton.tsx +@@ -1,6 +1,7 @@ + "use client"; + + import { useRouter } from "next/navigation"; ++import { useTranslation } from "react-i18next"; + import type { Route } from "next"; + import { Button } from "@opal/components"; + import { SvgArrowLeft } from "@opal/icons"; +@@ -14,6 +15,7 @@ export default function BackButton({ + behaviorOverride, + routerOverride, + }: BackButtonProps) { ++ const { t } = useTranslation(); + const router = useRouter(); + + return ( +@@ -30,7 +32,7 @@ export default function BackButton({ + } + }} + > +- Back ++ {t("general.back", "Back")} + + ); + } +diff --git a/web/src/refresh-components/inputs/InputDatePicker.tsx b/web/src/refresh-components/inputs/InputDatePicker.tsx +index bb327f83..dd5cb118 100644 +--- a/web/src/refresh-components/inputs/InputDatePicker.tsx ++++ b/web/src/refresh-components/inputs/InputDatePicker.tsx +@@ -1,4 +1,5 @@ + "use client"; ++import { useTranslation } from "react-i18next"; + + import { Button } from "@opal/components"; + import { isAfterDate, normalizeDate } from "@/lib/dateUtils"; +@@ -38,6 +39,7 @@ export default function InputDatePicker({ + disabled = false, + maxDate, + }: InputDatePickerProps) { ++ const { t } = useTranslation(); + const validStartYear = Math.max(startYear, 1970); + const normalizedMaxDate = useMemo( + () => (maxDate ? normalizeDate(maxDate) : undefined), +@@ -72,7 +74,7 @@ export default function InputDatePicker({ + + + + + diff --git a/web/src/refresh-components/modals/MemoriesModal.tsx b/web/src/refresh-components/modals/MemoriesModal.tsx index 8def9724..6ee00137 100644 --- a/web/src/refresh-components/modals/MemoriesModal.tsx @@ -12836,6 +12892,73 @@ index adc33aa4..b372e463 100644 } } }} +diff --git a/web/src/sections/knowledge/AgentKnowledgePane.tsx b/web/src/sections/knowledge/AgentKnowledgePane.tsx +index c7c605e3..5d6ab668 100644 +--- a/web/src/sections/knowledge/AgentKnowledgePane.tsx ++++ b/web/src/sections/knowledge/AgentKnowledgePane.tsx +@@ -1,4 +1,5 @@ + "use client"; ++import { useTranslation } from "react-i18next"; + + import React, { + useCallback, +@@ -84,6 +85,7 @@ export default function AgentKnowledgePane({ + initialHierarchyNodes, + vectorDbEnabled = true, + }: AgentKnowledgePaneProps) { ++ const { t } = useTranslation(); + const [view, setView] = useState("main"); + const [activeSource, setActiveSource] = useState(); + +@@ -518,8 +520,8 @@ export default function AgentKnowledgePane({ + return ( + + +@@ -527,8 +529,8 @@ export default function AgentKnowledgePane({ + + + + + +- Add documents or connected sources to use for this agent. ++ {t("agent_editor.knowledge_empty", "Add documents or connected sources to use for this agent.")} + + + -@@ -1414,8 +1426,8 @@ export default function AgentEditorPage({ +@@ -1414,13 +1426,13 @@ export default function AgentEditorPage({ + } @@ -1429,9 +1441,9 @@ export default function AgentEditorPage({ -@@ -1496,14 +1508,14 @@ export default function AgentEditorPage({ +@@ -1496,15 +1508,15 @@ export default function AgentEditorPage({ height="auto" > -@@ -1519,7 +1531,7 @@ export default function AgentEditorPage({ +