Skip to content

Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active

🧼 refactor: Drop Redundant Design Overrides in the Remaining Side Panels (#16867)

Marco Beretta85931bece3f3
diff --git a/client/src/components/SidePanel/Builder/Action.tsx b/client/src/components/SidePanel/Builder/Action.tsx
index 9f1c5009ec..29f1a8288f 100644
--- a/client/src/components/SidePanel/Builder/Action.tsx
+++ b/client/src/components/SidePanel/Builder/Action.tsx
@@ -21,10 +21,7 @@ export default function Action({ action, onClick }: { action: Action; onClick: (
onMouseLeave={() => setIsHovering(false)}
aria-label={`Action for ${action.metadata.domain}`}
>
- <div
- className="h-9 grow overflow-hidden px-3 py-2 text-ellipsis whitespace-nowrap"
- style={{ wordBreak: 'break-all' }}
- >
+ <div className="h-9 grow overflow-hidden px-3 py-2 break-all text-ellipsis whitespace-nowrap">
{action.metadata.domain}
</div>
<div
diff --git a/client/src/components/SidePanel/Builder/ActionsAuth.tsx b/client/src/components/SidePanel/Builder/ActionsAuth.tsx
index db33654be8..b542eeeb9d 100644
--- a/client/src/components/SidePanel/Builder/ActionsAuth.tsx
+++ b/client/src/components/SidePanel/Builder/ActionsAuth.tsx
@@ -95,7 +95,7 @@ export default function ActionsAuth({ disableOAuth }: { disableOAuth?: boolean }
</button>
</OGDialogTrigger>
</div>
- <OGDialogContent className="bg-surface-dialog text-text-primary w-full max-w-lg">
+ <OGDialogContent className="text-text-primary w-full max-w-lg">
<OGDialogHeader>
<OGDialogTitle className="text-lg font-semibold">
{localize('com_ui_authentication')}
diff --git a/client/src/components/SidePanel/Builder/AssistantConversationStarters.tsx b/client/src/components/SidePanel/Builder/AssistantConversationStarters.tsx
index e41cee1f54..cd9e63806d 100644
--- a/client/src/components/SidePanel/Builder/AssistantConversationStarters.tsx
+++ b/client/src/components/SidePanel/Builder/AssistantConversationStarters.tsx
@@ -36,11 +36,6 @@ const AssistantConversationStarters: React.FC<AssistantConversationStartersProps
const newValues = field.value.filter((_, i) => i !== index);
field.onChange(newValues);
};
- const defaultStyle = {
- transition: 'opacity 200ms ease-in-out',
- opacity: 0,
- };
-
const triggerShake = (element: HTMLElement) => {
element.classList.remove('shake');
void element.offsetWidth;
@@ -50,13 +45,6 @@ const AssistantConversationStarters: React.FC<AssistantConversationStartersProps
}, 200);
};
- const transitionStyles = {
- entering: { opacity: 1 },
- entered: { opacity: 1 },
- exiting: { opacity: 0 },
- exited: { opacity: 0 },
- };
-
const hasReachedMax = field.value.length >= Constants.MAX_CONVO_STARTERS;
const addConversationStarterLabel = hasReachedMax
@@ -103,18 +91,17 @@ const AssistantConversationStarters: React.FC<AssistantConversationStartersProps
{(state: string) => (
<div
ref={nodeRef}
- style={{
- ...defaultStyle,
- ...transitionStyles[state as keyof typeof transitionStyles],
- transition: state === 'entering' ? 'none' : defaultStyle.transition,
- }}
- className="absolute right-1 top-1"
+ className={`absolute top-1 right-1 ${
+ state === 'entering'
+ ? 'transition-none'
+ : 'transition-opacity duration-200 ease-in-out'
+ } ${state === 'entering' || state === 'entered' ? 'opacity-100' : 'opacity-0'}`}
>
<TooltipAnchor
side="top"
description={addConversationStarterLabel}
aria-label={addConversationStarterLabel}
- className="flex size-7 items-center justify-center rounded-lg transition-colors duration-200 hover:bg-surface-hover"
+ className="hover:bg-surface-hover flex size-7 items-center justify-center rounded-lg transition-colors duration-200"
onClick={handleAddStarter}
disabled={hasReachedMax}
>
@@ -142,7 +129,7 @@ const AssistantConversationStarters: React.FC<AssistantConversationStartersProps
side="top"
description={localize('com_ui_delete')}
aria-label={localize('com_ui_delete')}
- className="absolute right-1 top-1 flex size-7 items-center justify-center rounded-lg transition-colors duration-200 hover:bg-surface-hover"
+ className="hover:bg-surface-hover absolute top-1 right-1 flex size-7 items-center justify-center rounded-lg transition-colors duration-200"
onClick={() => handleDeleteStarter(index)}
>
<X className="size-4" aria-hidden="true" />
diff --git a/client/src/components/SidePanel/Builder/AssistantTool.tsx b/client/src/components/SidePanel/Builder/AssistantTool.tsx
index 21e7828a44..346d5f2d86 100644
--- a/client/src/components/SidePanel/Builder/AssistantTool.tsx
+++ b/client/src/components/SidePanel/Builder/AssistantTool.tsx
@@ -65,15 +65,12 @@ export default function AssistantTool({
{currentTool.icon && (
<div className="flex h-9 w-9 items-center justify-center overflow-hidden rounded-full">
<div
- className="bg-surface-tertiary flex h-6 w-6 items-center justify-center overflow-hidden rounded-full bg-center bg-no-repeat"
- style={{ backgroundImage: `url(${currentTool.icon})`, backgroundSize: 'cover' }}
+ className="bg-surface-tertiary flex h-6 w-6 items-center justify-center overflow-hidden rounded-full bg-(image:--tool-icon) bg-cover bg-center bg-no-repeat"
+ style={{ '--tool-icon': `url(${currentTool.icon})` } as React.CSSProperties}
/>
</div>
)}
- <div
- className="h-9 grow px-3 py-2"
- style={{ textOverflow: 'ellipsis', wordBreak: 'break-all', overflow: 'hidden' }}
- >
+ <div className="h-9 grow overflow-hidden px-3 py-2 break-all text-ellipsis">
{currentTool.name}
</div>
</div>
diff --git a/client/src/components/SidePanel/Builder/CodeFiles.tsx b/client/src/components/SidePanel/Builder/CodeFiles.tsx
index 79a6d3959a..5551969a72 100644
--- a/client/src/components/SidePanel/Builder/CodeFiles.tsx
+++ b/client/src/components/SidePanel/Builder/CodeFiles.tsx
@@ -82,7 +82,7 @@ export default function CodeFiles({
<input
multiple={true}
type="file"
- style={{ display: 'none' }}
+ className="hidden"
tabIndex={-1}
ref={fileInputRef}
disabled={!assistant_id}
diff --git a/client/src/components/SidePanel/Builder/Images.tsx b/client/src/components/SidePanel/Builder/Images.tsx
index c81e1e14f6..a1ae7711fa 100644
--- a/client/src/components/SidePanel/Builder/Images.tsx
+++ b/client/src/components/SidePanel/Builder/Images.tsx
@@ -43,11 +43,10 @@ export const AssistantAvatar = ({
<div className="relative h-20 w-20 overflow-hidden rounded-full">
<img
src={url}
- className="bg-avatar-placeholder h-full w-full rounded-full object-cover"
+ className={`bg-avatar-placeholder h-full w-full rounded-full object-cover ${progress < 1 ? 'opacity-40' : 'opacity-100'}`}
alt="GPT"
width="80"
height="80"
- style={{ opacity: progress < 1 ? 0.4 : 1 }}
/>
{progress < 1 && (
<ProgressCircle
diff --git a/client/src/components/SidePanel/Builder/Knowledge.tsx b/client/src/components/SidePanel/Builder/Knowledge.tsx
index 5af4bbe296..d396d5af0e 100644
--- a/client/src/components/SidePanel/Builder/Knowledge.tsx
+++ b/client/src/components/SidePanel/Builder/Knowledge.tsx
@@ -118,7 +118,7 @@ export default function Knowledge({
<input
multiple={true}
type="file"
- style={{ display: 'none' }}
+ className="hidden"
tabIndex={-1}
ref={fileInputRef}
disabled={!assistant_id}
diff --git a/client/src/components/SidePanel/MCPBuilder/MCPServerCard.tsx b/client/src/components/SidePanel/MCPBuilder/MCPServerCard.tsx
index b2498ef4a9..5a2cc054a3 100644
--- a/client/src/components/SidePanel/MCPBuilder/MCPServerCard.tsx
+++ b/client/src/components/SidePanel/MCPBuilder/MCPServerCard.tsx
@@ -117,16 +117,16 @@ export default function MCPServerCard({
aria-label={`${displayName} - ${getStatusText()}`}
>
{/* Server Icon with Status Dot */}
- <div className="relative shrink-0">
+ <div className="text-text-primary relative shrink-0">
{server.config?.iconPath ? (
<CustomIcon
src={server.config.iconPath}
- className="text-text-primary size-8 rounded-lg object-cover"
+ className="size-8 rounded-lg object-cover"
alt=""
/>
) : (
- <div className="bg-surface-tertiary flex size-8 items-center justify-center rounded-lg">
- <MCPIcon className="text-text-secondary size-5" aria-hidden="true" />
+ <div className="bg-surface-tertiary text-text-secondary flex size-8 items-center justify-center rounded-lg">
+ <MCPIcon className="size-5" aria-hidden="true" />
</div>
)}
{/* Status dot - color indicates connection state */}
diff --git a/client/src/components/SidePanel/MCPBuilder/MCPServerDialog/index.tsx b/client/src/components/SidePanel/MCPBuilder/MCPServerDialog/index.tsx
index 29813fe82d..766895bff2 100644
--- a/client/src/components/SidePanel/MCPBuilder/MCPServerDialog/index.tsx
+++ b/client/src/components/SidePanel/MCPBuilder/MCPServerDialog/index.tsx
@@ -169,7 +169,6 @@ export default function MCPServerDialog({
showToast({ message: localize('com_ui_copied_to_clipboard') });
}}
disabled={isCopying || !redirectUri}
- className="p-0"
aria-label={localize('com_ui_copy_link')}
>
<MorphIcon icon={isCopying ? CopyCheck : Copy} className="size-4" />
diff --git a/client/src/components/SidePanel/MCPBuilder/MCPServerDialog/sections/AuthSection.tsx b/client/src/components/SidePanel/MCPBuilder/MCPServerDialog/sections/AuthSection.tsx
index 449cbf98f9..49dc70fbab 100644
--- a/client/src/components/SidePanel/MCPBuilder/MCPServerDialog/sections/AuthSection.tsx
+++ b/client/src/components/SidePanel/MCPBuilder/MCPServerDialog/sections/AuthSection.tsx
@@ -117,272 +117,282 @@ export default function AuthSection({ isEditMode, serverName }: AuthSectionProps
</fieldset>
{/* API Key Fields */}
- <Collapse open={authType === AuthTypeEnum.ServiceHttp} className="pt-3">
- <div className="bg-surface-secondary space-y-3 rounded-lg p-3">
- {/* User provides own key checkbox + admin-provided key */}
- <div>
- <div className="flex items-center gap-2">
- <Checkbox
- id="user_provides_key"
- checked={apiKeySource === 'user'}
- onCheckedChange={(checked) =>
- setValue('auth.api_key_source', checked ? 'user' : 'admin')
- }
- aria-labelledby="user_provides_key_label"
- />
- <label
- id="user_provides_key_label"
- htmlFor="user_provides_key"
- className="cursor-pointer text-sm"
- >
- {localize('com_ui_user_provides_key')}
- </label>
+ <Collapse open={authType === AuthTypeEnum.ServiceHttp}>
+ <div className="pt-3">
+ <div className="bg-surface-secondary space-y-3 rounded-lg p-3">
+ {/* User provides own key checkbox + admin-provided key */}
+ <div>
+ <div className="flex items-center gap-2">
+ <Checkbox
+ id="user_provides_key"
+ checked={apiKeySource === 'user'}
+ onCheckedChange={(checked) =>
+ setValue('auth.api_key_source', checked ? 'user' : 'admin')
+ }
+ aria-labelledby="user_provides_key_label"
+ />
+ <label
+ id="user_provides_key_label"
+ htmlFor="user_provides_key"
+ className="cursor-pointer text-sm"
+ >
+ {localize('com_ui_user_provides_key')}
+ </label>
+ </div>
+
+ {/* API Key input - only when admin provides */}
+ <Collapse open={apiKeySource !== 'user'}>
+ <div className="pt-3">
+ <div className="space-y-1.5">
+ <Label htmlFor="api_key" className="text-sm font-medium">
+ {localize('com_ui_api_key')}
+ </Label>
+ <SecretInput
+ id="api_key"
+ placeholder="sk-..."
+ controlsOnHover
+ {...register('auth.api_key')}
+ />
+ </div>
+ </div>
+ </Collapse>
+ </div>
+
+ {/* Header format + custom header name */}
+ <div>
+ <fieldset className="space-y-1.5">
+ <legend>
+ <Label id="header-format-label" className="text-sm font-medium">
+ {localize('com_ui_header_format')}
+ </Label>
+ </legend>
+ <Radio
+ options={headerFormatOptions}
+ value={authorizationType || AuthorizationTypeEnum.Bearer}
+ onChange={(val) =>
+ setValue('auth.api_key_authorization_type', val as AuthorizationTypeEnum)
+ }
+ fullWidth
+ aria-labelledby="header-format-label"
+ />
+ </fieldset>
+
+ {/* Custom header name */}
+ <Collapse open={authorizationType === AuthorizationTypeEnum.Custom}>
+ <div className="pt-3">
+ <div className="space-y-1.5">
+ <Label htmlFor="custom_header" className="text-sm font-medium">
+ {localize('com_ui_custom_header_name')}
+ </Label>
+ <Input
+ id="custom_header"
+ placeholder="X-Api-Key"
+ {...register('auth.api_key_custom_header')}
+ />
+ </div>
+ </div>
+ </Collapse>
</div>
+ </div>
+ </div>
+ </Collapse>
- {/* API Key input - only when admin provides */}
- <Collapse open={apiKeySource !== 'user'} className="pt-3">
+ {/* OAuth Fields */}
+ <Collapse open={authType === AuthTypeEnum.OAuth}>
+ <div className="pt-3">
+ <div className="bg-surface-secondary space-y-3 rounded-lg p-3">
+ {/* Client ID & Secret in a grid */}
+ <div className="grid grid-cols-2 gap-3">
<div className="space-y-1.5">
- <Label htmlFor="api_key" className="text-sm font-medium">
- {localize('com_ui_api_key')}
+ <Label htmlFor="oauth_client_id" className="text-sm font-medium">
+ {localize('com_ui_client_id')}{' '}
+ {!isEditMode && (
+ <>
+ <span aria-hidden="true" className="text-text-secondary">
+ *
+ </span>
+ <span className="sr-only">{localize('com_ui_field_required')}</span>
+ </>
+ )}
</Label>
<SecretInput
- id="api_key"
- placeholder="sk-..."
+ id="oauth_client_id"
+ autoComplete="new-password"
+ data-lpignore="true"
+ data-1p-ignore="true"
controlsOnHover
- {...register('auth.api_key')}
+ placeholder={isEditMode ? localize('com_ui_leave_blank_to_keep') : ''}
+ aria-invalid={errors.auth?.oauth_client_id ? 'true' : 'false'}
+ aria-describedby={
+ errors.auth?.oauth_client_id ? 'oauth-client-id-error' : undefined
+ }
+ {...register('auth.oauth_client_id', {
+ required: !isEditMode && authType === AuthTypeEnum.OAuth,
+ })}
+ className={cn(errors.auth?.oauth_client_id && 'border-border-destructive')}
/>
+ {errors.auth?.oauth_client_id && (
+ <p
+ id="oauth-client-id-error"
+ role="alert"
+ className="text-text-destructive text-xs"
+ >
+ {localize('com_ui_field_required')}
+ </p>
+ )}
</div>
- </Collapse>
- </div>
+ <div className="space-y-1.5">
+ <Label htmlFor="oauth_client_secret" className="text-sm font-medium">
+ {localize('com_ui_client_secret')}
+ </Label>
+ <SecretInput
+ id="oauth_client_secret"
+ placeholder={isEditMode ? localize('com_ui_leave_blank_to_keep') : ''}
+ controlsOnHover
+ {...register('auth.oauth_client_secret')}
+ />
+ </div>
+ </div>
+
+ {/* Auth URL & Token URL in a grid */}
+ <div className="grid grid-cols-2 gap-3">
+ <div className="space-y-1.5">
+ <Label htmlFor="oauth_authorization_url" className="text-sm font-medium">
+ {localize('com_ui_auth_url')}
+ </Label>
+ <Input
+ id="oauth_authorization_url"
+ placeholder="https://..."
+ {...register('auth.oauth_authorization_url')}
+ />
+ </div>
+ <div className="space-y-1.5">
+ <Label htmlFor="oauth_token_url" className="text-sm font-medium">
+ {localize('com_ui_token_url')}
+ </Label>
+ <Input
+ id="oauth_token_url"
+ placeholder="https://..."
+ {...register('auth.oauth_token_url')}
+ />
+ </div>
+ </div>
- {/* Header format + custom header name */}
- <div>
+ {/* Scope */}
+ <div className="space-y-1.5">
+ <Label htmlFor="oauth_scope" className="text-sm font-medium">
+ {localize('com_ui_scope')}
+ </Label>
+ <Input id="oauth_scope" placeholder="read write" {...register('auth.oauth_scope')} />
+ </div>
+
+ {/* Token exchange method */}
<fieldset className="space-y-1.5">
<legend>
- <Label id="header-format-label" className="text-sm font-medium">
- {localize('com_ui_header_format')}
+ <Label id="oauth-token-exchange-method-label" className="text-sm font-medium">
+ {localize('com_ui_token_exchange_method')}
</Label>
</legend>
<Radio
- options={headerFormatOptions}
- value={authorizationType || AuthorizationTypeEnum.Bearer}
- onChange={(val) =>
- setValue('auth.api_key_authorization_type', val as AuthorizationTypeEnum)
+ options={[
+ { value: AUTO_TOKEN_EXCHANGE_METHOD, label: localize('com_ui_auto') },
+ {
+ value: TokenExchangeMethodEnum.DefaultPost,
+ label: localize('com_ui_default_post_request'),
+ },
+ {
+ value: TokenExchangeMethodEnum.BasicAuthHeader,
+ label: localize('com_ui_basic_auth_header'),
+ },
+ ]}
+ value={tokenExchangeMethod ?? AUTO_TOKEN_EXCHANGE_METHOD}
+ onChange={(value) =>
+ setValue(
+ 'auth.oauth_token_exchange_method',
+ value === AUTO_TOKEN_EXCHANGE_METHOD
+ ? undefined
+ : (value as TokenExchangeMethodEnum),
+ { shouldDirty: true },
+ )
}
fullWidth
- aria-labelledby="header-format-label"
+ aria-labelledby="oauth-token-exchange-method-label"
/>
</fieldset>
- {/* Custom header name */}
- <Collapse open={authorizationType === AuthorizationTypeEnum.Custom} className="pt-3">
+ {/* Redirect URI */}
+ {isEditMode && redirectUri && (
<div className="space-y-1.5">
- <Label htmlFor="custom_header" className="text-sm font-medium">
- {localize('com_ui_custom_header_name')}
+ <Label htmlFor="auth-redirect-uri" className="text-sm font-medium">
+ {localize('com_ui_redirect_uri')}
</Label>
- <Input
- id="custom_header"
- placeholder="X-Api-Key"
- {...register('auth.api_key_custom_header')}
- />
+ <div className="flex items-center gap-2">
+ <Input
+ id="auth-redirect-uri"
+ type="text"
+ readOnly
+ value={redirectUri}
+ className="text-text-secondary flex-1 text-xs"
+ />
+ <button
+ type="button"
+ onClick={() => {
+ if (isCopying) return;
+ if (!copyLink(setIsCopying)) return;
+ showToast({ message: localize('com_ui_copied_to_clipboard') });
+ }}
+ className="border-border-light text-text-secondary hover:bg-surface-hover hover:text-text-primary flex size-10 shrink-0 items-center justify-center rounded-lg border transition-colors"
+ aria-label={localize('com_ui_copy_link')}
+ >
+ <MorphIcon icon={isCopying ? CopyCheck : Copy} className="size-4" />
+ </button>
+ </div>
</div>
- </Collapse>
+ )}
</div>
</div>
</Collapse>
- {/* OAuth Fields */}
- <Collapse open={authType === AuthTypeEnum.OAuth} className="pt-3">
- <div className="bg-surface-secondary space-y-3 rounded-lg p-3">
- {/* Client ID & Secret in a grid */}
- <div className="grid grid-cols-2 gap-3">
+ {/* OBO Fields */}
+ <Collapse open={authType === AuthTypeEnum.OBO}>
+ <div className="pt-3">
+ <div className="bg-surface-secondary space-y-3 rounded-lg p-3">
<div className="space-y-1.5">
- <Label htmlFor="oauth_client_id" className="text-sm font-medium">
- {localize('com_ui_client_id')}{' '}
- {!isEditMode && (
- <>
- <span aria-hidden="true" className="text-text-secondary">
- *
- </span>
- <span className="sr-only">{localize('com_ui_field_required')}</span>
- </>
- )}
+ <Label htmlFor="obo_scopes" className="text-sm font-medium">
+ {localize('com_ui_obo_scopes')}{' '}
+ <span aria-hidden="true" className="text-text-secondary">
+ *
+ </span>
+ <span className="sr-only">{localize('com_ui_field_required')}</span>
</Label>
- <SecretInput
- id="oauth_client_id"
- autoComplete="new-password"
- data-lpignore="true"
- data-1p-ignore="true"
- controlsOnHover
- placeholder={isEditMode ? localize('com_ui_leave_blank_to_keep') : ''}
- aria-invalid={errors.auth?.oauth_client_id ? 'true' : 'false'}
+ <Input
+ id="obo_scopes"
+ placeholder="api://<client-id>/Mcp.Tools.ReadWrite"
+ disabled={!canConfigureObo}
+ aria-invalid={errors.auth?.obo_scopes ? 'true' : 'false'}
aria-describedby={
- errors.auth?.oauth_client_id ? 'oauth-client-id-error' : undefined
+ canConfigureObo ? 'obo-scopes-description' : 'obo-scopes-readonly-description'
}
- {...register('auth.oauth_client_id', {
- required: !isEditMode && authType === AuthTypeEnum.OAuth,
+ {...register('auth.obo_scopes', {
+ required: canConfigureObo && authType === AuthTypeEnum.OBO,
})}
- className={cn(errors.auth?.oauth_client_id && 'border-border-destructive')}
+ className={cn(errors.auth?.obo_scopes && 'border-border-destructive')}
/>
- {errors.auth?.oauth_client_id && (
- <p
- id="oauth-client-id-error"
- role="alert"
- className="text-text-destructive text-xs"
- >
+ {errors.auth?.obo_scopes && (
+ <p role="alert" className="text-text-destructive text-xs">
{localize('com_ui_field_required')}
</p>
)}
+ {canConfigureObo ? (
+ <p id="obo-scopes-description" className="text-text-secondary text-xs">
+ {localize('com_ui_obo_scopes_description')}
+ </p>
+ ) : (
+ <p id="obo-scopes-readonly-description" className="text-text-secondary text-xs">
+ {localize('com_ui_obo_readonly_no_permission')}
+ </p>
+ )}
</div>
- <div className="space-y-1.5">
- <Label htmlFor="oauth_client_secret" className="text-sm font-medium">
- {localize('com_ui_client_secret')}
- </Label>
- <SecretInput
- id="oauth_client_secret"
- placeholder={isEditMode ? localize('com_ui_leave_blank_to_keep') : ''}
- controlsOnHover
- {...register('auth.oauth_client_secret')}
- />
- </div>
- </div>
-
- {/* Auth URL & Token URL in a grid */}
- <div className="grid grid-cols-2 gap-3">
- <div className="space-y-1.5">
- <Label htmlFor="oauth_authorization_url" className="text-sm font-medium">
- {localize('com_ui_auth_url')}
- </Label>
- <Input
- id="oauth_authorization_url"
- placeholder="https://..."
- {...register('auth.oauth_authorization_url')}
- />
- </div>
- <div className="space-y-1.5">
- <Label htmlFor="oauth_token_url" className="text-sm font-medium">
- {localize('com_ui_token_url')}
- </Label>
- <Input
- id="oauth_token_url"
- placeholder="https://..."
- {...register('auth.oauth_token_url')}
- />
- </div>
- </div>
-
- {/* Scope */}
- <div className="space-y-1.5">
- <Label htmlFor="oauth_scope" className="text-sm font-medium">
- {localize('com_ui_scope')}
- </Label>
- <Input id="oauth_scope" placeholder="read write" {...register('auth.oauth_scope')} />
- </div>
-
- {/* Token exchange method */}
- <fieldset className="space-y-1.5">
- <legend>
- <Label id="oauth-token-exchange-method-label" className="text-sm font-medium">
- {localize('com_ui_token_exchange_method')}
- </Label>
- </legend>
- <Radio
- options={[
- { value: AUTO_TOKEN_EXCHANGE_METHOD, label: localize('com_ui_auto') },
- {
- value: TokenExchangeMethodEnum.DefaultPost,
- label: localize('com_ui_default_post_request'),
- },
- {
- value: TokenExchangeMethodEnum.BasicAuthHeader,
- label: localize('com_ui_basic_auth_header'),
- },
- ]}
- value={tokenExchangeMethod ?? AUTO_TOKEN_EXCHANGE_METHOD}
- onChange={(value) =>
- setValue(
- 'auth.oauth_token_exchange_method',
- value === AUTO_TOKEN_EXCHANGE_METHOD
- ? undefined
- : (value as TokenExchangeMethodEnum),
- { shouldDirty: true },
- )
- }
- fullWidth
- aria-labelledby="oauth-token-exchange-method-label"
- />
- </fieldset>
-
- {/* Redirect URI */}
- {isEditMode && redirectUri && (
- <div className="space-y-1.5">
- <Label htmlFor="auth-redirect-uri" className="text-sm font-medium">
- {localize('com_ui_redirect_uri')}
- </Label>
- <div className="flex items-center gap-2">
- <Input
- id="auth-redirect-uri"
- type="text"
- readOnly
- value={redirectUri}
- className="text-text-secondary flex-1 text-xs"
- />
- <button
- type="button"
- onClick={() => {
- if (isCopying) return;
- if (!copyLink(setIsCopying)) return;
- showToast({ message: localize('com_ui_copied_to_clipboard') });
- }}
- className="border-border-light text-text-secondary hover:bg-surface-hover hover:text-text-primary flex size-10 shrink-0 items-center justify-center rounded-lg border transition-colors"
- aria-label={localize('com_ui_copy_link')}
- >
- <MorphIcon icon={isCopying ? CopyCheck : Copy} className="size-4" />
- </button>
- </div>
- </div>
- )}
- </div>
- </Collapse>
-
- {/* OBO Fields */}
- <Collapse open={authType === AuthTypeEnum.OBO} className="pt-3">
- <div className="bg-surface-secondary space-y-3 rounded-lg p-3">
- <div className="space-y-1.5">
- <Label htmlFor="obo_scopes" className="text-sm font-medium">
- {localize('com_ui_obo_scopes')}{' '}
- <span aria-hidden="true" className="text-text-secondary">
- *
- </span>
- <span className="sr-only">{localize('com_ui_field_required')}</span>
- </Label>
- <Input
- id="obo_scopes"
- placeholder="api://<client-id>/Mcp.Tools.ReadWrite"
- disabled={!canConfigureObo}
- aria-invalid={errors.auth?.obo_scopes ? 'true' : 'false'}
- aria-describedby={
- canConfigureObo ? 'obo-scopes-description' : 'obo-scopes-readonly-description'
- }
- {...register('auth.obo_scopes', {
- required: canConfigureObo && authType === AuthTypeEnum.OBO,
- })}
- className={cn(errors.auth?.obo_scopes && 'border-border-destructive')}
- />
- {errors.auth?.obo_scopes && (
- <p role="alert" className="text-text-destructive text-xs">
- {localize('com_ui_field_required')}
- </p>
- )}
- {canConfigureObo ? (
- <p id="obo-scopes-description" className="text-text-secondary text-xs">
- {localize('com_ui_obo_scopes_description')}
- </p>
- ) : (
- <p id="obo-scopes-readonly-description" className="text-text-secondary text-xs">
- {localize('com_ui_obo_readonly_no_permission')}
- </p>
- )}
</div>
</div>
</Collapse>
diff --git a/client/src/components/SidePanel/Memories/MemoryCreateDialog.tsx b/client/src/components/SidePanel/Memories/MemoryCreateDialog.tsx
index 07741fcbe7..575d9c2a21 100644
--- a/client/src/components/SidePanel/Memories/MemoryCreateDialog.tsx
+++ b/client/src/components/SidePanel/Memories/MemoryCreateDialog.tsx
@@ -139,13 +139,14 @@ export default function MemoryCreateDialog({
{localize('com_ui_value')}
</Label>
<Textarea
+ variant="transparent"
id="memory-value"
value={value}
onChange={(e) => setValue(e.target.value)}
onBlur={() => setTouched((prev) => ({ ...prev, value: true }))}
onKeyDown={handleKeyPress}
placeholder={localize('com_ui_enter_value')}
- className="border-border-light text-text-primary focus-visible:ring-border-heavy max-h-[45vh] min-h-[11.25rem] w-full resize-y rounded-lg border bg-transparent px-3 py-2 text-sm focus-visible:ring-1"
+ className="border-border-light text-text-primary focus-visible:ring-border-heavy max-h-[45vh] min-h-[11.25rem] w-full resize-y py-2 focus-visible:ring-1"
rows={8}
aria-invalid={showValueError && valueError != null}
aria-describedby="memory-value-message"
diff --git a/client/src/components/SidePanel/Memories/MemoryEditDialog.tsx b/client/src/components/SidePanel/Memories/MemoryEditDialog.tsx
index c72e9b2d2e..7ee155d69c 100644
--- a/client/src/components/SidePanel/Memories/MemoryEditDialog.tsx
+++ b/client/src/components/SidePanel/Memories/MemoryEditDialog.tsx
@@ -212,13 +212,14 @@ export default function MemoryEditDialog({
{localize('com_ui_value')}
</Label>
<Textarea
+ variant="transparent"
id="memory-value"
value={value}
onChange={(e) => hasUpdateAccess && setValue(e.target.value)}
onBlur={() => setTouched((prev) => ({ ...prev, value: true }))}
onKeyDown={handleKeyPress}
placeholder={localize('com_ui_enter_value')}
- className="border-border-light text-text-primary focus-visible:ring-border-heavy max-h-[45vh] min-h-[11.25rem] w-full resize-y rounded-lg border bg-transparent px-3 py-2 text-sm focus-visible:ring-1 disabled:cursor-not-allowed disabled:opacity-50"
+ className="border-border-light text-text-primary focus-visible:ring-border-heavy max-h-[45vh] min-h-[11.25rem] w-full resize-y py-2 focus-visible:ring-1 disabled:cursor-not-allowed disabled:opacity-50"
rows={8}
disabled={!hasUpdateAccess}
aria-invalid={showValueError && valueError != null}
diff --git a/client/src/components/SidePanel/Parameters/DynamicCombobox.tsx b/client/src/components/SidePanel/Parameters/DynamicCombobox.tsx
index 80d3d1833a..9678951f64 100644
--- a/client/src/components/SidePanel/Parameters/DynamicCombobox.tsx
+++ b/client/src/components/SidePanel/Parameters/DynamicCombobox.tsx
@@ -77,41 +77,43 @@ function DynamicCombobox({
)}
>
<HoverCard openDelay={300}>
- <HoverCardTrigger className="grid h-full w-full content-between items-center gap-2">
- {showLabel === true && (
- <div className="flex w-full justify-between">
- <Label
- htmlFor={`${settingKey}-dynamic-combobox`}
- className="text-left text-xs font-medium"
- >
- {labelCode ? (localize(label as TranslationKeys) ?? label) : label || settingKey}
- {showDefault && (
- <small className="high-contrast:opacity-100 opacity-40">
- ({localize('com_endpoint_default')}: {defaultValue})
- </small>
- )}
- </Label>
- </div>
- )}
- <ControlCombobox
- displayValue={selectedValue}
- selectPlaceholder={
- selectPlaceholderCode === true
- ? localize(selectPlaceholder as TranslationKeys)
- : selectPlaceholder
- }
- searchPlaceholder={
- searchPlaceholderCode === true
- ? localize(searchPlaceholder as TranslationKeys)
- : searchPlaceholder
- }
- isCollapsed={isCollapsed}
- ariaLabel={settingKey}
- selectedValue={selectedValue ?? ''}
- setValue={handleChange}
- items={items}
- SelectIcon={SelectIcon}
- />
+ <HoverCardTrigger asChild>
+ <div className="grid h-full w-full content-between items-center gap-2">
+ {showLabel === true && (
+ <div className="flex w-full justify-between">
+ <Label
+ htmlFor={`${settingKey}-dynamic-combobox`}
+ className="text-left text-xs font-medium"
+ >
+ {labelCode ? (localize(label as TranslationKeys) ?? label) : label || settingKey}
+ {showDefault && (
+ <small className="high-contrast:opacity-100 opacity-40">
+ ({localize('com_endpoint_default')}: {defaultValue})
+ </small>
+ )}
+ </Label>
+ </div>
+ )}
+ <ControlCombobox
+ displayValue={selectedValue}
+ selectPlaceholder={
+ selectPlaceholderCode === true
+ ? localize(selectPlaceholder as TranslationKeys)
+ : selectPlaceholder
+ }
+ searchPlaceholder={
+ searchPlaceholderCode === true
+ ? localize(searchPlaceholder as TranslationKeys)
+ : searchPlaceholder
+ }
+ isCollapsed={isCollapsed}
+ ariaLabel={settingKey}
+ selectedValue={selectedValue ?? ''}
+ setValue={handleChange}
+ items={items}
+ SelectIcon={SelectIcon}
+ />
+ </div>
</HoverCardTrigger>
{description && (
<OptionHover
diff --git a/client/src/components/SidePanel/Parameters/DynamicSlider.tsx b/client/src/components/SidePanel/Parameters/DynamicSlider.tsx
index 262811ab6c..badbe98b92 100644
--- a/client/src/components/SidePanel/Parameters/DynamicSlider.tsx
+++ b/client/src/components/SidePanel/Parameters/DynamicSlider.tsx
@@ -171,99 +171,101 @@ function DynamicSlider({
)}
>
<HoverCard openDelay={300}>
- <HoverCardTrigger className="grid h-full w-full content-between items-center gap-2">
- <div className="flex w-full items-center justify-between">
- <Label
- htmlFor={`${settingKey}-dynamic-setting`}
- className="text-left text-xs font-medium break-words"
- >
- {labelCode ? (localize(label as TranslationKeys) ?? label) : label || settingKey}{' '}
- {showDefault && (
- <small className="high-contrast:opacity-100 opacity-40">
- ({localize('com_endpoint_default')}: {getDefaultDisplayValue()})
- </small>
- )}
- </Label>
- {includeInput && !isEnum ? (
- <InputNumber
- id={`${settingKey}-dynamic-setting-input-number`}
- disabled={readonly}
- value={inputValue ?? defaultValue}
- onChange={(value) => setInputValue(Number(value))}
- /** Clicking Save blurs this first, so the pending edit is
- * committed before submitPreset reads the preset. */
- onBlur={handleNumberBlur}
- max={range ? range.max : (options?.length ?? 0) - 1}
- min={range ? range.min : 0}
- step={range ? (range.step ?? 1) : 1}
- controls={false}
- aria-label={localize(label as TranslationKeys)}
- className={cn(
- defaultTextProps,
- cn(
- optionText,
- 'reset-rc-number-input reset-rc-number-input-text-right group-hover/temp:border-border-light h-auto w-12 border-0 py-1 text-xs',
- ),
- )}
- />
- ) : (
- <Input
- id={`${settingKey}-dynamic-setting-input`}
- disabled={readonly}
- value={getDisplayValue(selectedValue)}
- aria-label={localize(label as TranslationKeys)}
- onChange={() => ({})}
- className={cn(
- defaultTextProps,
- cn(
- optionText,
- 'reset-rc-number-input group-hover/temp:border-border-light h-auto w-14 border-0 py-1 pl-1 text-center text-xs',
- ),
+ <HoverCardTrigger asChild>
+ <div className="grid h-full w-full content-between items-center gap-2">
+ <div className="flex w-full items-center justify-between">
+ <Label
+ htmlFor={`${settingKey}-dynamic-setting`}
+ className="text-left text-xs font-medium break-words"
+ >
+ {labelCode ? (localize(label as TranslationKeys) ?? label) : label || settingKey}{' '}
+ {showDefault && (
+ <small className="high-contrast:opacity-100 opacity-40">
+ ({localize('com_endpoint_default')}: {getDefaultDisplayValue()})
+ </small>
)}
- />
- )}
+ </Label>
+ {includeInput && !isEnum ? (
+ <InputNumber
+ id={`${settingKey}-dynamic-setting-input-number`}
+ disabled={readonly}
+ value={inputValue ?? defaultValue}
+ onChange={(value) => setInputValue(Number(value))}
+ /** Clicking Save blurs this first, so the pending edit is
+ * committed before submitPreset reads the preset. */
+ onBlur={handleNumberBlur}
+ max={range ? range.max : (options?.length ?? 0) - 1}
+ min={range ? range.min : 0}
+ step={range ? (range.step ?? 1) : 1}
+ controls={false}
+ aria-label={localize(label as TranslationKeys)}
+ className={cn(
+ defaultTextProps,
+ cn(
+ optionText,
+ 'reset-rc-number-input reset-rc-number-input-text-right group-hover/temp:border-border-light h-auto w-12 border-0 py-1 text-xs',
+ ),
+ )}
+ />
+ ) : (
+ <Input
+ id={`${settingKey}-dynamic-setting-input`}
+ disabled={readonly}
+ value={getDisplayValue(selectedValue)}
+ aria-label={localize(label as TranslationKeys)}
+ onChange={() => ({})}
+ className={cn(
+ defaultTextProps,
+ cn(
+ optionText,
+ 'reset-rc-number-input group-hover/temp:border-border-light h-auto w-14 border-0 py-1 pl-1 text-center text-xs',
+ ),
+ )}
+ />
+ )}
+ </div>
+ <Slider
+ id={`${settingKey}-dynamic-setting-slider`}
+ disabled={readonly}
+ value={[
+ isEnum
+ ? // A model switch may hide a saved enum value. Keep its stored value
+ // but retain a valid thumb so keyboard users can choose a supported one.
+ (enumToNumeric[String(selectedValue ?? '')] ??
+ enumToNumeric[String(defaultValue)] ??
+ 0)
+ : ((inputValue as number) ?? (defaultValue as number)),
+ ]}
+ onValueChange={(value) => handleValueChange(value[0])}
+ /** Fires once the drag or keypress settles, which is the point the
+ * chosen value should be in the preset rather than pending. It is
+ * set again here before flushing because the keyboard path commits
+ * before it reports the change, leaving the debouncer empty for a
+ * flush that only follows the drag path. The track also steps
+ * straight through the gap between a sentinel minimum and its
+ * positive floor, which the generated schema rejects, so the
+ * released value has to land outside it. */
+ onValueCommit={(value) => {
+ if (!isEnum && range != null) {
+ setInputValue(clampSettingRange(value[0], range));
+ }
+ flushInputValue();
+ }}
+ /** The browser dispatches this after the second release, so the
+ * commit above has already fired and the reset would otherwise sit
+ * in the debouncer while an action clicked next reads the old
+ * value. */
+ onDoubleClick={() => {
+ setInputValue(defaultValue as string | number);
+ flushInputValue();
+ }}
+ max={max}
+ aria-label={localize(label as TranslationKeys)}
+ min={range ? range.min : 0}
+ step={range ? (range.step ?? 1) : 1}
+ className="flex h-4 w-full"
+ />
</div>
- <Slider
- id={`${settingKey}-dynamic-setting-slider`}
- disabled={readonly}
- value={[
- isEnum
- ? // A model switch may hide a saved enum value. Keep its stored value
- // but retain a valid thumb so keyboard users can choose a supported one.
- (enumToNumeric[String(selectedValue ?? '')] ??
- enumToNumeric[String(defaultValue)] ??
- 0)
- : ((inputValue as number) ?? (defaultValue as number)),
- ]}
- onValueChange={(value) => handleValueChange(value[0])}
- /** Fires once the drag or keypress settles, which is the point the
- * chosen value should be in the preset rather than pending. It is
- * set again here before flushing because the keyboard path commits
- * before it reports the change, leaving the debouncer empty for a
- * flush that only follows the drag path. The track also steps
- * straight through the gap between a sentinel minimum and its
- * positive floor, which the generated schema rejects, so the
- * released value has to land outside it. */
- onValueCommit={(value) => {
- if (!isEnum && range != null) {
- setInputValue(clampSettingRange(value[0], range));
- }
- flushInputValue();
- }}
- /** The browser dispatches this after the second release, so the
- * commit above has already fired and the reset would otherwise sit
- * in the debouncer while an action clicked next reads the old
- * value. */
- onDoubleClick={() => {
- setInputValue(defaultValue as string | number);
- flushInputValue();
- }}
- max={max}
- aria-label={localize(label as TranslationKeys)}
- min={range ? range.min : 0}
- step={range ? (range.step ?? 1) : 1}
- className="flex h-4 w-full"
- />
</HoverCardTrigger>
{description && (
<OptionHover
diff --git a/client/src/components/SidePanel/Parameters/DynamicSwitch.tsx b/client/src/components/SidePanel/Parameters/DynamicSwitch.tsx
index be29309400..3d04dcc6b7 100644
--- a/client/src/components/SidePanel/Parameters/DynamicSwitch.tsx
+++ b/client/src/components/SidePanel/Parameters/DynamicSwitch.tsx
@@ -51,31 +51,33 @@ function DynamicSwitch({
}`}
>
<HoverCard openDelay={300}>
- <HoverCardTrigger className="grid h-full w-full content-between items-center gap-2">
- <div className="flex justify-between">
- <Label
- htmlFor={`${settingKey}-dynamic-switch`}
- className="text-left text-xs font-medium break-words"
- >
- {labelCode ? (localize(label as TranslationKeys) ?? label) : label || settingKey}{' '}
- {showDefault && (
- <small className="high-contrast:opacity-100 opacity-40">
- ({localize('com_endpoint_default')}:{' '}
- {defaultValue != null ? localize('com_ui_on') : localize('com_ui_off')})
- </small>
- )}
- </Label>
+ <HoverCardTrigger asChild>
+ <div className="grid h-full w-full content-between items-center gap-2">
+ <div className="flex justify-between">
+ <Label
+ htmlFor={`${settingKey}-dynamic-switch`}
+ className="text-left text-xs font-medium break-words"
+ >
+ {labelCode ? (localize(label as TranslationKeys) ?? label) : label || settingKey}{' '}
+ {showDefault && (
+ <small className="high-contrast:opacity-100 opacity-40">
+ ({localize('com_endpoint_default')}:{' '}
+ {defaultValue != null ? localize('com_ui_on') : localize('com_ui_off')})
+ </small>
+ )}
+ </Label>
+ </div>
+ <Switch
+ id={`${settingKey}-dynamic-switch`}
+ checked={selectedValue}
+ onCheckedChange={handleCheckedChange}
+ disabled={readonly || routeIsForced}
+ className="flex"
+ aria-label={
+ labelCode ? (localize(label as TranslationKeys) ?? label) : label || settingKey
+ }
+ />
</div>
- <Switch
- id={`${settingKey}-dynamic-switch`}
- checked={selectedValue}
- onCheckedChange={handleCheckedChange}
- disabled={readonly || routeIsForced}
- className="flex"
- aria-label={
- labelCode ? (localize(label as TranslationKeys) ?? label) : label || settingKey
- }
- />
</HoverCardTrigger>
{description && (
<OptionHover
diff --git a/client/src/components/SidePanel/Parameters/DynamicTags.tsx b/client/src/components/SidePanel/Parameters/DynamicTags.tsx
index 767483e620..c120460238 100644
--- a/client/src/components/SidePanel/Parameters/DynamicTags.tsx
+++ b/client/src/components/SidePanel/Parameters/DynamicTags.tsx
@@ -106,68 +106,70 @@ function DynamicTags({
}`}
>
<HoverCard openDelay={300}>
- <HoverCardTrigger className="grid h-full w-full content-between items-center gap-2">
- <div className="flex w-full justify-between">
- <Label
- htmlFor={`${settingKey}-dynamic-input`}
- className="text-left text-xs font-medium"
- >
- {labelCode ? (localize(label as TranslationKeys) ?? label) : label || settingKey}{' '}
- {showDefault && (
- <small className="high-contrast:opacity-100 opacity-40">
- (
- {typeof defaultValue === 'undefined' || !(defaultValue as string).length
- ? localize('com_endpoint_default_blank')
- : `${localize('com_endpoint_default')}: ${defaultValue}`}
- )
- </small>
- )}
- </Label>
- </div>
- <div>
- <div className="border-border-light bg-surface-secondary flex flex-wrap rounded-lg border break-all">
- {currentTags && currentTags.length > 0 && (
- <div className="flex w-full gap-1 p-1">
- {currentTags.map((tag: string, index: number) => (
- <Tag
- key={`${tag}-${index}`}
- label={tag}
- onClick={onTagClick}
- onRemove={() => {
- onTagRemove(index);
- if (inputRef.current) {
- inputRef.current.focus();
- }
- }}
- />
- ))}
- </div>
- )}
- <Input
- ref={inputRef}
- id={`${settingKey}-dynamic-input`}
- disabled={readonly}
- value={tagText}
- onKeyDown={(e) => {
- if (!currentTags) {
- return;
- }
- if (e.key === 'Backspace' && !tagText) {
- onTagRemove(currentTags.length - 1);
- }
- // Ignore the Enter that commits an IME composition (see useTextarea.ts).
- if (e.key === 'Enter' && !(e.nativeEvent.isComposing || e.keyCode === 229)) {
- onTagAdd();
+ <HoverCardTrigger asChild>
+ <div className="grid h-full w-full content-between items-center gap-2">
+ <div className="flex w-full justify-between">
+ <Label
+ htmlFor={`${settingKey}-dynamic-input`}
+ className="text-left text-xs font-medium"
+ >
+ {labelCode ? (localize(label as TranslationKeys) ?? label) : label || settingKey}{' '}
+ {showDefault && (
+ <small className="high-contrast:opacity-100 opacity-40">
+ (
+ {typeof defaultValue === 'undefined' || !(defaultValue as string).length
+ ? localize('com_endpoint_default_blank')
+ : `${localize('com_endpoint_default')}: ${defaultValue}`}
+ )
+ </small>
+ )}
+ </Label>
+ </div>
+ <div>
+ <div className="border-border-light bg-surface-secondary flex flex-wrap rounded-lg border break-all">
+ {currentTags && currentTags.length > 0 && (
+ <div className="flex w-full gap-1 p-1">
+ {currentTags.map((tag: string, index: number) => (
+ <Tag
+ key={`${tag}-${index}`}
+ label={tag}
+ onClick={onTagClick}
+ onRemove={() => {
+ onTagRemove(index);
+ if (inputRef.current) {
+ inputRef.current.focus();
+ }
+ }}
+ />
+ ))}
+ </div>
+ )}
+ <Input
+ ref={inputRef}
+ id={`${settingKey}-dynamic-input`}
+ disabled={readonly}
+ value={tagText}
+ onKeyDown={(e) => {
+ if (!currentTags) {
+ return;
+ }
+ if (e.key === 'Backspace' && !tagText) {
+ onTagRemove(currentTags.length - 1);
+ }
+ // Ignore the Enter that commits an IME composition (see useTextarea.ts).
+ if (e.key === 'Enter' && !(e.nativeEvent.isComposing || e.keyCode === 229)) {
+ onTagAdd();
+ }
+ }}
+ onChange={(e) => setTagText(e.target.value)}
+ placeholder={
+ placeholderCode
+ ? (localize(placeholder as TranslationKeys) ?? placeholder)
+ : placeholder
}
- }}
- onChange={(e) => setTagText(e.target.value)}
- placeholder={
- placeholderCode
- ? (localize(placeholder as TranslationKeys) ?? placeholder)
- : placeholder
- }
- className={cn('bg-surface-secondary flex h-9 max-h-9 border-none px-3 py-2')}
- />
+ className={cn('bg-surface-secondary flex h-9 max-h-9 border-none px-3 py-2')}
+ />
+ </div>
</div>
</div>
</HoverCardTrigger>
diff --git a/client/src/components/SidePanel/Parameters/Panel.tsx b/client/src/components/SidePanel/Parameters/Panel.tsx
index 2a0e98b27c..4b3460c59c 100644
--- a/client/src/components/SidePanel/Parameters/Panel.tsx
+++ b/client/src/components/SidePanel/Parameters/Panel.tsx
@@ -277,7 +277,7 @@ export default function Parameters() {
type="button"
onClick={resetParameters}
aria-label={localize('com_ui_reset_var', { 0: localize('com_ui_model_parameters') })}
- className="flex h-auto min-h-9 flex-auto items-center justify-center gap-2 px-4 py-2 text-sm whitespace-normal active:scale-[0.98] motion-reduce:transform-none"
+ className="flex h-auto min-h-9 flex-auto items-center justify-center whitespace-normal active:scale-[0.98] motion-reduce:transform-none"
>
<RotateCcw
key={resetCount}
@@ -292,7 +292,7 @@ export default function Parameters() {
<Button
variant="default"
onClick={openDialog}
- className="flex h-auto min-h-9 flex-auto items-center justify-center px-4 py-2 font-semibold whitespace-normal"
+ className="flex h-auto min-h-9 flex-auto items-center justify-center font-semibold whitespace-normal"
type="button"
>
{localize('com_endpoint_save_as_preset')}
diff --git a/eslint-suppressions.json b/eslint-suppressions.json
index 6a792e4480..687bd62689 100644
--- a/eslint-suppressions.json
+++ b/eslint-suppressions.json
@@ -1180,11 +1180,6 @@
"count": 1
}
},
- "client/src/components/SidePanel/Builder/Action.tsx": {
- "shadcn/no-inline-styles": {
- "count": 1
- }
- },
"client/src/components/SidePanel/Builder/ActionCallback.tsx": {
"shadcn/no-restyle": {
"count": 2
@@ -1192,13 +1187,10 @@
},
"client/src/components/SidePanel/Builder/ActionsAuth.tsx": {
"shadcn/no-restyle": {
- "count": 2
+ "count": 1
}
},
"client/src/components/SidePanel/Builder/AssistantConversationStarters.tsx": {
- "shadcn/no-inline-styles": {
- "count": 3
- },
"shadcn/no-restyle": {
"count": 8
}
@@ -1216,39 +1208,19 @@
"count": 7
}
},
- "client/src/components/SidePanel/Builder/AssistantTool.tsx": {
- "shadcn/no-inline-styles": {
- "count": 5
- }
- },
- "client/src/components/SidePanel/Builder/CodeFiles.tsx": {
- "shadcn/no-inline-styles": {
- "count": 1
- }
- },
- "client/src/components/SidePanel/Builder/Images.tsx": {
- "shadcn/no-inline-styles": {
- "count": 1
- }
- },
- "client/src/components/SidePanel/Builder/Knowledge.tsx": {
- "shadcn/no-inline-styles": {
- "count": 1
- }
- },
"client/src/components/SidePanel/MCPBuilder/MCPServerCard.tsx": {
"shadcn/no-restyle": {
- "count": 3
+ "count": 1
}
},
"client/src/components/SidePanel/MCPBuilder/MCPServerDialog/index.tsx": {
"shadcn/no-restyle": {
- "count": 2
+ "count": 1
}
},
"client/src/components/SidePanel/MCPBuilder/MCPServerDialog/sections/AuthSection.tsx": {
"shadcn/no-restyle": {
- "count": 9
+ "count": 4
}
},
"client/src/components/SidePanel/MCPBuilder/MCPServerDialog/sections/BasicInfoSection.tsx": {
@@ -1268,12 +1240,12 @@
},
"client/src/components/SidePanel/Memories/MemoryCreateDialog.tsx": {
"shadcn/no-restyle": {
- "count": 10
+ "count": 5
}
},
"client/src/components/SidePanel/Memories/MemoryEditDialog.tsx": {
"shadcn/no-restyle": {
- "count": 11
+ "count": 6
}
},
"client/src/components/SidePanel/Memories/MemoryPanel.tsx": {
@@ -1281,11 +1253,6 @@
"count": 2
}
},
- "client/src/components/SidePanel/Parameters/DynamicCombobox.tsx": {
- "shadcn/no-restyle": {
- "count": 1
- }
- },
"client/src/components/SidePanel/Parameters/DynamicDropdown.tsx": {
"shadcn/no-restyle": {
"count": 2
@@ -1298,20 +1265,15 @@
},
"client/src/components/SidePanel/Parameters/DynamicSlider.tsx": {
"shadcn/no-restyle": {
- "count": 13
+ "count": 12
},
"shadcn/require-static-classes": {
"count": 4
}
},
- "client/src/components/SidePanel/Parameters/DynamicSwitch.tsx": {
- "shadcn/no-restyle": {
- "count": 1
- }
- },
"client/src/components/SidePanel/Parameters/DynamicTags.tsx": {
"shadcn/no-restyle": {
- "count": 5
+ "count": 4
}
},
"client/src/components/SidePanel/Parameters/DynamicTextarea.tsx": {
@@ -1321,7 +1283,7 @@
},
"client/src/components/SidePanel/Parameters/Panel.tsx": {
"shadcn/no-restyle": {
- "count": 7
+ "count": 1
}
},
"client/src/components/SidePanel/Schedules/ScheduleDialog.tsx": {