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.

adding tooltip for bindingCount (#22450)

znn1f4b3591ae25
diff --git a/web/app/components/base/tag-management/tag-item-editor.tsx b/web/app/components/base/tag-management/tag-item-editor.tsx
index 32649799558..0fdfc5079a7 100644
--- a/web/app/components/base/tag-management/tag-item-editor.tsx
+++ b/web/app/components/base/tag-management/tag-item-editor.tsx
@@ -12,6 +12,7 @@ import Confirm from '@/app/components/base/confirm'
import cn from '@/utils/classnames'
import type { Tag } from '@/app/components/base/tag-management/constant'
import { ToastContext } from '@/app/components/base/toast'
+import Tooltip from '@/app/components/base/tooltip'
import {
deleteTag,
updateTag,
@@ -109,7 +110,14 @@ const TagItemEditor: FC<TagItemEditorProps> = ({
<div className='text-sm leading-5 text-text-secondary'>
{tag.name}
</div>
- <div className='leading-4.5 shrink-0 px-1 text-sm font-medium text-text-tertiary'>{tag.binding_count}</div>
+ <Tooltip
+ popupContent={
+ <div>{t('workflow.common.tagBound')}</div>
+ }
+ needsDelay
+ >
+ <div className='leading-4.5 shrink-0 px-1 text-sm font-medium text-text-tertiary'>{tag.binding_count}</div>
+ </Tooltip>
<div className='group/edit shrink-0 cursor-pointer rounded-md p-1 hover:bg-state-base-hover' onClick={() => setIsEditing(true)}>
<RiEditLine className='h-3 w-3 text-text-tertiary group-hover/edit:text-text-secondary' />
</div>
diff --git a/web/i18n/en-US/workflow.ts b/web/i18n/en-US/workflow.ts
index c56b497ac29..763739ba322 100644
--- a/web/i18n/en-US/workflow.ts
+++ b/web/i18n/en-US/workflow.ts
@@ -113,6 +113,7 @@ const translation = {
addFailureBranch: 'Add Fail Branch',
loadMore: 'Load More',
noHistory: 'No History',
+ tagBound: 'Number of apps using this tag',
},
env: {
envPanelTitle: 'Environment Variables',