i18n: remove notification filter (admin=full), fix selected-tool + agent-filter labels, translate projects/agent-viewer/chat-header
Client feedback round: - Notifications: removed the sanitize/suppress filter entirely. sanitize=false + empty suppressTypes => apply-branding.mjs now SKIPS patching useNotifications, so the (admin-only) notification centre renders pure upstream, unfiltered. - Selected tool lost its translation: AppInputBar rendered tool.display_name for the selected pill; now getLocalizedToolLabel(tool, t) (matches the dropdown). Same fix applied to the agent 'More Agents' actions filter (AgentsFilters). - Chat top-right: Share, Export As…, Move to Project, Plaintext/Markdown, Fit/Full width. - Projects: CreateProjectModal (title/desc/name/placeholder/Cancel/Create) + project view (Recent Chats, Last message). - Agent summary (AgentViewerModal): Featured, Knowledge, No Knowledge, Actions & Tools, No Actions, More Info, Instructions, Overwrite System Prompts. - Agent editor: conversation-starter example placeholders (indexed keys). Patch 64 files, applies clean to v4.5.2; apply green; full missing-hook + duplicate-hook scan CLEAN; no conflict markers. Build verification in progress.
This commit is contained in:
parent
f11db110d4
commit
6ea23b97e7
5 changed files with 424 additions and 74 deletions
|
|
@ -268,6 +268,10 @@ await patchFile("components/icons/icons.tsx", [{
|
|||
// NOT rebuild), so rebrand/suppress it at render time. Generate a tiny runtime
|
||||
// helper from config, then route the notifications list through it.
|
||||
const N = CONFIG.notifications ?? { sanitize: true, suppressTypes: [] };
|
||||
// Only patch the notification pipeline if there's something to do. With
|
||||
// sanitize=false and no suppressTypes the notification centre stays pure upstream
|
||||
// — used now that the bell is admin-only and admins want unfiltered visibility.
|
||||
if (N.sanitize || (N.suppressTypes && N.suppressTypes.length > 0)) {
|
||||
const runtime = `// AUTO-GENERATED by branding/apply-branding.mjs — do not edit by hand.
|
||||
// Runtime rebranding for backend-generated content (notification bell) that the
|
||||
// build-time codemod cannot reach. Driven by branding.config.json → notifications.
|
||||
|
|
@ -309,6 +313,9 @@ await patchFile("hooks/useNotifications.ts", [
|
|||
replace: ` return filterBrandedNotifications(\n data.flatMap((page) =>\n page.notifications.filter((notification) => {\n if (seenNotificationIds.has(notification.id)) {\n return false;\n }\n seenNotificationIds.add(notification.id);\n return true;\n })\n )\n );`,
|
||||
},
|
||||
]);
|
||||
} else {
|
||||
ok("notifications: filter disabled — admins see all notifications unmodified (pure upstream)");
|
||||
}
|
||||
|
||||
// ── 3. String codemod (user-visible references) ─────────────────────────────
|
||||
step("3/4 String codemod");
|
||||
|
|
|
|||
|
|
@ -1,20 +1,17 @@
|
|||
{
|
||||
"$comment": "SINGLE SOURCE OF TRUTH for the Livtec / AIDO white-label of Onyx Community Edition. Edit values here, then run `node branding/apply-branding.mjs` and rebuild the web image. Values mirror the AIDO/Lobe white-label so the two products stay visually identical.",
|
||||
|
||||
"brand": {
|
||||
"name": "AIDO",
|
||||
"legalName": "Livtec AG",
|
||||
"poweredByHtml": "Powered by Livtec",
|
||||
"ogDescription": "Ein KI-Assistent, der genau auf Ihre Unternehmensdokumente abgestimmt ist."
|
||||
},
|
||||
|
||||
"upstream": {
|
||||
"$comment": "Pin the exact Onyx release tag this overlay is authored against. `make setup` checks this out. Locked to a release NUMBER (e.g. v4.5.2), not a raw commit. The i18n patch below is re-synced against this exact tag, so it applies cleanly (see i18n). To move to a newer Onyx: re-sync the i18n patch onto the new tag, then bump this. When Onyx ships official i18n, bump this and set i18n.enabled=false.",
|
||||
"repo": "https://github.com/onyx-dot-app/onyx",
|
||||
"pinnedCommit": "v4.5.2",
|
||||
"webSrcRoot": "web"
|
||||
},
|
||||
|
||||
"i18n": {
|
||||
"$comment": "TEMPORARY end-user internationalization, backported from Onyx PR #12558 (react-i18next; user UI only, Admin stays English) until the official feature ships. apply-branding.mjs git-applies `patch` onto the pinned checkout BEFORE the branding string codemod, then the codemod also rebrands Onyx->AIDO inside the bundled locale dictionaries. Fill/refine translations in web/public/locales/<lang>/common.json. Set enabled=false to drop it once official i18n lands.",
|
||||
"enabled": true,
|
||||
|
|
@ -22,12 +19,14 @@
|
|||
"baseCommit": "v4.5.2",
|
||||
"defaultLanguage": "de",
|
||||
"rebrandLocales": true,
|
||||
"languages": ["de", "en"],
|
||||
"languages": [
|
||||
"de",
|
||||
"en"
|
||||
],
|
||||
"$languages_comment": "Languages offered in the UI selector. Any of the PR's bundled languages NOT listed here (es/fr/pt) are stripped from i18n.ts + the Settings selector at apply time. To offer another language, add its code here AND a dictionary at dictionaries/<code>.json.",
|
||||
"dictionaries": "branding/i18n/locales",
|
||||
"$dictionaries_comment": "Client-editable source dictionaries. After the patch is applied, apply-branding.mjs copies dictionaries/<lang>.json over web/public/locales/<lang>/common.json — so edits here PERSIST across `make setup` (they're the source of truth, not the patch). Edit branding/i18n/locales/de.json to add/refine German (see MISSING-de.md for untranslated keys), then `make apply && make build`."
|
||||
},
|
||||
|
||||
"build": {
|
||||
"$comment": "As of 2026-07, Onyx's web Dockerfile bases on Docker Hardened Images (dhi.io/node:*), a paid Docker offering that requires a DHI subscription + `docker login dhi.io` — so `make build` fails with a registry login error for anyone without DHI access. The apply step rewrites those FROM lines to the equivalent PUBLIC Docker Hub node images (Debian 13 / glibc, matching the DHI variant the Dockerfile targets), so the branded image builds with no login. Keys = the dhi.io image ref (the trailing @sha256 digest, if any, is stripped automatically); values = the public replacement. No-op (with a warning) if the DHI lines are absent, so this stays safe across upstream changes.",
|
||||
"baseImageReplacements": {
|
||||
|
|
@ -35,7 +34,6 @@
|
|||
"dhi.io/node:24-debian13": "docker.io/library/node:24-trixie-slim"
|
||||
}
|
||||
},
|
||||
|
||||
"assets": {
|
||||
"$comment": "Remote source URLs are fetched at apply time into onyx/web/public/branding/. If a fetch fails (e.g. offline), the apply script keeps any existing committed file in branding/assets/ as a fallback.",
|
||||
"mark": {
|
||||
|
|
@ -54,7 +52,6 @@
|
|||
"note": "Browser tab icon. Replaces the default /onyx.ico reference."
|
||||
}
|
||||
},
|
||||
|
||||
"links": {
|
||||
"$comment": "Maps Onyx's hardcoded link constants to Livtec destinations. DOCS_BASE_URL drives most in-app documentation links; deep sub-paths (e.g. /admins) consolidate to this root.",
|
||||
"docsBaseUrl": "https://portal.livtec.cloud",
|
||||
|
|
@ -65,15 +62,15 @@
|
|||
"blog": "https://livtec.cloud/blog/",
|
||||
"changelog": "https://livtec.cloud/"
|
||||
},
|
||||
|
||||
"emails": {
|
||||
"business": "hello@livtec.cloud",
|
||||
"support": "support@livtec.cloud"
|
||||
},
|
||||
|
||||
"rename": {
|
||||
"$comment": "Drives the user-visible string codemod. `word` replaces standalone, capitalised whole-word matches of \\bOnyx\\b only — camelCase identifiers (OnyxDocument, SvgOnyxLogo), lowercase package refs (@onyx, onyx.app, onyx.ico) are never touched. `literals` are exact-string replacements applied before the word pass for multi-word brand terms.",
|
||||
"word": { "Onyx": "AIDO" },
|
||||
"word": {
|
||||
"Onyx": "AIDO"
|
||||
},
|
||||
"literals": {
|
||||
"Open Source AI Platform": "Powered by Livtec",
|
||||
"https://docs.onyx.app": "https://portal.livtec.cloud",
|
||||
|
|
@ -83,15 +80,9 @@
|
|||
"@onyx.app administrators": "@livtec.cloud administrators"
|
||||
}
|
||||
},
|
||||
|
||||
"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). 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",
|
||||
"release_notes",
|
||||
"license_expiry_warning",
|
||||
"two_day_trial_ending"
|
||||
]
|
||||
"$comment": "Notification centre is now admin-only (hidden for non-admins via the i18n patch). Admins want full, unmodified visibility, so filtering is OFF: sanitize=false + empty suppressTypes => apply-branding.mjs skips patching useNotifications entirely and notifications render straight from the backend. To re-enable rebrand/suppression, set sanitize=true and/or list suppressTypes.",
|
||||
"sanitize": false,
|
||||
"suppressTypes": []
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11546,7 +11546,7 @@ index 28d376ef..4df8a551 100644
|
|||
</ErrorPageLayout>
|
||||
);
|
||||
diff --git a/web/src/layouts/chromes/AppChrome.tsx b/web/src/layouts/chromes/AppChrome.tsx
|
||||
index 2ecb033e..72c56150 100644
|
||||
index 2ecb033e..2c92244e 100644
|
||||
--- a/web/src/layouts/chromes/AppChrome.tsx
|
||||
+++ b/web/src/layouts/chromes/AppChrome.tsx
|
||||
@@ -9,6 +9,7 @@ import {
|
||||
|
|
@ -11565,6 +11565,51 @@ index 2ecb033e..72c56150 100644
|
|||
const appFocus = useAppFocus();
|
||||
const businessTier = useTierAtLeast(Tier.BUSINESS);
|
||||
const { state, setAppMode } = useQueryController();
|
||||
@@ -247,7 +249,7 @@ function Header() {
|
||||
sizePreset="main-ui"
|
||||
rounding="sm"
|
||||
icon={SvgChevronLeft}
|
||||
- title="Export As…"
|
||||
+ title={t("chat.header.export_as", "Export As…")}
|
||||
onClick={noProp(() => setShowExportOptions(false))}
|
||||
/>,
|
||||
<Popover.Close asChild key="export-plaintext">
|
||||
@@ -255,7 +257,7 @@ function Header() {
|
||||
sizePreset="main-ui"
|
||||
rounding="sm"
|
||||
icon={SvgFileText}
|
||||
- title="Plaintext"
|
||||
+ title={t("chat.header.plaintext", "Plaintext")}
|
||||
onClick={noProp(() => handleExport("text"))}
|
||||
/>
|
||||
</Popover.Close>,
|
||||
@@ -264,7 +266,7 @@ function Header() {
|
||||
sizePreset="main-ui"
|
||||
rounding="sm"
|
||||
icon={SvgHash}
|
||||
- title="Markdown"
|
||||
+ title={t("chat.header.markdown", "Markdown")}
|
||||
onClick={noProp(() => handleExport("markdown"))}
|
||||
/>
|
||||
</Popover.Close>,
|
||||
@@ -276,7 +278,7 @@ function Header() {
|
||||
sizePreset="main-ui"
|
||||
rounding="sm"
|
||||
icon={SvgFolderIn}
|
||||
- title="Move to Project"
|
||||
+ title={t("chat.header.move_to_project", "Move to Project")}
|
||||
onClick={noProp(() => setShowMoveOptions(true))}
|
||||
/>,
|
||||
<LineItemButton
|
||||
@@ -284,7 +286,7 @@ function Header() {
|
||||
sizePreset="main-ui"
|
||||
rounding="sm"
|
||||
icon={SvgDownload}
|
||||
- title="Export As…"
|
||||
+ title={t("chat.header.export_as", "Export As…")}
|
||||
onClick={noProp(() => setShowExportOptions(true))}
|
||||
/>,
|
||||
null,
|
||||
@@ -294,7 +296,7 @@ function Header() {
|
||||
rounding="sm"
|
||||
color="danger"
|
||||
|
|
@ -11610,6 +11655,22 @@ index 2ecb033e..72c56150 100644
|
|||
description="Conversation and research"
|
||||
onClick={noProp(() => {
|
||||
setAppMode("chat");
|
||||
@@ -466,13 +468,13 @@ function Header() {
|
||||
onClick={() => setShowShareModal(true)}
|
||||
aria-label="share-chat-button"
|
||||
>
|
||||
- Share
|
||||
+ {t("chat.header.share", "Share")}
|
||||
</Button>
|
||||
<Button
|
||||
icon={fullWidthChat ? SvgFitWidth : SvgFullWidth}
|
||||
prominence="tertiary"
|
||||
onClick={toggleFullWidthChat}
|
||||
- tooltip={fullWidthChat ? "Fit width" : "Full width"}
|
||||
+ tooltip={fullWidthChat ? t("chat.header.fit_width", "Fit width") : t("chat.header.full_width", "Full width")}
|
||||
aria-label="Toggle full width chat"
|
||||
aria-pressed={fullWidthChat}
|
||||
/>
|
||||
diff --git a/web/src/lib/i18n.ts b/web/src/lib/i18n.ts
|
||||
new file mode 100644
|
||||
index 00000000..23029a41
|
||||
|
|
@ -12497,18 +12558,19 @@ index ab8a8b33..2f588d05 100644
|
|||
|
||||
// Separator
|
||||
diff --git a/web/src/sections/agents/AgentsFilters.tsx b/web/src/sections/agents/AgentsFilters.tsx
|
||||
index a508c392..92e4d9dd 100644
|
||||
index a508c392..11ab9ea1 100644
|
||||
--- a/web/src/sections/agents/AgentsFilters.tsx
|
||||
+++ b/web/src/sections/agents/AgentsFilters.tsx
|
||||
@@ -27,6 +27,7 @@
|
||||
@@ -27,6 +27,8 @@
|
||||
*/
|
||||
|
||||
import { useMemo, useState } from "react";
|
||||
+import { useTranslation } from "react-i18next";
|
||||
+import { getLocalizedToolLabel } from "@/lib/tool-i18n";
|
||||
import { FilterButton, LineItemButton } from "@opal/components";
|
||||
import { SvgActions, SvgUser } from "@opal/icons";
|
||||
import { Popover, PopoverMenu } from "@opal/components";
|
||||
@@ -93,6 +94,7 @@ interface UseAgentsFiltersReturn<T extends MinimalAgent> {
|
||||
@@ -93,6 +95,7 @@ interface UseAgentsFiltersReturn<T extends MinimalAgent> {
|
||||
export function useAgentsFilters<T extends MinimalAgent>(
|
||||
agents: T[]
|
||||
): UseAgentsFiltersReturn<T> {
|
||||
|
|
@ -12516,7 +12578,16 @@ index a508c392..92e4d9dd 100644
|
|||
const { user } = useUser();
|
||||
const { mcpData } = useMcpServers();
|
||||
const { tools: allTools } = useAvailableTools();
|
||||
@@ -226,24 +228,31 @@ export function useAgentsFilters<T extends MinimalAgent>(
|
||||
@@ -177,7 +180,7 @@ export function useAgentsFilters<T extends MinimalAgent>(
|
||||
} else {
|
||||
individualTools.set(tool.id, {
|
||||
id: tool.id,
|
||||
- name: tool.display_name,
|
||||
+ name: getLocalizedToolLabel(tool, t),
|
||||
systemIcon: SYSTEM_TOOL_ICONS[tool.name],
|
||||
});
|
||||
}
|
||||
@@ -226,24 +229,31 @@ export function useAgentsFilters<T extends MinimalAgent>(
|
||||
// -- Filter button labels --------------------------------------------------
|
||||
|
||||
const creatorFilterButtonText = useMemo(() => {
|
||||
|
|
@ -12556,7 +12627,7 @@ index a508c392..92e4d9dd 100644
|
|||
|
||||
// -- Filtered agents -------------------------------------------------------
|
||||
|
||||
@@ -297,7 +306,7 @@ export function useAgentsFilters<T extends MinimalAgent>(
|
||||
@@ -297,7 +307,7 @@ export function useAgentsFilters<T extends MinimalAgent>(
|
||||
{[
|
||||
<InputTypeIn
|
||||
key="created-by"
|
||||
|
|
@ -12565,7 +12636,7 @@ index a508c392..92e4d9dd 100644
|
|||
variant="internal"
|
||||
searchIcon
|
||||
value={creatorFilter.query}
|
||||
@@ -315,7 +324,9 @@ export function useAgentsFilters<T extends MinimalAgent>(
|
||||
@@ -315,7 +325,9 @@ export function useAgentsFilters<T extends MinimalAgent>(
|
||||
selectVariant="select-heavy"
|
||||
icon={SvgUser}
|
||||
title={creator.email}
|
||||
|
|
@ -12576,7 +12647,7 @@ index a508c392..92e4d9dd 100644
|
|||
state={isSelected ? "selected" : "empty"}
|
||||
onClick={() => {
|
||||
setSelectedCreatorIds((prev) => {
|
||||
@@ -352,7 +363,7 @@ export function useAgentsFilters<T extends MinimalAgent>(
|
||||
@@ -352,7 +364,7 @@ export function useAgentsFilters<T extends MinimalAgent>(
|
||||
{[
|
||||
<InputTypeIn
|
||||
key="actions"
|
||||
|
|
@ -12656,18 +12727,19 @@ index c9c24edf..19c8529e 100644
|
|||
{humanFileDescriptors.map((file) => (
|
||||
<ChatDocumentDisplay
|
||||
diff --git a/web/src/sections/input/AppInputBar.tsx b/web/src/sections/input/AppInputBar.tsx
|
||||
index adc33aa4..b372e463 100644
|
||||
index adc33aa4..d0db9e52 100644
|
||||
--- a/web/src/sections/input/AppInputBar.tsx
|
||||
+++ b/web/src/sections/input/AppInputBar.tsx
|
||||
@@ -7,6 +7,7 @@ import React, {
|
||||
@@ -7,6 +7,8 @@ import React, {
|
||||
useRef,
|
||||
useState,
|
||||
} from "react";
|
||||
+import { useTranslation } from "react-i18next";
|
||||
+import { getLocalizedToolLabel } from "@/lib/tool-i18n";
|
||||
import LineItem from "@/refresh-components/buttons/LineItem";
|
||||
import { MinimalAgent } from "@/lib/agents/types";
|
||||
import { InputPrompt } from "@/app/app/interfaces";
|
||||
@@ -20,7 +21,6 @@ import { ChatState, MAX_QUEUED_MESSAGES } from "@/app/app/interfaces";
|
||||
@@ -20,7 +22,6 @@ import { ChatState, MAX_QUEUED_MESSAGES } from "@/app/app/interfaces";
|
||||
import { useQueuedMessageNavigation } from "@/hooks/useQueuedMessageNavigation";
|
||||
import { useForcedTools } from "@/lib/hooks/useForcedTools";
|
||||
import useAppFocus from "@/hooks/useAppFocus";
|
||||
|
|
@ -12675,7 +12747,7 @@ index adc33aa4..b372e463 100644
|
|||
import { getPastedFilesIfNoText } from "@/lib/clipboard";
|
||||
import PasteTilePopover from "@/sections/input/PasteTilePopover";
|
||||
import { cn } from "@opal/utils";
|
||||
@@ -121,6 +121,7 @@ const AppInputBar = React.memo(
|
||||
@@ -121,6 +122,7 @@ const AppInputBar = React.memo(
|
||||
currentTabUrl,
|
||||
onToggleTabReading,
|
||||
}: AppInputBarProps) => {
|
||||
|
|
@ -12683,7 +12755,7 @@ index adc33aa4..b372e463 100644
|
|||
const [isRecording, setIsRecording] = useState(false);
|
||||
const [recordingCycleCount, setRecordingCycleCount] = useState(0);
|
||||
const [isMuted, setIsMuted] = useState(false);
|
||||
@@ -203,55 +204,6 @@ const AppInputBar = React.memo(
|
||||
@@ -203,55 +205,6 @@ const AppInputBar = React.memo(
|
||||
const isSearchMode =
|
||||
(isNewSession && appMode === "search") || isSearchActive;
|
||||
|
||||
|
|
@ -12739,7 +12811,7 @@ index adc33aa4..b372e463 100644
|
|||
const handleRecordingChange = useCallback((nextIsRecording: boolean) => {
|
||||
setIsRecording((prevIsRecording) => {
|
||||
if (!prevIsRecording && nextIsRecording) {
|
||||
@@ -275,9 +227,8 @@ const AppInputBar = React.memo(
|
||||
@@ -275,9 +228,8 @@ const AppInputBar = React.memo(
|
||||
return;
|
||||
}
|
||||
handleSubmit(text);
|
||||
|
|
@ -12750,7 +12822,7 @@ index adc33aa4..b372e463 100644
|
|||
);
|
||||
|
||||
// Expose reset and focus methods to parent via ref
|
||||
@@ -285,7 +236,6 @@ const AppInputBar = React.memo(
|
||||
@@ -285,7 +237,6 @@ const AppInputBar = React.memo(
|
||||
reset: () => {
|
||||
if (!isAutoSending.current) {
|
||||
clearMessage();
|
||||
|
|
@ -12758,7 +12830,7 @@ index adc33aa4..b372e463 100644
|
|||
}
|
||||
},
|
||||
focus: () => {
|
||||
@@ -632,7 +582,7 @@ const AppInputBar = React.memo(
|
||||
@@ -632,7 +583,7 @@ const AppInputBar = React.memo(
|
||||
<Button
|
||||
disabled={disabled}
|
||||
icon={SvgPaperclip}
|
||||
|
|
@ -12767,7 +12839,7 @@ index adc33aa4..b372e463 100644
|
|||
interaction={open ? "hover" : "rest"}
|
||||
prominence="tertiary"
|
||||
/>
|
||||
@@ -672,8 +622,8 @@ const AppInputBar = React.memo(
|
||||
@@ -672,8 +623,8 @@ const AppInputBar = React.memo(
|
||||
return currentTabUrl;
|
||||
}
|
||||
})()
|
||||
|
|
@ -12778,7 +12850,7 @@ index adc33aa4..b372e463 100644
|
|||
</SelectButton>
|
||||
) : (
|
||||
showDeepResearch && (
|
||||
@@ -686,11 +636,11 @@ const AppInputBar = React.memo(
|
||||
@@ -686,11 +637,11 @@ const AppInputBar = React.memo(
|
||||
foldable={!deepResearchEnabled}
|
||||
tooltip={
|
||||
isMultiModelActive
|
||||
|
|
@ -12792,7 +12864,16 @@ index adc33aa4..b372e463 100644
|
|||
</SelectButton>
|
||||
)
|
||||
)}
|
||||
@@ -750,9 +700,9 @@ const AppInputBar = React.memo(
|
||||
@@ -716,7 +667,7 @@ const AppInputBar = React.memo(
|
||||
}}
|
||||
state="selected"
|
||||
>
|
||||
- {tool.display_name}
|
||||
+ {getLocalizedToolLabel(tool, t)}
|
||||
</SelectButton>
|
||||
</Disabled>
|
||||
);
|
||||
@@ -750,9 +701,9 @@ const AppInputBar = React.memo(
|
||||
<Button
|
||||
disabled
|
||||
icon={SvgMicrophone}
|
||||
|
|
@ -12804,7 +12885,7 @@ index adc33aa4..b372e463 100644
|
|||
/>
|
||||
))}
|
||||
|
||||
@@ -767,7 +717,7 @@ const AppInputBar = React.memo(
|
||||
@@ -767,7 +718,7 @@ const AppInputBar = React.memo(
|
||||
}
|
||||
tooltip={
|
||||
hasUploadingFiles || hasIndexingFiles
|
||||
|
|
@ -12813,7 +12894,7 @@ index adc33aa4..b372e463 100644
|
|||
: undefined
|
||||
}
|
||||
id="onyx-chat-input-send-button"
|
||||
@@ -788,9 +738,6 @@ const AppInputBar = React.memo(
|
||||
@@ -788,9 +739,6 @@ const AppInputBar = React.memo(
|
||||
if (queuedMessages.length < MAX_QUEUED_MESSAGES) {
|
||||
enqueueCurrentMessage(message.trim());
|
||||
clearMessage();
|
||||
|
|
@ -12823,7 +12904,7 @@ index adc33aa4..b372e463 100644
|
|||
}
|
||||
} else if (chatState == "streaming") {
|
||||
stopTTS({ manual: true });
|
||||
@@ -820,10 +767,10 @@ const AppInputBar = React.memo(
|
||||
@@ -820,10 +768,10 @@ const AppInputBar = React.memo(
|
||||
ref={containerRef}
|
||||
id="onyx-chat-input"
|
||||
className={cn(
|
||||
|
|
@ -12836,7 +12917,7 @@ index adc33aa4..b372e463 100644
|
|||
// Because the content area in `Root` (app-layouts.tsx) uses `overflow-auto`,
|
||||
// shadows that exceed the container bounds are clipped.
|
||||
//
|
||||
@@ -919,17 +866,29 @@ const AppInputBar = React.memo(
|
||||
@@ -919,17 +867,29 @@ const AppInputBar = React.memo(
|
||||
}}
|
||||
aria-multiline={true}
|
||||
aria-disabled={disabled}
|
||||
|
|
@ -12872,7 +12953,7 @@ index adc33aa4..b372e463 100644
|
|||
}
|
||||
data-empty={!message ? "" : undefined}
|
||||
onKeyDown={(event) => {
|
||||
@@ -938,8 +897,7 @@ const AppInputBar = React.memo(
|
||||
@@ -938,8 +898,7 @@ const AppInputBar = React.memo(
|
||||
)
|
||||
return;
|
||||
|
||||
|
|
@ -12882,7 +12963,7 @@ index adc33aa4..b372e463 100644
|
|||
if (
|
||||
event.key === "Enter" &&
|
||||
!showPrompts &&
|
||||
@@ -968,9 +926,6 @@ const AppInputBar = React.memo(
|
||||
@@ -968,9 +927,6 @@ const AppInputBar = React.memo(
|
||||
) {
|
||||
enqueueCurrentMessage(message.trim());
|
||||
clearMessage();
|
||||
|
|
@ -13015,6 +13096,150 @@ index 87a4ee38..93bd54fc 100644
|
|||
</Button>
|
||||
</Modal.Footer>
|
||||
</Form>
|
||||
diff --git a/web/src/sections/modals/AgentViewerModal.tsx b/web/src/sections/modals/AgentViewerModal.tsx
|
||||
index cab609ce..a073b0b0 100644
|
||||
--- a/web/src/sections/modals/AgentViewerModal.tsx
|
||||
+++ b/web/src/sections/modals/AgentViewerModal.tsx
|
||||
@@ -1,5 +1,7 @@
|
||||
"use client";
|
||||
|
||||
+import { useTranslation } from "react-i18next";
|
||||
+
|
||||
import { useCallback, useMemo, useState } from "react";
|
||||
import { useRouter } from "next/navigation";
|
||||
import type { Route } from "next";
|
||||
@@ -169,6 +171,7 @@ export interface AgentViewerModalProps {
|
||||
agent: FullAgent;
|
||||
}
|
||||
export default function AgentViewerModal({ agent }: AgentViewerModalProps) {
|
||||
+ const { t } = useTranslation();
|
||||
const agentViewerModal = useModal();
|
||||
const router = useRouter();
|
||||
const { allRecentFiles } = useProjectsContext();
|
||||
@@ -251,7 +254,7 @@ export default function AgentViewerModal({ agent }: AgentViewerModalProps) {
|
||||
{agent.is_featured && (
|
||||
<Content
|
||||
icon={SvgStar}
|
||||
- title="Featured"
|
||||
+ title={t("agent_viewer.featured", "Featured")}
|
||||
sizePreset="main-ui"
|
||||
variant="body"
|
||||
width="fit"
|
||||
@@ -284,7 +287,7 @@ export default function AgentViewerModal({ agent }: AgentViewerModalProps) {
|
||||
<Divider paddingParallel="fit" paddingPerpendicular="fit" />
|
||||
<Section gap={0.5} alignItems="start">
|
||||
<Content
|
||||
- title="Knowledge"
|
||||
+ title={t("agent_editor.knowledge", "Knowledge")}
|
||||
sizePreset="main-content"
|
||||
variant="section"
|
||||
/>
|
||||
@@ -306,13 +309,13 @@ export default function AgentViewerModal({ agent }: AgentViewerModalProps) {
|
||||
})}
|
||||
</Section>
|
||||
) : (
|
||||
- <EmptyMessageCard sizePreset="main-ui" title="No Knowledge" />
|
||||
+ <EmptyMessageCard sizePreset="main-ui" title={t("agent_viewer.no_knowledge", "No Knowledge")} />
|
||||
)}
|
||||
</Section>
|
||||
|
||||
{/* Actions & Tools */}
|
||||
<SimpleCollapsible>
|
||||
- <SimpleCollapsible.Header title="Actions & Tools" />
|
||||
+ <SimpleCollapsible.Header title={t("agent_viewer.actions_tools", "Actions & Tools")} />
|
||||
<SimpleCollapsible.Content>
|
||||
{hasActions ? (
|
||||
<Section gap={0.5} alignItems="start">
|
||||
@@ -328,7 +331,7 @@ export default function AgentViewerModal({ agent }: AgentViewerModalProps) {
|
||||
))}
|
||||
</Section>
|
||||
) : (
|
||||
- <EmptyMessageCard sizePreset="main-ui" title="No Actions" />
|
||||
+ <EmptyMessageCard sizePreset="main-ui" title={t("agent_viewer.no_actions", "No Actions")} />
|
||||
)}
|
||||
</SimpleCollapsible.Content>
|
||||
</SimpleCollapsible>
|
||||
@@ -336,12 +339,12 @@ export default function AgentViewerModal({ agent }: AgentViewerModalProps) {
|
||||
{/* More Info (Collapsible) */}
|
||||
<Divider paddingParallel="fit" paddingPerpendicular="fit" />
|
||||
<SimpleCollapsible>
|
||||
- <SimpleCollapsible.Header title="More Info" />
|
||||
+ <SimpleCollapsible.Header title={t("agent_viewer.more_info", "More Info")} />
|
||||
<SimpleCollapsible.Content>
|
||||
<Section gap={0.5} alignItems="start">
|
||||
{agent.system_prompt && (
|
||||
<Content
|
||||
- title="Instructions"
|
||||
+ title={t("agent_editor.instructions", "Instructions")}
|
||||
description={agent.system_prompt}
|
||||
sizePreset="main-ui"
|
||||
variant="section"
|
||||
@@ -366,7 +369,7 @@ export default function AgentViewerModal({ agent }: AgentViewerModalProps) {
|
||||
</InputHorizontal>
|
||||
)}
|
||||
<InputHorizontal
|
||||
- title="Overwrite System Prompts"
|
||||
+ title={t("agent_editor.overwrite_system_prompt", "Overwrite System Prompts")}
|
||||
description='Remove the base system prompt which includes useful instructions (e.g. "You can use Markdown tables"). This may affect response quality.'
|
||||
>
|
||||
<Switch disabled checked={agent.replace_base_system_prompt} />
|
||||
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
|
||||
+++ b/web/src/sections/modals/CreateProjectModal.tsx
|
||||
@@ -1,5 +1,7 @@
|
||||
"use client";
|
||||
|
||||
+import { useTranslation } from "react-i18next";
|
||||
+
|
||||
import { Formik, Form } from "formik";
|
||||
import * as Yup from "yup";
|
||||
import { Button } from "@opal/components";
|
||||
@@ -22,6 +24,7 @@ interface CreateProjectModalProps {
|
||||
export default function CreateProjectModal({
|
||||
initialProjectName,
|
||||
}: CreateProjectModalProps) {
|
||||
+ const { t } = useTranslation();
|
||||
const { createProject } = useProjectsContext();
|
||||
const modal = useModal();
|
||||
const route = useAppRouter();
|
||||
@@ -31,8 +34,8 @@ export default function CreateProjectModal({
|
||||
<Modal.Content width="sm">
|
||||
<Modal.Header
|
||||
icon={SvgFolderPlus}
|
||||
- title="Create New Project"
|
||||
- description="Use projects to organize your files and chats in one place, and add custom instructions for ongoing work."
|
||||
+ title={t("projects.create.title", "Create New Project")}
|
||||
+ description={t("projects.create.description", "Use projects to organize your files and chats in one place, and add custom instructions for ongoing work.")}
|
||||
onClose={() => modal.toggle(false)}
|
||||
/>
|
||||
<Formik
|
||||
@@ -56,10 +59,10 @@ export default function CreateProjectModal({
|
||||
{({ isSubmitting, isValid }) => (
|
||||
<Form>
|
||||
<Modal.Body>
|
||||
- <InputVertical title="Project Name" withLabel="projectName">
|
||||
+ <InputVertical title={t("projects.create.name_label", "Project Name")} withLabel="projectName">
|
||||
<InputTypeInField
|
||||
name="projectName"
|
||||
- placeholder="What are you working on?"
|
||||
+ placeholder={t("projects.create.name_placeholder", "What are you working on?")}
|
||||
clearButton
|
||||
/>
|
||||
</InputVertical>
|
||||
@@ -70,10 +73,10 @@ export default function CreateProjectModal({
|
||||
type="button"
|
||||
onClick={() => modal.toggle(false)}
|
||||
>
|
||||
- Cancel
|
||||
+ {t("general.cancel", "Cancel")}
|
||||
</Button>
|
||||
<Button type="submit" disabled={isSubmitting || !isValid}>
|
||||
- Create Project
|
||||
+ {t("projects.create.submit", "Create Project")}
|
||||
</Button>
|
||||
</Modal.Footer>
|
||||
</Form>
|
||||
diff --git a/web/src/sections/modals/ShareChatSessionModal.tsx b/web/src/sections/modals/ShareChatSessionModal.tsx
|
||||
index 66a7a6b1..bc7f79d6 100644
|
||||
--- a/web/src/sections/modals/ShareChatSessionModal.tsx
|
||||
|
|
@ -13517,6 +13742,54 @@ index dbd41f2c..d4e5c45e 100644
|
|||
</Hoverable.Item>
|
||||
<SvgCheckCircle
|
||||
className={cn(
|
||||
diff --git a/web/src/sections/projects/ProjectChatSessionList.tsx b/web/src/sections/projects/ProjectChatSessionList.tsx
|
||||
index a11390c9..72913f04 100644
|
||||
--- a/web/src/sections/projects/ProjectChatSessionList.tsx
|
||||
+++ b/web/src/sections/projects/ProjectChatSessionList.tsx
|
||||
@@ -1,5 +1,7 @@
|
||||
"use client";
|
||||
|
||||
+import { useTranslation } from "react-i18next";
|
||||
+
|
||||
import React, { useCallback, useMemo, useState } from "react";
|
||||
import { deleteChatSession } from "@/app/app/services/lib";
|
||||
import {
|
||||
@@ -51,6 +53,7 @@ function ProjectChatItem({
|
||||
icon,
|
||||
afterRefresh,
|
||||
}: ProjectChatItemProps) {
|
||||
+ const { t } = useTranslation();
|
||||
const [popoverOpen, setPopoverOpen] = useState(false);
|
||||
const [isDeleteModalOpen, setIsDeleteModalOpen] = useState(false);
|
||||
const [pendingMoveProjectId, setPendingMoveProjectId] = useState<
|
||||
@@ -233,7 +236,9 @@ function ProjectChatItem({
|
||||
icon={icon}
|
||||
title={chat.name || UNNAMED_CHAT}
|
||||
description={
|
||||
- lastUpdateTime ? `Last message ${lastUpdateTime}` : undefined
|
||||
+ lastUpdateTime
|
||||
+ ? `${t("projects.last_message_prefix", "Last message")} ${lastUpdateTime}`
|
||||
+ : undefined
|
||||
}
|
||||
sizePreset="main-ui"
|
||||
interaction={popoverOpen ? "active" : undefined}
|
||||
@@ -278,6 +283,7 @@ export default function ProjectChatSessionList() {
|
||||
refreshCurrentProjectDetails,
|
||||
isLoadingProjectDetails,
|
||||
} = useProjectsContext();
|
||||
+ const { t } = useTranslation();
|
||||
const { agents } = useAgents();
|
||||
|
||||
const projectChats: ChatSession[] = useMemo(() => {
|
||||
@@ -295,7 +301,7 @@ export default function ProjectChatSessionList() {
|
||||
<div>
|
||||
<div className="px-3 py-2">
|
||||
<Text as="p" font="secondary-body" color="text-02">
|
||||
- Recent Chats
|
||||
+ {t("projects.recent_chats", "Recent Chats")}
|
||||
</Text>
|
||||
</div>
|
||||
|
||||
diff --git a/web/src/sections/projects/ProjectContextPanel.tsx b/web/src/sections/projects/ProjectContextPanel.tsx
|
||||
index 590bfbf9..28cfde96 100644
|
||||
--- a/web/src/sections/projects/ProjectContextPanel.tsx
|
||||
|
|
@ -14237,7 +14510,7 @@ index 0a8b2597..24140167 100644
|
|||
)}
|
||||
|
||||
diff --git a/web/src/views/AgentEditorPage.tsx b/web/src/views/AgentEditorPage.tsx
|
||||
index 9325a2e0..48049521 100644
|
||||
index 9325a2e0..7c44e4a0 100644
|
||||
--- a/web/src/views/AgentEditorPage.tsx
|
||||
+++ b/web/src/views/AgentEditorPage.tsx
|
||||
@@ -1,6 +1,7 @@
|
||||
|
|
@ -14291,7 +14564,30 @@ index 9325a2e0..48049521 100644
|
|||
variant="internal"
|
||||
searchIcon
|
||||
value={query}
|
||||
@@ -547,6 +550,7 @@ export default function AgentEditorPage({
|
||||
@@ -447,6 +450,7 @@ function MCPServerCard({
|
||||
}
|
||||
|
||||
function AgentStarterMessages() {
|
||||
+ const { t } = useTranslation();
|
||||
const max_starters = STARTER_MESSAGES_EXAMPLES.length;
|
||||
|
||||
const { values } = useFormikContext<{
|
||||
@@ -476,10 +480,10 @@ function AgentStarterMessages() {
|
||||
<InputTypeInElementField
|
||||
key={`starter_messages.${i}`}
|
||||
name={`starter_messages.${i}`}
|
||||
- placeholder={
|
||||
- STARTER_MESSAGES_EXAMPLES[i] ||
|
||||
- "Enter a conversation starter..."
|
||||
- }
|
||||
+ placeholder={t(
|
||||
+ `agent_editor.starter_example_${i}`,
|
||||
+ STARTER_MESSAGES_EXAMPLES[i] || "Enter a conversation starter..."
|
||||
+ )}
|
||||
onRemove={() => arrayHelpers.remove(i)}
|
||||
/>
|
||||
))}
|
||||
@@ -547,6 +551,7 @@ export default function AgentEditorPage({
|
||||
agent: existingAgent,
|
||||
refreshAgent,
|
||||
}: AgentEditorPageProps) {
|
||||
|
|
@ -14299,7 +14595,7 @@ index 9325a2e0..48049521 100644
|
|||
const router = useRouter();
|
||||
const appRouter = useAppRouter();
|
||||
const { refresh: refreshAgents } = useAgents();
|
||||
@@ -1224,8 +1228,8 @@ export default function AgentEditorPage({
|
||||
@@ -1224,8 +1229,8 @@ export default function AgentEditorPage({
|
||||
|
||||
<userFilesModal.Provider>
|
||||
<UserFilesModal
|
||||
|
|
@ -14310,7 +14606,7 @@ index 9325a2e0..48049521 100644
|
|||
recentFiles={values.user_file_ids
|
||||
.map((userFileId: string) => {
|
||||
const rf = allRecentFiles.find(
|
||||
@@ -1296,7 +1300,7 @@ export default function AgentEditorPage({
|
||||
@@ -1296,7 +1301,7 @@ export default function AgentEditorPage({
|
||||
{deleteAgentModal.isOpen && (
|
||||
<ConfirmationModalLayout
|
||||
icon={SvgTrash}
|
||||
|
|
@ -14319,7 +14615,7 @@ index 9325a2e0..48049521 100644
|
|||
submit={
|
||||
<Button variant="danger" onClick={handleDeleteAgent}>
|
||||
Delete Agent
|
||||
@@ -1319,7 +1323,7 @@ export default function AgentEditorPage({
|
||||
@@ -1319,7 +1324,7 @@ export default function AgentEditorPage({
|
||||
<SettingsLayouts.Root>
|
||||
<SettingsLayouts.Header
|
||||
icon={SvgOnyxOctagon}
|
||||
|
|
@ -14328,7 +14624,7 @@ index 9325a2e0..48049521 100644
|
|||
rightChildren={
|
||||
<div className="flex gap-2">
|
||||
<Button
|
||||
@@ -1327,7 +1331,7 @@ export default function AgentEditorPage({
|
||||
@@ -1327,7 +1332,7 @@ export default function AgentEditorPage({
|
||||
type="button"
|
||||
onClick={() => router.back()}
|
||||
>
|
||||
|
|
@ -14337,7 +14633,7 @@ index 9325a2e0..48049521 100644
|
|||
</Button>
|
||||
<Tooltip
|
||||
tooltip={
|
||||
@@ -1352,7 +1356,9 @@ export default function AgentEditorPage({
|
||||
@@ -1352,7 +1357,9 @@ export default function AgentEditorPage({
|
||||
}
|
||||
type="submit"
|
||||
>
|
||||
|
|
@ -14348,7 +14644,7 @@ index 9325a2e0..48049521 100644
|
|||
</Button>
|
||||
</Tooltip>
|
||||
</div>
|
||||
@@ -1377,21 +1383,28 @@ export default function AgentEditorPage({
|
||||
@@ -1377,21 +1384,28 @@ export default function AgentEditorPage({
|
||||
alignItems="start"
|
||||
>
|
||||
<GeneralLayouts.Section>
|
||||
|
|
@ -14382,7 +14678,7 @@ index 9325a2e0..48049521 100644
|
|||
/>
|
||||
</InputVertical>
|
||||
</GeneralLayouts.Section>
|
||||
@@ -1399,7 +1412,7 @@ export default function AgentEditorPage({
|
||||
@@ -1399,7 +1413,7 @@ export default function AgentEditorPage({
|
||||
<GeneralLayouts.Section width="fit">
|
||||
<InputVertical
|
||||
withLabel="agent_avatar"
|
||||
|
|
@ -14391,7 +14687,7 @@ index 9325a2e0..48049521 100644
|
|||
>
|
||||
<AgentIconEditor existingAgent={existingAgent} />
|
||||
</InputVertical>
|
||||
@@ -1414,13 +1427,13 @@ export default function AgentEditorPage({
|
||||
@@ -1414,13 +1428,13 @@ export default function AgentEditorPage({
|
||||
<GeneralLayouts.Section>
|
||||
<InputVertical
|
||||
withLabel="instructions"
|
||||
|
|
@ -14409,7 +14705,7 @@ index 9325a2e0..48049521 100644
|
|||
rightSection={
|
||||
<InsertUserVariableMenu fieldName="instructions" />
|
||||
}
|
||||
@@ -1429,9 +1442,9 @@ export default function AgentEditorPage({
|
||||
@@ -1429,9 +1443,9 @@ export default function AgentEditorPage({
|
||||
|
||||
<InputVertical
|
||||
withLabel="starter_messages"
|
||||
|
|
@ -14422,7 +14718,7 @@ index 9325a2e0..48049521 100644
|
|||
>
|
||||
<AgentStarterMessages />
|
||||
</InputVertical>
|
||||
@@ -1496,15 +1509,15 @@ export default function AgentEditorPage({
|
||||
@@ -1496,15 +1510,15 @@ export default function AgentEditorPage({
|
||||
height="auto"
|
||||
>
|
||||
<Content
|
||||
|
|
@ -14441,7 +14737,7 @@ index 9325a2e0..48049521 100644
|
|||
center
|
||||
>
|
||||
<Button
|
||||
@@ -1519,21 +1532,21 @@ export default function AgentEditorPage({
|
||||
@@ -1519,21 +1533,21 @@ export default function AgentEditorPage({
|
||||
<>
|
||||
<InputHorizontal
|
||||
withLabel="is_featured"
|
||||
|
|
@ -14467,7 +14763,7 @@ index 9325a2e0..48049521 100644
|
|||
/>
|
||||
)}
|
||||
</>
|
||||
@@ -1568,12 +1581,11 @@ export default function AgentEditorPage({
|
||||
@@ -1568,12 +1582,11 @@ export default function AgentEditorPage({
|
||||
}
|
||||
value={labelInputValue}
|
||||
onChange={setLabelInputValue}
|
||||
|
|
@ -14482,7 +14778,7 @@ index 9325a2e0..48049521 100644
|
|||
</Text>
|
||||
</GeneralLayouts.Section>
|
||||
</GeneralLayouts.Section>
|
||||
@@ -1587,8 +1599,8 @@ export default function AgentEditorPage({
|
||||
@@ -1587,8 +1600,8 @@ export default function AgentEditorPage({
|
||||
|
||||
<SimpleCollapsible>
|
||||
<SimpleCollapsible.Header
|
||||
|
|
@ -14493,7 +14789,7 @@ index 9325a2e0..48049521 100644
|
|||
/>
|
||||
<SimpleCollapsible.Content>
|
||||
<GeneralLayouts.Section
|
||||
@@ -1602,8 +1614,12 @@ export default function AgentEditorPage({
|
||||
@@ -1602,8 +1615,12 @@ export default function AgentEditorPage({
|
||||
<Card border="solid" rounding="lg">
|
||||
<InputHorizontal
|
||||
withLabel="image_generation"
|
||||
|
|
@ -14508,7 +14804,7 @@ index 9325a2e0..48049521 100644
|
|||
disabled={!isImageGenerationAvailable}
|
||||
>
|
||||
<SwitchField
|
||||
@@ -1618,8 +1634,12 @@ export default function AgentEditorPage({
|
||||
@@ -1618,8 +1635,12 @@ export default function AgentEditorPage({
|
||||
<Card border="solid" rounding="lg">
|
||||
<InputHorizontal
|
||||
withLabel="web_search"
|
||||
|
|
@ -14523,7 +14819,7 @@ index 9325a2e0..48049521 100644
|
|||
disabled={!webSearchTool}
|
||||
>
|
||||
<SwitchField
|
||||
@@ -1634,8 +1654,12 @@ export default function AgentEditorPage({
|
||||
@@ -1634,8 +1655,12 @@ export default function AgentEditorPage({
|
||||
<Card border="solid" rounding="lg">
|
||||
<InputHorizontal
|
||||
withLabel="open_url"
|
||||
|
|
@ -14538,7 +14834,7 @@ index 9325a2e0..48049521 100644
|
|||
disabled={!openURLTool}
|
||||
>
|
||||
<SwitchField
|
||||
@@ -1650,8 +1674,12 @@ export default function AgentEditorPage({
|
||||
@@ -1650,8 +1675,12 @@ export default function AgentEditorPage({
|
||||
<Card border="solid" rounding="lg">
|
||||
<InputHorizontal
|
||||
withLabel="code_interpreter"
|
||||
|
|
@ -14553,7 +14849,7 @@ index 9325a2e0..48049521 100644
|
|||
disabled={!codeInterpreterTool}
|
||||
>
|
||||
<SwitchField
|
||||
@@ -1666,8 +1694,12 @@ export default function AgentEditorPage({
|
||||
@@ -1666,8 +1695,12 @@ export default function AgentEditorPage({
|
||||
<Card border="solid" rounding="lg">
|
||||
<InputHorizontal
|
||||
withLabel="coding_agent"
|
||||
|
|
@ -14568,7 +14864,7 @@ index 9325a2e0..48049521 100644
|
|||
disabled={!codingAgentTool}
|
||||
>
|
||||
<SwitchField
|
||||
@@ -1731,8 +1763,8 @@ export default function AgentEditorPage({
|
||||
@@ -1731,8 +1764,8 @@ export default function AgentEditorPage({
|
||||
|
||||
<SimpleCollapsible>
|
||||
<SimpleCollapsible.Header
|
||||
|
|
@ -14579,7 +14875,7 @@ index 9325a2e0..48049521 100644
|
|||
/>
|
||||
<SimpleCollapsible.Content>
|
||||
<GeneralLayouts.Section>
|
||||
@@ -1740,8 +1772,10 @@ export default function AgentEditorPage({
|
||||
@@ -1740,8 +1773,10 @@ export default function AgentEditorPage({
|
||||
<GeneralLayouts.Section>
|
||||
<InputHorizontal
|
||||
withLabel="llm_model"
|
||||
|
|
@ -14592,7 +14888,7 @@ index 9325a2e0..48049521 100644
|
|||
>
|
||||
<ModelSelector
|
||||
value={
|
||||
@@ -1760,9 +1794,9 @@ export default function AgentEditorPage({
|
||||
@@ -1760,9 +1795,9 @@ export default function AgentEditorPage({
|
||||
</InputHorizontal>
|
||||
<InputHorizontal
|
||||
withLabel="knowledge_cutoff_date"
|
||||
|
|
@ -14605,7 +14901,7 @@ index 9325a2e0..48049521 100644
|
|||
>
|
||||
<InputDatePickerField
|
||||
name="knowledge_cutoff_date"
|
||||
@@ -1771,7 +1805,7 @@ export default function AgentEditorPage({
|
||||
@@ -1771,7 +1806,7 @@ export default function AgentEditorPage({
|
||||
</InputHorizontal>
|
||||
<InputHorizontal
|
||||
withLabel="replace_base_system_prompt"
|
||||
|
|
@ -14614,7 +14910,7 @@ index 9325a2e0..48049521 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,23 +1817,19 @@ export default function AgentEditorPage({
|
||||
@@ -1783,23 +1818,19 @@ export default function AgentEditorPage({
|
||||
<GeneralLayouts.Section gap={0.25}>
|
||||
<InputVertical
|
||||
withLabel="reminders"
|
||||
|
|
@ -14642,7 +14938,7 @@ index 9325a2e0..48049521 100644
|
|||
</Text>
|
||||
</GeneralLayouts.Section>
|
||||
</GeneralLayouts.Section>
|
||||
@@ -1846,8 +1876,8 @@ export default function AgentEditorPage({
|
||||
@@ -1846,8 +1877,8 @@ export default function AgentEditorPage({
|
||||
</InputHorizontal>
|
||||
)}
|
||||
<InputHorizontal
|
||||
|
|
|
|||
|
|
@ -1432,6 +1432,15 @@
|
|||
"research_agent": "Recherche-Agent",
|
||||
"thinking": "Denken",
|
||||
"memory": "Speicher"
|
||||
},
|
||||
"header": {
|
||||
"export_as": "Exportieren als…",
|
||||
"move_to_project": "In Projekt verschieben",
|
||||
"plaintext": "Nur Text",
|
||||
"markdown": "Markdown",
|
||||
"share": "Teilen",
|
||||
"fit_width": "Breite anpassen",
|
||||
"full_width": "Volle Breite"
|
||||
}
|
||||
},
|
||||
"settings": {
|
||||
|
|
@ -1905,7 +1914,15 @@
|
|||
"delete_chat_title": "Chat löschen",
|
||||
"delete_chat_confirm": "Sind Sie sicher, dass Sie diese Chat-Sitzung löschen möchten? Diese Aktion kann nicht rückgängig gemacht werden.",
|
||||
"last_message": "Letzte Nachricht {{time}}",
|
||||
"recent_chats": "Letzte Chats"
|
||||
"recent_chats": "Kürzliche Chats",
|
||||
"create": {
|
||||
"title": "Neues Projekt erstellen",
|
||||
"description": "Nutzen Sie Projekte, um Ihre Dateien und Chats an einem Ort zu organisieren und benutzerdefinierte Anweisungen für laufende Arbeiten hinzuzufügen.",
|
||||
"name_label": "Projektname",
|
||||
"name_placeholder": "Woran arbeiten Sie?",
|
||||
"submit": "Projekt erstellen"
|
||||
},
|
||||
"last_message_prefix": "Letzte Nachricht"
|
||||
},
|
||||
"sidebar": {
|
||||
"recents": "Kürzliche",
|
||||
|
|
@ -2172,7 +2189,11 @@
|
|||
"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."
|
||||
"knowledge_empty": "Fügen Sie Dokumente oder verbundene Quellen für diesen Agenten hinzu.",
|
||||
"starter_example_0": "Gib mir einen Überblick über einige Dokumente.",
|
||||
"starter_example_1": "Finde den neuesten Verkaufsbericht.",
|
||||
"starter_example_2": "Erstelle eine Liste unserer technischen Ziele für dieses Quartal.",
|
||||
"starter_example_3": "Fasse meine Ziele für heute zusammen."
|
||||
},
|
||||
"tools": {
|
||||
"internal_search": "Interne Suche",
|
||||
|
|
@ -2181,5 +2202,12 @@
|
|||
"code_interpreter": "Code-Interpreter",
|
||||
"coding_agent": "Coding-Agent",
|
||||
"open_url": "URL öffnen"
|
||||
},
|
||||
"agent_viewer": {
|
||||
"featured": "Hervorgehoben",
|
||||
"no_knowledge": "Kein Wissen",
|
||||
"actions_tools": "Aktionen & Werkzeuge",
|
||||
"no_actions": "Keine Aktionen",
|
||||
"more_info": "Weitere Infos"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1432,6 +1432,15 @@
|
|||
"research_agent": "Research agent",
|
||||
"thinking": "Thinking",
|
||||
"memory": "Memory"
|
||||
},
|
||||
"header": {
|
||||
"export_as": "Export As…",
|
||||
"move_to_project": "Move to Project",
|
||||
"plaintext": "Plaintext",
|
||||
"markdown": "Markdown",
|
||||
"share": "Share",
|
||||
"fit_width": "Fit width",
|
||||
"full_width": "Full width"
|
||||
}
|
||||
},
|
||||
"settings": {
|
||||
|
|
@ -1905,7 +1914,15 @@
|
|||
"delete_chat_title": "Delete Chat",
|
||||
"delete_chat_confirm": "Are you sure you want to delete this chat session? This action cannot be undone.",
|
||||
"last_message": "Last message {{time}}",
|
||||
"recent_chats": "Recent Chats"
|
||||
"recent_chats": "Recent Chats",
|
||||
"create": {
|
||||
"title": "Create New Project",
|
||||
"description": "Use projects to organize your files and chats in one place, and add custom instructions for ongoing work.",
|
||||
"name_label": "Project Name",
|
||||
"name_placeholder": "What are you working on?",
|
||||
"submit": "Create Project"
|
||||
},
|
||||
"last_message_prefix": "Last message"
|
||||
},
|
||||
"sidebar": {
|
||||
"recents": "Recents",
|
||||
|
|
@ -2172,7 +2189,11 @@
|
|||
"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."
|
||||
"knowledge_empty": "Add documents or connected sources to use for this agent.",
|
||||
"starter_example_0": "Give me an overview of some documents.",
|
||||
"starter_example_1": "Find the latest sales report.",
|
||||
"starter_example_2": "Compile a list of our engineering goals for this quarter.",
|
||||
"starter_example_3": "Summarize my goals for today."
|
||||
},
|
||||
"tools": {
|
||||
"internal_search": "Internal Search",
|
||||
|
|
@ -2181,5 +2202,12 @@
|
|||
"code_interpreter": "Code Interpreter",
|
||||
"coding_agent": "Coding Agent",
|
||||
"open_url": "Open URL"
|
||||
},
|
||||
"agent_viewer": {
|
||||
"featured": "Featured",
|
||||
"no_knowledge": "No Knowledge",
|
||||
"actions_tools": "Actions & Tools",
|
||||
"no_actions": "No Actions",
|
||||
"more_info": "More Info"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue