From 826e0e675f4d616b69ac655c9998103a98656d85 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Mon, 13 Apr 2026 18:56:08 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- .../components/AccountMenu/index.tsx | 1 - src/frontend/src/locales/de.json | 2 +- src/frontend/src/locales/es.json | 2 +- src/frontend/src/locales/fr.json | 2 +- src/frontend/src/locales/ja.json | 2 +- src/frontend/src/locales/pt.json | 2 +- src/frontend/src/locales/zh-Hans.json | 2 +- .../FlowPage/components/flowSidebarComponent/index.tsx | 4 +++- .../MainPage/pages/filesPage/components/FilesTab.tsx | 9 +++++---- .../pages/homePage/components/McpAuthSection.tsx | 5 ++++- .../pages/homePage/components/McpFlowsSection.tsx | 5 +---- .../pages/homePage/components/McpServerTab.tsx | 5 ++++- .../components/KnowledgeBaseEmptyState.tsx | 4 +++- .../knowledgePage/components/KnowledgeBasesTab.tsx | 5 ++++- .../sourceChunksPage/SourceChunksPage.tsx | 10 ++++++++-- 15 files changed, 38 insertions(+), 22 deletions(-) diff --git a/src/frontend/src/components/core/appHeaderComponent/components/AccountMenu/index.tsx b/src/frontend/src/components/core/appHeaderComponent/components/AccountMenu/index.tsx index 43fb6d9f02..891f222b6e 100644 --- a/src/frontend/src/components/core/appHeaderComponent/components/AccountMenu/index.tsx +++ b/src/frontend/src/components/core/appHeaderComponent/components/AccountMenu/index.tsx @@ -171,7 +171,6 @@ export const AccountMenu = () => { - {!autoLogin && (
diff --git a/src/frontend/src/locales/de.json b/src/frontend/src/locales/de.json index 1c5defc873..4f013b54e2 100644 --- a/src/frontend/src/locales/de.json +++ b/src/frontend/src/locales/de.json @@ -470,4 +470,4 @@ "templatesModal.title": "Vorlagen", "templatesModal.tryDifferentQuery": "und versuchen Sie es mit einer anderen Abfrage.", "templatesModal.useCases": "Anwendungsfälle" -} \ No newline at end of file +} diff --git a/src/frontend/src/locales/es.json b/src/frontend/src/locales/es.json index 805d110108..f09a49026c 100644 --- a/src/frontend/src/locales/es.json +++ b/src/frontend/src/locales/es.json @@ -470,4 +470,4 @@ "templatesModal.title": "Plantillas", "templatesModal.tryDifferentQuery": "y prueba con otra consulta.", "templatesModal.useCases": "Casos de uso" -} \ No newline at end of file +} diff --git a/src/frontend/src/locales/fr.json b/src/frontend/src/locales/fr.json index 0258620f12..dd22fad98c 100644 --- a/src/frontend/src/locales/fr.json +++ b/src/frontend/src/locales/fr.json @@ -470,4 +470,4 @@ "templatesModal.title": "Modèles", "templatesModal.tryDifferentQuery": "et essayez une autre requête.", "templatesModal.useCases": "Cas d'usage" -} \ No newline at end of file +} diff --git a/src/frontend/src/locales/ja.json b/src/frontend/src/locales/ja.json index d4d53efc8c..ae20fac759 100644 --- a/src/frontend/src/locales/ja.json +++ b/src/frontend/src/locales/ja.json @@ -470,4 +470,4 @@ "templatesModal.title": "テンプレート", "templatesModal.tryDifferentQuery": "別のクエリを試してみてください。", "templatesModal.useCases": "ユースケース" -} \ No newline at end of file +} diff --git a/src/frontend/src/locales/pt.json b/src/frontend/src/locales/pt.json index e9915c23c1..c97d537a24 100644 --- a/src/frontend/src/locales/pt.json +++ b/src/frontend/src/locales/pt.json @@ -470,4 +470,4 @@ "templatesModal.title": "Modelos", "templatesModal.tryDifferentQuery": "e tente uma consulta diferente.", "templatesModal.useCases": "Casos de uso" -} \ No newline at end of file +} diff --git a/src/frontend/src/locales/zh-Hans.json b/src/frontend/src/locales/zh-Hans.json index 4ecfdd2975..e6374cbfb4 100644 --- a/src/frontend/src/locales/zh-Hans.json +++ b/src/frontend/src/locales/zh-Hans.json @@ -470,4 +470,4 @@ "templatesModal.title": "模板", "templatesModal.tryDifferentQuery": "并尝试其他查询。", "templatesModal.useCases": "用例" -} \ No newline at end of file +} diff --git a/src/frontend/src/pages/FlowPage/components/flowSidebarComponent/index.tsx b/src/frontend/src/pages/FlowPage/components/flowSidebarComponent/index.tsx index dc30225ed6..8881d05090 100644 --- a/src/frontend/src/pages/FlowPage/components/flowSidebarComponent/index.tsx +++ b/src/frontend/src/pages/FlowPage/components/flowSidebarComponent/index.tsx @@ -817,7 +817,9 @@ export function FlowSidebarComponent({ isLoading }: FlowSidebarComponentProps) { className="h-4 w-4" /> - {t("sidebar.discoverMore")} + + {t("sidebar.discoverMore")} + )} diff --git a/src/frontend/src/pages/MainPage/pages/filesPage/components/FilesTab.tsx b/src/frontend/src/pages/MainPage/pages/filesPage/components/FilesTab.tsx index 0d37aa0cb8..8f8c673bb1 100644 --- a/src/frontend/src/pages/MainPage/pages/filesPage/components/FilesTab.tsx +++ b/src/frontend/src/pages/MainPage/pages/filesPage/components/FilesTab.tsx @@ -78,7 +78,10 @@ const FilesTab = ({ files: files, }); setSuccessData({ - title: filesIds.length > 1 ? t("files.filesUploadedSuccessfully") : t("files.uploadedSuccessfully"), + title: + filesIds.length > 1 + ? t("files.filesUploadedSuccessfully") + : t("files.uploadedSuccessfully"), }); } catch (error: any) { setErrorData({ @@ -259,9 +262,7 @@ const FilesTab = ({ onError: (error) => { setErrorData({ title: t("files.errorDeleting"), - list: [ - error.message || t("files.errorDeletingDetail"), - ], + list: [error.message || t("files.errorDeletingDetail")], }); }, }, diff --git a/src/frontend/src/pages/MainPage/pages/homePage/components/McpAuthSection.tsx b/src/frontend/src/pages/MainPage/pages/homePage/components/McpAuthSection.tsx index ce6dd039a4..7ae4a9570c 100644 --- a/src/frontend/src/pages/MainPage/pages/homePage/components/McpAuthSection.tsx +++ b/src/frontend/src/pages/MainPage/pages/homePage/components/McpAuthSection.tsx @@ -77,7 +77,10 @@ export const McpAuthSection = ({ className="!text-mmd !font-normal" onClick={() => setAuthModalOpen(true)} > - + {hasAuthentication ? t("mcp.editAuth") : t("mcp.addAuth")}
diff --git a/src/frontend/src/pages/MainPage/pages/homePage/components/McpFlowsSection.tsx b/src/frontend/src/pages/MainPage/pages/homePage/components/McpFlowsSection.tsx index b5fbee3522..90a4847a7b 100644 --- a/src/frontend/src/pages/MainPage/pages/homePage/components/McpFlowsSection.tsx +++ b/src/frontend/src/pages/MainPage/pages/homePage/components/McpFlowsSection.tsx @@ -18,10 +18,7 @@ export const McpFlowsSection = ({ return (
- +
{t("mcp.flowsTools")} {
- {[{ id: "auto-install", label: t("mcp.autoInstall") }, { id: "json", label: "JSON" }].map((item) => ( + {[ + { id: "auto-install", label: t("mcp.autoInstall") }, + { id: "json", label: "JSON" }, + ].map((item) => (
@@ -262,7 +266,9 @@ export const SourceChunksPage = () => { onKeyDown={handlePageInputKeyDown} className="h-7 w-16 rounded border border-input bg-background px-2 text-center text-sm focus:outline-none focus:ring-1 focus:ring-ring [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-inner-spin-button]:opacity-100 [&::-webkit-inner-spin-button]:[filter:invert(1)] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-outer-spin-button]:opacity-100 [&::-webkit-outer-spin-button]:[filter:invert(1)]" /> - {t("knowledge.ofTotal", { total: totalPages })} + + {t("knowledge.ofTotal", { total: totalPages })} +