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.
feat(frontend): imporve agent inputs read-only (#11621)
Ubbe7f7ef6a27150
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/modals/AgentInputsReadOnly/AgentInputsReadOnly.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/modals/AgentInputsReadOnly/AgentInputsReadOnly.tsxindex a11e88f29a..948aae3ad2 100644--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/modals/AgentInputsReadOnly/AgentInputsReadOnly.tsx+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/modals/AgentInputsReadOnly/AgentInputsReadOnly.tsx@@ -1,16 +1,10 @@"use client";import type { LibraryAgent } from "@/app/api/__generated__/models/libraryAgent";-import type {- BlockIOSubSchema,- CredentialsMetaInput,-} from "@/lib/autogpt-server-api/types";+import type { CredentialsMetaInput } from "@/lib/autogpt-server-api/types";import { CredentialsInput } from "../CredentialsInputs/CredentialsInputs";-import {- getAgentCredentialsFields,- getAgentInputFields,- renderValue,-} from "./helpers";+import { RunAgentInputs } from "../RunAgentInputs/RunAgentInputs";+import { getAgentCredentialsFields, getAgentInputFields } from "./helpers";type Props = {agent: LibraryAgent;@@ -28,13 +22,13 @@ export function AgentInputsReadOnly({getAgentCredentialsFields(agent),);- // Take actual input entries as leading; augment with schema from input fields.- // TODO: ensure consistent ordering.const inputEntries =inputs &&- Object.entries(inputs).map<[string, [BlockIOSubSchema | undefined, any]]>(- ([k, v]) => [k, [inputFields[k], v]],- );+ Object.entries(inputs).map(([key, value]) => ({+ key,+ schema: inputFields[key],+ value,+ }));const hasInputs = inputEntries && inputEntries.length > 0;const hasCredentials = credentialInputs && credentialFieldEntries.length > 0;@@ -48,16 +42,20 @@ export function AgentInputsReadOnly({{/* Regular inputs */}{hasInputs && (<div className="flex flex-col gap-4">- {inputEntries.map(([key, [schema, value]]) => (- <div key={key} className="flex flex-col gap-1.5">- <label className="text-sm font-medium">- {schema?.title || key}- </label>- <p className="whitespace-pre-wrap break-words text-sm text-neutral-700">- {renderValue(value)}- </p>- </div>- ))}+ {inputEntries.map(({ key, schema, value }) => {+ if (!schema) return null;++ return (+ <RunAgentInputs+ key={key}+ schema={schema}+ value={value}+ placeholder={schema.description}+ onChange={() => {}}+ readOnly={true}+ />+ );+ })}</div>)}diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/modals/RunAgentInputs/RunAgentInputs.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/modals/RunAgentInputs/RunAgentInputs.tsxindex d98d3cb10d..ea372193c5 100644--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/modals/RunAgentInputs/RunAgentInputs.tsx+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/modals/RunAgentInputs/RunAgentInputs.tsx@@ -9,6 +9,7 @@ import { Button } from "@/components/atoms/Button/Button";import { FileInput } from "@/components/atoms/FileInput/FileInput";import { Switch } from "@/components/atoms/Switch/Switch";import { GoogleDrivePickerInput } from "@/components/contextual/GoogleDrivePicker/GoogleDrivePickerInput";+import { InformationTooltip } from "@/components/molecules/InformationTooltip/InformationTooltip";import { TimePicker } from "@/components/molecules/TimePicker/TimePicker";import {BlockIOObjectSubSchema,@@ -32,6 +33,7 @@ interface Props {value?: any;placeholder?: string;onChange: (value: any) => void;+ readOnly?: boolean;}/**@@ -44,6 +46,7 @@ export function RunAgentInputs({value,placeholder,onChange,+ readOnly = false,...props}: Props & React.HTMLAttributes<HTMLElement>) {const { handleUploadFile, uploadProgress } = useRunAgentInputs();@@ -62,7 +65,6 @@ export function RunAgentInputs({id={`${baseId}-number`}label={schema.title ?? placeholder ?? "Number"}hideLabel- size="small"type="number"value={value ?? ""}placeholder={placeholder || "Enter number"}@@ -80,7 +82,6 @@ export function RunAgentInputs({id={`${baseId}-textarea`}label={schema.title ?? placeholder ?? "Text"}hideLabel- size="small"type="textarea"rows={3}value={value ?? ""}@@ -130,7 +131,6 @@ export function RunAgentInputs({id={`${baseId}-date`}label={schema.title ?? placeholder ?? "Date"}hideLabel- size="small"type="date"value={value ? format(value as Date, "yyyy-MM-dd") : ""}onChange={(e) => {@@ -159,7 +159,6 @@ export function RunAgentInputs({id={`${baseId}-datetime`}label={schema.title ?? placeholder ?? "Date time"}hideLabel- size="small"type="datetime-local"value={value ?? ""}onChange={(e) => onChange((e.target as HTMLInputElement).value)}@@ -194,7 +193,6 @@ export function RunAgentInputs({label={schema.title ?? placeholder ?? "Select"}hideLabelvalue={value ?? ""}- size="small"onValueChange={(val: string) => onChange(val)}placeholder={placeholder || "Select an option"}options={schema.enum@@ -217,7 +215,6 @@ export function RunAgentInputs({items={allKeys.map((key) => ({value: key,label: _schema.properties[key]?.title ?? key,- size: "small",}))}selectedValues={selectedValues}onChange={(values: string[]) =>@@ -336,7 +333,6 @@ export function RunAgentInputs({id={`${baseId}-text`}label={schema.title ?? placeholder ?? "Text"}hideLabel- size="small"type="text"value={value ?? ""}onChange={(e) => onChange((e.target as HTMLInputElement).value)}@@ -347,6 +343,17 @@ export function RunAgentInputs({}return (- <div className="no-drag relative flex w-full">{innerInputElement}</div>+ <div className="flex w-full flex-col gap-0 space-y-2">+ <label className="large-medium flex items-center gap-1 font-medium">+ {schema.title || placeholder}+ <InformationTooltip description={schema.description} />+ </label>+ <div+ className="no-drag relative flex w-full"+ style={readOnly ? { pointerEvents: "none", opacity: 0.7 } : undefined}+ >+ {innerInputElement}+ </div>+ </div>);}diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/modals/RunAgentModal/components/ModalRunSection/ModalRunSection.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/modals/RunAgentModal/components/ModalRunSection/ModalRunSection.tsxindex d8c4ecb730..f3b02bfbc9 100644--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/modals/RunAgentModal/components/ModalRunSection/ModalRunSection.tsx+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/modals/RunAgentModal/components/ModalRunSection/ModalRunSection.tsx@@ -73,22 +73,15 @@ export function ModalRunSection() {title="Task Inputs"subtitle="Enter the information you want to provide to the agent for this task">- {/* Regular inputs */}{inputFields.map(([key, inputSubSchema]) => (- <div key={key} className="flex w-full flex-col gap-0 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={inputValues[key] ?? inputSubSchema.default}- placeholder={inputSubSchema.description}- onChange={(value) => setInputValue(key, value)}- data-testid={`agent-input-${key}`}- />- </div>+ <RunAgentInputs+ key={key}+ schema={inputSubSchema}+ value={inputValues[key] ?? inputSubSchema.default}+ placeholder={inputSubSchema.description}+ onChange={(value) => setInputValue(key, value)}+ data-testid={`agent-input-${key}`}+ />))}</ModalSection>) : null}diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedRunView/SelectedRunView.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedRunView/SelectedRunView.tsxindex cc5872097e..1fd4b3fb9d 100644--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedRunView/SelectedRunView.tsx+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedRunView/SelectedRunView.tsx@@ -4,17 +4,11 @@ import { AgentExecutionStatus } from "@/app/api/__generated__/models/agentExecutimport type { LibraryAgent } from "@/app/api/__generated__/models/libraryAgent";import { LoadingSpinner } from "@/components/atoms/LoadingSpinner/LoadingSpinner";import { Text } from "@/components/atoms/Text/Text";-import {- Tooltip,- TooltipContent,- TooltipProvider,- TooltipTrigger,-} from "@/components/atoms/Tooltip/BaseTooltip";import { ErrorCard } from "@/components/molecules/ErrorCard/ErrorCard";+import { InformationTooltip } from "@/components/molecules/InformationTooltip/InformationTooltip";import { PendingReviewsList } from "@/components/organisms/PendingReviewsList/PendingReviewsList";import { usePendingReviewsForExecution } from "@/hooks/usePendingReviews";import { isLargeScreen, useBreakpoint } from "@/lib/hooks/useBreakpoint";-import { InfoIcon } from "@phosphor-icons/react";import { useEffect } from "react";import { AgentInputsReadOnly } from "../../modals/AgentInputsReadOnly/AgentInputsReadOnly";import { AnchorLinksWrap } from "../AnchorLinksWrap";@@ -149,25 +143,12 @@ export function SelectedRunView({<div id="summary" className="scroll-mt-4"><RunDetailCardtitle={- <div className="flex items-center gap-2">+ <div className="flex items-center gap-1"><Text variant="lead-semibold">Summary</Text>- <TooltipProvider>- <Tooltip>- <TooltipTrigger asChild>- <InfoIcon- size={16}- className="cursor-help text-neutral-500 hover:text-neutral-700"- />- </TooltipTrigger>- <TooltipContent>- <p className="max-w-xs">- This AI-generated summary describes how the agent- handled your task. It's an experimental- feature and may occasionally be inaccurate.- </p>- </TooltipContent>- </Tooltip>- </TooltipProvider>+ <InformationTooltip+ iconSize={20}+ description="This AI-generated summary describes how the agent handled your task. It's an experimental feature and may occasionally be inaccurate."+ /></div>}>@@ -195,7 +176,17 @@ export function SelectedRunView({{/* Input Section */}<div id="input" className="scroll-mt-4">- <RunDetailCard title="Your input">+ <RunDetailCard+ title={+ <div className="flex items-center gap-1">+ <Text variant="lead-semibold">Your input</Text>+ <InformationTooltip+ iconSize={20}+ description="This is the input that was provided to the agent for running this task."+ />+ </div>+ }+ ><AgentInputsReadOnlyagent={agent}inputs={run?.inputs}diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedScheduleView/components/EditInputsModal/EditInputsModal.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedScheduleView/components/EditInputsModal/EditInputsModal.tsxdeleted file mode 100644index 05e55abd34..0000000000--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedScheduleView/components/EditInputsModal/EditInputsModal.tsx+++ /dev/null@@ -1,84 +0,0 @@-"use client";--import type { GraphExecutionJobInfo } from "@/app/api/__generated__/models/graphExecutionJobInfo";-import type { LibraryAgent } from "@/app/api/__generated__/models/libraryAgent";-import { Button } from "@/components/atoms/Button/Button";-import { Text } from "@/components/atoms/Text/Text";-import { Dialog } from "@/components/molecules/Dialog/Dialog";-import { PencilSimpleIcon } from "@phosphor-icons/react";-import { RunAgentInputs } from "../../../../modals/RunAgentInputs/RunAgentInputs";-import { useEditInputsModal } from "./useEditInputsModal";--type Props = {- agent: LibraryAgent;- schedule: GraphExecutionJobInfo;-};--export function EditInputsModal({ agent, schedule }: Props) {- const {- isOpen,- setIsOpen,- inputFields,- values,- setValues,- handleSave,- isSaving,- } = useEditInputsModal(agent, schedule);-- return (- <Dialog- controlled={{ isOpen, set: setIsOpen }}- styling={{ maxWidth: "32rem" }}- >- <Dialog.Trigger>- <Button- variant="ghost"- size="small"- className="absolute -right-2 -top-2"- >- <PencilSimpleIcon className="size-4" /> Edit inputs- </Button>- </Dialog.Trigger>- <Dialog.Content>- <div className="flex flex-col gap-4">- <Text variant="h3">Edit inputs</Text>- <div className="flex flex-col gap-4">- {Object.entries(inputFields).map(([key, fieldSchema]) => (- <div key={key} className="flex flex-col gap-1.5">- <label className="text-sm font-medium">- {fieldSchema?.title || key}- </label>- <RunAgentInputs- schema={fieldSchema as any}- value={values[key]}- onChange={(v) => setValues((prev) => ({ ...prev, [key]: v }))}- />- </div>- ))}- </div>- </div>- <Dialog.Footer>- <div className="flex w-full justify-end gap-2">- <Button- variant="secondary"- size="small"- onClick={() => setIsOpen(false)}- className="min-w-32"- >- Cancel- </Button>- <Button- variant="primary"- size="small"- onClick={handleSave}- loading={isSaving}- className="min-w-32"- >- {isSaving ? "Saving…" : "Save"}- </Button>- </div>- </Dialog.Footer>- </Dialog.Content>- </Dialog>- );-}diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedScheduleView/components/EditInputsModal/useEditInputsModal.ts b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedScheduleView/components/EditInputsModal/useEditInputsModal.tsdeleted file mode 100644index 1c061ea7b7..0000000000--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedScheduleView/components/EditInputsModal/useEditInputsModal.ts+++ /dev/null@@ -1,78 +0,0 @@-"use client";--import { useMemo, useState } from "react";-import { useQueryClient } from "@tanstack/react-query";-import { getGetV1ListExecutionSchedulesForAGraphQueryKey } from "@/app/api/__generated__/endpoints/schedules/schedules";-import type { LibraryAgent } from "@/app/api/__generated__/models/libraryAgent";-import type { GraphExecutionJobInfo } from "@/app/api/__generated__/models/graphExecutionJobInfo";-import { useToast } from "@/components/molecules/Toast/use-toast";--function getAgentInputFields(agent: LibraryAgent): Record<string, any> {- const schema = agent.input_schema as unknown as {- properties?: Record<string, any>;- } | null;- if (!schema || !schema.properties) return {};- const properties = schema.properties as Record<string, any>;- const visibleEntries = Object.entries(properties).filter(- ([, sub]) => !sub?.hidden,- );- return Object.fromEntries(visibleEntries);-}--export function useEditInputsModal(- agent: LibraryAgent,- schedule: GraphExecutionJobInfo,-) {- const queryClient = useQueryClient();- const { toast } = useToast();- const [isOpen, setIsOpen] = useState(false);- const [isSaving, setIsSaving] = useState(false);- const inputFields = useMemo(() => getAgentInputFields(agent), [agent]);- const [values, setValues] = useState<Record<string, any>>({- ...(schedule.input_data as Record<string, any>),- });-- async function handleSave() {- setIsSaving(true);- try {- const res = await fetch(`/api/schedules/${schedule.id}`, {- method: "PATCH",- headers: { "Content-Type": "application/json" },- body: JSON.stringify({ inputs: values }),- });- if (!res.ok) {- let message = "Failed to update schedule inputs";- const data = await res.json();- message = data?.message || data?.detail || message;- throw new Error(message);- }-- await queryClient.invalidateQueries({- queryKey: getGetV1ListExecutionSchedulesForAGraphQueryKey(- schedule.graph_id,- ),- });- toast({- title: "Schedule inputs updated",- });- setIsOpen(false);- } catch (error: any) {- toast({- title: "Failed to update schedule inputs",- description: error?.message || "An unexpected error occurred.",- variant: "destructive",- });- }- setIsSaving(false);- }-- return {- isOpen,- setIsOpen,- inputFields,- values,- setValues,- handleSave,- isSaving,- } as const;-}diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedTemplateView/SelectedTemplateView.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedTemplateView/SelectedTemplateView.tsxindex 8f64417f77..ead985457e 100644--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedTemplateView/SelectedTemplateView.tsx+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedTemplateView/SelectedTemplateView.tsx@@ -4,7 +4,6 @@ import type { GraphExecutionMeta } from "@/app/api/__generated__/models/graphExeimport type { LibraryAgent } from "@/app/api/__generated__/models/libraryAgent";import { Input } from "@/components/atoms/Input/Input";import { ErrorCard } from "@/components/molecules/ErrorCard/ErrorCard";-import { InformationTooltip } from "@/components/molecules/InformationTooltip/InformationTooltip";import {getAgentCredentialsFields,getAgentInputFields,@@ -138,25 +137,13 @@ export function SelectedTemplateView({<RunDetailCard title="Your Input"><div className="flex flex-col gap-4">{inputFields.map(([key, inputSubSchema]) => (- <div+ <RunAgentInputskey={key}- className="flex w-full flex-col gap-0 space-y-2"- >- <label className="flex items-center gap-1 text-sm font-medium">- {inputSubSchema.title || key}- {inputSubSchema.description && (- <InformationTooltip- description={inputSubSchema.description}- />- )}- </label>- <RunAgentInputs- schema={inputSubSchema}- value={inputs[key] ?? inputSubSchema.default}- placeholder={inputSubSchema.description}- onChange={(value) => setInputValue(key, value)}- />- </div>+ schema={inputSubSchema}+ value={inputs[key] ?? inputSubSchema.default}+ placeholder={inputSubSchema.description}+ onChange={(value) => setInputValue(key, value)}+ />))}</div></RunDetailCard>diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedTriggerView/SelectedTriggerView.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedTriggerView/SelectedTriggerView.tsxindex 2021251ad2..64d4430e78 100644--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedTriggerView/SelectedTriggerView.tsx+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedTriggerView/SelectedTriggerView.tsx@@ -3,7 +3,6 @@import type { LibraryAgent } from "@/app/api/__generated__/models/libraryAgent";import { Input } from "@/components/atoms/Input/Input";import { ErrorCard } from "@/components/molecules/ErrorCard/ErrorCard";-import { InformationTooltip } from "@/components/molecules/InformationTooltip/InformationTooltip";import {getAgentCredentialsFields,getAgentInputFields,@@ -131,25 +130,13 @@ export function SelectedTriggerView({<RunDetailCard title="Your Input"><div className="flex flex-col gap-4">{inputFields.map(([key, inputSubSchema]) => (- <div+ <RunAgentInputskey={key}- className="flex w-full flex-col gap-0 space-y-2"- >- <label className="flex items-center gap-1 text-sm font-medium">- {inputSubSchema.title || key}- {inputSubSchema.description && (- <InformationTooltip- description={inputSubSchema.description}- />- )}- </label>- <RunAgentInputs- schema={inputSubSchema}- value={inputs[key] ?? inputSubSchema.default}- placeholder={inputSubSchema.description}- onChange={(value) => setInputValue(key, value)}- />- </div>+ schema={inputSubSchema}+ value={inputs[key] ?? inputSubSchema.default}+ placeholder={inputSubSchema.description}+ onChange={(value) => setInputValue(key, value)}+ />))}</div></RunDetailCard>diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/OldAgentLibraryView/components/agent-run-draft-view.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/OldAgentLibraryView/components/agent-run-draft-view.tsxindex 0289bbdb5f..5f57032618 100644--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/OldAgentLibraryView/components/agent-run-draft-view.tsx+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/OldAgentLibraryView/components/agent-run-draft-view.tsx@@ -680,28 +680,20 @@ export function AgentRunDraftView({{/* Regular inputs */}{Object.entries(agentInputFields).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={inputValues[key] ?? inputSubSchema.default}- placeholder={inputSubSchema.description}- onChange={(value) => {- setInputValues((obj) => ({- ...obj,- [key]: value,- }));- setChangedPresetAttributes((prev) => prev.add("inputs"));- }}- data-testid={`agent-input-${key}`}- />- </div>+ <RunAgentInputs+ key={key}+ schema={inputSubSchema}+ value={inputValues[key] ?? inputSubSchema.default}+ placeholder={inputSubSchema.description}+ onChange={(value) => {+ setInputValues((obj) => ({+ ...obj,+ [key]: value,+ }));+ setChangedPresetAttributes((prev) => prev.add("inputs"));+ }}+ data-testid={`agent-input-${key}`}+ />))}</CardContent></Card>diff --git a/autogpt_platform/frontend/src/components/molecules/InformationTooltip/InformationTooltip.tsx b/autogpt_platform/frontend/src/components/molecules/InformationTooltip/InformationTooltip.tsxindex 4bf9a76b94..36184f08c4 100644--- a/autogpt_platform/frontend/src/components/molecules/InformationTooltip/InformationTooltip.tsx+++ b/autogpt_platform/frontend/src/components/molecules/InformationTooltip/InformationTooltip.tsx@@ -9,16 +9,20 @@ import ReactMarkdown from "react-markdown";type Props = {description?: string;+ iconSize?: number;};-export function InformationTooltip({ description }: Props) {+export function InformationTooltip({ description, iconSize = 24 }: Props) {if (!description) return null;return (<TooltipProvider delayDuration={400}><Tooltip><TooltipTrigger asChild>- <Info className="rounded-full p-1 hover:bg-slate-50" size={24} />+ <Info+ className="rounded-full p-1 hover:bg-slate-50"+ size={iconSize}+ /></TooltipTrigger><TooltipContent><ReactMarkdown