Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

fix(frontend): Remove double title on credentials input (#8638)

Reinier van der Leer5c0f979b9c13
diff --git a/autogpt_platform/frontend/src/components/CustomNode.tsx b/autogpt_platform/frontend/src/components/CustomNode.tsx
index 85a38fc911..a748784454 100644
--- a/autogpt_platform/frontend/src/components/CustomNode.tsx
+++ b/autogpt_platform/frontend/src/components/CustomNode.tsx
@@ -225,14 +225,14 @@ export function CustomNode({
side="left"
/>
) : (
- <span
- className="text-m green mb-0 text-gray-900"
- title={propSchema.description}
- >
- {propKey == "credentials"
- ? "Credentials"
- : propSchema.title || beautifyString(propKey)}
- </span>
+ propKey != "credentials" && (
+ <span
+ className="text-m green mb-0 text-gray-900"
+ title={propSchema.description}
+ >
+ {propSchema.title || beautifyString(propKey)}
+ </span>
+ )
)}
{!isConnected && (
<NodeGenericInputField
diff --git a/autogpt_platform/frontend/src/components/integrations/credentials-input.tsx b/autogpt_platform/frontend/src/components/integrations/credentials-input.tsx
index 3457a1c82c..4dbaf7b070 100644
--- a/autogpt_platform/frontend/src/components/integrations/credentials-input.tsx
+++ b/autogpt_platform/frontend/src/components/integrations/credentials-input.tsx
@@ -234,7 +234,12 @@ export const CredentialsInput: FC<{
if (savedApiKeys.length === 0 && savedOAuthCredentials.length === 0) {
return (
<>
- <span className="text-m green mb-0 text-gray-900">Credentials</span>
+ <span
+ className="text-m green mb-0 text-gray-900"
+ title={schema.description}
+ >
+ Credentials
+ </span>
<div className={cn("flex flex-row space-x-2", className)}>
{supportsOAuth2 && (
<Button onClick={handleOAuthLogin}>