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): onboarding run card (#11636)

Ubbe9a1d9406776d
diff --git a/autogpt_platform/frontend/src/app/(no-navbar)/onboarding/5-run/page.tsx b/autogpt_platform/frontend/src/app/(no-navbar)/onboarding/5-run/page.tsx
index 4b6abacbff..58960a0cf6 100644
--- a/autogpt_platform/frontend/src/app/(no-navbar)/onboarding/5-run/page.tsx
+++ b/autogpt_platform/frontend/src/app/(no-navbar)/onboarding/5-run/page.tsx
@@ -8,7 +8,6 @@ import {
CardTitle,
} from "@/components/__legacy__/ui/card";
import { ErrorCard } from "@/components/molecules/ErrorCard/ErrorCard";
-import { InformationTooltip } from "@/components/molecules/InformationTooltip/InformationTooltip";
import { CircleNotchIcon } from "@phosphor-icons/react/dist/ssr";
import { Play } from "lucide-react";
import OnboardingButton from "../components/OnboardingButton";
@@ -79,20 +78,13 @@ export default function Page() {
<CardContent className="flex flex-col gap-4">
{Object.entries(agent?.input_schema.properties || {}).map(
([key, inputSubSchema]) => (
- <div key={key} className="flex flex-col space-y-2">
- <label className="flex items-center gap-1 text-sm font-medium">
- {inputSubSchema.title || key}
- <InformationTooltip
- description={inputSubSchema.description}
- />
- </label>
- <RunAgentInputs
- schema={inputSubSchema}
- value={onboarding.state?.agentInput?.[key]}
- placeholder={inputSubSchema.description}
- onChange={(value) => handleSetAgentInput(key, value)}
- />
- </div>
+ <RunAgentInputs
+ key={key}
+ schema={inputSubSchema}
+ value={onboarding.state?.agentInput?.[key]}
+ placeholder={inputSubSchema.description}
+ onChange={(value) => handleSetAgentInput(key, value)}
+ />
),
)}
<AgentOnboardingCredentials
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/modals/CredentialsInputs/components/CredentialRow/CredentialRow.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/modals/CredentialsInputs/components/CredentialRow/CredentialRow.tsx
index 251b4cfbb4..34c066e90d 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/modals/CredentialsInputs/components/CredentialRow/CredentialRow.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/modals/CredentialsInputs/components/CredentialRow/CredentialRow.tsx
@@ -62,12 +62,15 @@ export function CredentialRow({
</div>
<IconKey className="h-5 w-5 shrink-0 text-zinc-800" />
<div className="flex min-w-0 flex-1 flex-nowrap items-center gap-4">
- <Text variant="body" className="tracking-tight">
+ <Text
+ variant="body"
+ className="line-clamp-1 flex-[0_0_50%] text-ellipsis tracking-tight"
+ >
{getCredentialDisplayName(credential, displayName)}
</Text>
<Text
variant="large"
- className="relative top-1 font-mono tracking-tight"
+ className="relative top-1 flex-[0_0_40%] overflow-hidden font-mono tracking-tight"
>
{"*".repeat(MASKED_KEY_LENGTH)}
</Text>