Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

chore(web): drop delay={0} from tooltip triggers and retype DocName (#35382)

yyh0c8acd402ab8
diff --git a/eslint-suppressions.json b/eslint-suppressions.json
index fbeb1d6dcf0..29fcf2634e3 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 4f5b79fc662..75d7200666f 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 (
<Tooltip>
<TooltipTrigger
- delay={0}
disabled={!canShowUpgradeTooltip}
render={(
<PremiumBadge color="blue" allowHover={true}>
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 4ec7ce3cef3..e572ec41af5 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
<Tooltip>
<TooltipTrigger
aria-label={t('modelProvider.card.usagePriorityTip', { ns: 'common' })}
- delay={0}
render={(
<span className="flex h-4 w-4 shrink-0 items-center justify-center">
<span aria-hidden className="i-ri-question-line h-3.5 w-3.5 text-text-quaternary hover:text-text-tertiary" />
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 5d31db11f96..7828dc4635f 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<QuotaPanelProps> = ({
<Tooltip>
<TooltipTrigger
aria-label={tipText}
- delay={0}
render={(
<span className="ml-0.5 flex h-4 w-4 shrink-0 items-center justify-center">
<span aria-hidden className="i-ri-question-line h-3.5 w-3.5 text-text-quaternary hover:text-text-tertiary" />
@@ -150,7 +149,6 @@ const QuotaPanel: FC<QuotaPanelProps> = ({
<Tooltip key={key}>
<TooltipTrigger
aria-label={tooltipText}
- delay={0}
render={(
<div
className={cn('relative h-6 w-6', !providerType && 'cursor-pointer hover:opacity-80')}
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 41bb3c3ab8c..9f993260ca9 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
@@ -141,7 +141,6 @@ const SystemModel: FC<SystemModelSelectorProps> = ({
<Tooltip>
<TooltipTrigger
aria-label={tipText}
- delay={0}
render={(
<span className="ml-0.5 flex h-4 w-4 shrink-0 items-center justify-center">
<span aria-hidden className="i-ri-question-line h-3.5 w-3.5 text-text-quaternary hover:text-text-tertiary" />
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 1ed91a93f5a..fb31df59a01 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 && (
<Tooltip>
<TooltipTrigger
- delay={0}
render={(
<div>
<Badge className="mr-1 cursor-pointer px-1">
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 205e75bf671..ce080fb6dd6 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 && (
<Tooltip>
<TooltipTrigger
- delay={0}
render={(
<span className="ml-1 flex h-4 w-4 shrink-0 items-center justify-center">
<span aria-hidden className="i-ri-question-line h-3.5 w-3.5 text-text-quaternary hover:text-text-tertiary" />
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 3d2697c44eb..59b38b41dbc 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<Props> = ({
<div className="text-xs font-semibold text-text-secondary uppercase">{t('nodes.common.memories.title', { ns: 'workflow' })}</div>
<Tooltip>
<TooltipTrigger
- delay={0}
render={(
<span className="ml-1 flex h-4 w-4 shrink-0 items-center justify-center">
<span aria-hidden className="i-ri-question-line h-3.5 w-3.5 text-text-quaternary hover:text-text-tertiary" />
@@ -75,7 +74,6 @@ const PanelMemorySection: FC<Props> = ({
<div className="text-xs font-semibold text-text-secondary uppercase">user</div>
<Tooltip>
<TooltipTrigger
- delay={0}
render={(
<span className="ml-1 flex h-4 w-4 shrink-0 items-center justify-center">
<span aria-hidden className="i-ri-question-line h-3.5 w-3.5 text-text-quaternary hover:text-text-tertiary" />
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 3a3ab7f8cb2..bd333b6b1f1 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<Props> = ({
{(!isModelSupportStructuredOutput && !!inputs.structured_output_enabled) && (
<Tooltip>
<TooltipTrigger
- delay={0}
render={(
<div>
<RiAlertFill className="mr-1 size-4 text-text-warning-secondary" />
@@ -61,7 +60,6 @@ const PanelOutputSection: FC<Props> = ({
<div className="mr-0.5 system-xs-medium-uppercase text-text-tertiary">{t('structOutput.structured', { ns: 'app' })}</div>
<Tooltip>
<TooltipTrigger
- delay={0}
render={(
<div>
<RiQuestionLine className="size-3.5 text-text-quaternary" />