From dec1cb379859be29c08c62c868723170cf96c7ef Mon Sep 17 00:00:00 2001
From: yyh <92089059+lyzno1@users.noreply.github.com>
Date: Tue, 4 Aug 2026 18:37:16 +0800
Subject: [PATCH] fix(ui): align button spacing with design (#39990)
---
packages/dify-ui/README.md | 5 ++
packages/dify-ui/src/button/index.stories.tsx | 20 +++++---
packages/dify-ui/src/button/index.tsx | 47 +++++++++--------
packages/dify-ui/src/styles/styles.css | 6 +++
.../webapp-signin/components/sso-auth.tsx | 2 +-
web/app/account/(commonLayout)/header.tsx | 2 +-
.../app-info/app-info-detail-panel.tsx | 2 +-
.../app-sidebar/app-info/app-operations.tsx | 12 ++---
.../app/annotation/batch-action.tsx | 13 ++---
.../app/annotation/header-opts/index.tsx | 2 +-
.../add-member-or-group-pop.tsx | 4 +-
.../publish-with-multiple-model.tsx | 2 +-
.../base/operation-button/index.tsx | 2 +-
.../base/warning-mask/formatting-changed.tsx | 2 +-
.../app/configuration/config-prompt/index.tsx | 2 +-
.../config-vision/param-config.tsx | 5 +-
.../config/agent-setting-button.tsx | 2 +-
.../config/agent/agent-tools/index.tsx | 2 +-
.../config/automatic/automatic-btn.tsx | 4 +-
.../config/automatic/get-automatic-res.tsx | 2 +-
.../code-generator/get-code-generator-res.tsx | 2 +-
.../app/configuration/configuration-view.tsx | 4 +-
.../dataset-config/params-config/index.tsx | 2 +-
.../app/configuration/debug/index.tsx | 2 +-
.../prompt-value-panel/index.tsx | 4 +-
.../app/create-app-dialog/app-card/index.tsx | 4 +-
.../components/app/create-app-dropdown.tsx | 4 +-
.../components/app/create-app-modal/index.tsx | 2 +-
.../app/create-from-dsl-modal/index.tsx | 1 -
.../app/overview/apikey-info-panel/index.tsx | 6 +--
.../app/overview/app-card-sections.tsx | 4 +-
.../app/overview/customize/index.tsx | 6 +--
.../components/app/switch-app-modal/index.tsx | 2 +-
.../saved-items/no-data/index.tsx | 2 +-
.../chat/chat-with-history/sidebar/index.tsx | 2 +-
web/app/components/base/chat/chat/index.tsx | 4 +-
.../annotation-reply/config-param-modal.tsx | 1 -
.../annotation-reply/index.tsx | 4 +-
.../conversation-opener/index.tsx | 2 +-
.../new-feature-panel/feature-bar.tsx | 2 +-
.../new-feature-panel/file-upload/index.tsx | 2 +-
.../features/new-feature-panel/follow-up.tsx | 2 +-
.../new-feature-panel/image-upload/index.tsx | 2 +-
.../new-feature-panel/moderation/index.tsx | 2 +-
.../text-to-speech/index.tsx | 2 +-
.../file-from-link-or-local/index.tsx | 2 +-
.../file-uploader-in-attachment/index.tsx | 2 +-
.../plugins/hitl-input-block/input-field.tsx | 4 +-
web/app/components/billing/plan/index.tsx | 8 +--
.../components/chat-preview-card.tsx | 2 +-
.../components/workflow-preview-card.tsx | 2 +-
.../custom/custom-web-app-brand/index.tsx | 4 +-
.../create-from-dsl-modal/index.tsx | 7 +--
.../list/template-card/actions.tsx | 12 ++---
.../list/template-card/details/index.tsx | 6 +--
.../create/embedding-process/index.tsx | 8 +--
.../components/general-chunking-options.tsx | 2 +-
.../components/parent-child-options.tsx | 2 +-
.../step-two/components/step-two-footer.tsx | 2 +-
.../datasets/create/website/base/header.tsx | 2 +-
.../documents/components/documents-header.tsx | 4 +-
.../create-from-pipeline/actions/index.tsx | 9 +---
.../file-list/list/empty-search-result.tsx | 6 +--
.../website-crawl/base/options/index.tsx | 4 +-
.../process-documents/actions.tsx | 6 +--
.../process-documents/header.tsx | 11 +---
.../processing/embedding-process/index.tsx | 10 ++--
.../detail/completed/common/batch-action.tsx | 51 +++++++------------
.../completed/common/regeneration-modal.tsx | 7 +--
.../external-api/external-api-panel/index.tsx | 2 +-
.../create/ExternalApiSelection.tsx | 2 +-
.../datasets/extra-info/service-api/card.tsx | 8 +--
.../components/query-input/index.tsx | 4 +-
web/app/components/datasets/list/header.tsx | 10 ++--
.../dataset-metadata-drawer.tsx | 2 +-
.../metadata/metadata-document/index.tsx | 2 +-
.../metadata/metadata-document/no-data.tsx | 2 +-
.../__tests__/secret-key-button.spec.tsx | 42 ---------------
.../develop/secret-key/secret-key-button.tsx | 2 +-
.../develop/secret-key/secret-key-modal.tsx | 2 +-
.../explore/create-app-modal/index.tsx | 2 +-
.../explore/try-app/app-info/index.tsx | 2 +-
.../header/account-dropdown/compliance.tsx | 4 +-
.../access-rules-page/access-rule-section.tsx | 2 +-
.../api-based-extension-page/index.tsx | 2 +-
.../api-based-extension-page/item.tsx | 4 +-
.../members-page/invite-button.tsx | 2 +-
.../member-details-modal/index.tsx | 4 +-
.../model-auth/add-custom-model.tsx | 2 +-
.../model-auth/config-model.tsx | 6 +--
.../switch-credential-in-load-balancing.tsx | 6 +--
.../configuration-button.tsx | 2 +-
.../presets-parameter.tsx | 2 +-
.../model-auth-dropdown/index.tsx | 2 +-
.../system-model-selector/index.tsx | 4 +-
.../account-setting/update-setting-dialog.tsx | 8 +--
.../workflow-log-archives-page/index.tsx | 2 +-
.../install-bundle/steps/install.tsx | 2 +-
.../install-from-github/steps/loaded.tsx | 2 +-
.../steps/install.tsx | 2 +-
.../steps/install.tsx | 2 +-
.../plugins/marketplace/list/card-wrapper.tsx | 4 +-
.../search-box/trigger/marketplace.tsx | 6 +--
.../search-box/trigger/tool-selector.tsx | 4 +-
.../authorize/add-oauth-button.tsx | 4 +-
.../authorized-in-data-source-node.tsx | 2 +-
.../plugin-auth/authorized-in-node.tsx | 2 +-
.../plugins/plugin-auth/authorized/index.tsx | 7 +--
.../plugin-auth/plugin-auth-in-agent.tsx | 4 +-
.../plugin-auth-in-datasource-node.tsx | 2 +-
.../subscription-list/create/oauth-client.tsx | 2 +-
.../tool-selector/components/tool-item.tsx | 4 +-
.../tool-selector/components/tool-trigger.tsx | 6 +--
.../install-plugin-dropdown.spec.tsx | 21 ++------
.../plugins/plugin-page/empty/index.tsx | 4 +-
.../components/plugins/plugin-page/index.tsx | 2 +-
.../plugin-page/install-plugin-dropdown.tsx | 4 +-
.../plugin-tasks/__tests__/index.spec.tsx | 14 +----
.../components/task-status-indicator.tsx | 6 +--
.../auto-update-setting/plugins-picker.tsx | 2 +-
.../components/panel/input-field/index.tsx | 9 +---
.../test-run/preparation/actions/index.tsx | 2 +-
.../input-field-button.tsx | 4 +-
.../rag-pipeline-header/publisher/index.tsx | 2 +-
.../rag-pipeline-header/publisher/popup.tsx | 4 +-
.../components/update-dsl-modal.tsx | 2 +-
.../share/text-generation/result/index.tsx | 4 +-
.../share/text-generation/run-batch/index.tsx | 2 +-
.../run-batch/res-download/index.tsx | 3 +-
.../share/text-generation/run-once/index.tsx | 9 ++--
.../components/snippet-create-button.tsx | 4 +-
.../snippets/components/snippet-run-panel.tsx | 2 +-
.../get-schema.tsx | 4 +-
web/app/components/tools/mcp/create-card.tsx | 2 +-
.../components/tools/mcp/detail/content.tsx | 6 +--
.../components/tools/mcp/headers-input.tsx | 4 +-
.../tools/provider/custom-create-card.tsx | 2 +-
web/app/components/tools/provider/detail.tsx | 12 ++---
.../tools/workflow-tool/configure-button.tsx | 4 +-
.../workflow-header/features-trigger.tsx | 6 +--
.../block-selector/featured-tools.tsx | 4 +-
.../block-selector/featured-triggers.tsx | 4 +-
.../rag-tool-recommendations/index.tsx | 4 +-
.../snippets/snippet-tags-filter.tsx | 2 +-
.../workflow/comment/mention-input.tsx | 3 +-
.../workflow/header/header-in-restoring.tsx | 8 +--
.../header/header-in-view-history.tsx | 2 +-
.../header/version-history-button.tsx | 4 +-
.../nodes/_base/components/add-button.tsx | 2 +-
.../components/before-run-form/index.tsx | 4 +-
.../components/install-plugin-button.tsx | 4 +-
.../nodes/_base/components/next-step/add.tsx | 2 +-
.../workflow-panel/last-run/no-data.tsx | 2 +-
.../agent-output-variables/edit-card.tsx | 1 -
.../agent-output-variables/index.tsx | 2 +-
.../components/agent-roster-field.tsx | 2 +-
.../components/edit-in-console-link.tsx | 2 +-
.../nodes/data-source-empty/index.tsx | 2 +-
.../delivery-method/method-item.tsx | 2 +-
.../recipient/member-selector.tsx | 2 +-
.../workflow/nodes/human-input/panel.tsx | 2 +-
.../if-else/components/condition-add.tsx | 2 +-
.../condition-list/condition-operator.tsx | 2 +-
.../components/condition-number-input.tsx | 2 +-
.../if-else/components/condition-wrap.tsx | 6 +--
.../workflow/nodes/if-else/panel.tsx | 2 +-
.../workflow/nodes/iteration/add-block.tsx | 2 +-
.../components/chunk-structure/index.tsx | 2 +-
.../condition-list/condition-operator.tsx | 2 +-
.../condition-list/condition-value-method.tsx | 2 +-
.../components/metadata/metadata-trigger.tsx | 4 +-
.../components/retrieval-config.tsx | 2 +-
.../generated-result.tsx | 8 +--
.../json-schema-generator/prompt-editor.tsx | 2 +-
.../visual-editor/add-field.tsx | 6 +--
.../edit-card/advanced-actions.tsx | 2 +-
.../nodes/llm/components/structure-output.tsx | 2 +-
.../workflow/nodes/loop/add-block.tsx | 2 +-
.../nodes/loop/components/condition-add.tsx | 2 +-
.../condition-list/condition-operator.tsx | 2 +-
.../components/condition-number-input.tsx | 2 +-
.../nodes/loop/components/condition-wrap.tsx | 2 +-
.../nodes/tool/components/tool-form/item.tsx | 2 +-
.../components/trigger-form/item.tsx | 2 +-
.../components/array-bool-list.tsx | 2 +-
.../components/array-value-list.tsx | 2 +-
.../components/variable-modal-trigger.tsx | 2 +-
.../components/variable-modal.sections.tsx | 4 +-
.../panel/env-panel/variable-trigger.tsx | 2 +-
.../workflow/panel/workflow-preview.tsx | 2 +-
.../workflow/run/agent-log/agent-log-nav.tsx | 2 +-
.../iteration-log/iteration-log-trigger.tsx | 2 +-
.../run/loop-log/loop-log-trigger.tsx | 2 +-
.../components/workflow/update-dsl-modal.tsx | 2 +-
.../workflow/variable-inspect/listening.tsx | 2 +-
.../workflow/workflow-generator/index.tsx | 8 +--
web/app/device/components/chooser.tsx | 4 +-
.../education-apply/education-apply-page.tsx | 2 +-
.../education-apply/expire-notice-modal.tsx | 2 +-
web/app/signin/components/social-auth.tsx | 4 +-
web/app/signin/components/sso-auth.tsx | 2 +-
.../access/components/agent-api-key-modal.tsx | 2 +-
.../components/service-api-access-card.tsx | 4 +-
.../access/components/web-app-access-card.tsx | 8 +--
.../web-app-access-control-button.tsx | 2 +-
.../advanced/content-moderation.tsx | 4 +-
.../orchestrate/common/add-button.tsx | 2 +-
.../components/orchestrate/memory.tsx | 2 +-
.../orchestrate/publish-bar/index.tsx | 4 +-
.../orchestrate/tools/provider-tool/item.tsx | 2 +-
.../roster/components/create-agent-dialog.tsx | 4 +-
.../subject-options.tsx | 4 +-
.../api-keys/api-key-generate-menu.tsx | 3 +-
.../api-token-management/section.tsx | 2 +-
.../header-actions/new-deployment-button.tsx | 2 +-
.../environment-status/environment-strip.tsx | 2 +-
web/features/new-rag/new-knowledge-list.tsx | 8 +--
217 files changed, 394 insertions(+), 539 deletions(-)
diff --git a/packages/dify-ui/README.md b/packages/dify-ui/README.md
index 2b0ff94cb16..0a06fa1f2d9 100644
--- a/packages/dify-ui/README.md
+++ b/packages/dify-ui/README.md
@@ -81,6 +81,11 @@ Utilities:
## Button loading and disabled contract
+`Button` owns the spacing between direct children. Regular (`medium`) and Large sizes use
+4px and 6px gaps. Small uses 3px for Primary and 4px for the other variants. Do not add icon
+margins or a standard `gap-*` at call sites; use a Button `className` override only for a
+documented layout exception.
+
`Button` keeps normal `disabled` controls native-disabled by default so unavailable actions are removed from the keyboard focus order.
When `loading` is true, `Button` defaults `focusableWhenDisabled` to true. Loading represents an action that has already been triggered and is temporarily pending, so the button remains focusable while Base UI still suppresses click, pointer, keyboard activation, and submit-button activation. Pass `focusableWhenDisabled={false}` only when a loading button should use native disabled behavior.
diff --git a/packages/dify-ui/src/button/index.stories.tsx b/packages/dify-ui/src/button/index.stories.tsx
index be16f4cd36b..793d7bffd50 100644
--- a/packages/dify-ui/src/button/index.stories.tsx
+++ b/packages/dify-ui/src/button/index.stories.tsx
@@ -1,5 +1,4 @@
import type { Meta, StoryObj } from '@storybook/react-vite'
-import * as React from 'react'
import { expect, fn } from 'storybook/test'
import { Button, buttonVariants } from '.'
@@ -126,12 +125,19 @@ export const Destructive: Story = {
export const WithIcon: Story = {
args: {
variant: 'primary',
- children: (
-
-
- Launch
-
- ),
+ size: 'medium',
+ children: 'Launch',
+ },
+ render: (args) => {
+ const iconSize =
+ args.size === 'small' ? 'size-3.5' : args.size === 'large' ? 'size-5' : 'size-4'
+
+ return (
+
+ )
},
}
diff --git a/packages/dify-ui/src/button/index.tsx b/packages/dify-ui/src/button/index.tsx
index 6c7a50ba3a1..7616fdb8d5f 100644
--- a/packages/dify-ui/src/button/index.tsx
+++ b/packages/dify-ui/src/button/index.tsx
@@ -7,26 +7,24 @@ import { cva } from 'class-variance-authority'
import { cn } from '../cn'
const buttonVariants = cva(
- 'inline-flex cursor-pointer items-center justify-center whitespace-nowrap outline-hidden focus-visible:ring-2 focus-visible:ring-state-accent-solid data-disabled:cursor-not-allowed',
+ 'inline-flex cursor-pointer items-center justify-center overflow-hidden whitespace-nowrap outline-hidden focus-visible:ring-2 focus-visible:ring-state-accent-solid data-disabled:cursor-not-allowed',
{
variants: {
variant: {
primary: [
- 'border-components-button-primary-border bg-components-button-primary-bg text-components-button-primary-text shadow-sm',
- 'hover:border-components-button-primary-border-hover hover:bg-components-button-primary-bg-hover',
- 'data-disabled:border-components-button-primary-border-disabled data-disabled:bg-components-button-primary-bg-disabled data-disabled:text-components-button-primary-text-disabled data-disabled:shadow-none',
+ 'bg-components-button-primary-bg text-components-button-primary-text shadow-primary-button inset-ring-[0.5px] inset-ring-components-button-primary-border',
+ 'hover:bg-components-button-primary-bg-hover hover:shadow-xs hover:shadow-shadow-shadow-3 hover:inset-ring-components-button-primary-border-hover',
+ 'data-disabled:bg-components-button-primary-bg-disabled data-disabled:text-components-button-primary-text-disabled data-disabled:shadow-none data-disabled:inset-ring-components-button-primary-border-disabled',
],
secondary: [
- 'border-[0.5px] shadow-xs backdrop-blur-[5px]',
- 'border-components-button-secondary-border bg-components-button-secondary-bg text-components-button-secondary-text',
- 'hover:border-components-button-secondary-border-hover hover:bg-components-button-secondary-bg-hover',
- 'data-disabled:border-components-button-secondary-border-disabled data-disabled:bg-components-button-secondary-bg-disabled data-disabled:text-components-button-secondary-text-disabled data-disabled:backdrop-blur-xs',
+ 'bg-components-button-secondary-bg text-components-button-secondary-text shadow-xs inset-ring-[0.5px] shadow-shadow-shadow-3 inset-ring-components-button-secondary-border backdrop-blur-[5px]',
+ 'hover:bg-components-button-secondary-bg-hover hover:inset-ring-components-button-secondary-border-hover',
+ 'data-disabled:bg-components-button-secondary-bg-disabled data-disabled:text-components-button-secondary-text-disabled data-disabled:shadow-none data-disabled:inset-ring-components-button-secondary-border-disabled data-disabled:backdrop-blur-xs',
],
'secondary-accent': [
- 'border-[0.5px] shadow-xs',
- 'border-components-button-secondary-border bg-components-button-secondary-bg text-components-button-secondary-accent-text',
- 'hover:border-components-button-secondary-border-hover hover:bg-components-button-secondary-bg-hover',
- 'data-disabled:border-components-button-secondary-border-disabled data-disabled:bg-components-button-secondary-bg-disabled data-disabled:text-components-button-secondary-accent-text-disabled',
+ 'bg-components-button-secondary-bg text-components-button-secondary-accent-text shadow-xs inset-ring-[0.5px] shadow-shadow-shadow-3 inset-ring-components-button-secondary-border backdrop-blur-[5px]',
+ 'hover:bg-components-button-secondary-bg-hover hover:inset-ring-components-button-secondary-border-hover',
+ 'data-disabled:bg-components-button-secondary-bg-disabled data-disabled:text-components-button-secondary-accent-text-disabled data-disabled:shadow-none data-disabled:inset-ring-components-button-secondary-border-disabled data-disabled:backdrop-blur-xs',
],
tertiary: [
'bg-components-button-tertiary-bg text-components-button-tertiary-text',
@@ -45,9 +43,9 @@ const buttonVariants = cva(
],
},
size: {
- small: 'h-6 rounded-md px-2 text-xs font-medium',
- medium: 'h-8 rounded-lg px-3.5 text-[13px] leading-4 font-medium',
- large: 'h-9 rounded-[10px] px-4 text-sm font-semibold',
+ small: 'h-6 gap-1 rounded-md px-[9px] text-xs font-medium',
+ medium: 'h-8 gap-1 rounded-lg px-3.5 text-[13px] leading-4 font-medium',
+ large: 'h-9 gap-1.5 rounded-[10px] px-4 text-sm font-semibold',
},
tone: {
default: '',
@@ -55,22 +53,27 @@ const buttonVariants = cva(
},
},
compoundVariants: [
+ {
+ variant: 'primary',
+ size: 'small',
+ class: 'gap-[3px] px-2',
+ },
{
variant: 'primary',
tone: 'destructive',
class: [
- 'border-components-button-destructive-primary-border bg-components-button-destructive-primary-bg text-components-button-destructive-primary-text',
- 'hover:border-components-button-destructive-primary-border-hover hover:bg-components-button-destructive-primary-bg-hover',
- 'data-disabled:border-components-button-destructive-primary-border-disabled data-disabled:bg-components-button-destructive-primary-bg-disabled data-disabled:text-components-button-destructive-primary-text-disabled data-disabled:shadow-none',
+ 'bg-components-button-destructive-primary-bg text-components-button-destructive-primary-text inset-ring-components-button-destructive-primary-border',
+ 'hover:bg-components-button-destructive-primary-bg-hover hover:inset-ring-components-button-destructive-primary-border-hover',
+ 'data-disabled:bg-components-button-destructive-primary-bg-disabled data-disabled:text-components-button-destructive-primary-text-disabled data-disabled:shadow-none data-disabled:inset-ring-components-button-destructive-primary-bg-disabled',
],
},
{
variant: 'secondary',
tone: 'destructive',
class: [
- 'border-components-button-destructive-secondary-border bg-components-button-destructive-secondary-bg text-components-button-destructive-secondary-text',
- 'hover:border-components-button-destructive-secondary-border-hover hover:bg-components-button-destructive-secondary-bg-hover',
- 'data-disabled:border-components-button-destructive-secondary-border-disabled data-disabled:bg-components-button-destructive-secondary-bg-disabled data-disabled:text-components-button-destructive-secondary-text-disabled',
+ 'bg-components-button-destructive-secondary-bg text-components-button-destructive-secondary-text inset-ring-components-button-destructive-secondary-border',
+ 'hover:bg-components-button-destructive-secondary-bg-hover hover:inset-ring-components-button-destructive-secondary-border-hover',
+ 'data-disabled:text-components-button-destructive-secondary-text-disabled',
],
},
{
@@ -129,7 +132,7 @@ function Button({
{children}
{loading && (
)}
diff --git a/packages/dify-ui/src/styles/styles.css b/packages/dify-ui/src/styles/styles.css
index 7453e81d83c..6df47018b1c 100644
--- a/packages/dify-ui/src/styles/styles.css
+++ b/packages/dify-ui/src/styles/styles.css
@@ -66,6 +66,12 @@
/* shadows */
--shadow-xs: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
+ --shadow-primary-button:
+ 0px 2px 2px -1px rgba(0, 0, 0, 0.12), 0px 1px 1px -1px rgba(0, 0, 0, 0.12),
+ 0px 0px 0px 0.5px var(--color-shadow-shadow-10),
+ inset 0px -6px 12px -4px var(--color-shadow-shadow-5),
+ inset 0px 0px 1px 0px rgba(255, 255, 255, 0.16),
+ inset 0px 0.5px 0px 0px rgba(255, 255, 255, 0.08);
--shadow-sm: 0px 1px 2px 0px rgba(16, 24, 40, 0.06), 0px 1px 3px 0px rgba(16, 24, 40, 0.1);
--shadow-sm-no-bottom:
0px -1px 2px 0px rgba(16, 24, 40, 0.06), 0px -1px 3px 0px rgba(16, 24, 40, 0.1);
diff --git a/web/app/(shareLayout)/webapp-signin/components/sso-auth.tsx b/web/app/(shareLayout)/webapp-signin/components/sso-auth.tsx
index f46da750252..6411d59e6c3 100644
--- a/web/app/(shareLayout)/webapp-signin/components/sso-auth.tsx
+++ b/web/app/(shareLayout)/webapp-signin/components/sso-auth.tsx
@@ -80,7 +80,7 @@ function SSOAuth({ protocol }: SSOAuthProps) {
disabled={isLoading}
className="w-full"
>
-
+
{t(($) => $.withSSO, { ns: 'login' })}
)
diff --git a/web/app/account/(commonLayout)/header.tsx b/web/app/account/(commonLayout)/header.tsx
index 4d1af45c74d..57cf2ab381d 100644
--- a/web/app/account/(commonLayout)/header.tsx
+++ b/web/app/account/(commonLayout)/header.tsx
@@ -46,7 +46,7 @@ const Header = () => {
-
-
+
- {t(($) => $['operation.delete'], { ns: 'common' })}
+ {t(($) => $['operation.delete'], { ns: 'common' })}
- onSelectedIdsChange([])}>
- {t(($) => $['operation.cancel'], { ns: 'common' })}
+ onSelectedIdsChange([])}>
+ {t(($) => $['operation.cancel'], { ns: 'common' })}
!open && hideDeleteConfirm()}>
diff --git a/web/app/components/app/annotation/header-opts/index.tsx b/web/app/components/app/annotation/header-opts/index.tsx
index 1ddc0432163..c303c9eb900 100644
--- a/web/app/components/app/annotation/header-opts/index.tsx
+++ b/web/app/components/app/annotation/header-opts/index.tsx
@@ -180,7 +180,7 @@ const HeaderOptions: FC = ({ appId, onAdd, onAdded, controlUpdateList })
return (
setShowAddModal(true)}>
-
+
{t(($) => $['table.header.addAnnotation'], { ns: 'appAnnotation' })}
event.preventDefault()}
onClick={handleExpandClick}
>
-
+
{t(($) => $['accessControlDialog.operateGroupAndMember.expand'], { ns: 'app' })}
diff --git a/web/app/components/app/app-publisher/publish-with-multiple-model.tsx b/web/app/components/app/app-publisher/publish-with-multiple-model.tsx
index 219c5116868..b51568930e1 100644
--- a/web/app/components/app/app-publisher/publish-with-multiple-model.tsx
+++ b/web/app/components/app/app-publisher/publish-with-multiple-model.tsx
@@ -65,7 +65,7 @@ const PublishWithMultipleModel: FC = ({
>
<>
{t(($) => $['operation.applyConfig'], { ns: 'appDebug' })}
-
+
>
diff --git a/web/app/components/app/configuration/base/operation-button/index.tsx b/web/app/components/app/configuration/base/operation-button/index.tsx
index 773af64ac7e..bb65f0213f0 100644
--- a/web/app/components/app/configuration/base/operation-button/index.tsx
+++ b/web/app/components/app/configuration/base/operation-button/index.tsx
@@ -21,7 +21,7 @@ export function OperationButton({
{...buttonProps}
variant="ghost"
size="small"
- className={cn('h-7 gap-1 px-3 text-text-secondary', className)}
+ className={cn('h-7 px-3 text-text-secondary', className)}
>
= ({ onConfirm, onCancel })
description={t(($) => $.formattingChangedText, { ns: 'appDebug' })}
footer={
-
+
{icon}
{t(($) => $['operation.refresh'], { ns: 'common' })}
diff --git a/web/app/components/app/configuration/config-prompt/index.tsx b/web/app/components/app/configuration/config-prompt/index.tsx
index 0893249d5da..ee90e0721e5 100644
--- a/web/app/components/app/configuration/config-prompt/index.tsx
+++ b/web/app/components/app/configuration/config-prompt/index.tsx
@@ -159,7 +159,7 @@ const Prompt: FC = ({
{modelModeType === ModelModeType.chat &&
(currentAdvancedPrompt as PromptItem[]).length < MAX_PROMPT_MESSAGE_LENGTH && (
-
+
{t(($) => $['promptMode.operation.addMessage'], { ns: 'appDebug' })}
)}
diff --git a/web/app/components/app/configuration/config-vision/param-config.tsx b/web/app/components/app/configuration/config-vision/param-config.tsx
index 39a6feb0ab1..b39b917d56b 100644
--- a/web/app/components/app/configuration/config-vision/param-config.tsx
+++ b/web/app/components/app/configuration/config-vision/param-config.tsx
@@ -1,7 +1,6 @@
'use client'
import type { FC } from 'react'
import { Button } from '@langgenius/dify-ui/button'
-import { cn } from '@langgenius/dify-ui/cn'
import { Popover, PopoverContent, PopoverTrigger } from '@langgenius/dify-ui/popover'
import { RiSettings2Line } from '@remixicon/react'
import { memo, useState } from 'react'
@@ -16,9 +15,9 @@ const ParamsConfig: FC = () => {
+
- {t(($) => $['voice.settings'], { ns: 'appDebug' })}
+ {t(($) => $['voice.settings'], { ns: 'appDebug' })}
}
/>
diff --git a/web/app/components/app/configuration/config/agent-setting-button.tsx b/web/app/components/app/configuration/config/agent-setting-button.tsx
index dfaa665b7bc..8f020d6ef20 100644
--- a/web/app/components/app/configuration/config/agent-setting-button.tsx
+++ b/web/app/components/app/configuration/config/agent-setting-button.tsx
@@ -32,7 +32,7 @@ const AgentSettingButton: FC = ({
className="mr-2 shrink-0"
disabled={disabled}
>
-
+
{t(($) => $['agent.setting.name'], { ns: 'appDebug' })}
{isShowAgentSetting && (
diff --git a/web/app/components/app/configuration/config/agent/agent-tools/index.tsx b/web/app/components/app/configuration/config/agent/agent-tools/index.tsx
index add510e6274..c2ab2c6b940 100644
--- a/web/app/components/app/configuration/config/agent/agent-tools/index.tsx
+++ b/web/app/components/app/configuration/config/agent/agent-tools/index.tsx
@@ -366,7 +366,7 @@ const AgentTools: FC = () => {
}}
>
{t(($) => $.notAuthorized, { ns: 'tools' })}
-
+
)}
diff --git a/web/app/components/app/configuration/config/automatic/automatic-btn.tsx b/web/app/components/app/configuration/config/automatic/automatic-btn.tsx
index c5afbf127df..39b9cf2bcff 100644
--- a/web/app/components/app/configuration/config/automatic/automatic-btn.tsx
+++ b/web/app/components/app/configuration/config/automatic/automatic-btn.tsx
@@ -13,8 +13,8 @@ const AutomaticBtn: FC = ({ onClick }) => {
return (
-
- {t(($) => $['operation.automatic'], { ns: 'appDebug' })}
+
+ {t(($) => $['operation.automatic'], { ns: 'appDebug' })}
)
}
diff --git a/web/app/components/app/configuration/config/automatic/get-automatic-res.tsx b/web/app/components/app/configuration/config/automatic/get-automatic-res.tsx
index 642279ada6e..0846b1e0746 100644
--- a/web/app/components/app/configuration/config/automatic/get-automatic-res.tsx
+++ b/web/app/components/app/configuration/config/automatic/get-automatic-res.tsx
@@ -382,7 +382,7 @@ const GetAutomaticRes: FC = ({
{t(($) => $[`${i18nPrefix}.dismiss`], { ns: 'appDebug' })}
= ({
{t(($) => $[`${i18nPrefix}.dismiss`], { ns: 'appDebug' })}
= ({
className="mr-2 h-8! text-[13px]! font-medium"
onClick={onOpenDebugPanel}
>
-
- {t(($) => $['operation.debugConfig'], { ns: 'appDebug' })}
-
+ {t(($) => $['operation.debugConfig'], { ns: 'appDebug' })}
)}
diff --git a/web/app/components/app/configuration/dataset-config/params-config/index.tsx b/web/app/components/app/configuration/dataset-config/params-config/index.tsx
index fab8ac18683..f935aada53a 100644
--- a/web/app/components/app/configuration/dataset-config/params-config/index.tsx
+++ b/web/app/components/app/configuration/dataset-config/params-config/index.tsx
@@ -113,7 +113,7 @@ const ParamsConfig = ({ disabled, selectedDatasets }: ParamsConfigProps) => {
}}
disabled={disabled}
>
-
+
{t(($) => $.retrievalSettings, { ns: 'dataset' })}
{rerankSettingModalOpen && (
diff --git a/web/app/components/app/configuration/debug/index.tsx b/web/app/components/app/configuration/debug/index.tsx
index 0856cd89ee6..e71e0c67b6f 100644
--- a/web/app/components/app/configuration/debug/index.tsx
+++ b/web/app/components/app/configuration/debug/index.tsx
@@ -427,7 +427,7 @@ const Debug: FC = ({
}
disabled={multipleModelConfigs.length >= 4 || !canTestAndRun}
>
-
+
{t(($) => $['modelProvider.addModel'], { ns: 'common' })}(
{multipleModelConfigs.length}
/4)
diff --git a/web/app/components/app/configuration/prompt-value-panel/index.tsx b/web/app/components/app/configuration/prompt-value-panel/index.tsx
index c7522902272..568d0b0973e 100644
--- a/web/app/components/app/configuration/prompt-value-panel/index.tsx
+++ b/web/app/components/app/configuration/prompt-value-panel/index.tsx
@@ -293,7 +293,7 @@ const PromptValuePanel: FC = ({
onClick={() => onSend?.()}
className="w-24"
>
-
+
{t(($) => $['inputs.run'], { ns: 'appDebug' })}
}
@@ -310,7 +310,7 @@ const PromptValuePanel: FC = ({
onClick={() => onSend?.()}
className="w-24"
>
-
+
{t(($) => $['inputs.run'], { ns: 'appDebug' })}
)}
diff --git a/web/app/components/app/create-app-dialog/app-card/index.tsx b/web/app/components/app/create-app-dialog/app-card/index.tsx
index 76417fbd4e8..5d14269d72e 100644
--- a/web/app/components/app/create-app-dialog/app-card/index.tsx
+++ b/web/app/components/app/create-app-dialog/app-card/index.tsx
@@ -89,13 +89,13 @@ const AppCard = ({ app, canCreate, onCreate }: AppCardProps) => {
>
{canCreate && (
onCreate()}>
-
+
{t(($) => $['newApp.useTemplate'], { ns: 'app' })}
)}
{canViewApp && (
-
+
{t(($) => $['appCard.try'], { ns: 'explore' })}
)}
diff --git a/web/app/components/app/create-app-dropdown.tsx b/web/app/components/app/create-app-dropdown.tsx
index 87f0a8f7f9a..4fdb76c641d 100644
--- a/web/app/components/app/create-app-dropdown.tsx
+++ b/web/app/components/app/create-app-dropdown.tsx
@@ -44,10 +44,10 @@ export function CreateAppDropdown({
data-step-by-step-tour-target={stepByStepTourTarget}
variant="primary"
size="medium"
- className="gap-0.5 px-2 whitespace-nowrap shadow-xs shadow-shadow-shadow-3"
+ className="px-2 whitespace-nowrap shadow-xs shadow-shadow-shadow-3"
>
- {t(($) => $['operation.create'], { ns: 'common' })}
+ {t(($) => $['operation.create'], { ns: 'common' })}
}
diff --git a/web/app/components/app/create-app-modal/index.tsx b/web/app/components/app/create-app-modal/index.tsx
index 6caf124a59f..f776e509eb2 100644
--- a/web/app/components/app/create-app-modal/index.tsx
+++ b/web/app/components/app/create-app-modal/index.tsx
@@ -345,7 +345,7 @@ function CreateApp({ onClose, onSuccess, onCreateFromTemplate, defaultAppMode }:
{t(($) => $['newApp.Cancel'], { ns: 'app' })}
diff --git a/web/app/components/app/create-from-dsl-modal/index.tsx b/web/app/components/app/create-from-dsl-modal/index.tsx
index fe1420cb386..f6c0dfc69a5 100644
--- a/web/app/components/app/create-from-dsl-modal/index.tsx
+++ b/web/app/components/app/create-from-dsl-modal/index.tsx
@@ -334,7 +334,6 @@ function CreateFromDSLModal({
disabled={createDisabled}
loading={isImporting}
variant="primary"
- className="gap-1"
>
{t(($) => $['newApp.Create'], { ns: 'app' })}
diff --git a/web/app/components/app/overview/apikey-info-panel/index.tsx b/web/app/components/app/overview/apikey-info-panel/index.tsx
index 337d4a57a40..5e93e13a771 100644
--- a/web/app/components/app/overview/apikey-info-panel/index.tsx
+++ b/web/app/components/app/overview/apikey-info-panel/index.tsx
@@ -67,11 +67,7 @@ const APIKeyInfoPanel: FC = () => {
{t(($) => $[`apiKeyInfo.cloud.${'trial'}.description`], { ns: 'appOverview' })}
)}
- setSettingsDestination('provider')}
- >
+ setSettingsDestination('provider')}>
{t(($) => $['apiKeyInfo.setAPIBtn'], { ns: 'appOverview' })}
diff --git a/web/app/components/app/overview/app-card-sections.tsx b/web/app/components/app/overview/app-card-sections.tsx
index b9552eafbeb..7664bd0a65e 100644
--- a/web/app/components/app/overview/app-card-sections.tsx
+++ b/web/app/components/app/overview/app-card-sections.tsx
@@ -373,7 +373,7 @@ export const AppCardOperations = ({
show={disabled}
>
= ({
/>
}
>
-
+
{t(($) => $[`${prefixCustomize}.way1.step1Operation`], { ns: 'appOverview' })}
@@ -136,7 +136,7 @@ const CustomizeModal: FC = ({
/>
}
>
-
+
{t(($) => $[`${prefixCustomize}.way1.step2Operation`], { ns: 'appOverview' })}
@@ -193,7 +193,7 @@ const CustomizeModal: FC = ({
diff --git a/web/app/components/app/switch-app-modal/index.tsx b/web/app/components/app/switch-app-modal/index.tsx
index 6c3a19064f2..e1ca274925d 100644
--- a/web/app/components/app/switch-app-modal/index.tsx
+++ b/web/app/components/app/switch-app-modal/index.tsx
@@ -200,7 +200,7 @@ const SwitchAppModal = ({
{t(($) => $['newApp.Cancel'], { ns: 'app' })}
= ({ onStartCreateContent }) => {
{t(($) => $['generation.savedNoData.description'], { ns: 'share' })}
-
+
{t(($) => $['generation.savedNoData.startCreateContent'], { ns: 'share' })}
diff --git a/web/app/components/base/chat/chat-with-history/sidebar/index.tsx b/web/app/components/base/chat/chat-with-history/sidebar/index.tsx
index 40493ae0023..aa770f0b2c9 100644
--- a/web/app/components/base/chat/chat-with-history/sidebar/index.tsx
+++ b/web/app/components/base/chat/chat-with-history/sidebar/index.tsx
@@ -123,7 +123,7 @@ const Sidebar = ({ isPanel }: Props) => {
className="w-full justify-center"
onClick={handleNewConversation}
>
-
+
{t(($) => $['chat.newChat'], { ns: 'share' })}
diff --git a/web/app/components/base/chat/chat/index.tsx b/web/app/components/base/chat/chat/index.tsx
index acaae0eb32b..c0ef9fc07c3 100644
--- a/web/app/components/base/chat/chat/index.tsx
+++ b/web/app/components/base/chat/chat/index.tsx
@@ -270,10 +270,10 @@ const Chat: FC = ({
{!noStopResponding && isResponding && (
-
+
{t(($) => $['operation.stopResponding'], { ns: 'appDebug' })}
diff --git a/web/app/components/base/features/new-feature-panel/annotation-reply/config-param-modal.tsx b/web/app/components/base/features/new-feature-panel/annotation-reply/config-param-modal.tsx
index 8e78e0054d1..f7d483dd96e 100644
--- a/web/app/components/base/features/new-feature-panel/annotation-reply/config-param-modal.tsx
+++ b/web/app/components/base/features/new-feature-panel/annotation-reply/config-param-modal.tsx
@@ -136,7 +136,6 @@ const ConfigParamModal: FC = ({
{t(($) => $['operation.cancel'], { ns: 'common' })}
-
{t(($) => $[`initSetup.${isInit ? 'confirmBtn' : 'configConfirmBtn'}`], {
ns: 'appAnnotation',
diff --git a/web/app/components/base/features/new-feature-panel/annotation-reply/index.tsx b/web/app/components/base/features/new-feature-panel/annotation-reply/index.tsx
index aec5d6a61bd..0a8834988af 100644
--- a/web/app/components/base/features/new-feature-panel/annotation-reply/index.tsx
+++ b/web/app/components/base/features/new-feature-panel/annotation-reply/index.tsx
@@ -123,7 +123,7 @@ const AnnotationReply = ({ disabled, onChange }: Props) => {
onClick={() => setIsShowAnnotationConfigInit(true)}
disabled={disabled}
>
-
+
{t(($) => $['operation.params'], { ns: 'common' })}
{
router.push(`/app/${appId}/annotations`)
}}
>
-
+
{t(($) => $['feature.annotation.cacheManagement'], { ns: 'appDebug' })}
diff --git a/web/app/components/base/features/new-feature-panel/conversation-opener/index.tsx b/web/app/components/base/features/new-feature-panel/conversation-opener/index.tsx
index 46fb7c015f0..69a90813919 100644
--- a/web/app/components/base/features/new-feature-panel/conversation-opener/index.tsx
+++ b/web/app/components/base/features/new-feature-panel/conversation-opener/index.tsx
@@ -111,7 +111,7 @@ const ConversationOpener = ({
)}
{isHovering && (
-
+
{t(($) => $['openingStatement.writeOpener'], { ns: 'appDebug' })}
)}
diff --git a/web/app/components/base/features/new-feature-panel/feature-bar.tsx b/web/app/components/base/features/new-feature-panel/feature-bar.tsx
index 5eb97bebdc4..7b9c63b2557 100644
--- a/web/app/components/base/features/new-feature-panel/feature-bar.tsx
+++ b/web/app/components/base/features/new-feature-panel/feature-bar.tsx
@@ -212,7 +212,7 @@ const FeatureBar = ({
size="small"
onClick={() => onFeatureBarClick?.(true)}
>
- {t(($) => $['feature.bar.manage'], { ns: 'appDebug' })}
+ {t(($) => $['feature.bar.manage'], { ns: 'appDebug' })}
)}
diff --git a/web/app/components/base/features/new-feature-panel/file-upload/index.tsx b/web/app/components/base/features/new-feature-panel/file-upload/index.tsx
index faae1805fc5..a78ee950645 100644
--- a/web/app/components/base/features/new-feature-panel/file-upload/index.tsx
+++ b/web/app/components/base/features/new-feature-panel/file-upload/index.tsx
@@ -93,7 +93,7 @@ const FileUpload = ({ disabled, onChange }: Props) => {
onChange={onChange}
>
-
+
{t(($) => $['operation.settings'], { ns: 'common' })}
diff --git a/web/app/components/base/features/new-feature-panel/follow-up.tsx b/web/app/components/base/features/new-feature-panel/follow-up.tsx
index ae2585067e3..d1092dc00de 100644
--- a/web/app/components/base/features/new-feature-panel/follow-up.tsx
+++ b/web/app/components/base/features/new-feature-panel/follow-up.tsx
@@ -97,7 +97,7 @@ const FollowUp = ({ disabled, onChange }: Props) => {
)}
{isHovering && (
-
+
{t(($) => $['operation.settings'], { ns: 'common' })}
)}
diff --git a/web/app/components/base/features/new-feature-panel/image-upload/index.tsx b/web/app/components/base/features/new-feature-panel/image-upload/index.tsx
index f7eee353d6e..1f6785a89ab 100644
--- a/web/app/components/base/features/new-feature-panel/image-upload/index.tsx
+++ b/web/app/components/base/features/new-feature-panel/image-upload/index.tsx
@@ -102,7 +102,7 @@ const FileUpload = ({ disabled, onChange }: Props) => {
onChange={onChange}
>
-
+
{t(($) => $['operation.settings'], { ns: 'common' })}
diff --git a/web/app/components/base/features/new-feature-panel/moderation/index.tsx b/web/app/components/base/features/new-feature-panel/moderation/index.tsx
index 116866a7629..217769fa204 100644
--- a/web/app/components/base/features/new-feature-panel/moderation/index.tsx
+++ b/web/app/components/base/features/new-feature-panel/moderation/index.tsx
@@ -160,7 +160,7 @@ const Moderation = ({ disabled, onChange }: Props) => {
onClick={handleOpenModerationSettingModal}
disabled={disabled}
>
-
+
{t(($) => $['operation.settings'], { ns: 'common' })}
)}
diff --git a/web/app/components/base/features/new-feature-panel/text-to-speech/index.tsx b/web/app/components/base/features/new-feature-panel/text-to-speech/index.tsx
index ee395db903c..4f7ddfba655 100644
--- a/web/app/components/base/features/new-feature-panel/text-to-speech/index.tsx
+++ b/web/app/components/base/features/new-feature-panel/text-to-speech/index.tsx
@@ -105,7 +105,7 @@ const TextToSpeech = ({ disabled, onChange }: Props) => {
onChange={onChange}
>
-
+
{t(($) => $['voice.voiceSettings.title'], { ns: 'appDebug' })}
diff --git a/web/app/components/base/file-uploader/file-from-link-or-local/index.tsx b/web/app/components/base/file-uploader/file-from-link-or-local/index.tsx
index 7311bb7c601..c31e9c88942 100644
--- a/web/app/components/base/file-uploader/file-from-link-or-local/index.tsx
+++ b/web/app/components/base/file-uploader/file-from-link-or-local/index.tsx
@@ -100,7 +100,7 @@ const FileFromLinkOrLocal = ({
)}
{showFromLocal && (
-
+
{t(($) => $['fileUploader.uploadFromComputer'], { ns: 'common' })}
diff --git a/web/app/components/base/file-uploader/file-uploader-in-attachment/index.tsx b/web/app/components/base/file-uploader/file-uploader-in-attachment/index.tsx
index e418b793e2d..a1728874648 100644
--- a/web/app/components/base/file-uploader/file-uploader-in-attachment/index.tsx
+++ b/web/app/components/base/file-uploader/file-uploader-in-attachment/index.tsx
@@ -50,7 +50,7 @@ const FileUploaderInAttachment = ({ isDisabled, fileConfig }: FileUploaderInAtta
disabled={!!(fileConfig.number_limits && files.length >= fileConfig.number_limits)}
>
{option.icon}
-
{option.label}
+
{option.label}
{option.value === TransferMethod.local_file &&
}
)
diff --git a/web/app/components/base/prompt-editor/plugins/hitl-input-block/input-field.tsx b/web/app/components/base/prompt-editor/plugins/hitl-input-block/input-field.tsx
index fe86bea8491..2f1c2b250d6 100644
--- a/web/app/components/base/prompt-editor/plugins/hitl-input-block/input-field.tsx
+++ b/web/app/components/base/prompt-editor/plugins/hitl-input-block/input-field.tsx
@@ -346,9 +346,7 @@ const InputField: React.FC
= ({
) : (
-
- {t(($) => $[`${i18nPrefix}.insert`], { ns: 'workflow' })}
-
+ {t(($) => $[`${i18nPrefix}.insert`], { ns: 'workflow' })}
{['Mod', 'Enter'].map((key) => (
diff --git a/web/app/components/billing/plan/index.tsx b/web/app/components/billing/plan/index.tsx
index ef3af015960..774cbc4a7b8 100644
--- a/web/app/components/billing/plan/index.tsx
+++ b/web/app/components/billing/plan/index.tsx
@@ -94,9 +94,9 @@ const PlanComp: FC = ({ loc }) => {
{isCloudEdition && enableEducationPlan && (!isEducationAccount || isAboutToExpire) && (
-
+
{t(($) => $.toVerified, { ns: 'education' })}
- {isPending && }
+ {isPending && }
)}
{isCloudEdition &&
@@ -109,9 +109,9 @@ const PlanComp: FC
= ({ loc }) => {
onClick={handleEducationDiscount}
disabled={isEducationDiscountLoading}
>
-
+
{t(($) => $.useEducationDiscount, { ns: 'education' })}
- {isEducationDiscountLoading && }
+ {isEducationDiscountLoading && }
)}
{isCloudEdition && !isEnterprisePlan && (
diff --git a/web/app/components/custom/custom-web-app-brand/components/chat-preview-card.tsx b/web/app/components/custom/custom-web-app-brand/components/chat-preview-card.tsx
index 4a7d678aeed..c669e903ab4 100644
--- a/web/app/components/custom/custom-web-app-brand/components/chat-preview-card.tsx
+++ b/web/app/components/custom/custom-web-app-brand/components/chat-preview-card.tsx
@@ -34,7 +34,7 @@ const ChatPreviewCard = ({
-
+
diff --git a/web/app/components/custom/custom-web-app-brand/components/workflow-preview-card.tsx b/web/app/components/custom/custom-web-app-brand/components/workflow-preview-card.tsx
index ad17882a912..44b4a2343fc 100644
--- a/web/app/components/custom/custom-web-app-brand/components/workflow-preview-card.tsx
+++ b/web/app/components/custom/custom-web-app-brand/components/workflow-preview-card.tsx
@@ -53,7 +53,7 @@ const WorkflowPreviewCard = ({
-
+
Execute
diff --git a/web/app/components/custom/custom-web-app-brand/index.tsx b/web/app/components/custom/custom-web-app-brand/index.tsx
index df723f7ae93..4efd00f3353 100644
--- a/web/app/components/custom/custom-web-app-brand/index.tsx
+++ b/web/app/components/custom/custom-web-app-brand/index.tsx
@@ -69,7 +69,7 @@ const CustomWebAppBrand = () => {
)}
{!uploading && (
-
+
{webappLogo || fileId
? t(($) => $.change, { ns: 'custom' })
: t(($) => $.upload, { ns: 'custom' })}
@@ -88,7 +88,7 @@ const CustomWebAppBrand = () => {
)}
{uploading && (
-
+
{t(($) => $.uploading, { ns: 'custom' })}
)}
diff --git a/web/app/components/datasets/create-from-pipeline/create-options/create-from-dsl-modal/index.tsx b/web/app/components/datasets/create-from-pipeline/create-options/create-from-dsl-modal/index.tsx
index dedcb0b3e5e..45279993372 100644
--- a/web/app/components/datasets/create-from-pipeline/create-options/create-from-dsl-modal/index.tsx
+++ b/web/app/components/datasets/create-from-pipeline/create-options/create-from-dsl-modal/index.tsx
@@ -72,12 +72,7 @@ const CreateFromDSLModal = ({
{t(($) => $['newApp.Cancel'], { ns: 'app' })}
-
+
{t(($) => $['newApp.import'], { ns: 'app' })}
diff --git a/web/app/components/datasets/create-from-pipeline/list/template-card/actions.tsx b/web/app/components/datasets/create-from-pipeline/list/template-card/actions.tsx
index 767a7a947da..f8b1cde7852 100644
--- a/web/app/components/datasets/create-from-pipeline/list/template-card/actions.tsx
+++ b/web/app/components/datasets/create-from-pipeline/list/template-card/actions.tsx
@@ -36,17 +36,13 @@ const Actions = ({
isMoreOperationsOpen ? 'flex' : 'hidden group-hover:flex',
)}
>
-
+
-
- {t(($) => $['operations.choose'], { ns: 'datasetPipeline' })}
-
+ {t(($) => $['operations.choose'], { ns: 'datasetPipeline' })}
-
+
-
- {t(($) => $['operations.details'], { ns: 'datasetPipeline' })}
-
+ {t(($) => $['operations.details'], { ns: 'datasetPipeline' })}
{showMoreOperations && (
diff --git a/web/app/components/datasets/create-from-pipeline/list/template-card/details/index.tsx b/web/app/components/datasets/create-from-pipeline/list/template-card/details/index.tsx
index 7e8cd62d375..2ecf666c3da 100644
--- a/web/app/components/datasets/create-from-pipeline/list/template-card/details/index.tsx
+++ b/web/app/components/datasets/create-from-pipeline/list/template-card/details/index.tsx
@@ -89,11 +89,9 @@ const Details = ({ id, type, onApplyTemplate, onClose }: DetailsProps) => {
{pipelineTemplateInfo.description}
-
+
-
- {t(($) => $['operations.useTemplate'], { ns: 'datasetPipeline' })}
-
+ {t(($) => $['operations.useTemplate'], { ns: 'datasetPipeline' })}
diff --git a/web/app/components/datasets/create/embedding-process/index.tsx b/web/app/components/datasets/create/embedding-process/index.tsx
index b27aee42a5f..648aeb3a0a0 100644
--- a/web/app/components/datasets/create/embedding-process/index.tsx
+++ b/web/app/components/datasets/create/embedding-process/index.tsx
@@ -57,13 +57,13 @@ const ActionButtons: FC<{
return (
-
+
- Access the API
+ Access the API
-
- {t(($) => $['stepThree.navTo'], { ns: 'datasetCreation' })}
+
+ {t(($) => $['stepThree.navTo'], { ns: 'datasetCreation' })}
diff --git a/web/app/components/datasets/create/step-two/components/general-chunking-options.tsx b/web/app/components/datasets/create/step-two/components/general-chunking-options.tsx
index 7240690791d..e8f53abb61f 100644
--- a/web/app/components/datasets/create/step-two/components/general-chunking-options.tsx
+++ b/web/app/components/datasets/create/step-two/components/general-chunking-options.tsx
@@ -117,7 +117,7 @@ export const GeneralChunkingOptions: FC
= ({
actions={
<>
-
+
{t(($) => $['stepTwo.previewChunk'], { ns: 'datasetCreation' })}
diff --git a/web/app/components/datasets/create/step-two/components/parent-child-options.tsx b/web/app/components/datasets/create/step-two/components/parent-child-options.tsx
index 3a29329b166..2484868aa74 100644
--- a/web/app/components/datasets/create/step-two/components/parent-child-options.tsx
+++ b/web/app/components/datasets/create/step-two/components/parent-child-options.tsx
@@ -107,7 +107,7 @@ export const ParentChildOptions: FC = ({
actions={
<>
-
+
{t(($) => $['stepTwo.previewChunk'], { ns: 'datasetCreation' })}
diff --git a/web/app/components/datasets/create/step-two/components/step-two-footer.tsx b/web/app/components/datasets/create/step-two/components/step-two-footer.tsx
index 52bbf351f2e..621da16cb57 100644
--- a/web/app/components/datasets/create/step-two/components/step-two-footer.tsx
+++ b/web/app/components/datasets/create/step-two/components/step-two-footer.tsx
@@ -26,7 +26,7 @@ export const StepTwoFooter: FC = ({
return (
-
+
{t(($) => $['stepTwo.previousStep'], { ns: 'datasetCreation' })}
diff --git a/web/app/components/datasets/create/website/base/header.tsx b/web/app/components/datasets/create/website/base/header.tsx
index 04a96ca8db7..13bea87d6a6 100644
--- a/web/app/components/datasets/create/website/base/header.tsx
+++ b/web/app/components/datasets/create/website/base/header.tsx
@@ -36,7 +36,7 @@ const Header = ({
diff --git a/web/app/components/datasets/documents/components/documents-header.tsx b/web/app/components/datasets/documents/components/documents-header.tsx
index b4eb5e40c75..a16feddb05a 100644
--- a/web/app/components/datasets/documents/components/documents-header.tsx
+++ b/web/app/components/datasets/documents/components/documents-header.tsx
@@ -191,7 +191,7 @@ const DocumentsHeader: FC = ({
)}
{embeddingAvailable && canManageMetadata && (
-
+
{t(($) => $['metadata.metadata'], { ns: 'dataset' })}
)}
@@ -209,7 +209,7 @@ const DocumentsHeader: FC = ({
)}
{embeddingAvailable && canAddDocument && (
-
+
{addButtonText}
)}
diff --git a/web/app/components/datasets/documents/create-from-pipeline/actions/index.tsx b/web/app/components/datasets/documents/create-from-pipeline/actions/index.tsx
index 134ef8abc38..729489ee06a 100644
--- a/web/app/components/datasets/documents/create-from-pipeline/actions/index.tsx
+++ b/web/app/components/datasets/documents/create-from-pipeline/actions/index.tsx
@@ -68,13 +68,8 @@ const Actions = ({
{t(($) => $['operation.cancel'], { ns: 'common' })}
-
- {t(($) => $['stepOne.button'], { ns: 'datasetCreation' })}
+
+ {t(($) => $['stepOne.button'], { ns: 'datasetCreation' })}
diff --git a/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/list/empty-search-result.tsx b/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/list/empty-search-result.tsx
index 69a6897b3bf..97eac103630 100644
--- a/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/list/empty-search-result.tsx
+++ b/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/list/empty-search-result.tsx
@@ -20,10 +20,8 @@ const EmptySearchResult = ({
{t(($) => $['onlineDrive.emptySearchResult'], { ns: 'datasetPipeline' })}
-
-
- {t(($) => $['onlineDrive.resetKeywords'], { ns: 'datasetPipeline' })}
-
+
+ {t(($) => $['onlineDrive.resetKeywords'], { ns: 'datasetPipeline' })}
)
diff --git a/web/app/components/datasets/documents/create-from-pipeline/data-source/website-crawl/base/options/index.tsx b/web/app/components/datasets/documents/create-from-pipeline/data-source/website-crawl/base/options/index.tsx
index 2e3171b5f43..fdc6000b828 100644
--- a/web/app/components/datasets/documents/create-from-pipeline/data-source/website-crawl/base/options/index.tsx
+++ b/web/app/components/datasets/documents/create-from-pipeline/data-source/website-crawl/base/options/index.tsx
@@ -89,10 +89,10 @@ const Options = ({ variables, step, runDisabled, onSubmit }: OptionsProps) => {
onClick={form.handleSubmit}
disabled={runDisabled || isRunning}
loading={isRunning}
- className="shrink-0 gap-x-0.5"
+ className="shrink-0"
>
-
+
{!isRunning
? t(($) => $[`${I18N_PREFIX}.run`], { ns: 'datasetCreation' })
: t(($) => $[`${I18N_PREFIX}.running`], { ns: 'datasetCreation' })}
diff --git a/web/app/components/datasets/documents/create-from-pipeline/process-documents/actions.tsx b/web/app/components/datasets/documents/create-from-pipeline/process-documents/actions.tsx
index c4ac2cfd8b0..5a899dbe730 100644
--- a/web/app/components/datasets/documents/create-from-pipeline/process-documents/actions.tsx
+++ b/web/app/components/datasets/documents/create-from-pipeline/process-documents/actions.tsx
@@ -14,11 +14,9 @@ const Actions = ({ onBack, runDisabled, onProcess }: ActionsProps) => {
return (
-
+
-
- {t(($) => $['operations.dataSource'], { ns: 'datasetPipeline' })}
-
+ {t(($) => $['operations.dataSource'], { ns: 'datasetPipeline' })}
{t(($) => $['operations.saveAndProcess'], { ns: 'datasetPipeline' })}
diff --git a/web/app/components/datasets/documents/create-from-pipeline/process-documents/header.tsx b/web/app/components/datasets/documents/create-from-pipeline/process-documents/header.tsx
index 5acb952ffc8..cfb37955fee 100644
--- a/web/app/components/datasets/documents/create-from-pipeline/process-documents/header.tsx
+++ b/web/app/components/datasets/documents/create-from-pipeline/process-documents/header.tsx
@@ -21,16 +21,9 @@ const Header = ({ onReset, resetDisabled, previewDisabled, onPreview }: HeaderPr
{t(($) => $['operation.reset'], { ns: 'common' })}
-
+
-
- {t(($) => $['addDocuments.stepTwo.previewChunks'], { ns: 'datasetPipeline' })}
-
+ {t(($) => $['addDocuments.stepTwo.previewChunks'], { ns: 'datasetPipeline' })}
)
diff --git a/web/app/components/datasets/documents/create-from-pipeline/processing/embedding-process/index.tsx b/web/app/components/datasets/documents/create-from-pipeline/processing/embedding-process/index.tsx
index 18a5eb3459e..c5f109a2b99 100644
--- a/web/app/components/datasets/documents/create-from-pipeline/processing/embedding-process/index.tsx
+++ b/web/app/components/datasets/documents/create-from-pipeline/processing/embedding-process/index.tsx
@@ -240,15 +240,13 @@ const EmbeddingProcess = ({
-
+
- Access the API
+ Access the API
-
-
- {t(($) => $['stepThree.navTo'], { ns: 'datasetCreation' })}
-
+
+ {t(($) => $['stepThree.navTo'], { ns: 'datasetCreation' })}
diff --git a/web/app/components/datasets/documents/detail/completed/common/batch-action.tsx b/web/app/components/datasets/documents/detail/completed/common/batch-action.tsx
index 924fe84e05c..c445be53ea4 100644
--- a/web/app/components/datasets/documents/detail/completed/common/batch-action.tsx
+++ b/web/app/components/datasets/documents/detail/completed/common/batch-action.tsx
@@ -85,72 +85,57 @@ const BatchAction: FC = ({
{onBatchEnable && (
-
+
- {t(($) => $[`${i18nPrefix}.enable`], { ns: 'dataset' })}
+ {t(($) => $[`${i18nPrefix}.enable`], { ns: 'dataset' })}
)}
{onBatchDisable && (
-
+
-
- {t(($) => $[`${i18nPrefix}.disable`], { ns: 'dataset' })}
-
+ {t(($) => $[`${i18nPrefix}.disable`], { ns: 'dataset' })}
)}
{onEditMetadata && (
-
+
- {t(($) => $['metadata.metadata'], { ns: 'dataset' })}
+ {t(($) => $['metadata.metadata'], { ns: 'dataset' })}
)}
{onBatchSummary && isNonCloudEdition && (
-
+
-
- {t(($) => $['list.action.summary'], { ns: 'datasetDocuments' })}
-
+ {t(($) => $['list.action.summary'], { ns: 'datasetDocuments' })}
)}
{onArchive && (
-
+
-
- {t(($) => $[`${i18nPrefix}.archive`], { ns: 'dataset' })}
-
+ {t(($) => $[`${i18nPrefix}.archive`], { ns: 'dataset' })}
)}
{onBatchReIndex && (
-
+
-
- {t(($) => $[`${i18nPrefix}.reIndex`], { ns: 'dataset' })}
-
+ {t(($) => $[`${i18nPrefix}.reIndex`], { ns: 'dataset' })}
)}
{onBatchDownload && (
-
+
-
- {t(($) => $[`${i18nPrefix}.download`], { ns: 'dataset' })}
-
+ {t(($) => $[`${i18nPrefix}.download`], { ns: 'dataset' })}
)}
{onBatchDelete && (
-
+
- {t(($) => $[`${i18nPrefix}.delete`], { ns: 'dataset' })}
+ {t(($) => $[`${i18nPrefix}.delete`], { ns: 'dataset' })}
)}
-
- {t(($) => $[`${i18nPrefix}.cancel`], { ns: 'dataset' })}
+
+ {t(($) => $[`${i18nPrefix}.cancel`], { ns: 'dataset' })}
{onBatchDelete && (
diff --git a/web/app/components/datasets/documents/detail/completed/common/regeneration-modal.tsx b/web/app/components/datasets/documents/detail/completed/common/regeneration-modal.tsx
index afd75ee53ca..704a917245f 100644
--- a/web/app/components/datasets/documents/detail/completed/common/regeneration-modal.tsx
+++ b/web/app/components/datasets/documents/detail/completed/common/regeneration-modal.tsx
@@ -57,12 +57,7 @@ const RegeneratingContent: FC = React.memo(() => {
-
+
{t(($) => $['operation.regenerate'], { ns: 'common' })}
diff --git a/web/app/components/datasets/external-api/external-api-panel/index.tsx b/web/app/components/datasets/external-api/external-api-panel/index.tsx
index fee862d8488..35297cb9aad 100644
--- a/web/app/components/datasets/external-api/external-api-panel/index.tsx
+++ b/web/app/components/datasets/external-api/external-api-panel/index.tsx
@@ -80,7 +80,7 @@ const ExternalAPIPanel: React.FC = ({
diff --git a/web/app/components/datasets/external-knowledge-base/create/ExternalApiSelection.tsx b/web/app/components/datasets/external-knowledge-base/create/ExternalApiSelection.tsx
index e5d1ba46d6e..3813778233a 100644
--- a/web/app/components/datasets/external-knowledge-base/create/ExternalApiSelection.tsx
+++ b/web/app/components/datasets/external-knowledge-base/create/ExternalApiSelection.tsx
@@ -84,7 +84,7 @@ const ExternalApiSelection: React.FC = ({
}}
/>
) : (
-
+
{t(($) => $.noExternalKnowledge, { ns: 'dataset' })}
diff --git a/web/app/components/datasets/extra-info/service-api/card.tsx b/web/app/components/datasets/extra-info/service-api/card.tsx
index afae034c147..a2739bd1538 100644
--- a/web/app/components/datasets/extra-info/service-api/card.tsx
+++ b/web/app/components/datasets/extra-info/service-api/card.tsx
@@ -56,21 +56,21 @@ const Card = ({ apiBaseUrl, onOpenSecretKeyModal, canManageSecretKey = false }:
-
+
{t(($) => $['serviceApi.card.apiKey'], { ns: 'dataset' })}
}
/>
-
+
-
+
{t(($) => $['serviceApi.card.apiReference'], { ns: 'dataset' })}
diff --git a/web/app/components/datasets/hit-testing/components/query-input/index.tsx b/web/app/components/datasets/hit-testing/components/query-input/index.tsx
index d9b9dbc5c82..5fd02b0a621 100644
--- a/web/app/components/datasets/hit-testing/components/query-input/index.tsx
+++ b/web/app/components/datasets/hit-testing/components/query-input/index.tsx
@@ -232,7 +232,7 @@ const QueryInput = ({
}
className="w-22"
>
-
+
{t(($) => $['input.testing'], { ns: 'datasetHitTesting' })}
)
@@ -266,7 +266,7 @@ const QueryInput = ({
onClick={() => setIsSettingsOpen(!isSettingsOpen)}
>
-
+
{t(($) => $.settingTitle, { ns: 'datasetHitTesting' })}
diff --git a/web/app/components/datasets/list/header.tsx b/web/app/components/datasets/list/header.tsx
index 20918ca466a..6c16d8c3261 100644
--- a/web/app/components/datasets/list/header.tsx
+++ b/web/app/components/datasets/list/header.tsx
@@ -83,14 +83,14 @@ const DatasetListHeader = ({
-
+
{t(($) => $.externalAPIPanelTitle, { ns: 'dataset' })}
@@ -134,13 +134,11 @@ const DatasetListHeader = ({
-
- {t(($) => $['operation.create'], { ns: 'common' })}
-
+ {t(($) => $['operation.create'], { ns: 'common' })}
}
diff --git a/web/app/components/datasets/metadata/metadata-dataset/dataset-metadata-drawer.tsx b/web/app/components/datasets/metadata/metadata-dataset/dataset-metadata-drawer.tsx
index 5fd1453c1ac..6c80c2f3ad8 100644
--- a/web/app/components/datasets/metadata/metadata-dataset/dataset-metadata-drawer.tsx
+++ b/web/app/components/datasets/metadata/metadata-dataset/dataset-metadata-drawer.tsx
@@ -241,7 +241,7 @@ const DatasetMetadataDrawer: FC
= ({
setOpen={setOpen}
trigger={
-
+
{t(($) => $[`${i18nPrefix}.addMetaData`], { ns: 'dataset' })}
}
diff --git a/web/app/components/datasets/metadata/metadata-document/index.tsx b/web/app/components/datasets/metadata/metadata-document/index.tsx
index 3c71c3ebf4b..4a0e59f294a 100644
--- a/web/app/components/datasets/metadata/metadata-document/index.tsx
+++ b/web/app/components/datasets/metadata/metadata-document/index.tsx
@@ -71,7 +71,7 @@ const MetadataDocument: FC = ({
) : (
-
+
{t(($) => $['operation.edit'], { ns: 'common' })}
))
diff --git a/web/app/components/datasets/metadata/metadata-document/no-data.tsx b/web/app/components/datasets/metadata/metadata-document/no-data.tsx
index 2208a725e33..9c64d9da2a2 100644
--- a/web/app/components/datasets/metadata/metadata-document/no-data.tsx
+++ b/web/app/components/datasets/metadata/metadata-document/no-data.tsx
@@ -21,7 +21,7 @@ const NoData: FC
= ({ onStart }) => {
{t(($) => $['metadata.documentMetadata.startLabeling'], { ns: 'dataset' })}
-
+
)
diff --git a/web/app/components/develop/secret-key/__tests__/secret-key-button.spec.tsx b/web/app/components/develop/secret-key/__tests__/secret-key-button.spec.tsx
index beda47f493c..5749bfdbe79 100644
--- a/web/app/components/develop/secret-key/__tests__/secret-key-button.spec.tsx
+++ b/web/app/components/develop/secret-key/__tests__/secret-key-button.spec.tsx
@@ -169,48 +169,6 @@ describe('SecretKeyButton', () => {
})
})
- describe('button styling', () => {
- it('should have px-3 padding', () => {
- render()
- const button = screen.getByRole('button')
- expect(button.className).toContain('px-3')
- })
- })
-
- describe('icon styling', () => {
- it('should have icon container with flex layout', () => {
- const { container } = render()
- const iconContainer = container.querySelector('.flex.items-center.justify-center')
- expect(iconContainer)!.toBeInTheDocument()
- })
-
- it('should have correct icon dimensions', () => {
- const { container } = render()
- const iconContainer = container.querySelector('.size-3\\.5')
- expect(iconContainer)!.toBeInTheDocument()
- })
-
- it('should have tertiary text color on icon', () => {
- const { container } = render()
- const icon = container.querySelector('.text-text-tertiary')
- expect(icon)!.toBeInTheDocument()
- })
- })
-
- describe('text styling', () => {
- it('should have horizontal padding', () => {
- render()
- const text = screen.getByText('appApi.apiKey')
- expect(text.className).toContain('px-0.75')
- })
-
- it('should have tertiary text color', () => {
- render()
- const text = screen.getByText('appApi.apiKey')
- expect(text.className).toContain('text-text-tertiary')
- })
- })
-
describe('modal props', () => {
it('should pass isShow prop to modal', async () => {
const user = userEvent.setup()
diff --git a/web/app/components/develop/secret-key/secret-key-button.tsx b/web/app/components/develop/secret-key/secret-key-button.tsx
index f133b2f7b1e..dd27cb667a3 100644
--- a/web/app/components/develop/secret-key/secret-key-button.tsx
+++ b/web/app/components/develop/secret-key/secret-key-button.tsx
@@ -32,7 +32,7 @@ const SecretKeyButton = ({
-
+
{t(($) => $.apiKey, { ns: 'appApi' })}
diff --git a/web/app/components/develop/secret-key/secret-key-modal.tsx b/web/app/components/develop/secret-key/secret-key-modal.tsx
index e25f3bb09bc..b56cc7a5fb1 100644
--- a/web/app/components/develop/secret-key/secret-key-modal.tsx
+++ b/web/app/components/develop/secret-key/secret-key-modal.tsx
@@ -201,7 +201,7 @@ const SecretKeyModal = ({ isShow = false, appId, canManage, onClose }: ISecretKe
onClick={onCreate}
disabled={!currentWorkspace.id || !canManage}
>
-
+
{t(($) => $['apiKeyModal.createNewSecretKey'], { ns: 'appApi' })}
diff --git a/web/app/components/explore/create-app-modal/index.tsx b/web/app/components/explore/create-app-modal/index.tsx
index be922c4d3ff..af365d97469 100644
--- a/web/app/components/explore/create-app-modal/index.tsx
+++ b/web/app/components/explore/create-app-modal/index.tsx
@@ -230,7 +230,7 @@ const CreateAppModal = ({
diff --git a/web/app/components/explore/try-app/app-info/index.tsx b/web/app/components/explore/try-app/app-info/index.tsx
index ab58355a0a3..39c9a44aeef 100644
--- a/web/app/components/explore/try-app/app-info/index.tsx
+++ b/web/app/components/explore/try-app/app-info/index.tsx
@@ -129,7 +129,7 @@ const AppInfo: FC = ({
data-step-by-step-tour-target={createButtonStepByStepTourTarget}
onClick={onCreate}
>
-
+
{t(($) => $['tryApp.createFromSampleApp'], { ns: 'explore' })}
diff --git a/web/app/components/header/account-dropdown/compliance.tsx b/web/app/components/header/account-dropdown/compliance.tsx
index ecf8dc65ae4..3865e84545a 100644
--- a/web/app/components/header/account-dropdown/compliance.tsx
+++ b/web/app/components/header/account-dropdown/compliance.tsx
@@ -59,10 +59,10 @@ function ComplianceDocActionVisual({
disabled={isPending}
loading={isPending}
aria-hidden
- className="pointer-events-none flex items-center gap-px"
+ className="pointer-events-none flex items-center"
>
-
+
{downloadText}
diff --git a/web/app/components/header/account-setting/access-rules-page/access-rule-section.tsx b/web/app/components/header/account-setting/access-rules-page/access-rule-section.tsx
index 5d244bcf1a3..4743c9a9a8d 100644
--- a/web/app/components/header/account-setting/access-rules-page/access-rule-section.tsx
+++ b/web/app/components/header/account-setting/access-rules-page/access-rule-section.tsx
@@ -107,7 +107,7 @@ const AccessRuleSection = ({
{canManage && (
-
+
{t(($) => $['accessRule.newPermissionSet'], { ns: 'permission' })}
)}
diff --git a/web/app/components/header/account-setting/api-based-extension-page/index.tsx b/web/app/components/header/account-setting/api-based-extension-page/index.tsx
index f687e6150f1..47660dda28d 100644
--- a/web/app/components/header/account-setting/api-based-extension-page/index.tsx
+++ b/web/app/components/header/account-setting/api-based-extension-page/index.tsx
@@ -105,7 +105,7 @@ export function ApiBasedExtensionPage({ layout }: ApiBasedExtensionPageProps = {
-
+
{t(($) => $['apiBasedExtension.add'], { ns: 'common' })}
diff --git a/web/app/components/header/account-setting/api-based-extension-page/item.tsx b/web/app/components/header/account-setting/api-based-extension-page/item.tsx
index cca77424afd..45aaf62129d 100644
--- a/web/app/components/header/account-setting/api-based-extension-page/item.tsx
+++ b/web/app/components/header/account-setting/api-based-extension-page/item.tsx
@@ -57,11 +57,11 @@ export function Item({ apiBasedExtension, onEdit, canManage = true }: ItemProps)
-
+
{t(($) => $['operation.edit'], { ns: 'common' })}
canManage && setShowDeleteConfirm(true)}>
-
+
{t(($) => $['operation.delete'], { ns: 'common' })}
diff --git a/web/app/components/header/account-setting/members-page/invite-button.tsx b/web/app/components/header/account-setting/members-page/invite-button.tsx
index 6801ff5b46f..272f4f8522d 100644
--- a/web/app/components/header/account-setting/members-page/invite-button.tsx
+++ b/web/app/components/header/account-setting/members-page/invite-button.tsx
@@ -26,7 +26,7 @@ const InviteButton = (props: InviteButtonProps) => {
}
return (
-
+
{t(($) => $['members.invite'], { ns: 'common' })}
)
diff --git a/web/app/components/header/account-setting/members-page/member-details-modal/index.tsx b/web/app/components/header/account-setting/members-page/member-details-modal/index.tsx
index 6021fcf453b..1d3ec8a9136 100644
--- a/web/app/components/header/account-setting/members-page/member-details-modal/index.tsx
+++ b/web/app/components/header/account-setting/members-page/member-details-modal/index.tsx
@@ -55,8 +55,8 @@ const MemberDetailsModal = ({
defaultValue: 'Assigned Roles',
})
const assignActionIconClassName = allowMultipleRoles
- ? 'mr-0.5 i-ri-add-line h-3.5 w-3.5'
- : 'mr-0.5 i-ri-edit-line h-3.5 w-3.5'
+ ? 'i-ri-add-line h-3.5 w-3.5'
+ : 'i-ri-edit-line h-3.5 w-3.5'
const assignActionLabel = allowMultipleRoles
? t(($) => $['members.memberDetails.assign'], {
ns: 'common',
diff --git a/web/app/components/header/account-setting/model-provider-page/model-auth/add-custom-model.tsx b/web/app/components/header/account-setting/model-provider-page/model-auth/add-custom-model.tsx
index d77a4a33950..8eb3adbf9c7 100644
--- a/web/app/components/header/account-setting/model-provider-page/model-auth/add-custom-model.tsx
+++ b/web/app/components/header/account-setting/model-provider-page/model-auth/add-custom-model.tsx
@@ -66,7 +66,7 @@ const AddCustomModel = ({
disabled && 'cursor-not-allowed opacity-50',
)}
>
-
+
{t(($) => $['modelProvider.addModel'], { ns: 'common' })}
)
diff --git a/web/app/components/header/account-setting/model-provider-page/model-auth/config-model.tsx b/web/app/components/header/account-setting/model-provider-page/model-auth/config-model.tsx
index 9866f194c7f..a78ad53d0d8 100644
--- a/web/app/components/header/account-setting/model-provider-page/model-auth/config-model.tsx
+++ b/web/app/components/header/account-setting/model-provider-page/model-auth/config-model.tsx
@@ -42,18 +42,18 @@ const ConfigModel = ({
{credentialRemoved && (
<>
{t(($) => $['modelProvider.auth.credentialRemoved'], { ns: 'common' })}
-
+
>
)}
{!loadBalancingEnabled && !credentialRemoved && !loadBalancingInvalid && (
<>
-
+
{t(($) => $['operation.config'], { ns: 'common' })}
>
)}
{loadBalancingEnabled && !credentialRemoved && !loadBalancingInvalid && (
<>
-
+
{t(($) => $['modelProvider.auth.configLoadBalancing'], { ns: 'common' })}
>
)}
diff --git a/web/app/components/header/account-setting/model-provider-page/model-auth/switch-credential-in-load-balancing.tsx b/web/app/components/header/account-setting/model-provider-page/model-auth/switch-credential-in-load-balancing.tsx
index c9dbc586835..0249e68cd9a 100644
--- a/web/app/components/header/account-setting/model-provider-page/model-auth/switch-credential-in-load-balancing.tsx
+++ b/web/app/components/header/account-setting/model-provider-page/model-auth/switch-credential-in-load-balancing.tsx
@@ -60,13 +60,13 @@ const SwitchCredentialInLoadBalancing = ({
- {!empty && }
+ {!empty && }
{authRemoved && t(($) => $['modelProvider.auth.authRemoved'], { ns: 'common' })}
{unavailable && t(($) => $['auth.credentialUnavailableInButton'], { ns: 'plugin' })}
{empty &&
@@ -77,7 +77,7 @@ const SwitchCredentialInLoadBalancing = ({
(!canCreateCredential || notAllowCustomCredential) &&
t(($) => $['auth.credentialUnavailableInButton'], { ns: 'plugin' })}
{!authRemoved && !unavailable && !empty && customModelCredential?.credential_name}
- {currentCredential?.from_enterprise && Enterprise}
+ {currentCredential?.from_enterprise && Enterprise}
)
diff --git a/web/app/components/header/account-setting/model-provider-page/model-parameter-modal/configuration-button.tsx b/web/app/components/header/account-setting/model-provider-page/model-parameter-modal/configuration-button.tsx
index f3cfb23b327..7d66ada99b1 100644
--- a/web/app/components/header/account-setting/model-provider-page/model-parameter-modal/configuration-button.tsx
+++ b/web/app/components/header/account-setting/model-provider-page/model-parameter-modal/configuration-button.tsx
@@ -18,7 +18,7 @@ const ConfigurationButton = ({ modelProvider, handleOpenModal }: ConfigurationBu
handleOpenModal(modelProvider, ConfigurationMethodEnum.predefinedModel, undefined)
}}
>
-
+
{t(($) => $['nodes.agent.notAuthorized'], { ns: 'workflow' })}
diff --git a/web/app/components/header/account-setting/model-provider-page/model-parameter-modal/presets-parameter.tsx b/web/app/components/header/account-setting/model-provider-page/model-parameter-modal/presets-parameter.tsx
index eb860525221..0150736b3ff 100644
--- a/web/app/components/header/account-setting/model-provider-page/model-parameter-modal/presets-parameter.tsx
+++ b/web/app/components/header/account-setting/model-provider-page/model-parameter-modal/presets-parameter.tsx
@@ -57,7 +57,7 @@ function PresetsParameter({ onSelect, supportedParameterNames }: PresetsParamete
}
>
{t(($) => $['modelProvider.loadPresets'], { ns: 'common' })}
-
+
{visiblePresetTones.map((tone) => (
diff --git a/web/app/components/header/account-setting/model-provider-page/provider-added-card/model-auth-dropdown/index.tsx b/web/app/components/header/account-setting/model-provider-page/provider-added-card/model-auth-dropdown/index.tsx
index 99b634a77ed..36e9ef19515 100644
--- a/web/app/components/header/account-setting/model-provider-page/provider-added-card/model-auth-dropdown/index.tsx
+++ b/web/app/components/header/account-setting/model-provider-page/provider-added-card/model-auth-dropdown/index.tsx
@@ -37,7 +37,7 @@ function ModelAuthDropdown({
variant={buttonConfig.variant}
title={buttonConfig.text}
>
-
+
{buttonConfig.text}
}
diff --git a/web/app/components/header/account-setting/model-provider-page/system-model-selector/index.tsx b/web/app/components/header/account-setting/model-provider-page/system-model-selector/index.tsx
index 5ea78055894..970b46f3a1f 100644
--- a/web/app/components/header/account-setting/model-provider-page/system-model-selector/index.tsx
+++ b/web/app/components/header/account-setting/model-provider-page/system-model-selector/index.tsx
@@ -166,9 +166,9 @@ const SystemModel: FC = ({
onClick={() => setOpen(true)}
>
{isLoading ? (
-
+
) : (
-
+
)}
{t(($) => $['modelProvider.systemModelSettings'], { ns: 'common' })}
diff --git a/web/app/components/header/account-setting/update-setting-dialog.tsx b/web/app/components/header/account-setting/update-setting-dialog.tsx
index 867d9765ec8..78402ffdc4d 100644
--- a/web/app/components/header/account-setting/update-setting-dialog.tsx
+++ b/web/app/components/header/account-setting/update-setting-dialog.tsx
@@ -244,13 +244,9 @@ const UpdateSettingDialog = ({ category, disabled = false }: Props) => {
{isShowInstallFromMarketplace && (
diff --git a/web/app/components/plugins/marketplace/search-box/trigger/marketplace.tsx b/web/app/components/plugins/marketplace/search-box/trigger/marketplace.tsx
index ec001dbea50..62ae04f6515 100644
--- a/web/app/components/plugins/marketplace/search-box/trigger/marketplace.tsx
+++ b/web/app/components/plugins/marketplace/search-box/trigger/marketplace.tsx
@@ -49,7 +49,7 @@ function MarketplaceTrigger({
!selectedTagsLength && 'data-popup-open:bg-state-base-hover',
)}
>
-
+
-
+
{!selectedTagsLength && {t(($) => $.allTags, { ns: 'pluginTags' })}}
{!!selectedTagsLength && (
@@ -76,7 +76,7 @@ function MarketplaceTrigger({
)}
{!selectedTagsLength && (
-
+
-
+
{!!selectedTagsLength && (
-
+
{tags
.map((tag) => tagsMap[tag]?.label)
diff --git a/web/app/components/plugins/plugin-auth/authorize/add-oauth-button.tsx b/web/app/components/plugins/plugin-auth/authorize/add-oauth-button.tsx
index fe6db92b34b..a9b54b20bfe 100644
--- a/web/app/components/plugins/plugin-auth/authorize/add-oauth-button.tsx
+++ b/web/app/components/plugins/plugin-auth/authorize/add-oauth-button.tsx
@@ -202,7 +202,7 @@ const AddOAuthButton = ({
{is_oauth_custom_client_enabled && (
-
+
{t(($) => $['auth.setupOAuth'], { ns: 'plugin' })}
)}
diff --git a/web/app/components/plugins/plugin-auth/authorized-in-data-source-node.tsx b/web/app/components/plugins/plugin-auth/authorized-in-data-source-node.tsx
index d716c0e4804..913ff1c11e3 100644
--- a/web/app/components/plugins/plugin-auth/authorized-in-data-source-node.tsx
+++ b/web/app/components/plugins/plugin-auth/authorized-in-data-source-node.tsx
@@ -17,7 +17,7 @@ const AuthorizedInDataSourceNode = ({
return (
-
+
{authorizationsNum > 1
? t(($) => $['auth.authorizations'], { ns: 'plugin' })
: t(($) => $['auth.authorization'], { ns: 'plugin' })}
diff --git a/web/app/components/plugins/plugin-auth/authorized-in-node.tsx b/web/app/components/plugins/plugin-auth/authorized-in-node.tsx
index 1d996ce4b07..782f920d767 100644
--- a/web/app/components/plugins/plugin-auth/authorized-in-node.tsx
+++ b/web/app/components/plugins/plugin-auth/authorized-in-node.tsx
@@ -76,7 +76,7 @@ const AuthorizedInNode = ({
)}
variant={defaultUnavailable || unavailable ? 'ghost' : 'secondary'}
>
-
+
{label}
{(unavailable || defaultUnavailable) && (
<>
diff --git a/web/app/components/plugins/plugin-auth/authorized/index.tsx b/web/app/components/plugins/plugin-auth/authorized/index.tsx
index 7ce0b4182da..366516c3e6b 100644
--- a/web/app/components/plugins/plugin-auth/authorized/index.tsx
+++ b/web/app/components/plugins/plugin-auth/authorized/index.tsx
@@ -218,10 +218,7 @@ const Authorized = ({
-
+
{credentials.length}
{credentials.length > 1
@@ -229,7 +226,7 @@ const Authorized = ({
: t(($) => $['auth.authorization'], { ns: 'plugin' })}
{!!unavailableCredentials.length &&
` (${unavailableCredentials.length} ${t(($) => $['auth.unavailable'], { ns: 'plugin' })})`}
-
+
)}
diff --git a/web/app/components/plugins/plugin-auth/plugin-auth-in-agent.tsx b/web/app/components/plugins/plugin-auth/plugin-auth-in-agent.tsx
index 7b33b71dcc7..7a5154f17ff 100644
--- a/web/app/components/plugins/plugin-auth/plugin-auth-in-agent.tsx
+++ b/web/app/components/plugins/plugin-auth/plugin-auth-in-agent.tsx
@@ -73,10 +73,10 @@ const PluginAuthInAgent = ({
removed && 'text-text-destructive',
)}
>
-
+
{label}
{unavailable && t(($) => $['auth.unavailable'], { ns: 'plugin' })}
-
+
)
},
diff --git a/web/app/components/plugins/plugin-auth/plugin-auth-in-datasource-node.tsx b/web/app/components/plugins/plugin-auth/plugin-auth-in-datasource-node.tsx
index a2fd4f8a4f1..046ba69e537 100644
--- a/web/app/components/plugins/plugin-auth/plugin-auth-in-datasource-node.tsx
+++ b/web/app/components/plugins/plugin-auth/plugin-auth-in-datasource-node.tsx
@@ -20,7 +20,7 @@ const PluginAuthInDataSourceNode = ({
{!isAuthorized && (
-
+
{t(($) => $['integrations.connect'], { ns: 'common' })}
diff --git a/web/app/components/plugins/plugin-detail-panel/subscription-list/create/oauth-client.tsx b/web/app/components/plugins/plugin-detail-panel/subscription-list/create/oauth-client.tsx
index c447fe87a37..35e81de1ee2 100644
--- a/web/app/components/plugins/plugin-detail-panel/subscription-list/create/oauth-client.tsx
+++ b/web/app/components/plugins/plugin-detail-panel/subscription-list/create/oauth-client.tsx
@@ -111,7 +111,7 @@ export const OAuthClientSettingsModal = ({
{oauthConfig?.redirect_uri}
-
+
{t(($) => $['operation.copy'], { ns: 'common' })}
diff --git a/web/app/components/plugins/plugin-detail-panel/tool-selector/components/tool-item.tsx b/web/app/components/plugins/plugin-detail-panel/tool-selector/components/tool-item.tsx
index 486a539e3bf..bb314fc4433 100644
--- a/web/app/components/plugins/plugin-detail-panel/tool-selector/components/tool-item.tsx
+++ b/web/app/components/plugins/plugin-detail-panel/tool-selector/components/tool-item.tsx
@@ -177,7 +177,7 @@ export function ToolItem({
render={
{t(($) => $.notAuthorized, { ns: 'tools' })}
-
+
}
/>
@@ -187,7 +187,7 @@ export function ToolItem({
render={
{t(($) => $['auth.authRemoved'], { ns: 'plugin' })}
-
+
}
/>
diff --git a/web/app/components/plugins/plugin-detail-panel/tool-selector/components/tool-trigger.tsx b/web/app/components/plugins/plugin-detail-panel/tool-selector/components/tool-trigger.tsx
index 8f347113cb2..8a3337ee1f5 100644
--- a/web/app/components/plugins/plugin-detail-panel/tool-selector/components/tool-trigger.tsx
+++ b/web/app/components/plugins/plugin-detail-panel/tool-selector/components/tool-trigger.tsx
@@ -42,7 +42,7 @@ export function ToolTrigger({
)}
>
{value?.provider_name && provider && (
-
+
)}
@@ -62,7 +62,7 @@ export function ToolTrigger({
@@ -71,7 +71,7 @@ export function ToolTrigger({
diff --git a/web/app/components/plugins/plugin-page/__tests__/install-plugin-dropdown.spec.tsx b/web/app/components/plugins/plugin-page/__tests__/install-plugin-dropdown.spec.tsx
index feef5372391..15c479d76ad 100644
--- a/web/app/components/plugins/plugin-page/__tests__/install-plugin-dropdown.spec.tsx
+++ b/web/app/components/plugins/plugin-page/__tests__/install-plugin-dropdown.spec.tsx
@@ -84,18 +84,6 @@ describe('InstallPluginDropdown', () => {
expect(screen.getByText('plugin.source.marketplace')).toBeInTheDocument()
expect(screen.getByText('plugin.source.github')).toBeInTheDocument()
expect(screen.getByText('plugin.source.local')).toBeInTheDocument()
- expect(document.querySelector('.i-custom-vender-plugin-box-sparkle-fill')).toHaveClass(
- 'size-4',
- 'shrink-0',
- )
- expect(document.querySelector('.i-custom-vender-solid-general-github')).toHaveClass(
- 'size-4',
- 'shrink-0',
- )
- expect(document.querySelector('.i-custom-vender-solid-files-file-zip')).toHaveClass(
- 'size-4',
- 'shrink-0',
- )
})
it('applies custom trigger label and presentation props', () => {
@@ -115,8 +103,8 @@ describe('InstallPluginDropdown', () => {
expect(container.querySelector('.custom-root')).toBeInTheDocument()
expect(trigger).toHaveTextContent('Install')
- expect(screen.getByTestId('add-circle-fill-icon')).toHaveClass('size-4', 'shrink-0')
- expect(screen.getByTestId('arrow-down-icon')).toHaveClass('ml-1', 'size-4')
+ expect(screen.getByTestId('add-circle-fill-icon')).toBeInTheDocument()
+ expect(screen.getByTestId('arrow-down-icon')).toBeInTheDocument()
expect(trigger).toHaveClass('custom-trigger')
expect(trigger).not.toHaveAttribute('data-popup-open')
@@ -128,7 +116,7 @@ describe('InstallPluginDropdown', () => {
})
it('can hide the trigger arrow for compact integrations placement', () => {
- const { container } = render(
+ render(
{
const trigger = getTrigger('Install')
expect(trigger).toHaveTextContent('Install')
- expect(screen.getByTestId('add-circle-fill-icon')).toHaveClass('size-4', 'shrink-0')
+ expect(screen.getByTestId('add-circle-fill-icon')).toBeInTheDocument()
expect(screen.queryByTestId('arrow-down-icon')).not.toBeInTheDocument()
- expect(container.querySelector('.px-0\\.5')).toHaveClass('min-w-0', 'flex-1', 'text-left')
})
it('keeps the trigger visible but disabled when install is unavailable', () => {
diff --git a/web/app/components/plugins/plugin-page/empty/index.tsx b/web/app/components/plugins/plugin-page/empty/index.tsx
index 8001a55cbe0..2be860b4604 100644
--- a/web/app/components/plugins/plugin-page/empty/index.tsx
+++ b/web/app/components/plugins/plugin-page/empty/index.tsx
@@ -271,7 +271,7 @@ const Empty = ({
key={action}
variant="secondary"
title={text}
- className="h-8 w-full justify-start gap-x-0.5 px-3 py-2 system-sm-medium"
+ className="h-8 w-full justify-start py-2 system-sm-medium"
onClick={() => {
if (action === 'local') fileInputRef.current?.click()
else if (action === 'marketplace')
@@ -284,7 +284,7 @@ const Empty = ({
) : (
)}
- {text}
+ {text}
),
)}
diff --git a/web/app/components/plugins/plugin-page/index.tsx b/web/app/components/plugins/plugin-page/index.tsx
index 1ab339e5c82..3a36218fcbb 100644
--- a/web/app/components/plugins/plugin-page/index.tsx
+++ b/web/app/components/plugins/plugin-page/index.tsx
@@ -207,7 +207,7 @@ const PluginPage = ({ plugins, marketplace }: PluginPageProps) => {
target="_blank"
>
-
+
{t(($) => $.publishPlugins, { ns: 'plugin' })}
diff --git a/web/app/components/plugins/plugin-page/install-plugin-dropdown.tsx b/web/app/components/plugins/plugin-page/install-plugin-dropdown.tsx
index f1b5b63c255..1c35bc39004 100644
--- a/web/app/components/plugins/plugin-page/install-plugin-dropdown.tsx
+++ b/web/app/components/plugins/plugin-page/install-plugin-dropdown.tsx
@@ -175,10 +175,10 @@ const InstallPluginDropdown = ({
)}
>
-
+
{buttonLabel}
- {showTriggerArrow && }
+ {showTriggerArrow && }
)}
/>
diff --git a/web/app/components/plugins/plugin-page/plugin-tasks/__tests__/index.spec.tsx b/web/app/components/plugins/plugin-page/plugin-tasks/__tests__/index.spec.tsx
index 8258c6d2d13..f4ce2a20ff2 100644
--- a/web/app/components/plugins/plugin-page/plugin-tasks/__tests__/index.spec.tsx
+++ b/web/app/components/plugins/plugin-page/plugin-tasks/__tests__/index.spec.tsx
@@ -388,22 +388,12 @@ describe('TaskStatusIndicator Component', () => {
totalPluginsLength={3}
/>,
)
- const trigger = document.getElementById('plugin-task-trigger')
- expect(trigger)!.toHaveClass(
- 'border-components-panel-border-subtle',
- 'bg-components-panel-bg',
- )
- expect(screen.getByTestId('task-status-success-badge')).toHaveClass('text-text-success')
+ expect(screen.getByTestId('task-status-success-badge')).toBeInTheDocument()
})
it('should show error icon when failed', () => {
render()
- const trigger = document.getElementById('plugin-task-trigger')
- expect(trigger)!.toHaveClass(
- 'border-components-button-destructive-secondary-border-hover',
- 'bg-state-destructive-hover',
- )
- expect(screen.getByTestId('task-status-error-badge')).toHaveClass('text-text-destructive')
+ expect(screen.getByTestId('task-status-error-badge')).toBeInTheDocument()
})
})
diff --git a/web/app/components/plugins/plugin-page/plugin-tasks/components/task-status-indicator.tsx b/web/app/components/plugins/plugin-page/plugin-tasks/components/task-status-indicator.tsx
index 68d9f22572d..73e6c7787ed 100644
--- a/web/app/components/plugins/plugin-page/plugin-tasks/components/task-status-indicator.tsx
+++ b/web/app/components/plugins/plugin-page/plugin-tasks/components/task-status-indicator.tsx
@@ -89,14 +89,14 @@ function TaskStatusIndicator({
disabled={disabled}
aria-label={tip}
className={cn(
- 'relative size-8 rounded-lg border-[0.5px] border-components-panel-border-subtle bg-components-panel-bg p-2 shadow-none',
+ 'relative size-8 overflow-visible rounded-lg bg-components-panel-bg p-2 shadow-none inset-ring-components-panel-border-subtle',
'focus-visible:ring-2 focus-visible:ring-state-accent-solid',
isClickable ? 'cursor-pointer' : 'cursor-default',
showErrorStyle &&
- 'cursor-pointer border-components-button-destructive-secondary-border-hover bg-state-destructive-hover text-components-button-destructive-secondary-text shadow-xs shadow-shadow-shadow-3 backdrop-blur-[5px] hover:bg-state-destructive-hover-alt',
+ 'cursor-pointer bg-state-destructive-hover text-components-button-destructive-secondary-text shadow-xs shadow-shadow-shadow-3 inset-ring-components-button-destructive-secondary-border-hover backdrop-blur-[5px] hover:bg-state-destructive-hover-alt',
isOpen &&
!showErrorStyle &&
- 'border-components-button-secondary-border-hover bg-components-button-secondary-bg-hover shadow-xs shadow-shadow-shadow-3 backdrop-blur-[5px]',
+ 'bg-components-button-secondary-bg-hover shadow-xs shadow-shadow-shadow-3 inset-ring-components-button-secondary-border-hover backdrop-blur-[5px]',
isOpen && showErrorStyle && 'bg-state-destructive-hover-alt',
)}
id="plugin-task-trigger"
diff --git a/web/app/components/plugins/reference-setting-modal/auto-update-setting/plugins-picker.tsx b/web/app/components/plugins/reference-setting-modal/auto-update-setting/plugins-picker.tsx
index c33286d0938..3a03ad166f9 100644
--- a/web/app/components/plugins/reference-setting-modal/auto-update-setting/plugins-picker.tsx
+++ b/web/app/components/plugins/reference-setting-modal/auto-update-setting/plugins-picker.tsx
@@ -91,7 +91,7 @@ const PluginsPicker: FC = ({ updateMode, value, onChange, integrationCate
+
{t(($) => $[`${i18nPrefix}.operation.select`], { ns: 'plugin' })}
diff --git a/web/app/components/rag-pipeline/components/panel/input-field/index.tsx b/web/app/components/rag-pipeline/components/panel/input-field/index.tsx
index 9e0007f827f..9cee5655ddf 100644
--- a/web/app/components/rag-pipeline/components/panel/input-field/index.tsx
+++ b/web/app/components/rag-pipeline/components/panel/input-field/index.tsx
@@ -107,17 +107,12 @@ const InputFieldPanel = () => {
-
- {t(($) => $['operations.preview'], { ns: 'datasetPipeline' })}
-
+ {t(($) => $['operations.preview'], { ns: 'datasetPipeline' })}
{
return (
- {t(($) => $['stepOne.button'], { ns: 'datasetCreation' })}
+ {t(($) => $['stepOne.button'], { ns: 'datasetCreation' })}
)
diff --git a/web/app/components/rag-pipeline/components/rag-pipeline-header/input-field-button.tsx b/web/app/components/rag-pipeline/components/rag-pipeline-header/input-field-button.tsx
index 0794153733b..b4e4d34ce37 100644
--- a/web/app/components/rag-pipeline/components/rag-pipeline-header/input-field-button.tsx
+++ b/web/app/components/rag-pipeline/components/rag-pipeline-header/input-field-button.tsx
@@ -14,9 +14,9 @@ const InputFieldButton = () => {
}, [setShowInputFieldPanel, setShowEnvPanel])
return (
-
+
- {t(($) => $.inputField, { ns: 'datasetPipeline' })}
+ {t(($) => $.inputField, { ns: 'datasetPipeline' })}
)
}
diff --git a/web/app/components/rag-pipeline/components/rag-pipeline-header/publisher/index.tsx b/web/app/components/rag-pipeline/components/rag-pipeline-header/publisher/index.tsx
index 5757cf6fdbd..60c1afb1bc3 100644
--- a/web/app/components/rag-pipeline/components/rag-pipeline-header/publisher/index.tsx
+++ b/web/app/components/rag-pipeline/components/rag-pipeline-header/publisher/index.tsx
@@ -104,7 +104,7 @@ const Publisher = () => {
nativeButton
render={
- {t(($) => $['common.publish'], { ns: 'workflow' })}
+ {t(($) => $['common.publish'], { ns: 'workflow' })}
}
diff --git a/web/app/components/rag-pipeline/components/rag-pipeline-header/publisher/popup.tsx b/web/app/components/rag-pipeline/components/rag-pipeline-header/publisher/popup.tsx
index b79f675fcb0..14facb05ffa 100644
--- a/web/app/components/rag-pipeline/components/rag-pipeline-header/publisher/popup.tsx
+++ b/web/app/components/rag-pipeline/components/rag-pipeline-header/publisher/popup.tsx
@@ -270,7 +270,7 @@ export function Popup({
{t(($) => $['common.goToAddDocuments'], { ns: 'pipeline' })}
-
+
{t(($) => $['common.accessAPIReference'], { ns: 'workflow' })}
-
+
diff --git a/web/app/components/rag-pipeline/components/update-dsl-modal.tsx b/web/app/components/rag-pipeline/components/update-dsl-modal.tsx
index 7acdcccd8d2..dee0ce0b00f 100644
--- a/web/app/components/rag-pipeline/components/update-dsl-modal.tsx
+++ b/web/app/components/rag-pipeline/components/update-dsl-modal.tsx
@@ -63,7 +63,7 @@ const UpdateDSLModal = ({ onCancel, onBackup, onImport }: UpdateDSLModalProps) =
-
+
{t(($) => $['common.backupCurrentDraft'], { ns: 'workflow' })}
diff --git a/web/app/components/share/text-generation/result/index.tsx b/web/app/components/share/text-generation/result/index.tsx
index 5ceff69876e..b208222bb24 100644
--- a/web/app/components/share/text-generation/result/index.tsx
+++ b/web/app/components/share/text-generation/result/index.tsx
@@ -119,9 +119,9 @@ const Result: FC
= ({
{runState.isStopping ? (
-
+
) : (
-
+
)}
{t(($) => $['operation.stopResponding'], { ns: 'appDebug' })}
diff --git a/web/app/components/share/text-generation/run-batch/index.tsx b/web/app/components/share/text-generation/run-batch/index.tsx
index c831b87549e..039573ea305 100644
--- a/web/app/components/share/text-generation/run-batch/index.tsx
+++ b/web/app/components/share/text-generation/run-batch/index.tsx
@@ -44,7 +44,7 @@ const RunBatch: FC = ({ vars, onSend, isAllFinished }) => {
disabled={!isParsed || !isAllFinished}
>
diff --git a/web/app/components/share/text-generation/run-batch/res-download/index.tsx b/web/app/components/share/text-generation/run-batch/res-download/index.tsx
index 2f5537df88b..85dcdb13f7c 100644
--- a/web/app/components/share/text-generation/run-batch/res-download/index.tsx
+++ b/web/app/components/share/text-generation/run-batch/res-download/index.tsx
@@ -1,7 +1,6 @@
'use client'
import type { FC } from 'react'
import { Button } from '@langgenius/dify-ui/button'
-import { cn } from '@langgenius/dify-ui/cn'
import { RiDownloadLine } from '@remixicon/react'
import * as React from 'react'
import { useTranslation } from 'react-i18next'
@@ -34,7 +33,7 @@ const ResDownload: FC = ({ isMobile, values }) => {
)}
{!isMobile && (
-
+
{t(($) => $['operation.download'], { ns: 'common' })}
diff --git a/web/app/components/share/text-generation/run-once/index.tsx b/web/app/components/share/text-generation/run-once/index.tsx
index a800957fe77..d5ba4321030 100644
--- a/web/app/components/share/text-generation/run-once/index.tsx
+++ b/web/app/components/share/text-generation/run-once/index.tsx
@@ -311,18 +311,15 @@ const RunOnce: FC = ({
{isRunning ? (
<>
{runControl?.isStopping ? (
-
+
) : (
-
+
)}
{stopLabel}
>
) : (
<>
-
+
{t(($) => $['generation.run'], { ns: 'share' })}
diff --git a/web/app/components/snippet-list/components/snippet-create-button.tsx b/web/app/components/snippet-list/components/snippet-create-button.tsx
index 7595cd6ce96..7c04886cf5c 100644
--- a/web/app/components/snippet-list/components/snippet-create-button.tsx
+++ b/web/app/components/snippet-list/components/snippet-create-button.tsx
@@ -29,9 +29,9 @@ const SnippetCreateButton = () => {
-
+
{t(($) => $.create)}
-
+
}
/>
diff --git a/web/app/components/snippets/components/snippet-run-panel.tsx b/web/app/components/snippets/components/snippet-run-panel.tsx
index f79bbb0b785..c0b192fefca 100644
--- a/web/app/components/snippets/components/snippet-run-panel.tsx
+++ b/web/app/components/snippets/components/snippet-run-panel.tsx
@@ -232,7 +232,7 @@ const SnippetRunPanel = ({ fields }: SnippetRunPanelProps) => {
workflowRunningData?.resultText &&
typeof workflowRunningData.resultText === 'string' && (
{
copy(workflowRunningData?.resultText || '')
toast.success(t(($) => $['actionMsg.copySuccessfully'], { ns: 'common' }))
diff --git a/web/app/components/tools/edit-custom-collection-modal/get-schema.tsx b/web/app/components/tools/edit-custom-collection-modal/get-schema.tsx
index 9fcc1d0458a..aad8d1f1a76 100644
--- a/web/app/components/tools/edit-custom-collection-modal/get-schema.tsx
+++ b/web/app/components/tools/edit-custom-collection-modal/get-schema.tsx
@@ -45,7 +45,7 @@ const GetSchema: FC = ({ onChange }) => {
return (
- }>
+ }>
{t(($) => $['createTool.importFromUrl'], { ns: 'tools' })}
@@ -74,7 +74,7 @@ const GetSchema: FC = ({ onChange }) => {
- }>
+ }>
{t(($) => $['createTool.examples'], { ns: 'tools' })}
diff --git a/web/app/components/tools/mcp/create-card.tsx b/web/app/components/tools/mcp/create-card.tsx
index c87a837d1f6..49f4f848491 100644
--- a/web/app/components/tools/mcp/create-card.tsx
+++ b/web/app/components/tools/mcp/create-card.tsx
@@ -45,7 +45,7 @@ export function NewMCPButton({ handleCreate }: Props) {
<>
setShowModal(true)}
title={addMCPServerLabel}
diff --git a/web/app/components/tools/mcp/detail/content.tsx b/web/app/components/tools/mcp/detail/content.tsx
index c7f87b7b54e..7bfec56438f 100644
--- a/web/app/components/tools/mcp/detail/content.tsx
+++ b/web/app/components/tools/mcp/detail/content.tsx
@@ -199,7 +199,7 @@ const MCPDetailContent: FC = ({
onClick={handleAuthorize}
disabled={!canManageMCP}
>
-
+
{t(($) => $['auth.authorized'], { ns: 'tools' })}
)}
@@ -215,7 +215,7 @@ const MCPDetailContent: FC = ({
)}
{isAuthorizing && (
-
+
{t(($) => $['mcp.authorizing'], { ns: 'tools' })}
)}
@@ -271,7 +271,7 @@ const MCPDetailContent: FC = ({
-
+
{t(($) => $['mcp.update'], { ns: 'tools' })}
diff --git a/web/app/components/tools/mcp/headers-input.tsx b/web/app/components/tools/mcp/headers-input.tsx
index a83e09d6f2f..c1a9630480e 100644
--- a/web/app/components/tools/mcp/headers-input.tsx
+++ b/web/app/components/tools/mcp/headers-input.tsx
@@ -51,7 +51,7 @@ const HeadersInput = ({ headersItems, onChange, readonly = false, isMasked = fal
{!readonly && (
-
+
{t(($) => $['mcp.modal.addHeader'], { ns: 'tools' })}
)}
@@ -111,7 +111,7 @@ const HeadersInput = ({ headersItems, onChange, readonly = false, isMasked = fal
{!readonly && (
-
+
{t(($) => $['mcp.modal.addHeader'], { ns: 'tools' })}
)}
diff --git a/web/app/components/tools/provider/custom-create-card.tsx b/web/app/components/tools/provider/custom-create-card.tsx
index 23ff83e102a..1d808266abb 100644
--- a/web/app/components/tools/provider/custom-create-card.tsx
+++ b/web/app/components/tools/provider/custom-create-card.tsx
@@ -53,7 +53,7 @@ export const NewCustomToolButton = ({ onRefreshData }: Props) => {
<>
setIsShowEditCustomCollectionModal(true)}
title={addSwaggerAPIAsToolLabel}
aria-label={addSwaggerAPIAsToolLabel}
diff --git a/web/app/components/tools/provider/detail.tsx b/web/app/components/tools/provider/detail.tsx
index 28303b58124..32914a4fa29 100644
--- a/web/app/components/tools/provider/detail.tsx
+++ b/web/app/components/tools/provider/detail.tsx
@@ -318,7 +318,7 @@ const ProviderDetail = ({ collection, onHide, onRefreshData }: Props) => {
>
{t(($) => $['createTool.editAction'], { ns: 'tools' })}
@@ -332,7 +332,7 @@ const ProviderDetail = ({ collection, onHide, onRefreshData }: Props) => {
{
/>
}
>
-
+
{t(($) => $.openInStudio, { ns: 'tools' })}
setWorkflowToolDrawerOpen(true)}
disabled={!canManageTools}
>
@@ -357,7 +357,7 @@ const ProviderDetail = ({ collection, onHide, onRefreshData }: Props) => {
aria-hidden
className="i-ri-equalizer-2-line size-4 shrink-0 text-components-button-secondary-text"
/>
-
+
{t(($) => $['createTool.editAction'], { ns: 'tools' })}
@@ -395,7 +395,7 @@ const ProviderDetail = ({ collection, onHide, onRefreshData }: Props) => {
}}
disabled={!canOpenCredentialSettings}
>
-
+
{t(($) => $['auth.authorized'], { ns: 'tools' })}
)}
diff --git a/web/app/components/tools/workflow-tool/configure-button.tsx b/web/app/components/tools/workflow-tool/configure-button.tsx
index 924142d4768..fbf17bb6424 100644
--- a/web/app/components/tools/workflow-tool/configure-button.tsx
+++ b/web/app/components/tools/workflow-tool/configure-button.tsx
@@ -76,7 +76,7 @@ const WorkflowToolConfigureButton = ({
{t(($) => $['common.configure'], { ns: 'workflow' })}
- {outdated && }
+ {outdated && }
{t(($) => $['common.manageInTools'], { ns: 'workflow' })}
-
+
{outdated && (
diff --git a/web/app/components/workflow-app/components/workflow-header/features-trigger.tsx b/web/app/components/workflow-app/components/workflow-header/features-trigger.tsx
index 604d02fcb37..e3d7624b520 100644
--- a/web/app/components/workflow-app/components/workflow-header/features-trigger.tsx
+++ b/web/app/components/workflow-app/components/workflow-header/features-trigger.tsx
@@ -240,12 +240,12 @@ const FeaturesTrigger = () => {
{isChatMode && (
-
+
{t(($) => $['common.features'], { ns: 'workflow' })}
)}
diff --git a/web/app/components/workflow/block-selector/featured-tools.tsx b/web/app/components/workflow/block-selector/featured-tools.tsx
index 225ca1c2823..c478b472bce 100644
--- a/web/app/components/workflow/block-selector/featured-tools.tsx
+++ b/web/app/components/workflow/block-selector/featured-tools.tsx
@@ -193,7 +193,7 @@ const FeaturedTools = ({
{
setVisibleCount((count) => {
if (count >= maxAvailable) return INITIAL_VISIBLE_COUNT
@@ -202,7 +202,7 @@ const FeaturedTools = ({
})
}}
>
-
+
{
setVisibleCount((count) => {
if (count >= maxAvailable) return INITIAL_VISIBLE_COUNT
@@ -200,7 +200,7 @@ const FeaturedTriggers = ({
})
}}
>
-
+
-
+
{value.length > 0 && (
-
{value.length}
+
{value.length}
)}
}
diff --git a/web/app/components/workflow/comment/mention-input.tsx b/web/app/components/workflow/comment/mention-input.tsx
index c1cb61b2606..9951ffabcad 100644
--- a/web/app/components/workflow/comment/mention-input.tsx
+++ b/web/app/components/workflow/comment/mention-input.tsx
@@ -619,9 +619,8 @@ const MentionInputInner = forwardRef
(
size="small"
disabled={loading || !value.trim()}
onClick={() => handleSubmit()}
- className="gap-1"
>
- {loading && }
+ {loading && }
{t(($) => $['operation.save'], { ns: 'common' })}
{!loading && }
diff --git a/web/app/components/workflow/header/header-in-restoring.tsx b/web/app/components/workflow/header/header-in-restoring.tsx
index 0d699a19a79..c700fadccab 100644
--- a/web/app/components/workflow/header/header-in-restoring.tsx
+++ b/web/app/components/workflow/header/header-in-restoring.tsx
@@ -166,8 +166,8 @@ const HeaderInRestoring = ({ onRestoreSettled }: HeaderInRestoringProps) => {
disabled={!canRestore}
variant="primary"
className={cn(
- 'rounded-lg border border-transparent',
- theme === 'dark' && 'border-black/5 bg-white/10 backdrop-blur-xs',
+ 'rounded-lg inset-ring-1 inset-ring-transparent',
+ theme === 'dark' && 'bg-white/10 inset-ring-black/5 backdrop-blur-xs',
)}
>
{t(($) => $['common.restore'], { ns: 'workflow' })}
@@ -175,8 +175,8 @@ const HeaderInRestoring = ({ onRestoreSettled }: HeaderInRestoringProps) => {
diff --git a/web/app/components/workflow/header/header-in-view-history.tsx b/web/app/components/workflow/header/header-in-view-history.tsx
index d130e91d2ec..053329640f2 100644
--- a/web/app/components/workflow/header/header-in-view-history.tsx
+++ b/web/app/components/workflow/header/header-in-view-history.tsx
@@ -32,7 +32,7 @@ const HeaderInHistory = ({ viewHistoryProps }: HeaderInHistoryProps) => {
-
+
{t(($) => $['common.goBackToEdit'], { ns: 'workflow' })}
diff --git a/web/app/components/workflow/header/version-history-button.tsx b/web/app/components/workflow/header/version-history-button.tsx
index e0571f3f7b3..a521dddc000 100644
--- a/web/app/components/workflow/header/version-history-button.tsx
+++ b/web/app/components/workflow/header/version-history-button.tsx
@@ -42,8 +42,8 @@ export function VersionHistoryButton({ onClick }: VersionHistoryButtonProps) {
render={
diff --git a/web/app/components/workflow/nodes/_base/components/add-button.tsx b/web/app/components/workflow/nodes/_base/components/add-button.tsx
index a80291c89c8..9644e83999e 100644
--- a/web/app/components/workflow/nodes/_base/components/add-button.tsx
+++ b/web/app/components/workflow/nodes/_base/components/add-button.tsx
@@ -14,7 +14,7 @@ type Props = Readonly<{
const AddButton: FC = ({ className, text, onClick }) => {
return (
-
+
{text}
)
diff --git a/web/app/components/workflow/nodes/_base/components/before-run-form/index.tsx b/web/app/components/workflow/nodes/_base/components/before-run-form/index.tsx
index 99ceff56c8f..d10a2f18eb0 100644
--- a/web/app/components/workflow/nodes/_base/components/before-run-form/index.tsx
+++ b/web/app/components/workflow/nodes/_base/components/before-run-form/index.tsx
@@ -134,7 +134,7 @@ const BeforeRunForm: FC = ({
{t(($) => $[`${i18nPrefix}.startRun`], { ns: 'workflow' })}
@@ -144,7 +144,7 @@ const BeforeRunForm: FC = ({
{t(($) => $['nodes.humanInput.singleRun.button'], { ns: 'workflow' })}
diff --git a/web/app/components/workflow/nodes/_base/components/install-plugin-button.tsx b/web/app/components/workflow/nodes/_base/components/install-plugin-button.tsx
index 8e7e08b9dfd..e7fe61bf045 100644
--- a/web/app/components/workflow/nodes/_base/components/install-plugin-button.tsx
+++ b/web/app/components/workflow/nodes/_base/components/install-plugin-button.tsx
@@ -100,9 +100,9 @@ export const InstallPluginButton = (props: InstallPluginButtonProps) => {
? t(($) => $['nodes.agent.pluginInstaller.install'], { ns: 'workflow' })
: t(($) => $['nodes.agent.pluginInstaller.installing'], { ns: 'workflow' })}
{!isLoading ? (
-
+
) : (
-
+
)}
)
diff --git a/web/app/components/workflow/nodes/_base/components/next-step/add.tsx b/web/app/components/workflow/nodes/_base/components/next-step/add.tsx
index 297872e5ad9..4c189e580c2 100644
--- a/web/app/components/workflow/nodes/_base/components/next-step/add.tsx
+++ b/web/app/components/workflow/nodes/_base/components/next-step/add.tsx
@@ -59,7 +59,7 @@ const Add = ({ nodeId, nodeData, sourceHandle, isParallel, isFailBranch }: AddPr
size="large"
className="bg-dropzone-bg hover:bg-dropzone-bg-hover relative w-full justify-start rounded-lg border border-dashed border-divider-regular px-2 text-xs text-text-placeholder data-popup-open:bg-components-dropzone-bg-alt!"
>
-
+
{tip}
diff --git a/web/app/components/workflow/nodes/_base/components/workflow-panel/last-run/no-data.tsx b/web/app/components/workflow/nodes/_base/components/workflow-panel/last-run/no-data.tsx
index 6c05a6c079f..a37afbb5ad9 100644
--- a/web/app/components/workflow/nodes/_base/components/workflow-panel/last-run/no-data.tsx
+++ b/web/app/components/workflow/nodes/_base/components/workflow-panel/last-run/no-data.tsx
@@ -21,7 +21,7 @@ const NoData: FC
= ({ canSingleRun, onSingleRun }) => {
{canSingleRun && (
-
+
{t(($) => $['debug.noData.runThisNode'], { ns: 'workflow' })}
)}
diff --git a/web/app/components/workflow/nodes/agent-v2/components/agent-output-variables/edit-card.tsx b/web/app/components/workflow/nodes/agent-v2/components/agent-output-variables/edit-card.tsx
index 7818413b4dd..f2ba102b4ac 100644
--- a/web/app/components/workflow/nodes/agent-v2/components/agent-output-variables/edit-card.tsx
+++ b/web/app/components/workflow/nodes/agent-v2/components/agent-output-variables/edit-card.tsx
@@ -198,7 +198,6 @@ export function OutputEditCard({
variant="primary"
disabled={confirmDisabled}
aria-label={t(($) => $['nodes.agent.outputVars.confirm'], { ns: 'workflow' })}
- className="gap-x-1"
>
{t(($) => $['nodes.agent.outputVars.confirm'], { ns: 'workflow' })}
diff --git a/web/app/components/workflow/nodes/agent-v2/components/agent-output-variables/index.tsx b/web/app/components/workflow/nodes/agent-v2/components/agent-output-variables/index.tsx
index 4ba9ea93893..186b0242ce4 100644
--- a/web/app/components/workflow/nodes/agent-v2/components/agent-output-variables/index.tsx
+++ b/web/app/components/workflow/nodes/agent-v2/components/agent-output-variables/index.tsx
@@ -324,7 +324,7 @@ export function AgentOutputVariables({
diff --git a/web/app/components/workflow/nodes/agent-v2/components/agent-roster-field.tsx b/web/app/components/workflow/nodes/agent-v2/components/agent-roster-field.tsx
index e2f312c4885..7becc269e81 100644
--- a/web/app/components/workflow/nodes/agent-v2/components/agent-roster-field.tsx
+++ b/web/app/components/workflow/nodes/agent-v2/components/agent-roster-field.tsx
@@ -257,7 +257,7 @@ function AgentRosterDrawer({
diff --git a/web/app/components/workflow/nodes/agent-v2/components/edit-in-console-link.tsx b/web/app/components/workflow/nodes/agent-v2/components/edit-in-console-link.tsx
index 29dfa25fbef..5b614184a4e 100644
--- a/web/app/components/workflow/nodes/agent-v2/components/edit-in-console-link.tsx
+++ b/web/app/components/workflow/nodes/agent-v2/components/edit-in-console-link.tsx
@@ -7,7 +7,7 @@ import { useTranslation } from 'react-i18next'
import { getAgentDetailPath } from '@/features/agent-v2/agent-detail/routes'
import Link from '@/next/link'
-const layoutClassName = 'min-w-0 flex-1 gap-1.5 px-3'
+const layoutClassName = 'min-w-0 flex-1 px-3'
export function EditInConsoleLink({
agentId,
diff --git a/web/app/components/workflow/nodes/data-source-empty/index.tsx b/web/app/components/workflow/nodes/data-source-empty/index.tsx
index e163b3b6429..e1276b9ebc0 100644
--- a/web/app/components/workflow/nodes/data-source-empty/index.tsx
+++ b/web/app/components/workflow/nodes/data-source-empty/index.tsx
@@ -13,7 +13,7 @@ const DataSourceEmptyNode = ({ id, data }: NodeProps) => {
const triggerElement = (
-
+
{t(($) => $['nodes.dataSource.add'], { ns: 'workflow' })}
)
diff --git a/web/app/components/workflow/nodes/human-input/components/delivery-method/method-item.tsx b/web/app/components/workflow/nodes/human-input/components/delivery-method/method-item.tsx
index 57f5162475b..ea4f92e8f87 100644
--- a/web/app/components/workflow/nodes/human-input/components/delivery-method/method-item.tsx
+++ b/web/app/components/workflow/nodes/human-input/components/delivery-method/method-item.tsx
@@ -182,7 +182,7 @@ const DeliveryMethodItem: FC = ({
disabled={readonly}
>
{t(($) => $[`${i18nPrefix}.deliveryMethod.notConfigured`], { ns: 'workflow' })}
-
+
)}
diff --git a/web/app/components/workflow/nodes/human-input/components/delivery-method/recipient/member-selector.tsx b/web/app/components/workflow/nodes/human-input/components/delivery-method/recipient/member-selector.tsx
index 54ebb7f98e7..645741797ee 100644
--- a/web/app/components/workflow/nodes/human-input/components/delivery-method/recipient/member-selector.tsx
+++ b/web/app/components/workflow/nodes/human-input/components/delivery-method/recipient/member-selector.tsx
@@ -39,7 +39,7 @@ const MemberSelector: FC
= ({ value, email, onSelect, list = [] }) => {
className="w-full justify-between data-popup-open:bg-state-accent-hover"
variant="ghost-accent"
>
-
+
{t(($) => $[`${i18nPrefix}.deliveryMethod.emailConfigure.memberSelector.trigger`], {
ns: 'workflow',
diff --git a/web/app/components/workflow/nodes/human-input/panel.tsx b/web/app/components/workflow/nodes/human-input/panel.tsx
index 04f3e53e92d..48fc12e75f9 100644
--- a/web/app/components/workflow/nodes/human-input/panel.tsx
+++ b/web/app/components/workflow/nodes/human-input/panel.tsx
@@ -127,7 +127,7 @@ const Panel: FC
> = ({ id, data }) => {
variant="ghost"
size="small"
className={cn(
- 'flex items-center space-x-1 px-2',
+ 'flex items-center px-2',
isPreview && 'bg-state-accent-active text-text-accent',
)}
onClick={() => setIsPreview((isPreview) => !isPreview)}
diff --git a/web/app/components/workflow/nodes/if-else/components/condition-add.tsx b/web/app/components/workflow/nodes/if-else/components/condition-add.tsx
index 62af2a074cd..89e406fd5c2 100644
--- a/web/app/components/workflow/nodes/if-else/components/condition-add.tsx
+++ b/web/app/components/workflow/nodes/if-else/components/condition-add.tsx
@@ -38,7 +38,7 @@ const ConditionAdd = ({
-
+
{t(($) => $['nodes.ifElse.addCondition'], { ns: 'workflow' })}
}
diff --git a/web/app/components/workflow/nodes/if-else/components/condition-list/condition-operator.tsx b/web/app/components/workflow/nodes/if-else/components/condition-list/condition-operator.tsx
index 23a61a2333a..ff9016e1680 100644
--- a/web/app/components/workflow/nodes/if-else/components/condition-list/condition-operator.tsx
+++ b/web/app/components/workflow/nodes/if-else/components/condition-list/condition-operator.tsx
@@ -62,7 +62,7 @@ const ConditionOperator = ({
{selectedOption
? selectedOption.label
: t(($) => $[`${i18nPrefix}.select`], { ns: 'workflow' })}
-
+
}>
{capitalize(numberVarType)}
-
+
= ({
className="border-0 bg-transparent p-0 hover:bg-transparent focus-visible:bg-transparent [&>*:last-child]:hidden"
>
-
+
{t(($) => $['nodes.ifElse.addSubVariable'], { ns: 'workflow' })}
@@ -219,7 +219,7 @@ const ConditionWrap: FC = ({
onMouseEnter={() => setWillDeleteCaseId(item.case_id)}
onMouseLeave={() => setWillDeleteCaseId('')}
>
-
+
{t(($) => $['operation.remove'], { ns: 'common' })}
)}
@@ -235,7 +235,7 @@ const ConditionWrap: FC = ({
disabled={readOnly}
onClick={() => handleAddSubVariableCondition?.(caseId!, conditionId!)}
>
-
+
{t(($) => $['nodes.ifElse.addSubVariable'], { ns: 'workflow' })}
)}
diff --git a/web/app/components/workflow/nodes/if-else/panel.tsx b/web/app/components/workflow/nodes/if-else/panel.tsx
index dde2ccc1197..158562d9a18 100644
--- a/web/app/components/workflow/nodes/if-else/panel.tsx
+++ b/web/app/components/workflow/nodes/if-else/panel.tsx
@@ -64,7 +64,7 @@ const Panel: FC> = ({ id, data }) => {
onClick={() => handleAddCase()}
disabled={readOnly}
>
-
+
ELIF
diff --git a/web/app/components/workflow/nodes/iteration/add-block.tsx b/web/app/components/workflow/nodes/iteration/add-block.tsx
index e0c6c57a92d..4055cbef826 100644
--- a/web/app/components/workflow/nodes/iteration/add-block.tsx
+++ b/web/app/components/workflow/nodes/iteration/add-block.tsx
@@ -42,7 +42,7 @@ const AddBlock = ({ iterationNodeData }: AddBlockProps) => {
size="medium"
className="relative data-popup-open:bg-components-button-secondary-bg-hover"
>
-
+
{t(($) => $['common.addBlock'], { ns: 'workflow' })}
)
diff --git a/web/app/components/workflow/nodes/knowledge-base/components/chunk-structure/index.tsx b/web/app/components/workflow/nodes/knowledge-base/components/chunk-structure/index.tsx
index 11b1f1c3fad..fdce1f79314 100644
--- a/web/app/components/workflow/nodes/knowledge-base/components/chunk-structure/index.tsx
+++ b/web/app/components/workflow/nodes/knowledge-base/components/chunk-structure/index.tsx
@@ -55,7 +55,7 @@ const ChunkStructure = ({
readonly={readonly}
trigger={
-
+
{t(($) => $['nodes.knowledgeBase.chooseChunkStructure'], { ns: 'workflow' })}
}
diff --git a/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/condition-list/condition-operator.tsx b/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/condition-list/condition-operator.tsx
index e22c1dc7d51..f52c029d700 100644
--- a/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/condition-list/condition-operator.tsx
+++ b/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/condition-list/condition-operator.tsx
@@ -55,7 +55,7 @@ const ConditionOperator = ({
{selectedOption
? selectedOption.label
: t(($) => $[`${i18nPrefix}.select`], { ns: 'workflow' })}
-
+
}
/>
diff --git a/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/condition-list/condition-value-method.tsx b/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/condition-list/condition-value-method.tsx
index ff0de22dd0a..85a524e9364 100644
--- a/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/condition-list/condition-value-method.tsx
+++ b/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/condition-list/condition-value-method.tsx
@@ -22,7 +22,7 @@ const ConditionValueMethod = ({
render={
{capitalize(valueMethod)}
-
+
}
/>
diff --git a/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/metadata-trigger.tsx b/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/metadata-trigger.tsx
index f3bad3b50d3..5e8ad197572 100644
--- a/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/metadata-trigger.tsx
+++ b/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/metadata-trigger.tsx
@@ -40,9 +40,9 @@ const MetadataTrigger = ({
-
+
{t(($) => $['nodes.knowledgeRetrieval.metadata.panel.conditions'], { ns: 'workflow' })}
-
+
{metadataFilteringConditions?.conditions.length || 0}
diff --git a/web/app/components/workflow/nodes/knowledge-retrieval/components/retrieval-config.tsx b/web/app/components/workflow/nodes/knowledge-retrieval/components/retrieval-config.tsx
index dd68c3b1ea6..4ed7b50aab1 100644
--- a/web/app/components/workflow/nodes/knowledge-retrieval/components/retrieval-config.tsx
+++ b/web/app/components/workflow/nodes/knowledge-retrieval/components/retrieval-config.tsx
@@ -130,7 +130,7 @@ const RetrievalConfig: FC
= ({
disabled={readonly}
className="data-popup-open:bg-components-button-ghost-bg-hover"
>
-
+
{t(($) => $.retrievalSettings, { ns: 'dataset' })}
}
diff --git a/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/json-schema-generator/generated-result.tsx b/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/json-schema-generator/generated-result.tsx
index 049774652ed..05c50d796cd 100644
--- a/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/json-schema-generator/generated-result.tsx
+++ b/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/json-schema-generator/generated-result.tsx
@@ -97,16 +97,12 @@ const GeneratedResult: FC = ({
{/* Footer */}
-
+
{t(($) => $['nodes.llm.jsonSchema.back'], { ns: 'workflow' })}
-
+
{t(($) => $['nodes.llm.jsonSchema.regenerate'], { ns: 'workflow' })}
diff --git a/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/json-schema-generator/prompt-editor.tsx b/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/json-schema-generator/prompt-editor.tsx
index 17783abcd4e..f70cf902533 100644
--- a/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/json-schema-generator/prompt-editor.tsx
+++ b/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/json-schema-generator/prompt-editor.tsx
@@ -105,7 +105,7 @@ const PromptEditor: FC = ({
{t(($) => $['operation.cancel'], { ns: 'common' })}
-
+
{t(($) => $['nodes.llm.jsonSchema.generate'], { ns: 'workflow' })}
diff --git a/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/visual-editor/add-field.tsx b/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/visual-editor/add-field.tsx
index c94d2b131bc..82ceb4a4275 100644
--- a/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/visual-editor/add-field.tsx
+++ b/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/visual-editor/add-field.tsx
@@ -24,13 +24,11 @@ const AddField = () => {
-
- {t(($) => $['nodes.llm.jsonSchema.addField'], { ns: 'workflow' })}
-
+ {t(($) => $['nodes.llm.jsonSchema.addField'], { ns: 'workflow' })}
)
diff --git a/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/visual-editor/edit-card/advanced-actions.tsx b/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/visual-editor/edit-card/advanced-actions.tsx
index 1132f1ac41d..5d02a5073f3 100644
--- a/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/visual-editor/edit-card/advanced-actions.tsx
+++ b/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/visual-editor/edit-card/advanced-actions.tsx
@@ -32,7 +32,7 @@ export function AdvancedActions({ isConfirmDisabled, onCancel, onConfirm }: Adva
{t(($) => $['operation.cancel'], { ns: 'common' })}
setShowConfig(true)}
>
-
+
{t(($) => $['structOutput.configure'], { ns: 'app' })}
diff --git a/web/app/components/workflow/nodes/loop/add-block.tsx b/web/app/components/workflow/nodes/loop/add-block.tsx
index 1046a7121d1..58ef1b66842 100644
--- a/web/app/components/workflow/nodes/loop/add-block.tsx
+++ b/web/app/components/workflow/nodes/loop/add-block.tsx
@@ -42,7 +42,7 @@ const AddBlock = ({ loopNodeData }: AddBlockProps) => {
size="medium"
className="relative data-popup-open:bg-components-button-secondary-bg-hover"
>
-
+
{t(($) => $['common.addBlock'], { ns: 'workflow' })}
)
diff --git a/web/app/components/workflow/nodes/loop/components/condition-add.tsx b/web/app/components/workflow/nodes/loop/components/condition-add.tsx
index 448863086b4..b7e63906a05 100644
--- a/web/app/components/workflow/nodes/loop/components/condition-add.tsx
+++ b/web/app/components/workflow/nodes/loop/components/condition-add.tsx
@@ -31,7 +31,7 @@ const ConditionAdd = ({ className, variables, onSelectVariable, disabled }: Cond
-
+
{t(($) => $['nodes.ifElse.addCondition'], { ns: 'workflow' })}
}
diff --git a/web/app/components/workflow/nodes/loop/components/condition-list/condition-operator.tsx b/web/app/components/workflow/nodes/loop/components/condition-list/condition-operator.tsx
index 23a61a2333a..ff9016e1680 100644
--- a/web/app/components/workflow/nodes/loop/components/condition-list/condition-operator.tsx
+++ b/web/app/components/workflow/nodes/loop/components/condition-list/condition-operator.tsx
@@ -62,7 +62,7 @@ const ConditionOperator = ({
{selectedOption
? selectedOption.label
: t(($) => $[`${i18nPrefix}.select`], { ns: 'workflow' })}
-
+
}>
{capitalize(numberVarType)}
-
+
= ({
className="border-0 bg-transparent p-0 hover:bg-transparent focus-visible:bg-transparent [&>*:last-child]:hidden"
>
-
+
{t(($) => $['nodes.ifElse.addSubVariable'], { ns: 'workflow' })}
diff --git a/web/app/components/workflow/nodes/tool/components/tool-form/item.tsx b/web/app/components/workflow/nodes/tool/components/tool-form/item.tsx
index 4a185d0e431..bd9dfab7f94 100644
--- a/web/app/components/workflow/nodes/tool/components/tool-form/item.tsx
+++ b/web/app/components/workflow/nodes/tool/components/tool-form/item.tsx
@@ -110,7 +110,7 @@ const ToolFormItem: FC = ({
onClick={() => setIsShowSchema(true)}
className="px-1 system-xs-regular text-text-tertiary"
>
-
+
JSON Schema
>
diff --git a/web/app/components/workflow/nodes/trigger-plugin/components/trigger-form/item.tsx b/web/app/components/workflow/nodes/trigger-plugin/components/trigger-form/item.tsx
index 62f82f0a848..07da058d40d 100644
--- a/web/app/components/workflow/nodes/trigger-plugin/components/trigger-form/item.tsx
+++ b/web/app/components/workflow/nodes/trigger-plugin/components/trigger-form/item.tsx
@@ -70,7 +70,7 @@ const TriggerFormItem: FC = ({
onClick={() => setIsShowSchema(true)}
className="px-1 system-xs-regular text-text-tertiary"
>
-
+
JSON Schema
>
diff --git a/web/app/components/workflow/panel/chat-variable-panel/components/array-bool-list.tsx b/web/app/components/workflow/panel/chat-variable-panel/components/array-bool-list.tsx
index 3de573d0c8a..77eab8adfe2 100644
--- a/web/app/components/workflow/panel/chat-variable-panel/components/array-bool-list.tsx
+++ b/web/app/components/workflow/panel/chat-variable-panel/components/array-bool-list.tsx
@@ -63,7 +63,7 @@ const ArrayValueList: FC = ({ className, list, onChange }) => {
))}
-
+
{t(($) => $['chatVariable.modal.addArrayValue'], { ns: 'workflow' })}
diff --git a/web/app/components/workflow/panel/chat-variable-panel/components/array-value-list.tsx b/web/app/components/workflow/panel/chat-variable-panel/components/array-value-list.tsx
index 2426d57a831..9096b2c802b 100644
--- a/web/app/components/workflow/panel/chat-variable-panel/components/array-value-list.tsx
+++ b/web/app/components/workflow/panel/chat-variable-panel/components/array-value-list.tsx
@@ -66,7 +66,7 @@ const ArrayValueList: FC = ({ isString = true, list, onChange }) => {
))}
-
+
{t(($) => $['chatVariable.modal.addArrayValue'], { ns: 'workflow' })}
diff --git a/web/app/components/workflow/panel/chat-variable-panel/components/variable-modal-trigger.tsx b/web/app/components/workflow/panel/chat-variable-panel/components/variable-modal-trigger.tsx
index 30a3fc618b5..3120e27ab5c 100644
--- a/web/app/components/workflow/panel/chat-variable-panel/components/variable-modal-trigger.tsx
+++ b/web/app/components/workflow/panel/chat-variable-panel/components/variable-modal-trigger.tsx
@@ -31,7 +31,7 @@ const VariableModalTrigger = ({ open, setOpen, showTip, chatVar, onClose, onSave
-
+
{t(($) => $['chatVariable.button'], { ns: 'workflow' })}
diff --git a/web/app/components/workflow/panel/chat-variable-panel/components/variable-modal.sections.tsx b/web/app/components/workflow/panel/chat-variable-panel/components/variable-modal.sections.tsx
index e41d183b8a7..b77d9fa01bf 100644
--- a/web/app/components/workflow/panel/chat-variable-panel/components/variable-modal.sections.tsx
+++ b/web/app/components/workflow/panel/chat-variable-panel/components/variable-modal.sections.tsx
@@ -124,9 +124,9 @@ export const ValueSection = ({
onClick={() => onEditorChange(!editInJSON)}
>
{editInJSON ? (
-
+
) : (
-
+
)}
{t(editorToggleLabelSelectors[toggleLabelKey], { ns: 'workflow' })}
diff --git a/web/app/components/workflow/panel/env-panel/variable-trigger.tsx b/web/app/components/workflow/panel/env-panel/variable-trigger.tsx
index 4d9f3fbe436..8cbda637044 100644
--- a/web/app/components/workflow/panel/env-panel/variable-trigger.tsx
+++ b/web/app/components/workflow/panel/env-panel/variable-trigger.tsx
@@ -30,7 +30,7 @@ const VariableTrigger = ({ open, setOpen, env, onClose, onSave }: Props) => {
-
+
{t(($) => $['env.envPanelButton'], { ns: 'workflow' })}
diff --git a/web/app/components/workflow/panel/workflow-preview.tsx b/web/app/components/workflow/panel/workflow-preview.tsx
index e3cecdeb7c0..a8b478a6a6c 100644
--- a/web/app/components/workflow/panel/workflow-preview.tsx
+++ b/web/app/components/workflow/panel/workflow-preview.tsx
@@ -227,7 +227,7 @@ const WorkflowPreview = () => {
workflowRunningData?.resultText &&
typeof workflowRunningData?.resultText === 'string' && (
{
const content = workflowRunningData?.resultText
if (typeof content === 'string') copy(content)
diff --git a/web/app/components/workflow/run/agent-log/agent-log-nav.tsx b/web/app/components/workflow/run/agent-log/agent-log-nav.tsx
index 75e522ebcc8..5237356f9e6 100644
--- a/web/app/components/workflow/run/agent-log/agent-log-nav.tsx
+++ b/web/app/components/workflow/run/agent-log/agent-log-nav.tsx
@@ -24,7 +24,7 @@ export function AgentLogNav({ agentOrToolLogItemStack, onShowAgentOrToolLog }: A
onShowAgentOrToolLog()
}}
>
-
+
AGENT
/
diff --git a/web/app/components/workflow/run/iteration-log/iteration-log-trigger.tsx b/web/app/components/workflow/run/iteration-log/iteration-log-trigger.tsx
index 5daec7636c5..e459a284958 100644
--- a/web/app/components/workflow/run/iteration-log/iteration-log-trigger.tsx
+++ b/web/app/components/workflow/run/iteration-log/iteration-log-trigger.tsx
@@ -132,7 +132,7 @@ const IterationLogTrigger = ({
return (
{/* oxlint-disable-next-line hyoban/prefer-tailwind-icons */}
diff --git a/web/app/components/workflow/run/loop-log/loop-log-trigger.tsx b/web/app/components/workflow/run/loop-log/loop-log-trigger.tsx
index aeb0ec937ff..eb1b0928780 100644
--- a/web/app/components/workflow/run/loop-log/loop-log-trigger.tsx
+++ b/web/app/components/workflow/run/loop-log/loop-log-trigger.tsx
@@ -75,7 +75,7 @@ const LoopLogTrigger = ({ nodeInfo, allExecutions, onShowLoopResultList }: LoopL
return (
diff --git a/web/app/components/workflow/update-dsl-modal.tsx b/web/app/components/workflow/update-dsl-modal.tsx
index 36770cb3eba..a1874dcd785 100644
--- a/web/app/components/workflow/update-dsl-modal.tsx
+++ b/web/app/components/workflow/update-dsl-modal.tsx
@@ -209,7 +209,7 @@ const UpdateDSLModal = ({ onCancel, onBackup, onImport }: UpdateDSLModalProps) =
-
+
{t(($) => $['common.backupCurrentDraft'], { ns: 'workflow' })}
diff --git a/web/app/components/workflow/variable-inspect/listening.tsx b/web/app/components/workflow/variable-inspect/listening.tsx
index 0fe578b79a9..16e5a40ce27 100644
--- a/web/app/components/workflow/variable-inspect/listening.tsx
+++ b/web/app/components/workflow/variable-inspect/listening.tsx
@@ -215,7 +215,7 @@ const Listening: FC
= ({ onStop, message }) => {
)}
-
+
{t(($) => $['debug.variableInspect.listening.stopButton'], { ns: 'workflow' })}
diff --git a/web/app/components/workflow/workflow-generator/index.tsx b/web/app/components/workflow/workflow-generator/index.tsx
index 8554600f3a0..a0494bbf266 100644
--- a/web/app/components/workflow/workflow-generator/index.tsx
+++ b/web/app/components/workflow/workflow-generator/index.tsx
@@ -638,18 +638,14 @@ function WorkflowGeneratorModal() {
// window where the user might want to bail (slow
// model, wrong instruction, etc.). Hidden when idle so
// the row stays focused on the primary action.
-
+
{t(($) => $['workflowGenerator.cancel'])}
) : (
= ({ userCode, ssoAvailable }) => {
return (
-
+
{t(($) => $['chooser.signInAccount'])}
{ssoAvailable && (
-
+
{t(($) => $['chooser.signInSSO'])}
diff --git a/web/app/education-apply/education-apply-page.tsx b/web/app/education-apply/education-apply-page.tsx
index 6d4444c0be7..f26ed3ee8f8 100644
--- a/web/app/education-apply/education-apply-page.tsx
+++ b/web/app/education-apply/education-apply-page.tsx
@@ -102,7 +102,7 @@ const EducationApplyAgeContent = () => {
}
const renderBackToDifyButton = () => (
-
+
{t(($) => $['applied.noPaymentPermission.returnHome'], { ns: 'education' })}
)
diff --git a/web/app/education-apply/expire-notice-modal.tsx b/web/app/education-apply/expire-notice-modal.tsx
index 17aea0dd42a..c3dac118aed 100644
--- a/web/app/education-apply/expire-notice-modal.tsx
+++ b/web/app/education-apply/expire-notice-modal.tsx
@@ -114,7 +114,7 @@ const ExpireNoticeModal: React.FC = ({ expireAt, expired, onClose }) => {
onClose()
setShowPricingModal()
}}
- className="flex items-center space-x-1"
+ className="flex items-center"
>
-
+
{t(($) => $['agentDetail.memorySettings.export.download'])}
diff --git a/web/features/agent-v2/agent-detail/configure/components/orchestrate/publish-bar/index.tsx b/web/features/agent-v2/agent-detail/configure/components/orchestrate/publish-bar/index.tsx
index 46668ed78b2..83af7b8a685 100644
--- a/web/features/agent-v2/agent-detail/configure/components/orchestrate/publish-bar/index.tsx
+++ b/web/features/agent-v2/agent-detail/configure/components/orchestrate/publish-bar/index.tsx
@@ -402,7 +402,7 @@ function PublishBarActions({
variant="primary"
disabled={!canPublish}
loading={isPublishing}
- className="h-8 gap-1 rounded-lg px-3"
+ className="h-8 rounded-lg px-3"
onClick={onPublishRequest}
>
{actionIcon && }
@@ -467,7 +467,7 @@ function AgentVersionRestoreBar({
diff --git a/web/features/agent-v2/agent-detail/configure/components/orchestrate/tools/provider-tool/item.tsx b/web/features/agent-v2/agent-detail/configure/components/orchestrate/tools/provider-tool/item.tsx
index bd083c85302..90a7d845cc4 100644
--- a/web/features/agent-v2/agent-detail/configure/components/orchestrate/tools/provider-tool/item.tsx
+++ b/web/features/agent-v2/agent-detail/configure/components/orchestrate/tools/provider-tool/item.tsx
@@ -94,7 +94,7 @@ function UnauthorizedCredentialStatus({
className={cn('shrink-0', open && 'bg-components-button-secondary-bg-hover')}
>
{t(($) => $.notAuthorized, { ns: 'tools' })}
-
+
),
[t],
diff --git a/web/features/agent-v2/roster/components/create-agent-dialog.tsx b/web/features/agent-v2/roster/components/create-agent-dialog.tsx
index 66670b2dd3f..16809898e58 100644
--- a/web/features/agent-v2/roster/components/create-agent-dialog.tsx
+++ b/web/features/agent-v2/roster/components/create-agent-dialog.tsx
@@ -97,9 +97,9 @@ export function CreateAgentDialog({ open, onOpenChange }: CreateAgentDialogProps
disablePointerDismissal
>
{open === undefined && (
- }>
+ }>
- {t(($) => $['roster.createAgent'])}
+ {t(($) => $['roster.createAgent'])}
)}
diff --git a/web/features/deployments/detail/access/permissions/access-subject-selector/subject-options.tsx b/web/features/deployments/detail/access/permissions/access-subject-selector/subject-options.tsx
index 50e5278e33d..290ee1c71b1 100644
--- a/web/features/deployments/detail/access/permissions/access-subject-selector/subject-options.tsx
+++ b/web/features/deployments/detail/access/permissions/access-subject-selector/subject-options.tsx
@@ -136,11 +136,11 @@ function GroupItem({ group, subject, selectedGroups, onExpandGroup }: GroupItemP
size="small"
disabled={isChecked}
variant="ghost-accent"
- className="mr-1 flex shrink-0 items-center justify-between px-1.5 py-1"
+ className="mr-1 flex shrink-0 items-center justify-between py-1"
onPointerDown={(event) => event.preventDefault()}
onClick={() => onExpandGroup(group)}
>
-
+
{t(($) => $['accessControlDialog.operateGroupAndMember.expand'], { ns: 'app' })}
diff --git a/web/features/deployments/detail/api-tokens/api-keys/api-key-generate-menu.tsx b/web/features/deployments/detail/api-tokens/api-keys/api-key-generate-menu.tsx
index 43f11ca307a..d653add882e 100644
--- a/web/features/deployments/detail/api-tokens/api-keys/api-key-generate-menu.tsx
+++ b/web/features/deployments/detail/api-tokens/api-keys/api-key-generate-menu.tsx
@@ -4,7 +4,6 @@ import type { Environment } from '@dify/contracts/enterprise/types.gen'
import type { ButtonProps } from '@langgenius/dify-ui/button'
import type { FormEvent, ReactNode } from 'react'
import { Button } from '@langgenius/dify-ui/button'
-import { cn } from '@langgenius/dify-ui/cn'
import {
Dialog,
DialogCloseButton,
@@ -139,7 +138,7 @@ export function ApiKeyGenerateMenu({
variant={triggerVariant}
disabled={disabled}
onClick={handleOpenCreateDialog}
- className={cn('gap-1.5', triggerClassName)}
+ className={triggerClassName}
>
{t(($) => $['access.api.newKey'])}
diff --git a/web/features/deployments/detail/api-tokens/api-token-management/section.tsx b/web/features/deployments/detail/api-tokens/api-token-management/section.tsx
index de664a1cf48..a2ab939c869 100644
--- a/web/features/deployments/detail/api-tokens/api-token-management/section.tsx
+++ b/web/features/deployments/detail/api-tokens/api-token-management/section.tsx
@@ -68,7 +68,7 @@ function DeveloperApiEndpoint({ apiUrl }: { apiUrl: string }) {
value={apiUrl}
className="min-w-0 flex-1"
/>
- setApiDocsOpen(true)}>
+ setApiDocsOpen(true)}>
{t(($) => $['access.api.docs'])}
diff --git a/web/features/deployments/detail/instances/header-actions/new-deployment-button.tsx b/web/features/deployments/detail/instances/header-actions/new-deployment-button.tsx
index de5fa4d6748..bd8a0d5979d 100644
--- a/web/features/deployments/detail/instances/header-actions/new-deployment-button.tsx
+++ b/web/features/deployments/detail/instances/header-actions/new-deployment-button.tsx
@@ -20,7 +20,7 @@ export function NewDeploymentButton() {
{
if (!appInstanceId) return
diff --git a/web/features/deployments/detail/overview/environment-status/environment-strip.tsx b/web/features/deployments/detail/overview/environment-status/environment-strip.tsx
index 140d414b729..7b97b0b141e 100644
--- a/web/features/deployments/detail/overview/environment-status/environment-strip.tsx
+++ b/web/features/deployments/detail/overview/environment-status/environment-strip.tsx
@@ -82,7 +82,7 @@ function EnvironmentEmptyState({ canDeploy }: { canDeploy: boolean }) {
type="button"
variant="primary"
size="medium"
- className="gap-1.5"
+
onClick={() => openDeployDrawer({ appInstanceId })}
>
diff --git a/web/features/new-rag/new-knowledge-list.tsx b/web/features/new-rag/new-knowledge-list.tsx
index eadea7beafb..ae804c2505a 100644
--- a/web/features/new-rag/new-knowledge-list.tsx
+++ b/web/features/new-rag/new-knowledge-list.tsx
@@ -107,14 +107,14 @@ export function NewKnowledgeList({
setShowExternalApiPanel(true)}
>
- {t(($) => $.externalAPIPanelTitle)}
+ {t(($) => $.externalAPIPanelTitle)}
)}
@@ -139,10 +139,10 @@ export function NewKnowledgeList({
render={}
variant="primary"
size="medium"
- className="gap-0.5 px-2 shadow-xs"
+ className="px-2 shadow-xs"
>
- {createLabel}
+ {createLabel}
)}