[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot]
2026-04-13 18:56:08 +00:00
committed by GitHub
parent 9879647c75
commit 826e0e675f
15 changed files with 38 additions and 22 deletions

View File

@ -171,7 +171,6 @@ export const AccountMenu = () => {
</div>
</div>
{!autoLogin && (
<div>
<HeaderMenuItemButton onClick={handleLogout} icon="log-out">

View File

@ -470,4 +470,4 @@
"templatesModal.title": "Vorlagen",
"templatesModal.tryDifferentQuery": "und versuchen Sie es mit einer anderen Abfrage.",
"templatesModal.useCases": "Anwendungsfälle"
}
}

View File

@ -470,4 +470,4 @@
"templatesModal.title": "Plantillas",
"templatesModal.tryDifferentQuery": "y prueba con otra consulta.",
"templatesModal.useCases": "Casos de uso"
}
}

View File

@ -470,4 +470,4 @@
"templatesModal.title": "Modèles",
"templatesModal.tryDifferentQuery": "et essayez une autre requête.",
"templatesModal.useCases": "Cas d'usage"
}
}

View File

@ -470,4 +470,4 @@
"templatesModal.title": "テンプレート",
"templatesModal.tryDifferentQuery": "別のクエリを試してみてください。",
"templatesModal.useCases": "ユースケース"
}
}

View File

@ -470,4 +470,4 @@
"templatesModal.title": "Modelos",
"templatesModal.tryDifferentQuery": "e tente uma consulta diferente.",
"templatesModal.useCases": "Casos de uso"
}
}

View File

@ -470,4 +470,4 @@
"templatesModal.title": "模板",
"templatesModal.tryDifferentQuery": "并尝试其他查询。",
"templatesModal.useCases": "用例"
}
}

View File

@ -817,7 +817,9 @@ export function FlowSidebarComponent({ isLoading }: FlowSidebarComponentProps) {
className="h-4 w-4"
/>
</span>
<span className="min-w-0 truncate">{t("sidebar.discoverMore")}</span>
<span className="min-w-0 truncate">
{t("sidebar.discoverMore")}
</span>
</Button>
)}
</>

View File

@ -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")],
});
},
},

View File

@ -77,7 +77,10 @@ export const McpAuthSection = ({
className="!text-mmd !font-normal"
onClick={() => setAuthModalOpen(true)}
>
<ForwardedIconComponent name="Fingerprint" className="h-4 w-4 shrink-0" />
<ForwardedIconComponent
name="Fingerprint"
className="h-4 w-4 shrink-0"
/>
{hasAuthentication ? t("mcp.editAuth") : t("mcp.addAuth")}
</Button>
</div>

View File

@ -18,10 +18,7 @@ export const McpFlowsSection = ({
return (
<div className="w-full xl:w-2/5">
<div className="flex flex-row justify-between pt-1">
<ShadTooltip
content={t("mcp.flowsTooltip")}
side="right"
>
<ShadTooltip content={t("mcp.flowsTooltip")} side="right">
<div className="flex items-center text-sm font-medium hover:cursor-help">
{t("mcp.flowsTools")}
<ForwardedIconComponent

View File

@ -106,7 +106,10 @@ const McpServerTab = ({ folderName }: { folderName: string }) => {
<div className={cn("flex flex-col", !ENABLE_MCP_COMPOSER && "mt-2")}>
<div className="flex flex-row justify-start border-b border-border">
{[{ 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) => (
<Button
unstyled
key={item.id}

View File

@ -19,7 +19,9 @@ const KnowledgeBaseEmptyState = ({
return (
<div className="flex h-full w-full flex-col items-center justify-center gap-8 pb-8">
<div className="flex flex-col items-center gap-2">
<h3 className="text-2xl font-semibold">{t("knowledge.noKnowledgeBases")}</h3>
<h3 className="text-2xl font-semibold">
{t("knowledge.noKnowledgeBases")}
</h3>
<p className="text-lg text-secondary-foreground">
{t("knowledge.emptyDescription")}
</p>

View File

@ -75,7 +75,10 @@ const KnowledgeBasesTab = ({
});
} else if (kb.status === "ready" && previousStatus === "ingesting") {
setSuccessData({
title: t("knowledge.ingestionComplete", { name: kb.name, chunks: kb.chunks }),
title: t("knowledge.ingestionComplete", {
name: kb.name,
chunks: kb.chunks,
}),
});
}
}

View File

@ -213,7 +213,11 @@ export const SourceChunksPage = () => {
</Select>
</div>
<span className="text-sm text-muted-foreground">
{t("knowledge.showing", { start: startIndex + 1, end: Math.min(startIndex + pageSize, total), total })}
{t("knowledge.showing", {
start: startIndex + 1,
end: Math.min(startIndex + pageSize, total),
total,
})}
</span>
</div>
<div className="flex items-center gap-2">
@ -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)]"
/>
<span>{t("knowledge.ofTotal", { total: totalPages })}</span>
<span>
{t("knowledge.ofTotal", { total: totalPages })}
</span>
</div>
<Button
variant="outline"