From 0c8acd402ab852b71fc9444df059b17e93331a01 Mon Sep 17 00:00:00 2001 From: yyh <92089059+lyzno1@users.noreply.github.com> Date: Sat, 18 Apr 2026 19:21:07 +0800 Subject: [PATCH] chore(web): drop delay={0} from tooltip triggers and retype DocName (#35382) Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> --- eslint-suppressions.json | 5 ----- .../header/account-dropdown/compliance.tsx | 14 +++++++------- .../model-auth-dropdown/usage-priority-section.tsx | 1 - .../provider-added-card/quota-panel.tsx | 2 -- .../system-model-selector/index.tsx | 1 - .../plugin-detail-panel/detail-header/index.tsx | 1 - .../nodes/_base/components/layout/field-title.tsx | 1 - .../nodes/llm/components/panel-memory-section.tsx | 2 -- .../nodes/llm/components/panel-output-section.tsx | 2 -- 9 files changed, 7 insertions(+), 22 deletions(-) diff --git a/eslint-suppressions.json b/eslint-suppressions.json index fbeb1d6dcf..29fcf2634e 100644 --- a/eslint-suppressions.json +++ b/eslint-suppressions.json @@ -3081,11 +3081,6 @@ "count": 1 } }, - "web/app/components/header/account-dropdown/compliance.tsx": { - "erasable-syntax-only/enums": { - "count": 1 - } - }, "web/app/components/header/account-setting/api-based-extension-page/modal.tsx": { "no-restricted-imports": { "count": 1 diff --git a/web/app/components/header/account-dropdown/compliance.tsx b/web/app/components/header/account-dropdown/compliance.tsx index 4f5b79fc66..75d7200666 100644 --- a/web/app/components/header/account-dropdown/compliance.tsx +++ b/web/app/components/header/account-dropdown/compliance.tsx @@ -19,12 +19,13 @@ import SparklesSoft from '../../base/icons/src/public/common/SparklesSoft' import PremiumBadge from '../../base/premium-badge' import { MenuItemContent } from './menu-item-content' -enum DocName { - SOC2_Type_I = 'SOC2_Type_I', - SOC2_Type_II = 'SOC2_Type_II', - ISO_27001 = 'ISO_27001', - GDPR = 'GDPR', -} +const DocName = { + SOC2_Type_I: 'SOC2_Type_I', + SOC2_Type_II: 'SOC2_Type_II', + ISO_27001: 'ISO_27001', + GDPR: 'GDPR', +} as const +type DocName = typeof DocName[keyof typeof DocName] type ComplianceDocActionVisualProps = { isCurrentPlanCanDownload: boolean @@ -61,7 +62,6 @@ function ComplianceDocActionVisual({ return ( diff --git a/web/app/components/header/account-setting/model-provider-page/provider-added-card/model-auth-dropdown/usage-priority-section.tsx b/web/app/components/header/account-setting/model-provider-page/provider-added-card/model-auth-dropdown/usage-priority-section.tsx index 4ec7ce3cef..e572ec41af 100644 --- a/web/app/components/header/account-setting/model-provider-page/provider-added-card/model-auth-dropdown/usage-priority-section.tsx +++ b/web/app/components/header/account-setting/model-provider-page/provider-added-card/model-auth-dropdown/usage-priority-section.tsx @@ -34,7 +34,6 @@ export default function UsagePrioritySection({ value, disabled, onSelect }: Usag diff --git a/web/app/components/header/account-setting/model-provider-page/provider-added-card/quota-panel.tsx b/web/app/components/header/account-setting/model-provider-page/provider-added-card/quota-panel.tsx index 5d31db11f9..7828dc4635 100644 --- a/web/app/components/header/account-setting/model-provider-page/provider-added-card/quota-panel.tsx +++ b/web/app/components/header/account-setting/model-provider-page/provider-added-card/quota-panel.tsx @@ -102,7 +102,6 @@ const QuotaPanel: FC = ({ @@ -150,7 +149,6 @@ const QuotaPanel: FC = ({ = ({ diff --git a/web/app/components/plugins/plugin-detail-panel/detail-header/index.tsx b/web/app/components/plugins/plugin-detail-panel/detail-header/index.tsx index 1ed91a93f5..fb31df59a0 100644 --- a/web/app/components/plugins/plugin-detail-panel/detail-header/index.tsx +++ b/web/app/components/plugins/plugin-detail-panel/detail-header/index.tsx @@ -189,7 +189,6 @@ const DetailHeader = ({ {isAutoUpgradeEnabled && !isReadmeView && ( diff --git a/web/app/components/workflow/nodes/_base/components/layout/field-title.tsx b/web/app/components/workflow/nodes/_base/components/layout/field-title.tsx index 205e75bf67..ce080fb6dd 100644 --- a/web/app/components/workflow/nodes/_base/components/layout/field-title.tsx +++ b/web/app/components/workflow/nodes/_base/components/layout/field-title.tsx @@ -64,7 +64,6 @@ export const FieldTitle = memo(({ tooltip && ( diff --git a/web/app/components/workflow/nodes/llm/components/panel-memory-section.tsx b/web/app/components/workflow/nodes/llm/components/panel-memory-section.tsx index 3d2697c44e..59b38b41db 100644 --- a/web/app/components/workflow/nodes/llm/components/panel-memory-section.tsx +++ b/web/app/components/workflow/nodes/llm/components/panel-memory-section.tsx @@ -52,7 +52,6 @@ const PanelMemorySection: FC = ({
{t('nodes.common.memories.title', { ns: 'workflow' })}
@@ -75,7 +74,6 @@ const PanelMemorySection: FC = ({
user
diff --git a/web/app/components/workflow/nodes/llm/components/panel-output-section.tsx b/web/app/components/workflow/nodes/llm/components/panel-output-section.tsx index 3a3ab7f8cb..bd333b6b1f 100644 --- a/web/app/components/workflow/nodes/llm/components/panel-output-section.tsx +++ b/web/app/components/workflow/nodes/llm/components/panel-output-section.tsx @@ -43,7 +43,6 @@ const PanelOutputSection: FC = ({ {(!isModelSupportStructuredOutput && !!inputs.structured_output_enabled) && ( @@ -61,7 +60,6 @@ const PanelOutputSection: FC = ({
{t('structOutput.structured', { ns: 'app' })}