i18n: fix tool names, hide notifications for non-admins, full agent-creation German
Client feedback round:
- TOOLS bug: getLocalizedToolLabel calls t("tools.<x>") with no fallback and the
tools.* keys were missing, so the UI showed raw keys (tools.web_search). Added
tools.* to de/en (Websuche, Interne Suche, Bildgenerierung, ...).
- NOTIFICATIONS: hidden for non-admin end users (bell + panel) via AccountPopover
canSeeNotifications gate (admin/curator/global_curator still see it, English).
Client doesn't use it for users. Documented in branding.config.json.
- CREATE AGENT: wrapped the remaining strings across AgentEditorPage, AgentKnowledgePane,
KnowledgeMainContent, InputDatePicker (Select Date), BackButton (Back). ~30 labels/
descriptions/placeholders: Knowledge, Use Knowledge, instructions/starters/reminders
descriptions, Share, Feature/private/unlisted notes, labels, Create/Edit Agent, Cancel.
Added agent_editor.* + general.back/select_date German keys.
Patch regenerated (61 files, git add -A), applies cleanly to pristine v4.5.2; apply green;
only de/en; all keys resolve; no conflict markers. Image build verification in progress.
This commit is contained in:
parent
468cd93ea7
commit
33c549bfca
4 changed files with 401 additions and 47 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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")}
|
||||
</Button>
|
||||
);
|
||||
}
|
||||
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({
|
||||
<Popover open={open} onOpenChange={setOpen}>
|
||||
<Popover.Trigger asChild id={name} name={name}>
|
||||
<Button disabled={disabled} prominence="secondary" icon={SvgCalendar}>
|
||||
- {selectedDate ? selectedDate.toLocaleDateString() : "Select Date"}
|
||||
+ {selectedDate ? selectedDate.toLocaleDateString() : t("general.select_date", "Select Date")}
|
||||
</Button>
|
||||
</Popover.Trigger>
|
||||
<Popover.Content>
|
||||
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<KnowledgeView>("main");
|
||||
const [activeSource, setActiveSource] = useState<ValidSources | undefined>();
|
||||
|
||||
@@ -518,8 +520,8 @@ export default function AgentKnowledgePane({
|
||||
return (
|
||||
<GeneralLayouts.Section gap={0.5} alignItems="stretch" height="auto">
|
||||
<Content
|
||||
- title="Knowledge"
|
||||
- description="Add specific connectors and documents for this agent to use to inform its responses."
|
||||
+ title={t("agent_editor.knowledge", "Knowledge")}
|
||||
+ description={t("agent_editor.knowledge_desc", "Add specific connectors and documents for this agent to use to inform its responses.")}
|
||||
sizePreset="main-content"
|
||||
variant="section"
|
||||
/>
|
||||
@@ -527,8 +529,8 @@ export default function AgentKnowledgePane({
|
||||
<Card>
|
||||
<GeneralLayouts.Section gap={0.5} alignItems="stretch" height="auto">
|
||||
<InputHorizontal
|
||||
- title="Use Knowledge"
|
||||
- description="Let this agent reference these documents to inform its responses."
|
||||
+ title={t("agent_editor.use_knowledge", "Use Knowledge")}
|
||||
+ description={t("agent_editor.use_knowledge_desc", "Let this agent reference these documents to inform its responses.")}
|
||||
withLabel
|
||||
>
|
||||
<Switch
|
||||
diff --git a/web/src/sections/knowledge/agent-knowledge/KnowledgeMainContent.tsx b/web/src/sections/knowledge/agent-knowledge/KnowledgeMainContent.tsx
|
||||
index dc184324..5730f369 100644
|
||||
--- a/web/src/sections/knowledge/agent-knowledge/KnowledgeMainContent.tsx
|
||||
+++ b/web/src/sections/knowledge/agent-knowledge/KnowledgeMainContent.tsx
|
||||
@@ -1,4 +1,5 @@
|
||||
"use client";
|
||||
+import { useTranslation } from "react-i18next";
|
||||
|
||||
import { memo } from "react";
|
||||
import * as GeneralLayouts from "@/layouts/general-layouts";
|
||||
@@ -28,6 +29,7 @@ export const KnowledgeMainContent = memo(function KnowledgeMainContent({
|
||||
onAddKnowledge,
|
||||
onViewEdit,
|
||||
}: KnowledgeMainContentProps) {
|
||||
+ const { t } = useTranslation();
|
||||
if (!hasAnyKnowledge) {
|
||||
return (
|
||||
<GeneralLayouts.Section
|
||||
@@ -37,7 +39,7 @@ export const KnowledgeMainContent = memo(function KnowledgeMainContent({
|
||||
height="auto"
|
||||
>
|
||||
<Text text03 secondaryBody>
|
||||
- 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.")}
|
||||
</Text>
|
||||
<Button
|
||||
icon={SvgPlusCircle}
|
||||
diff --git a/web/src/sections/modals/AddInstructionModal.tsx b/web/src/sections/modals/AddInstructionModal.tsx
|
||||
index 87a4ee38..93bd54fc 100644
|
||||
--- a/web/src/sections/modals/AddInstructionModal.tsx
|
||||
|
|
@ -13569,7 +13692,7 @@ index b33fcf06..6ec891a0 100644
|
|||
onClick={() => {
|
||||
setTargetMemoryId(null);
|
||||
diff --git a/web/src/sections/sidebar/AccountPopover.tsx b/web/src/sections/sidebar/AccountPopover.tsx
|
||||
index 317781d7..0c76859c 100644
|
||||
index 317781d7..e66ee79a 100644
|
||||
--- a/web/src/sections/sidebar/AccountPopover.tsx
|
||||
+++ b/web/src/sections/sidebar/AccountPopover.tsx
|
||||
@@ -1,6 +1,7 @@
|
||||
|
|
@ -13580,7 +13703,32 @@ index 317781d7..0c76859c 100644
|
|||
import { LOGOUT_DISABLED } from "@/lib/constants";
|
||||
import { preload } from "swr";
|
||||
import { errorHandlingFetcher } from "@/lib/fetcher";
|
||||
@@ -44,6 +45,7 @@ function SettingsPopover({
|
||||
@@ -11,6 +12,7 @@ import {
|
||||
logout,
|
||||
} from "@/lib/users/svc";
|
||||
import { useUser } from "@/providers/UserProvider";
|
||||
+import { UserRole } from "@/lib/types";
|
||||
import { Popover, PopoverMenu } from "@opal/components";
|
||||
import { usePathname, useRouter, useSearchParams } from "next/navigation";
|
||||
import { SidebarTab, LineItemButton } from "@opal/components";
|
||||
@@ -33,6 +35,16 @@ import { useNotificationSummary } from "@/hooks/useNotifications";
|
||||
import { SvgOnyxLogo } from "@opal/logos";
|
||||
import { markdown } from "@opal/utils";
|
||||
|
||||
+// Whitelabel: the notification centre is admin-facing only. Hide it for
|
||||
+// non-admin end users (they never use it); admins still see it (in English).
|
||||
+function canSeeNotifications(role: UserRole | undefined): boolean {
|
||||
+ return (
|
||||
+ role === UserRole.ADMIN ||
|
||||
+ role === UserRole.CURATOR ||
|
||||
+ role === UserRole.GLOBAL_CURATOR
|
||||
+ );
|
||||
+}
|
||||
+
|
||||
interface SettingsPopoverProps {
|
||||
onUserSettingsClick: () => void;
|
||||
onOpenNotifications: () => void;
|
||||
@@ -44,6 +56,7 @@ function SettingsPopover({
|
||||
onOpenNotifications,
|
||||
undismissedCount,
|
||||
}: SettingsPopoverProps) {
|
||||
|
|
@ -13588,7 +13736,7 @@ index 317781d7..0c76859c 100644
|
|||
const { user } = useUser();
|
||||
const settings = useSettings();
|
||||
const enterpriseSettings = settings.enterprise;
|
||||
@@ -67,7 +69,7 @@ function SettingsPopover({
|
||||
@@ -67,7 +80,7 @@ function SettingsPopover({
|
||||
logout()
|
||||
.then((response) => {
|
||||
if (!response?.ok) {
|
||||
|
|
@ -13597,7 +13745,7 @@ index 317781d7..0c76859c 100644
|
|||
return;
|
||||
}
|
||||
|
||||
@@ -81,7 +83,7 @@ function SettingsPopover({
|
||||
@@ -81,7 +94,7 @@ function SettingsPopover({
|
||||
})
|
||||
|
||||
.catch(() => {
|
||||
|
|
@ -13606,7 +13754,7 @@ index 317781d7..0c76859c 100644
|
|||
});
|
||||
};
|
||||
|
||||
@@ -98,7 +100,7 @@ function SettingsPopover({
|
||||
@@ -98,32 +111,34 @@ function SettingsPopover({
|
||||
variant="section"
|
||||
rounding="sm"
|
||||
icon={SvgSliders}
|
||||
|
|
@ -13615,16 +13763,40 @@ index 317781d7..0c76859c 100644
|
|||
href="/app/settings"
|
||||
onClick={onUserSettingsClick}
|
||||
/>
|
||||
@@ -109,7 +111,7 @@ function SettingsPopover({
|
||||
variant="section"
|
||||
rounding="sm"
|
||||
icon={SvgBell}
|
||||
</div>,
|
||||
- <LineItemButton
|
||||
- key="notifications"
|
||||
- sizePreset="main-ui"
|
||||
- variant="section"
|
||||
- rounding="sm"
|
||||
- icon={SvgBell}
|
||||
- title="Notifications"
|
||||
- onClick={onOpenNotifications}
|
||||
- rightChildren={
|
||||
- undismissedCount ? (
|
||||
- <SvgNotificationBubble count={undismissedCount} />
|
||||
- ) : undefined
|
||||
- }
|
||||
- />,
|
||||
+ canSeeNotifications(user?.role) ? (
|
||||
+ <LineItemButton
|
||||
+ key="notifications"
|
||||
+ sizePreset="main-ui"
|
||||
+ variant="section"
|
||||
+ rounding="sm"
|
||||
+ icon={SvgBell}
|
||||
+ title={t("account.notifications")}
|
||||
onClick={onOpenNotifications}
|
||||
rightChildren={
|
||||
undismissedCount ? (
|
||||
@@ -123,7 +125,7 @@ function SettingsPopover({
|
||||
+ onClick={onOpenNotifications}
|
||||
+ rightChildren={
|
||||
+ undismissedCount ? (
|
||||
+ <SvgNotificationBubble count={undismissedCount} />
|
||||
+ ) : undefined
|
||||
+ }
|
||||
+ />
|
||||
+ ) : null,
|
||||
<LineItemButton
|
||||
key="help-faq"
|
||||
sizePreset="main-ui"
|
||||
variant="section"
|
||||
rounding="sm"
|
||||
icon={SvgHelpCircle}
|
||||
|
|
@ -13633,7 +13805,7 @@ index 317781d7..0c76859c 100644
|
|||
href="https://docs.onyx.app"
|
||||
target="_blank"
|
||||
/>,
|
||||
@@ -149,7 +151,7 @@ function SettingsPopover({
|
||||
@@ -149,7 +164,7 @@ function SettingsPopover({
|
||||
variant="section"
|
||||
rounding="sm"
|
||||
icon={SvgUser}
|
||||
|
|
@ -13642,7 +13814,7 @@ index 317781d7..0c76859c 100644
|
|||
onClick={handleLogin}
|
||||
/>
|
||||
),
|
||||
@@ -161,7 +163,7 @@ function SettingsPopover({
|
||||
@@ -161,7 +176,7 @@ function SettingsPopover({
|
||||
color="danger"
|
||||
rounding="sm"
|
||||
icon={SvgLogOut}
|
||||
|
|
@ -13651,6 +13823,15 @@ index 317781d7..0c76859c 100644
|
|||
onClick={handleLogout}
|
||||
/>
|
||||
),
|
||||
@@ -260,7 +275,7 @@ export default function AccountPopover({
|
||||
undismissedCount={undismissedCount}
|
||||
/>
|
||||
)}
|
||||
- {popupState === "Notifications" && (
|
||||
+ {popupState === "Notifications" && canSeeNotifications(user?.role) && (
|
||||
<NotificationsPopover
|
||||
onClose={() => setPopupState("Settings")}
|
||||
onNavigate={() => setPopupState(undefined)}
|
||||
diff --git a/web/src/sections/sidebar/AppSidebar.tsx b/web/src/sections/sidebar/AppSidebar.tsx
|
||||
index ba15f518..67dbc2db 100644
|
||||
--- a/web/src/sections/sidebar/AppSidebar.tsx
|
||||
|
|
@ -14056,7 +14237,7 @@ index 0a8b2597..24140167 100644
|
|||
)}
|
||||
|
||||
diff --git a/web/src/views/AgentEditorPage.tsx b/web/src/views/AgentEditorPage.tsx
|
||||
index 9325a2e0..22e03b5e 100644
|
||||
index 9325a2e0..74847c22 100644
|
||||
--- a/web/src/views/AgentEditorPage.tsx
|
||||
+++ b/web/src/views/AgentEditorPage.tsx
|
||||
@@ -1,6 +1,7 @@
|
||||
|
|
@ -14084,6 +14265,24 @@ index 9325a2e0..22e03b5e 100644
|
|||
</LineItem>,
|
||||
null,
|
||||
<div key="icon-grid" className="grid grid-cols-4 gap-1">
|
||||
@@ -373,7 +375,7 @@ function MCPServerCard({
|
||||
return (
|
||||
<Disabled
|
||||
disabled={!server.can_attach}
|
||||
- tooltip="You no longer have access to this MCP server. Its existing tools will be preserved."
|
||||
+ tooltip={t("agent_editor.mcp_no_access", "You no longer have access to this MCP server. Its existing tools will be preserved.")}
|
||||
>
|
||||
<Card
|
||||
expandable
|
||||
@@ -387,7 +389,7 @@ function MCPServerCard({
|
||||
bottomChildren={
|
||||
<GeneralLayouts.Section flexDirection="row" gap={0.5}>
|
||||
<InputTypeIn
|
||||
- placeholder="Search tools..."
|
||||
+ placeholder={t("agent_editor.search_tools", "Search tools...")}
|
||||
variant="internal"
|
||||
searchIcon
|
||||
value={query}
|
||||
@@ -547,6 +549,7 @@ export default function AgentEditorPage({
|
||||
agent: existingAgent,
|
||||
refreshAgent,
|
||||
|
|
@ -14092,15 +14291,17 @@ index 9325a2e0..22e03b5e 100644
|
|||
const router = useRouter();
|
||||
const appRouter = useAppRouter();
|
||||
const { refresh: refreshAgents } = useAgents();
|
||||
@@ -1224,7 +1227,7 @@ export default function AgentEditorPage({
|
||||
@@ -1224,8 +1227,8 @@ export default function AgentEditorPage({
|
||||
|
||||
<userFilesModal.Provider>
|
||||
<UserFilesModal
|
||||
- title="User Files"
|
||||
- description="All files selected for this agent"
|
||||
+ title={t("agent_editor.user_files", "User Files")}
|
||||
description="All files selected for this agent"
|
||||
+ description={t("agent_editor.files_selected", "All files selected for this agent")}
|
||||
recentFiles={values.user_file_ids
|
||||
.map((userFileId: string) => {
|
||||
const rf = allRecentFiles.find(
|
||||
@@ -1296,7 +1299,7 @@ export default function AgentEditorPage({
|
||||
{deleteAgentModal.isOpen && (
|
||||
<ConfirmationModalLayout
|
||||
|
|
@ -14110,6 +14311,24 @@ index 9325a2e0..22e03b5e 100644
|
|||
submit={
|
||||
<Button variant="danger" onClick={handleDeleteAgent}>
|
||||
Delete Agent
|
||||
@@ -1319,7 +1322,7 @@ export default function AgentEditorPage({
|
||||
<SettingsLayouts.Root>
|
||||
<SettingsLayouts.Header
|
||||
icon={SvgOnyxOctagon}
|
||||
- title={existingAgent ? "Edit Agent" : "Create Agent"}
|
||||
+ title={existingAgent ? t("agent_editor.edit_agent","Edit Agent") : t("agent_editor.create_agent","Create Agent")}
|
||||
rightChildren={
|
||||
<div className="flex gap-2">
|
||||
<Button
|
||||
@@ -1327,7 +1330,7 @@ export default function AgentEditorPage({
|
||||
type="button"
|
||||
onClick={() => router.back()}
|
||||
>
|
||||
- Cancel
|
||||
+ {t("general.cancel", "Cancel")}
|
||||
</Button>
|
||||
<Tooltip
|
||||
tooltip={
|
||||
@@ -1352,7 +1355,9 @@ export default function AgentEditorPage({
|
||||
}
|
||||
type="submit"
|
||||
|
|
@ -14164,30 +14383,38 @@ index 9325a2e0..22e03b5e 100644
|
|||
>
|
||||
<AgentIconEditor existingAgent={existingAgent} />
|
||||
</InputVertical>
|
||||
@@ -1414,8 +1426,8 @@ export default function AgentEditorPage({
|
||||
@@ -1414,13 +1426,13 @@ export default function AgentEditorPage({
|
||||
<GeneralLayouts.Section>
|
||||
<InputVertical
|
||||
withLabel="instructions"
|
||||
- title="Instructions"
|
||||
- suffix="optional"
|
||||
- description="Add instructions to tailor the response for this agent."
|
||||
+ title={t("agent_editor.instructions", "Instructions")}
|
||||
+ suffix={t("admin.llm.form.optional_suffix")}
|
||||
description="Add instructions to tailor the response for this agent."
|
||||
+ description={t("agent_editor.instructions_desc", "Add instructions to tailor the response for this agent.")}
|
||||
>
|
||||
<InputTextAreaField
|
||||
name="instructions"
|
||||
- placeholder="Think step by step and show reasoning for complex problems. Use specific examples. Emphasize action items, and leave blanks for the human to fill in when you have unknown. Use a polite enthusiastic tone."
|
||||
+ placeholder={t("agent_editor.instructions_placeholder", "Think step by step and show reasoning for complex problems. Use specific examples. Emphasize action items, and leave blanks for the human to fill in when you have unknown. Use a polite enthusiastic tone.")}
|
||||
rightSection={
|
||||
<InsertUserVariableMenu fieldName="instructions" />
|
||||
}
|
||||
@@ -1429,9 +1441,9 @@ export default function AgentEditorPage({
|
||||
|
||||
<InputVertical
|
||||
withLabel="starter_messages"
|
||||
- title="Conversation Starters"
|
||||
+ title={t("agent_editor.conversation_starters", "Conversation Starters")}
|
||||
description="Example messages that help users understand what this agent can do and how to interact with it effectively."
|
||||
- description="Example messages that help users understand what this agent can do and how to interact with it effectively."
|
||||
- suffix="optional"
|
||||
+ title={t("agent_editor.conversation_starters", "Conversation Starters")}
|
||||
+ description={t("agent_editor.starters_desc", "Example messages that help users understand what this agent can do and how to interact with it effectively.")}
|
||||
+ suffix={t("admin.llm.form.optional_suffix")}
|
||||
>
|
||||
<AgentStarterMessages />
|
||||
</InputVertical>
|
||||
@@ -1496,14 +1508,14 @@ export default function AgentEditorPage({
|
||||
@@ -1496,15 +1508,15 @@ export default function AgentEditorPage({
|
||||
height="auto"
|
||||
>
|
||||
<Content
|
||||
|
|
@ -14200,20 +14427,54 @@ index 9325a2e0..22e03b5e 100644
|
|||
<GeneralLayouts.Section>
|
||||
<InputHorizontal
|
||||
- title="Share This Agent"
|
||||
- description="with other users, groups, or everyone in your organization."
|
||||
+ title={t("agent_editor.share_this_agent", "Share This Agent")}
|
||||
description="with other users, groups, or everyone in your organization."
|
||||
+ description={t("agent_editor.share_desc", "with other users, groups, or everyone in your organization.")}
|
||||
center
|
||||
>
|
||||
@@ -1519,7 +1531,7 @@ export default function AgentEditorPage({
|
||||
<Button
|
||||
@@ -1519,21 +1531,21 @@ export default function AgentEditorPage({
|
||||
<>
|
||||
<InputHorizontal
|
||||
withLabel="is_featured"
|
||||
- title="Feature This Agent"
|
||||
- description="Show this agent at the top of the explore agents list and automatically pin it to the sidebar for new users with access."
|
||||
+ title={t("agent_editor.feature_this_agent", "Feature This Agent")}
|
||||
description="Show this agent at the top of the explore agents list and automatically pin it to the sidebar for new users with access."
|
||||
+ description={t("agent_editor.feature_desc", "Show this agent at the top of the explore agents list and automatically pin it to the sidebar for new users with access.")}
|
||||
>
|
||||
<SwitchField name="is_featured" />
|
||||
@@ -1587,8 +1599,8 @@ export default function AgentEditorPage({
|
||||
</InputHorizontal>
|
||||
{values.is_featured &&
|
||||
sharingStatus === "PRIVATE" && (
|
||||
- <MessageCard title="This agent is private to you and will only be featured for yourself." />
|
||||
+ <MessageCard title={t("agent_editor.private_note", "This agent is private to you and will only be featured for yourself.")} />
|
||||
)}
|
||||
{values.is_featured &&
|
||||
existingAgent &&
|
||||
!existingAgent.is_listed && (
|
||||
<MessageCard
|
||||
variant="warning"
|
||||
- title="This agent is unlisted and won't be shown in the featured list."
|
||||
+ title={t("agent_editor.unlisted_note", "This agent is unlisted and won't be shown in the featured list.")}
|
||||
/>
|
||||
)}
|
||||
</>
|
||||
@@ -1568,12 +1580,11 @@ export default function AgentEditorPage({
|
||||
}
|
||||
value={labelInputValue}
|
||||
onChange={setLabelInputValue}
|
||||
- placeholder="Add labels..."
|
||||
+ placeholder={t("agent_editor.add_labels", "Add labels...")}
|
||||
icon={SvgTag}
|
||||
/>
|
||||
<Text text03 secondaryBody>
|
||||
- Add labels and categories to help people better
|
||||
- discover this agent.
|
||||
+ {t("agent_editor.labels_desc", "Add labels and categories to help people better discover this agent.")}
|
||||
</Text>
|
||||
</GeneralLayouts.Section>
|
||||
</GeneralLayouts.Section>
|
||||
@@ -1587,8 +1598,8 @@ export default function AgentEditorPage({
|
||||
|
||||
<SimpleCollapsible>
|
||||
<SimpleCollapsible.Header
|
||||
|
|
@ -14224,7 +14485,7 @@ index 9325a2e0..22e03b5e 100644
|
|||
/>
|
||||
<SimpleCollapsible.Content>
|
||||
<GeneralLayouts.Section
|
||||
@@ -1602,8 +1614,12 @@ export default function AgentEditorPage({
|
||||
@@ -1602,8 +1613,12 @@ export default function AgentEditorPage({
|
||||
<Card border="solid" rounding="lg">
|
||||
<InputHorizontal
|
||||
withLabel="image_generation"
|
||||
|
|
@ -14239,7 +14500,7 @@ index 9325a2e0..22e03b5e 100644
|
|||
disabled={!isImageGenerationAvailable}
|
||||
>
|
||||
<SwitchField
|
||||
@@ -1618,8 +1634,12 @@ export default function AgentEditorPage({
|
||||
@@ -1618,8 +1633,12 @@ export default function AgentEditorPage({
|
||||
<Card border="solid" rounding="lg">
|
||||
<InputHorizontal
|
||||
withLabel="web_search"
|
||||
|
|
@ -14254,7 +14515,7 @@ index 9325a2e0..22e03b5e 100644
|
|||
disabled={!webSearchTool}
|
||||
>
|
||||
<SwitchField
|
||||
@@ -1634,8 +1654,12 @@ export default function AgentEditorPage({
|
||||
@@ -1634,8 +1653,12 @@ export default function AgentEditorPage({
|
||||
<Card border="solid" rounding="lg">
|
||||
<InputHorizontal
|
||||
withLabel="open_url"
|
||||
|
|
@ -14269,7 +14530,7 @@ index 9325a2e0..22e03b5e 100644
|
|||
disabled={!openURLTool}
|
||||
>
|
||||
<SwitchField
|
||||
@@ -1650,8 +1674,12 @@ export default function AgentEditorPage({
|
||||
@@ -1650,8 +1673,12 @@ export default function AgentEditorPage({
|
||||
<Card border="solid" rounding="lg">
|
||||
<InputHorizontal
|
||||
withLabel="code_interpreter"
|
||||
|
|
@ -14284,7 +14545,7 @@ index 9325a2e0..22e03b5e 100644
|
|||
disabled={!codeInterpreterTool}
|
||||
>
|
||||
<SwitchField
|
||||
@@ -1666,8 +1694,12 @@ export default function AgentEditorPage({
|
||||
@@ -1666,8 +1693,12 @@ export default function AgentEditorPage({
|
||||
<Card border="solid" rounding="lg">
|
||||
<InputHorizontal
|
||||
withLabel="coding_agent"
|
||||
|
|
@ -14299,16 +14560,18 @@ index 9325a2e0..22e03b5e 100644
|
|||
disabled={!codingAgentTool}
|
||||
>
|
||||
<SwitchField
|
||||
@@ -1731,7 +1763,7 @@ export default function AgentEditorPage({
|
||||
@@ -1731,8 +1762,8 @@ export default function AgentEditorPage({
|
||||
|
||||
<SimpleCollapsible>
|
||||
<SimpleCollapsible.Header
|
||||
- title="Advanced Options"
|
||||
- description="Fine-tune agent prompts and knowledge."
|
||||
+ title={t("agent_editor.advanced_options", "Advanced Options")}
|
||||
description="Fine-tune agent prompts and knowledge."
|
||||
+ description={t("agent_editor.advanced_desc", "Fine-tune agent prompts and knowledge.")}
|
||||
/>
|
||||
<SimpleCollapsible.Content>
|
||||
@@ -1740,8 +1772,10 @@ export default function AgentEditorPage({
|
||||
<GeneralLayouts.Section>
|
||||
@@ -1740,8 +1771,10 @@ export default function AgentEditorPage({
|
||||
<GeneralLayouts.Section>
|
||||
<InputHorizontal
|
||||
withLabel="llm_model"
|
||||
|
|
@ -14321,18 +14584,20 @@ index 9325a2e0..22e03b5e 100644
|
|||
>
|
||||
<ModelSelector
|
||||
value={
|
||||
@@ -1760,8 +1794,8 @@ export default function AgentEditorPage({
|
||||
@@ -1760,9 +1793,9 @@ export default function AgentEditorPage({
|
||||
</InputHorizontal>
|
||||
<InputHorizontal
|
||||
withLabel="knowledge_cutoff_date"
|
||||
- title="Knowledge Cutoff Date"
|
||||
- suffix="optional"
|
||||
- description="Documents with a last-updated date prior to this will be ignored."
|
||||
+ title={t("agent_editor.knowledge_cutoff", "Knowledge Cutoff Date")}
|
||||
+ suffix={t("admin.llm.form.optional_suffix")}
|
||||
description="Documents with a last-updated date prior to this will be ignored."
|
||||
+ description={t("agent_editor.cutoff_desc", "Documents with a last-updated date prior to this will be ignored.")}
|
||||
>
|
||||
<InputDatePickerField
|
||||
@@ -1771,7 +1805,7 @@ export default function AgentEditorPage({
|
||||
name="knowledge_cutoff_date"
|
||||
@@ -1771,7 +1804,7 @@ export default function AgentEditorPage({
|
||||
</InputHorizontal>
|
||||
<InputHorizontal
|
||||
withLabel="replace_base_system_prompt"
|
||||
|
|
@ -14341,7 +14606,7 @@ index 9325a2e0..22e03b5e 100644
|
|||
suffix="(Not Recommended)"
|
||||
description='Remove the base system prompt which includes useful instructions (e.g. "You can use Markdown tables"). This may affect response quality.'
|
||||
>
|
||||
@@ -1783,8 +1817,8 @@ export default function AgentEditorPage({
|
||||
@@ -1783,23 +1816,19 @@ export default function AgentEditorPage({
|
||||
<GeneralLayouts.Section gap={0.25}>
|
||||
<InputVertical
|
||||
withLabel="reminders"
|
||||
|
|
@ -14352,15 +14617,34 @@ index 9325a2e0..22e03b5e 100644
|
|||
>
|
||||
<InputTextAreaField
|
||||
name="reminders"
|
||||
@@ -1846,7 +1880,7 @@ export default function AgentEditorPage({
|
||||
- placeholder="Remember, I want you to always format your response as a numbered list."
|
||||
+ placeholder={t("agent_editor.reminders_placeholder", "Remember, I want you to always format your response as a numbered list.")}
|
||||
rightSection={
|
||||
<InsertUserVariableMenu fieldName="reminders" />
|
||||
}
|
||||
/>
|
||||
</InputVertical>
|
||||
<Text text03 secondaryBody>
|
||||
- Append a brief reminder to the prompt messages.
|
||||
- Use this to remind the agent if you find that it
|
||||
- tends to forget certain instructions as the chat
|
||||
- progresses. This should be brief and not
|
||||
- interfere with the user messages.
|
||||
+ {t("agent_editor.reminders_append_desc", "Append a brief reminder to the prompt messages. Use this to remind the agent if you find that it tends to forget certain instructions as the chat progresses. This should be brief and not interfere with the user messages.")}
|
||||
</Text>
|
||||
</GeneralLayouts.Section>
|
||||
</GeneralLayouts.Section>
|
||||
@@ -1846,8 +1875,8 @@ export default function AgentEditorPage({
|
||||
</InputHorizontal>
|
||||
)}
|
||||
<InputHorizontal
|
||||
- title="Delete This Agent"
|
||||
- description="Anyone using this agent will no longer be able to access it."
|
||||
+ title={t("agent_editor.delete_this_agent", "Delete This Agent")}
|
||||
description="Anyone using this agent will no longer be able to access it."
|
||||
+ description={t("agent_editor.delete_desc", "Anyone using this agent will no longer be able to access it.")}
|
||||
center
|
||||
>
|
||||
<Button
|
||||
diff --git a/web/src/views/AgentsNavigationPage.tsx b/web/src/views/AgentsNavigationPage.tsx
|
||||
index c0ba4db2..ee97e896 100644
|
||||
--- a/web/src/views/AgentsNavigationPage.tsx
|
||||
|
|
|
|||
|
|
@ -11,7 +11,9 @@
|
|||
"language": "Sprache",
|
||||
"success": "Erfolg",
|
||||
"error": "Fehler",
|
||||
"sources": "Quellen"
|
||||
"sources": "Quellen",
|
||||
"select_date": "Datum auswählen",
|
||||
"back": "Zurück"
|
||||
},
|
||||
"account": {
|
||||
"notifications": "Benachrichtigungen",
|
||||
|
|
@ -2145,6 +2147,39 @@
|
|||
"knowledge_cutoff": "Wissensstichtag",
|
||||
"overwrite_system_prompt": "System-Prompt überschreiben",
|
||||
"reminders": "Erinnerungen",
|
||||
"delete_this_agent": "Diesen Agenten löschen"
|
||||
"delete_this_agent": "Diesen Agenten löschen",
|
||||
"create_agent": "Agent erstellen",
|
||||
"edit_agent": "Agent bearbeiten",
|
||||
"instructions_desc": "Fügen Sie Anweisungen hinzu, um die Antwort dieses Agenten anzupassen.",
|
||||
"instructions_placeholder": "Denken Sie Schritt für Schritt und zeigen Sie bei komplexen Problemen Ihre Überlegungen. Verwenden Sie konkrete Beispiele. Betonen Sie Handlungspunkte und lassen Sie Lücken für den Menschen, wenn etwas unbekannt ist. Verwenden Sie einen höflichen, enthusiastischen Ton.",
|
||||
"starters_desc": "Beispielnachrichten, die Nutzern helfen zu verstehen, was dieser Agent kann und wie man effektiv mit ihm interagiert.",
|
||||
"starter_placeholder": "Gib mir einen Überblick über einige Dokumente.",
|
||||
"files_selected": "Alle für diesen Agenten ausgewählten Dateien",
|
||||
"feature_desc": "Diesen Agenten oben in der Liste „Agenten erkunden“ anzeigen und für neue Nutzer mit Zugriff automatisch an die Seitenleiste anheften.",
|
||||
"private_note": "Dieser Agent ist privat und wird nur für Sie selbst hervorgehoben.",
|
||||
"unlisted_note": "Dieser Agent ist nicht gelistet und wird nicht in der Liste hervorgehobener Agenten angezeigt.",
|
||||
"add_labels": "Labels hinzufügen…",
|
||||
"labels_desc": "Fügen Sie Labels und Kategorien hinzu, damit andere diesen Agenten leichter finden.",
|
||||
"share_desc": "mit anderen Nutzern, Gruppen oder allen in Ihrer Organisation.",
|
||||
"advanced_desc": "Agenten-Prompts und Wissen feinabstimmen.",
|
||||
"cutoff_desc": "Dokumente mit einem Aktualisierungsdatum vor diesem Datum werden ignoriert.",
|
||||
"reminders_placeholder": "Denken Sie daran: Ich möchte, dass Sie Ihre Antwort immer als nummerierte Liste formatieren.",
|
||||
"reminders_append_desc": "Hängen Sie eine kurze Erinnerung an die Prompt-Nachrichten an. Nutzen Sie dies, um den Agenten zu erinnern, falls er im Verlauf des Chats bestimmte Anweisungen vergisst. Sie sollte kurz sein und die Nutzernachrichten nicht stören.",
|
||||
"delete_desc": "Niemand, der diesen Agenten nutzt, wird weiterhin darauf zugreifen können.",
|
||||
"mcp_no_access": "Sie haben keinen Zugriff mehr auf diesen MCP-Server. Seine vorhandenen Werkzeuge bleiben erhalten.",
|
||||
"search_tools": "Werkzeuge suchen…",
|
||||
"knowledge": "Wissen",
|
||||
"knowledge_desc": "Fügen Sie bestimmte Konnektoren und Dokumente hinzu, die dieser Agent zur Beantwortung nutzt.",
|
||||
"use_knowledge": "Wissen verwenden",
|
||||
"use_knowledge_desc": "Diesen Agenten diese Dokumente referenzieren lassen, um seine Antworten zu untermauern.",
|
||||
"knowledge_empty": "Fügen Sie Dokumente oder verbundene Quellen für diesen Agenten hinzu."
|
||||
},
|
||||
"tools": {
|
||||
"internal_search": "Interne Suche",
|
||||
"image_gen": "Bildgenerierung",
|
||||
"web_search": "Websuche",
|
||||
"code_interpreter": "Code-Interpreter",
|
||||
"coding_agent": "Coding-Agent",
|
||||
"open_url": "URL öffnen"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,7 +11,9 @@
|
|||
"language": "Language",
|
||||
"success": "Success",
|
||||
"error": "Error",
|
||||
"sources": "Sources"
|
||||
"sources": "Sources",
|
||||
"select_date": "Select Date",
|
||||
"back": "Back"
|
||||
},
|
||||
"account": {
|
||||
"notifications": "Notifications",
|
||||
|
|
@ -2145,6 +2147,39 @@
|
|||
"knowledge_cutoff": "Knowledge Cutoff Date",
|
||||
"overwrite_system_prompt": "Overwrite System Prompt",
|
||||
"reminders": "Reminders",
|
||||
"delete_this_agent": "Delete This Agent"
|
||||
"delete_this_agent": "Delete This Agent",
|
||||
"create_agent": "Create Agent",
|
||||
"edit_agent": "Edit Agent",
|
||||
"instructions_desc": "Add instructions to tailor the response for this agent.",
|
||||
"instructions_placeholder": "Think step by step and show reasoning for complex problems. Use specific examples. Emphasize action items, and leave blanks for the human to fill in when you have unknown. Use a polite enthusiastic tone.",
|
||||
"starters_desc": "Example messages that help users understand what this agent can do and how to interact with it effectively.",
|
||||
"starter_placeholder": "Give me an overview of some documents.",
|
||||
"files_selected": "All files selected for this agent",
|
||||
"feature_desc": "Show this agent at the top of the explore agents list and automatically pin it to the sidebar for new users with access.",
|
||||
"private_note": "This agent is private to you and will only be featured for yourself.",
|
||||
"unlisted_note": "This agent is unlisted and won't be shown in the featured list.",
|
||||
"add_labels": "Add labels...",
|
||||
"labels_desc": "Add labels and categories to help people better discover this agent.",
|
||||
"share_desc": "with other users, groups, or everyone in your organization.",
|
||||
"advanced_desc": "Fine-tune agent prompts and knowledge.",
|
||||
"cutoff_desc": "Documents with a last-updated date prior to this will be ignored.",
|
||||
"reminders_placeholder": "Remember, I want you to always format your response as a numbered list.",
|
||||
"reminders_append_desc": "Append a brief reminder to the prompt messages. Use this to remind the agent if you find that it tends to forget certain instructions as the chat progresses. This should be brief and not interfere with the user messages.",
|
||||
"delete_desc": "Anyone using this agent will no longer be able to access it.",
|
||||
"mcp_no_access": "You no longer have access to this MCP server. Its existing tools will be preserved.",
|
||||
"search_tools": "Search tools...",
|
||||
"knowledge": "Knowledge",
|
||||
"knowledge_desc": "Add specific connectors and documents for this agent to use to inform its responses.",
|
||||
"use_knowledge": "Use Knowledge",
|
||||
"use_knowledge_desc": "Let this agent reference these documents to inform its responses.",
|
||||
"knowledge_empty": "Add documents or connected sources to use for this agent."
|
||||
},
|
||||
"tools": {
|
||||
"internal_search": "Internal Search",
|
||||
"image_gen": "Image Generation",
|
||||
"web_search": "Web Search",
|
||||
"code_interpreter": "Code Interpreter",
|
||||
"coding_agent": "Coding Agent",
|
||||
"open_url": "Open URL"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue