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.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
chore: improve workflow editor accessibility (#42403)
Joel5e76fc45b70d
diff --git a/oxlint-suppressions.json b/oxlint-suppressions.jsonindex a8e19639158..e9734a65754 100644--- a/oxlint-suppressions.json+++ b/oxlint-suppressions.json@@ -3575,14 +3575,6 @@"count": 1}},- "web/app/components/workflow/nodes/_base/components/next-step/operator.tsx": {- "jsx-a11y/click-events-have-key-events": {- "count": 2- },- "jsx-a11y/no-static-element-interactions": {- "count": 2- }- },"web/app/components/workflow/nodes/_base/components/node-control.tsx": {"jsx-a11y/click-events-have-key-events": {"count": 1diff --git a/web/app/components/workflow/__tests__/control-scale.browser.spec.tsx b/web/app/components/workflow/__tests__/control-scale.browser.spec.tsxnew file mode 100644index 00000000000..49e6134e895--- /dev/null+++ b/web/app/components/workflow/__tests__/control-scale.browser.spec.tsx@@ -0,0 +1,96 @@+import { IconButton } from '@langgenius/dify-ui/icon-button'+import { useRef, useState } from 'react'+import ReactFlow, { ReactFlowProvider, useReactFlow } from 'reactflow'+import { page } from 'vite-plus/test/browser'+import { render } from 'vitest-browser-react'+import { useWorkflowControlScale } from '../hooks/use-workflow-control-scale'+import 'reactflow/dist/style.css'++function ControlNode() {+ const [activations, setActivations] = useState(0)++ return (+ <div+ role="group"+ aria-label="Canvas node"+ style={{ width: 200, height: 100, display: 'grid', placeItems: 'center' }}+ >+ <IconButton+ aria-label="Canvas action"+ className="nodrag nopan"+ size="md"+ style={{ scale: 'var(--workflow-control-scale, 1)' }}+ onClick={() => setActivations((count) => count + 1)}+ >+ <span aria-hidden className="i-ri-add-line size-4" />+ </IconButton>+ <output aria-label="Action count" style={{ position: 'absolute', top: 0, left: 0 }}>+ {activations}+ </output>+ </div>+ )+}++const nodeTypes = { control: ControlNode }+const nodes = [{ id: 'control', type: 'control', position: { x: 200, y: 200 }, data: {} }]++function Canvas() {+ const containerRef = useRef<HTMLDivElement>(null)+ const { zoomTo, setViewport, getViewport } = useReactFlow()+ useWorkflowControlScale(containerRef)++ return (+ <>+ {[0.25, 0.5, 1].map((zoom) => (+ <button type="button" key={zoom} onClick={() => zoomTo(zoom)}>+ Zoom {zoom * 100}%+ </button>+ ))}+ <button+ type="button"+ onClick={() => {+ const viewport = getViewport()+ setViewport({ ...viewport, x: viewport.x + 20, y: viewport.y + 20 })+ }}+ >+ Pan canvas+ </button>+ <div ref={containerRef} style={{ width: 800, height: 600 }}>+ <ReactFlow defaultNodes={nodes} nodeTypes={nodeTypes} minZoom={0.25} />+ </div>+ </>+ )+}++it('keeps a 24 CSS pixel canvas action reachable while zooming out and panning', async () => {+ // Browser-owned: nested CSS transforms determine the actual pointer target, not its layout size.+ await page.viewport(1000, 800)+ const screen = await render(+ <ReactFlowProvider>+ <Canvas />+ </ReactFlowProvider>,+ )+ const action = screen.getByRole('button', { name: 'Canvas action' })++ for (const [index, zoom] of [1, 0.5, 0.25, 1].entries()) {+ await screen.getByRole('button', { name: `Zoom ${zoom * 100}%` }).click()+ await expect.poll(() => action.element().getBoundingClientRect().width).toBeCloseTo(24)+ const target = action.element().getBoundingClientRect()+ const node = screen+ .getByRole('group', { name: 'Canvas node' })+ .element()+ .getBoundingClientRect()+ expect(target.height).toBeCloseTo(24)+ expect(target.x + target.width / 2).toBeCloseTo(node.x + node.width / 2)+ expect(target.y + target.height / 2).toBeCloseTo(node.y + node.height / 2)+ await action.click({ position: { x: 2, y: 2 } })+ await expect.element(screen.getByLabelText('Action count')).toHaveTextContent(String(index + 1))+ }++ const beforePan = action.element().getBoundingClientRect()+ await screen.getByRole('button', { name: 'Pan canvas' }).click()+ await expect.poll(() => action.element().getBoundingClientRect().x).toBeCloseTo(beforePan.x + 20)+ expect(action.element().getBoundingClientRect().width).toBeCloseTo(24)+ await action.click({ position: { x: 22, y: 22 } })+ await expect.element(screen.getByLabelText('Action count')).toHaveTextContent('5')+})diff --git a/web/app/components/workflow/__tests__/custom-edge.spec.tsx b/web/app/components/workflow/__tests__/custom-edge.spec.tsxindex 77bd5373d67..434bcd60912 100644--- a/web/app/components/workflow/__tests__/custom-edge.spec.tsx+++ b/web/app/components/workflow/__tests__/custom-edge.spec.tsx@@ -43,6 +43,8 @@ vi.mock('reactflow', () => ({useStoreApi: () => ({getState: () => ({ getNodes: () => [] }),}),+ useStore: (selector: (state: { nodeInternals: Map<string, unknown> }) => unknown) =>+ selector({ nodeInternals: new Map() }),}))vi.mock('../hooks/use-available-blocks', async (importOriginal) => {diff --git a/web/app/components/workflow/__tests__/edge-insert-focus.browser.spec.tsx b/web/app/components/workflow/__tests__/edge-insert-focus.browser.spec.tsxnew file mode 100644index 00000000000..6dfddd9018c--- /dev/null+++ b/web/app/components/workflow/__tests__/edge-insert-focus.browser.spec.tsx@@ -0,0 +1,89 @@+import type { RefObject } from 'react'+import { useState } from 'react'+import ReactFlow, { ReactFlowProvider } from 'reactflow'+import { page, userEvent } from 'vite-plus/test/browser'+import { render } from 'vitest-browser-react'+import { WorkflowContext } from '../context'+import CustomEdge from '../custom-edge'+import { createWorkflowStore } from '../store/workflow'+import { BlockEnum } from '../types'+import 'reactflow/dist/style.css'+import '../style.css'++vi.mock('../hooks/use-available-blocks', () => ({+ useAvailableBlocks: () => ({+ availablePrevBlocks: [BlockEnum.Code],+ availableNextBlocks: [BlockEnum.Code],+ }),+}))+vi.mock('../hooks/use-nodes-interactions', () => ({+ useNodesInteractions: () => ({ handleNodeAdd: vi.fn() }),+}))+vi.mock('../hooks-store', () => ({+ useHooksStore: (selector: (state: object) => unknown) => selector({}),+}))+// Picker results are unrelated to focus entering and returning from its real Popover.+vi.mock('../block-selector/tabs', () => ({+ BlockSelectorPanels: ({ searchInputRef }: { searchInputRef: RefObject<HTMLInputElement> }) => (+ <input ref={searchInputRef} aria-label="Find a node" />+ ),+}))+const edgeTypes = { custom: CustomEdge }+const nodes = [+ {+ id: 'input',+ position: { x: 50, y: 100 },+ data: { label: 'Input', title: 'Input', type: BlockEnum.Start },+ },+ {+ id: 'output',+ position: { x: 400, y: 200 },+ data: { label: 'Output', title: 'Output', type: BlockEnum.Code },+ },+]+const edges = [+ {+ id: 'edge',+ source: 'input',+ target: 'output',+ type: 'custom',+ data: { sourceType: BlockEnum.Start, targetType: BlockEnum.Code },+ },+]+function Fixture() {+ const [store] = useState(() => createWorkflowStore({}))+ return (+ <WorkflowContext value={store}>+ <ReactFlowProvider>+ <button type="button">Before canvas</button>+ <div style={{ width: 800, height: 500 }}>+ <ReactFlow+ nodes={nodes}+ edges={edges}+ edgeTypes={edgeTypes}+ nodesFocusable={false}+ edgesFocusable={false}+ />+ </div>+ </ReactFlowProvider>+ </WorkflowContext>+ )+}++it('reveals the edge insertion control on Tab and keeps it visible after Escape returns focus', async () => {+ // Browser owns focus restoration, ancestor opacity, and actual painted focus ring.+ await page.viewport(1000, 700)+ const screen = await render(<Fixture />)+ await screen.getByRole('button', { name: 'Before canvas' }).click()+ await userEvent.tab()+ const trigger = screen.getByRole('button', { name: 'workflow.common.addBlock' })+ await expect.element(trigger).toHaveFocus()+ await expect.poll(() => getComputedStyle(trigger.element().parentElement!).opacity).toBe('1')+ expect(getComputedStyle(trigger.element()).boxShadow).not.toBe('none')+ await userEvent.keyboard('{Enter}')+ await expect.element(screen.getByRole('textbox', { name: 'Find a node' })).toHaveFocus()+ await userEvent.keyboard('{Escape}')+ await expect.element(trigger).toHaveFocus()+ await expect.poll(() => getComputedStyle(trigger.element().parentElement!).opacity).toBe('1')+ await expect.element(screen.getByRole('textbox', { name: 'Find a node' })).not.toBeInTheDocument()+})diff --git a/web/app/components/workflow/block-selector/index.tsx b/web/app/components/workflow/block-selector/index.tsxindex feb7313045d..286f5882b72 100644--- a/web/app/components/workflow/block-selector/index.tsx+++ b/web/app/components/workflow/block-selector/index.tsx@@ -137,7 +137,7 @@ function BlockSelector({<IconButtonaria-label={t(($) => $['common.addBlock'], { ns: 'workflow' })}variant="primary"- size="xs"+ size="md"className={cn('z-10 rounded-full', triggerClassName)}style={triggerStyle}>diff --git a/web/app/components/workflow/custom-edge.tsx b/web/app/components/workflow/custom-edge.tsxindex 27028ee918d..2dbcb9a7bcf 100644--- a/web/app/components/workflow/custom-edge.tsx+++ b/web/app/components/workflow/custom-edge.tsx@@ -8,6 +8,7 @@ import BlockSelector from './block-selector'import { NESTED_ELEMENT_Z_INDEX } from './constants'import CustomEdgeLinearGradientRender from './custom-edge-linear-gradient-render'import { useAvailableBlocks } from './hooks/use-available-blocks'+import { useEdgeAccessibleLabel } from './hooks/use-edge-accessible-label'import { useNodesInteractions } from './hooks/use-nodes-interactions'import { NodeRunningStatus } from './types'import { getEdgeColor } from './utils'@@ -25,6 +26,7 @@ const CustomEdge = ({targetY,selected,}: EdgeProps) => {+ const edgeAccessibleLabelRef = useEdgeAccessibleLabel(source, target, sourceHandleId)const [edgePath, labelX, labelY] = getBezierPath({sourceX: sourceX - 8,sourceY,@@ -36,6 +38,7 @@ const CustomEdge = ({})const [open, setOpen] = useState(false)const [isTriggerHovered, setIsTriggerHovered] = useState(false)+ const [isTriggerFocused, setIsTriggerFocused] = useState(false)const { handleNodeAdd } = useNodesInteractions()const { availablePrevBlocks } = useAvailableBlocks((data as Edge['data'])!.targetType,@@ -46,7 +49,7 @@ const CustomEdge = ({(data as Edge['data'])?.isInIteration || (data as Edge['data'])?.isInLoop,)const { _sourceRunningStatus, _targetRunningStatus } = data- const isTriggerVisible = !!(data?._hovering || isTriggerHovered || open)+ const isTriggerVisible = !!(data?._hovering || isTriggerHovered || isTriggerFocused || open)const linearGradientId = useMemo(() => {if (@@ -113,16 +116,18 @@ const CustomEdge = ({}}/>)}- <BaseEdge- id={id}- path={edgePath}- style={{- stroke,- strokeWidth: 2,- opacity: data._dimmed ? 0.3 : data._waitingRun ? 0.7 : 1,- strokeDasharray: data._isTemp ? '8 8' : undefined,- }}- />+ <g ref={edgeAccessibleLabelRef}>+ <BaseEdge+ id={id}+ path={edgePath}+ style={{+ stroke,+ strokeWidth: 2,+ opacity: data._dimmed ? 0.3 : data._waitingRun ? 0.7 : 1,+ strokeDasharray: data._isTemp ? '8 8' : undefined,+ }}+ />+ </g><EdgeLabelRenderer><divclassName="nopan nodrag transition-opacity duration-150"@@ -135,6 +140,10 @@ const CustomEdge = ({}}onMouseEnter={() => setIsTriggerHovered(true)}onMouseLeave={() => setIsTriggerHovered(false)}+ onFocusCapture={() => setIsTriggerFocused(true)}+ onBlurCapture={(event) => {+ if (!event.currentTarget.contains(event.relatedTarget)) setIsTriggerFocused(false)+ }}><BlockSelectoropen={open}@@ -147,7 +156,7 @@ const CustomEdge = ({nextNodeTargetHandle: targetHandleId || 'target',}}availableBlocksTypes={intersection(availablePrevBlocks, availableNextBlocks)}- triggerClassName="transition-transform hover:scale-150"+ triggerStyle={{ scale: 'var(--workflow-control-scale, 1)' }}/></div></EdgeLabelRenderer>diff --git a/web/app/components/workflow/header/checklist/__tests__/index.spec.tsx b/web/app/components/workflow/header/checklist/__tests__/index.spec.tsxindex 0bc22b8c819..4cdef83f1a1 100644--- a/web/app/components/workflow/header/checklist/__tests__/index.spec.tsx+++ b/web/app/components/workflow/header/checklist/__tests__/index.spec.tsx@@ -112,7 +112,7 @@ describe('WorkflowChecklist', () => {render(<WorkflowChecklist disabled={false} />)expect(screen.getByText('2')).toBeInTheDocument()- await user.click(screen.getByRole('button', { name: 'workflow.panel.checklist' }))+ await user.click(screen.getByRole('button', { name: 'workflow.panel.checklist 2' }))expect(screen.getByTestId('plugin-group')).toHaveTextContent('Missing Plugin')await user.click(screen.getByTestId('node-group-Broken Node'))@@ -125,13 +125,26 @@ describe('WorkflowChecklist', () => {const onItemClick = vi.fn()render(<WorkflowChecklist disabled={false} onItemClick={onItemClick} />)- await user.click(screen.getByRole('button', { name: 'workflow.panel.checklist' }))+ await user.click(screen.getByRole('button', { name: 'workflow.panel.checklist 2' }))await user.click(screen.getByTestId('node-group-Broken Node'))expect(onItemClick).toHaveBeenCalledWith(expect.objectContaining({ id: 'node-1' }))expect(mockHandleNodeSelect).not.toHaveBeenCalled()})+ it('should show the tooltip without replacing the warning count in the accessible name', async () => {+ const user = userEvent.setup()+ render(<WorkflowChecklist disabled={false} />)++ const trigger = screen.getByRole('button', { name: 'workflow.panel.checklist 2' })+ await user.hover(trigger)++ expect(await screen.findByText('workflow.panel.checklist', { selector: 'div' })).toBeVisible()+ expect(trigger).toHaveAccessibleName('workflow.panel.checklist 2')+ await user.click(trigger)+ expect(screen.getByTestId('plugin-group')).toBeInTheDocument()+ })+it('should open the inline agent editor after selecting an inline agent reference warning', async () => {const user = userEvent.setup()mockChecklistItems[1] = {@@ -142,7 +155,7 @@ describe('WorkflowChecklist', () => {}render(<WorkflowChecklist disabled={false} />)- await user.click(screen.getByRole('button', { name: 'workflow.panel.checklist' }))+ await user.click(screen.getByRole('button', { name: 'workflow.panel.checklist 2' }))await user.click(screen.getByTestId('node-group-Inline Agent'))expect(mockHandleNodeSelect).toHaveBeenCalledWith('node-1')diff --git a/web/app/components/workflow/header/checklist/index.tsx b/web/app/components/workflow/header/checklist/index.tsxindex 856b56f0726..6981e8562a0 100644--- a/web/app/components/workflow/header/checklist/index.tsx+++ b/web/app/components/workflow/header/checklist/index.tsx@@ -72,8 +72,8 @@ const WorkflowChecklist = ({ disabled, showGoTo = true, onItemClick }: WorkflowC'data-disabled:cursor-not-allowed data-disabled:opacity-50',)}disabled={disabled || undefined}- aria-label={checklistLabel}>+ <span className="sr-only">{checklistLabel}</span><span className="flex size-full items-center justify-center rounded-md group-data-popup-open:bg-state-accent-hover hover:bg-state-accent-hover"><spanclassName="i-ri-list-check-3 size-4 text-components-button-ghost-text group-hover:text-components-button-secondary-accent-text group-data-popup-open:text-components-button-secondary-accent-text"diff --git a/web/app/components/workflow/hooks/__tests__/use-edge-accessible-label.spec.tsx b/web/app/components/workflow/hooks/__tests__/use-edge-accessible-label.spec.tsxnew file mode 100644index 00000000000..bc4ecc80db5--- /dev/null+++ b/web/app/components/workflow/hooks/__tests__/use-edge-accessible-label.spec.tsx@@ -0,0 +1,162 @@+import type { Edge, Node } from '../../types'+import { render, screen } from '@testing-library/react'+import userEvent from '@testing-library/user-event'+import { useLayoutEffect } from 'react'+import { ReactFlowProvider, useStoreApi } from 'reactflow'+import { createReactI18nextMock } from '@/test/i18n-mock'+import { BlockEnum } from '../../types'+import { useEdgeAccessibleLabel } from '../use-edge-accessible-label'++vi.mock('react-i18next', () =>+ createReactI18nextMock({+ 'workflow.common.edgeLabel': 'Connection from {{source}} to {{target}}',+ 'workflow.common.onFailure': 'On failure',+ 'workflow.nodes.questionClassifiers.class': 'Class',+ 'workflow.nodes.humanInput.timeout.title': 'Timeout',+ }),+)++const makeNode = (id: string, title: string, data: Partial<Node['data']> = {}): Node => ({+ id,+ position: { x: 0, y: 0 },+ data: { title, desc: '', type: BlockEnum.LLM, ...data },+})++// Exercise the hook's DOM integration with the wrapper owned by React Flow 11.+const EdgeLabel = ({ sourceHandleId }: { sourceHandleId?: string }) => {+ const ref = useEdgeAccessibleLabel('source', 'target', sourceHandleId)+ return (+ <svg>+ <g className="react-flow__edge" role="button" aria-label="Edge from source to target">+ <g ref={ref} />+ </g>+ </svg>+ )+}++const EdgeLabelHarness = ({+ sourceNode = makeNode('source', 'Research'),+ sourceHandleId,+ onReadEdges,+}: {+ sourceNode?: Node+ sourceHandleId?: string+ onReadEdges?: (edges: Edge[]) => void+}) => {+ const store = useStoreApi()+ const { setNodes, setEdges } = store.getState()+ const updateNodes = (update: (nodes: Node[]) => Node[]) =>+ setNodes(update(Array.from(store.getState().nodeInternals.values()) as Node[]))+ useLayoutEffect(() => {+ setNodes([sourceNode, makeNode('target', 'Answer')])+ setEdges([+ { id: 'connection', source: 'source', target: 'target', sourceHandle: sourceHandleId },+ ])+ }, [setEdges, setNodes, sourceHandleId, sourceNode])+ return (+ <>+ <EdgeLabel sourceHandleId={sourceHandleId} />+ <button+ type="button"+ onClick={() =>+ updateNodes((nodes) =>+ nodes.map((node) =>+ node.id === 'source'+ ? { ...node, data: { ...node.data, title: 'Retrieve documents' } }+ : node,+ ),+ )+ }+ >+ Rename source+ </button>+ <button+ type="button"+ onClick={() =>+ updateNodes((nodes) =>+ nodes.map((node) =>+ node.id === 'target'+ ? { ...node, data: { ...node.data, title: 'Final response' } }+ : node,+ ),+ )+ }+ >+ Rename target+ </button>+ <button+ type="button"+ onClick={() => {+ onReadEdges?.(store.getState().edges)+ }}+ >+ Verify graph data+ </button>+ </>+ )+}++const renderEdge = (props: Parameters<typeof EdgeLabelHarness>[0] = {}) =>+ render(+ <ReactFlowProvider>+ <EdgeLabelHarness {...props} />+ </ReactFlowProvider>,+ )++describe('edge accessible labels', () => {+ it('uses current node titles after either endpoint is renamed without storing presentation metadata', async () => {+ const user = userEvent.setup()+ const onReadEdges = vi.fn()+ renderEdge({ onReadEdges })+ expect(+ screen.getByRole('button', { name: 'Connection from Research to Answer' }),+ ).toBeInTheDocument()++ await user.click(screen.getByRole('button', { name: 'Rename source' }))+ expect(+ screen.getByRole('button', { name: 'Connection from Retrieve documents to Answer' }),+ ).toBeInTheDocument()+ await user.click(screen.getByRole('button', { name: 'Rename target' }))+ expect(+ screen.getByRole('button', { name: 'Connection from Retrieve documents to Final response' }),+ ).toBeInTheDocument()+ await user.click(screen.getByRole('button', { name: 'Verify graph data' }))+ expect(onReadEdges).toHaveBeenCalledWith([+ { id: 'connection', source: 'source', target: 'target', sourceHandle: undefined },+ ])+ })++ it.each([+ [+ BlockEnum.IfElse,+ 'false',+ [+ { id: 'true', name: 'IF' },+ { id: 'false', name: 'ELSE' },+ ],+ 'ELSE',+ ],+ [+ BlockEnum.QuestionClassifier,+ 'support',+ [+ { id: 'sales', name: 'Sales' },+ { id: 'support', name: 'Support' },+ ],+ 'Class 2: Support',+ ],+ [BlockEnum.LLM, 'fail-branch', undefined, 'On failure'],+ [BlockEnum.HumanInput, '__timeout', undefined, 'Timeout'],+ ])(+ 'identifies the %s output branch by its meaning',+ (type, sourceHandleId, branches, branchLabel) => {+ renderEdge({+ sourceNode: makeNode('source', 'Decision', { type, _targetBranches: branches }),+ sourceHandleId,+ })+ expect(+ screen.getByRole('button', { name: `Connection from Decision (${branchLabel}) to Answer` }),+ ).toBeInTheDocument()+ },+ )+})diff --git a/web/app/components/workflow/hooks/use-edge-accessible-label.ts b/web/app/components/workflow/hooks/use-edge-accessible-label.tsnew file mode 100644index 00000000000..547317175db--- /dev/null+++ b/web/app/components/workflow/hooks/use-edge-accessible-label.ts@@ -0,0 +1,65 @@+import type { HumanInputNodeType } from '../nodes/human-input/types'+import type { CommonNodeType } from '../types'+import { useLayoutEffect, useRef } from 'react'+import { useTranslation } from 'react-i18next'+import { useStore } from 'reactflow'+import { ErrorHandleTypeEnum } from '../nodes/_base/components/error-handle/types'+import { BlockEnum } from '../types'++export const useEdgeAccessibleLabel = (+ source: string,+ target: string,+ sourceHandleId?: string | null,+) => {+ const { t } = useTranslation()+ const edgeRef = useRef<SVGGElement>(null)+ const label = useStore((state) => {+ // React Flow's node map keeps this subscription local to the two endpoints.+ const sourceData = state.nodeInternals.get(source)?.data as CommonNodeType | undefined+ const targetData = state.nodeInternals.get(target)?.data as CommonNodeType | undefined+ if (!sourceData || !targetData) return undefined++ let branchName = sourceData._targetBranches?.find(+ (branch) => branch.id === sourceHandleId,+ )?.name+ if (sourceData.type === BlockEnum.QuestionClassifier) {+ const branchIndex =+ sourceData._targetBranches?.findIndex((branch) => branch.id === sourceHandleId) ?? -1+ if (branchIndex >= 0) {+ const classLabel = `${t(($) => $['nodes.questionClassifiers.class'], { ns: 'workflow' })} ${branchIndex + 1}`+ branchName = branchName ? `${classLabel}: ${branchName}` : classLabel+ }+ }+ if (sourceData.type === BlockEnum.HumanInput) {+ branchName =+ sourceHandleId === '__timeout'+ ? t(($) => $['nodes.humanInput.timeout.title'], { ns: 'workflow' })+ : (sourceData as HumanInputNodeType).user_actions?.find(+ (action) => action.id === sourceHandleId,+ )?.title ||+ sourceHandleId ||+ undefined+ }+ if (sourceHandleId === ErrorHandleTypeEnum.failBranch)+ branchName = t(($) => $['common.onFailure'], { ns: 'workflow' })++ const sourceTitle =+ sourceData.title || t(($) => $[`blocks.${sourceData.type}`], { ns: 'workflow' })+ const targetTitle =+ targetData.title || t(($) => $[`blocks.${targetData.type}`], { ns: 'workflow' })+ return t(($) => $['common.edgeLabel'], {+ ns: 'workflow',+ source: branchName ? `${sourceTitle} (${branchName})` : sourceTitle,+ target: targetTitle,+ })+ })++ useLayoutEffect(() => {+ // React Flow 11 owns the focusable wrapper and has no wrapper slot. Keep its+ // accessible name in the rendered SVG, out of persisted graph edge data.+ const edgeWrapper = edgeRef.current?.closest('.react-flow__edge')+ if (edgeWrapper && label) edgeWrapper.setAttribute('aria-label', label)+ }, [label, source, target])++ return edgeRef+}diff --git a/web/app/components/workflow/hooks/use-workflow-control-scale.ts b/web/app/components/workflow/hooks/use-workflow-control-scale.tsnew file mode 100644index 00000000000..2666f29a46e--- /dev/null+++ b/web/app/components/workflow/hooks/use-workflow-control-scale.ts@@ -0,0 +1,32 @@+import type { RefObject } from 'react'+import { useLayoutEffect } from 'react'+import { useStoreApi } from 'reactflow'++// Keep canvas controls usable when zoomed out without subscribing every node to viewport changes.+export function useWorkflowControlScale(containerRef: RefObject<HTMLDivElement | null>) {+ const store = useStoreApi()++ useLayoutEffect(() => {+ const container = containerRef.current+ if (!container) return++ let currentScale: number | undefined+ const updateScale = (zoom: number) => {+ const scale = Math.max(1, 1 / zoom)+ if (scale === currentScale) return++ currentScale = scale+ container.style.setProperty('--workflow-control-scale', String(scale))+ }++ updateScale(store.getState().transform[2])+ const unsubscribe = store.subscribe((state, previousState) => {+ if (state.transform[2] !== previousState.transform[2]) updateScale(state.transform[2])+ })++ return () => {+ unsubscribe()+ container.style.removeProperty('--workflow-control-scale')+ }+ }, [containerRef, store])+}diff --git a/web/app/components/workflow/index.tsx b/web/app/components/workflow/index.tsxindex 3d99f3db45f..dfe147756b0 100644--- a/web/app/components/workflow/index.tsx+++ b/web/app/components/workflow/index.tsx@@ -80,6 +80,7 @@ import { useSelectionInteractions } from './hooks/use-selection-interactions'import { useSetWorkflowVarsWithValue } from './hooks/use-set-workflow-vars-with-value'import { useNodesReadOnly, useWorkflow, useWorkflowReadOnly } from './hooks/use-workflow'import { useWorkflowComment } from './hooks/use-workflow-comment'+import { useWorkflowControlScale } from './hooks/use-workflow-control-scale'import { useWorkflowRefreshDraft } from './hooks/use-workflow-refresh-draft'import { useWorkflowSearch } from './hooks/use-workflow-search'import { shouldPreventWorkflowBrowserDefault } from './hotkeys'@@ -186,6 +187,7 @@ export const Workflow: FC<WorkflowProps> = memo(}) => {const { t } = useTranslation()const workflowContainerRef = useRef<HTMLDivElement>(null)+ useWorkflowControlScale(workflowContainerRef)const workflowStore = useWorkflowStore()const reactflow = useReactFlow()const store = useStoreApi()diff --git a/web/app/components/workflow/node-actions-menu/index.tsx b/web/app/components/workflow/node-actions-menu/index.tsxindex 3f99d61e156..2d6791e35db 100644--- a/web/app/components/workflow/node-actions-menu/index.tsx+++ b/web/app/components/workflow/node-actions-menu/index.tsx@@ -5,6 +5,7 @@ import {DropdownMenuContent,DropdownMenuTrigger,} from '@langgenius/dify-ui/dropdown-menu'+import { IconButton } from '@langgenius/dify-ui/icon-button'import { useCallback, useState } from 'react'import { useTranslation } from 'react-i18next'import { NodeActionsDropdownContent } from './dropdown-content'@@ -45,17 +46,13 @@ export function NodeActionsDropdown({<DropdownMenu modal={false} open={open} onOpenChange={handleOpenChange}><DropdownMenuTriggerrender={- <button- type="button"+ <IconButton+ size="md"aria-label={t(($) => $['operation.more'], { ns: 'common' })}- className={cn(- 'flex size-6 cursor-pointer items-center justify-center rounded-md border-0 bg-transparent p-0 text-text-tertiary hover:bg-state-base-hover',- 'focus-visible:ring-1 focus-visible:ring-components-input-border-hover focus-visible:outline-hidden data-popup-open:bg-state-base-hover',- triggerClassName,- )}+ className={cn('data-popup-open:bg-state-base-hover', triggerClassName)}><span aria-hidden className="i-ri-more-fill size-4" />- </button>+ </IconButton>}/><DropdownMenuContent placement="bottom-end" className={NODE_ACTIONS_MENU_WIDTH_CLASS_NAME}>diff --git a/web/app/components/workflow/nodes/_base/components/__tests__/node-handle.browser.spec.tsx b/web/app/components/workflow/nodes/_base/components/__tests__/node-handle.browser.spec.tsxnew file mode 100644index 00000000000..4f08d3b2c6d--- /dev/null+++ b/web/app/components/workflow/nodes/_base/components/__tests__/node-handle.browser.spec.tsx@@ -0,0 +1,305 @@+import type { RefObject } from 'react'+import type { Connection, NodeProps } from 'reactflow'+import type { CommonNodeType, OnSelectBlock } from '../../../../types'+import type { HumanInputNodeType } from '../../../human-input/types'+import { useRef, useState } from 'react'+import ReactFlow, { ReactFlowProvider, useReactFlow } from 'reactflow'+import { page, userEvent } from 'vite-plus/test/browser'+import { render } from 'vitest-browser-react'+import { WorkflowContext } from '../../../../context'+import CustomEdge from '../../../../custom-edge'+import { useWorkflowControlScale } from '../../../../hooks/use-workflow-control-scale'+import { createWorkflowStore } from '../../../../store/workflow'+import { BlockEnum } from '../../../../types'+import HumanInputNode from '../../../human-input/node'+import { UserActionButtonType } from '../../../human-input/types'+import { NodeSourceHandle, NodeTargetHandle } from '../node-handle'+import 'reactflow/dist/style.css'+import '../../../../style.css'++const { handleNodeAdd } = vi.hoisted(() => ({ handleNodeAdd: vi.fn() }))++vi.mock('../../../../hooks/use-available-blocks', () => ({+ useAvailableBlocks: () => ({+ availablePrevBlocks: [BlockEnum.Code],+ availableNextBlocks: [BlockEnum.Code],+ }),+}))+vi.mock('../../../../hooks/use-nodes-interactions', () => ({+ useNodesInteractions: () => ({ handleNodeAdd }),+}))+vi.mock('../../../../hooks/use-workflow', () => ({+ useIsChatMode: () => false,+ useNodesReadOnly: () => ({ getNodesReadOnly: () => false }),+}))+vi.mock('../../../../hooks-store', () => ({+ useHooksStore: (selector: (state: object) => unknown) => selector({}),+}))+// Search results are outside the handle's hit testing and connection contract.+vi.mock('../../../../block-selector/tabs', () => ({+ BlockSelectorPanels: ({+ searchInputRef,+ onSelect,+ }: {+ searchInputRef: RefObject<HTMLInputElement>+ onSelect: OnSelectBlock+ }) => (+ <>+ <input ref={searchInputRef} aria-label="Find a node" />+ <button type="button" onClick={() => onSelect(BlockEnum.Code)}>+ Add code node+ </button>+ </>+ ),+}))++beforeEach(() => {+ vi.clearAllMocks()+})++function HandleNode({ id, data }: NodeProps<CommonNodeType>) {+ return (+ <div role="group" aria-label={data.title} className="group" style={{ width: 160, height: 80 }}>+ {data.title}+ {id === 'source' ? (+ <NodeSourceHandle id={id} data={data} handleId="out" />+ ) : (+ <NodeTargetHandle id={id} data={data} handleId="in" />+ )}+ </div>+ )+}++function HumanInputHandleNode({ id, data }: NodeProps<HumanInputNodeType>) {+ return (+ <div role="group" aria-label={data.title} className="group" style={{ width: 240 }}>+ <HumanInputNode id={id} data={data} />+ </div>+ )+}++const nodeTypes = { handles: HandleNode, humanInput: HumanInputHandleNode }+const edgeTypes = { custom: CustomEdge }+const nodes = [+ {+ id: 'source',+ type: 'handles',+ position: { x: 100, y: 160 },+ data: { title: 'Source node', desc: '', type: BlockEnum.Code },+ },+ {+ id: 'target',+ type: 'handles',+ position: { x: 600, y: 160 },+ data: { title: 'Target node', desc: '', type: BlockEnum.Code },+ },+]++const humanInputData: HumanInputNodeType = {+ title: 'Human input node',+ desc: '',+ type: BlockEnum.HumanInput,+ delivery_methods: [],+ form_content: 'Please review this request',+ inputs: [],+ user_actions: [+ { id: 'approve', title: 'Approve', button_style: UserActionButtonType.Primary },+ { id: 'reject', title: 'Reject', button_style: UserActionButtonType.Default },+ ],+ timeout: 3,+ timeout_unit: 'day',+}++function Canvas({+ initialZoom = 1,+ showEdge = false,+ humanInput = false,+}: {+ initialZoom?: number+ showEdge?: boolean+ humanInput?: boolean+}) {+ const containerRef = useRef<HTMLDivElement>(null)+ const { setViewport } = useReactFlow()+ const [connection, setConnection] = useState<Connection | null>(null)+ useWorkflowControlScale(containerRef)+ return (+ <>+ {[1, 0.5, 0.25].map((zoom) => (+ <button key={zoom} type="button" onClick={() => setViewport({ x: 0, y: 0, zoom })}>+ Zoom {zoom * 100}%+ </button>+ ))}+ <output aria-label="Connection">+ {connection &&+ `${connection.source}:${connection.sourceHandle} → ${connection.target}:${connection.targetHandle}`}+ </output>+ <div ref={containerRef} style={{ width: 900, height: 400 }}>+ <ReactFlow+ defaultNodes={+ humanInput+ ? nodes.map((node) =>+ node.id === 'source'+ ? { ...node, type: 'humanInput', data: humanInputData }+ : node,+ )+ : nodes+ }+ defaultViewport={{ x: 0, y: 0, zoom: initialZoom }}+ defaultEdges={+ showEdge+ ? [+ {+ id: 'connection',+ source: 'source',+ sourceHandle: 'out',+ target: 'target',+ targetHandle: 'in',+ type: 'custom',+ data: { sourceType: BlockEnum.Code, targetType: BlockEnum.Code },+ },+ ]+ : []+ }+ nodeTypes={nodeTypes}+ edgeTypes={edgeTypes}+ minZoom={0.25}+ nodesFocusable={false}+ onConnect={setConnection}+ />+ </div>+ </>+ )+}++function Fixture(props: { initialZoom?: number; showEdge?: boolean; humanInput?: boolean }) {+ const [store] = useState(() => createWorkflowStore({}))+ return (+ <WorkflowContext value={store}>+ <ReactFlowProvider>+ <Canvas {...props} />+ </ReactFlowProvider>+ </WorkflowContext>+ )+}++it.each([1, 0.5, 0.25])(+ 'keeps real handles clickable at their edges and draggable at zoom %s',+ async (zoom) => {+ // Native hit testing under both ReactFlow and control transforms is not represented by DOM unit tests.+ await page.viewport(1100, 700)+ const screen = await render(<Fixture />)+ await screen.getByRole('button', { name: `Zoom ${zoom * 100}%` }).click()+ // ReactFlow handle elements are a canvas boundary without a semantic locator.+ const source = page.elementLocator(+ screen+ .getByRole('group', { name: 'Source node' })+ .element()+ .querySelector('[data-handleid="out"]')!,+ )+ const target = page.elementLocator(+ screen+ .getByRole('group', { name: 'Target node' })+ .element()+ .querySelector('[data-handleid="in"]')!,+ )++ for (const handle of [source, target]) {+ const button = page+ .elementLocator(handle.element())+ .getByRole('button', { name: 'workflow.common.addBlock' })+ await expect.poll(() => button.element().getBoundingClientRect().width).toBeCloseTo(24)+ expect(button.element().getBoundingClientRect().height).toBeCloseTo(24)+ const handleBounds = handle.element().getBoundingClientRect()+ const buttonBounds = button.element().getBoundingClientRect()+ await handle.click({+ position: {+ x: buttonBounds.left + 1 - handleBounds.left,+ y: buttonBounds.top + 1 - handleBounds.top,+ },+ })+ await expect.element(screen.getByRole('textbox', { name: 'Find a node' })).toHaveFocus()+ await userEvent.keyboard('{Escape}')+ await expect+ .element(screen.getByRole('textbox', { name: 'Find a node' }))+ .not.toBeInTheDocument()+ }++ await userEvent.dragAndDrop(source, target)+ await expect+ .element(screen.getByLabelText('Connection'))+ .toHaveTextContent('source:out → target:in')+ },+)++it('keeps a saved connection anchored to the port centers when initialized at 25% zoom', async () => {+ await page.viewport(1100, 700)+ const screen = await render(<Fixture initialZoom={0.25} showEdge />)+ const source = screen+ .getByRole('group', { name: 'Source node' })+ .element()+ .querySelector('[data-handleid="out"]')!+ const target = screen+ .getByRole('group', { name: 'Target node' })+ .element()+ .querySelector('[data-handleid="in"]')!+ const path = () => document.querySelector<SVGPathElement>('.react-flow__edge-path')!+ await expect.poll(() => path()).not.toBeNull()++ const endpoint = (atEnd: boolean) => {+ const edge = path()+ return edge+ .getPointAtLength(atEnd ? edge.getTotalLength() : 0)+ .matrixTransform(edge.getScreenCTM()!)+ }+ for (const [port, atEnd] of [+ [source, false],+ [target, true],+ ] as const) {+ await expect+ .poll(() => {+ const bounds = port.getBoundingClientRect()+ const point = endpoint(atEnd)+ return Math.hypot(+ point.x - (bounds.left + bounds.width / 2),+ point.y - (bounds.top + bounds.height / 2),+ )+ })+ .toBeLessThan(0.5)+ }+})++it('adds and connects the intended human input branch at 25% zoom', async () => {+ // The production branch rows are closer than 24 screen pixels at this zoom.+ // Native hit testing must route clicks and drags to the selected branch, not its neighbor.+ await page.viewport(1100, 700)+ const screen = await render(<Fixture initialZoom={0.25} humanInput />)+ const sourceNode = screen.getByRole('group', { name: 'Human input node' })+ const target = page.elementLocator(+ screen+ .getByRole('group', { name: 'Target node' })+ .element()+ .querySelector('[data-handleid="in"]')!,+ )++ for (const handleId of ['approve', 'reject', '__timeout']) {+ // ReactFlow exposes handle IDs at the canvas boundary, without semantic roles.+ const source = page.elementLocator(+ sourceNode.element().querySelector(`[data-handleid="${handleId}"]`)!,+ )+ await source.click()+ await screen.getByRole('button', { name: 'Add code node' }).click()+ expect(handleNodeAdd).toHaveBeenLastCalledWith(+ { nodeType: BlockEnum.Code, pluginDefaultValue: undefined },+ { prevNodeId: 'source', prevNodeSourceHandle: handleId },+ )+ await expect+ .element(screen.getByRole('textbox', { name: 'Find a node' }))+ .not.toBeInTheDocument()++ await userEvent.dragAndDrop(source, target)+ await expect+ .element(screen.getByLabelText('Connection'))+ .toHaveTextContent(`source:${handleId} → target:in`)+ }+})diff --git a/web/app/components/workflow/nodes/_base/components/__tests__/title-description-input.spec.tsx b/web/app/components/workflow/nodes/_base/components/__tests__/title-description-input.spec.tsxnew file mode 100644index 00000000000..3a8b7ab6491--- /dev/null+++ b/web/app/components/workflow/nodes/_base/components/__tests__/title-description-input.spec.tsx@@ -0,0 +1,42 @@+import { render, screen } from '@testing-library/react'+import userEvent from '@testing-library/user-event'+import { DescriptionInput, TitleInput } from '../title-description-input'++describe('Node title and description fields', () => {+ it('keeps labels associated with populated fields and activates the named control', async () => {+ const user = userEvent.setup()+ render(+ <>+ <TitleInput value="Summarize" onBlur={vi.fn()} />+ <DescriptionInput value="Summarize the document" onChange={vi.fn()} />+ </>,+ )++ const title = screen.getByRole('textbox', { name: 'workflow.common.nodeTitle' })+ const description = screen.getByRole('textbox', { name: 'workflow.common.nodeDescription' })+ expect(title).toHaveValue('Summarize')+ expect(description).toHaveValue('Summarize the document')++ await user.click(screen.getByText('workflow.common.nodeTitle'))+ expect(title).toHaveFocus()+ await user.click(screen.getByText('workflow.common.nodeDescription'))+ expect(description).toHaveFocus()+ })++ it('commits a title with Enter and restores its previous value when cleared', async () => {+ const user = userEvent.setup()+ const onBlur = vi.fn()+ render(<TitleInput value="Summarize" onBlur={onBlur} />)+ const title = screen.getByRole('textbox', { name: 'workflow.common.nodeTitle' })++ await user.click(title)+ await user.clear(title)+ await user.type(title, 'Translate{Enter}')+ expect(onBlur).toHaveBeenLastCalledWith('Translate')++ await user.clear(title)+ await user.tab()+ expect(title).toHaveValue('Summarize')+ expect(onBlur).toHaveBeenLastCalledWith('Summarize')+ })+})diff --git a/web/app/components/workflow/nodes/_base/components/next-step/__tests__/item.browser.spec.tsx b/web/app/components/workflow/nodes/_base/components/next-step/__tests__/item.browser.spec.tsxnew file mode 100644index 00000000000..a1b8eaf7c83--- /dev/null+++ b/web/app/components/workflow/nodes/_base/components/next-step/__tests__/item.browser.spec.tsx@@ -0,0 +1,53 @@+import type { CommonNodeType } from '@/app/components/workflow/types'+import { page, userEvent } from 'vite-plus/test/browser'+import { render } from 'vitest-browser-react'+import { BlockEnum } from '@/app/components/workflow/types'+import Item from '../item'++const { handleNodeSelect } = vi.hoisted(() => ({ handleNodeSelect: vi.fn() }))++vi.mock('../../../../../hooks/use-nodes-interactions', () => ({+ useNodesInteractions: () => ({ handleNodeSelect }),+}))+vi.mock('../../../../../hooks/use-tool-icon', () => ({ useToolIcon: () => '' }))+vi.mock('../../../../../hooks/use-workflow', () => ({+ useNodesReadOnly: () => ({ nodesReadOnly: false }),+}))+vi.mock('../../../../../hooks/use-available-blocks', () => ({+ useAvailableBlocks: () => ({ availablePrevBlocks: [], availableNextBlocks: [] }),+}))++// Real CSS and sequential focus catch controls skipped by Tab or hidden when menu focus returns.+it('reveals next-step actions to keyboard users and keeps restored focus visible', async () => {+ await render(+ <>+ <button type="button">Before next step</button>+ <div style={{ width: 400, marginTop: 80 }}>+ <Item+ nodeId="next-node"+ sourceHandle="source"+ data={{ type: BlockEnum.Code, title: 'Transform', desc: '' } as CommonNodeType}+ />+ </div>+ </>,+ )+ await page.getByRole('button', { name: 'Before next step' }).click()+ await userEvent.keyboard('{Tab}')+ const jump = page.getByRole('button', { name: 'workflow.common.jumpToNode' })+ await expect.element(jump).toHaveFocus()+ expect(jump.element().checkVisibility({ opacityProperty: true })).toBe(true)+ await userEvent.keyboard('{Enter}')+ expect(handleNodeSelect).toHaveBeenCalledWith('next-node')++ await userEvent.keyboard('{Tab}')+ const more = page.getByRole('button', { name: 'workflow.common.moreActions' })+ await expect.element(more).toHaveFocus()+ expect(more.element().checkVisibility({ opacityProperty: true })).toBe(true)+ await userEvent.keyboard('{Enter}')+ await expect.element(page.getByRole('menuitem', { name: 'workflow.panel.change' })).toHaveFocus()+ await userEvent.keyboard('{Escape}')++ await expect.element(page.getByRole('menu')).not.toBeInTheDocument()+ await expect.element(more).toHaveFocus()+ expect(more.element().checkVisibility({ opacityProperty: true })).toBe(true)+})diff --git a/web/app/components/workflow/nodes/_base/components/next-step/__tests__/operator.spec.tsx b/web/app/components/workflow/nodes/_base/components/next-step/__tests__/operator.spec.tsxindex eae00f53d9d..131f44ea0d1 100644--- a/web/app/components/workflow/nodes/_base/components/next-step/__tests__/operator.spec.tsx+++ b/web/app/components/workflow/nodes/_base/components/next-step/__tests__/operator.spec.tsx@@ -2,6 +2,8 @@ import type { CommonNodeType } from '@/app/components/workflow/types'import { render, screen } from '@testing-library/react'import userEvent from '@testing-library/user-event'import { useState } from 'react'+import { ReactFlowProvider } from 'reactflow'+import { renderWorkflowComponent } from '@/app/components/workflow/__tests__/workflow-test-env'import { BlockEnum } from '@/app/components/workflow/types'import { useAvailableBlocks } from '../../../../../hooks/use-available-blocks'import { useNodesInteractions } from '../../../../../hooks/use-nodes-interactions'@@ -70,7 +72,7 @@ describe('NextStep operator', () => {const user = userEvent.setup()render(<TestHarness />)- await user.click(screen.getAllByRole('button')[0]!)+ await user.click(screen.getByRole('button', { name: 'workflow.common.moreActions' }))expect(screen.getByText('workflow.panel.change')).toBeInTheDocument()expect(screen.getByText('workflow.common.disconnect')).toBeInTheDocument()@@ -81,13 +83,47 @@ describe('NextStep operator', () => {const user = userEvent.setup()render(<TestHarness />)- await user.click(screen.getAllByRole('button')[0]!)+ await user.click(screen.getByRole('button', { name: 'workflow.common.moreActions' }))await user.click(screen.getByText('workflow.common.disconnect'))expect(mockHandleNodeDisconnect).toHaveBeenCalledWith('node-1')expect(screen.queryByText('workflow.common.disconnect')).not.toBeInTheDocument()- await user.click(screen.getAllByRole('button')[0]!)+ await user.click(screen.getByRole('button', { name: 'workflow.common.moreActions' }))await user.click(screen.getByText('common.operation.delete'))expect(mockHandleNodeDelete).toHaveBeenCalledWith('node-1')})++ it.each([+ ['workflow.common.disconnect', '{ArrowDown}', mockHandleNodeDisconnect],+ ['common.operation.delete', '{End}', mockHandleNodeDelete],+ ])('activates %s with the keyboard', async (name, navigation, handler) => {+ const user = userEvent.setup()+ render(<TestHarness />)++ await user.tab()+ await user.keyboard('{ArrowDown}')+ expect(await screen.findByRole('menuitem', { name: 'workflow.panel.change' })).toHaveFocus()+ await user.keyboard(navigation)+ expect(screen.getByRole('menuitem', { name })).toHaveFocus()+ await user.keyboard('{Enter}')++ expect(handler).toHaveBeenCalledWith('node-1')+ expect(screen.queryByRole('menu')).not.toBeInTheDocument()+ })++ it('opens the node selector from the change menu item with the keyboard', async () => {+ const user = userEvent.setup()+ renderWorkflowComponent(+ <ReactFlowProvider>+ <TestHarness />+ </ReactFlowProvider>,+ )++ await user.tab()+ await user.keyboard('{ArrowDown}{Enter}')++ expect(+ await screen.findByRole('dialog', { name: 'workflow.common.addBlock' }),+ ).toBeInTheDocument()+ })})diff --git a/web/app/components/workflow/nodes/_base/components/next-step/item.tsx b/web/app/components/workflow/nodes/_base/components/next-step/item.tsxindex dd2a9739edb..ea3975da27a 100644--- a/web/app/components/workflow/nodes/_base/components/next-step/item.tsx+++ b/web/app/components/workflow/nodes/_base/components/next-step/item.tsx@@ -34,13 +34,18 @@ const Item = ({ nodeId, sourceHandle, data }: ItemProps) => {{!nodesReadOnly && (<><Button- className="mr-1 hidden shrink-0 group-hover:flex"+ className="mr-1 shrink-0 opacity-0 group-focus-within:opacity-100 group-hover:opacity-100"size="small"onClick={() => handleNodeSelect(nodeId)}>{t(($) => $['common.jumpToNode'], { ns: 'workflow' })}</Button>- <div className={cn('hidden shrink-0 items-center group-hover:flex', open && 'flex')}>+ <div+ className={cn(+ 'flex shrink-0 items-center opacity-0 group-focus-within:opacity-100 group-hover:opacity-100',+ open && 'opacity-100',+ )}+ ><Operatordata={data}nodeId={nodeId}diff --git a/web/app/components/workflow/nodes/_base/components/next-step/operator.tsx b/web/app/components/workflow/nodes/_base/components/next-step/operator.tsxindex c4041980f85..69a124f3d11 100644--- a/web/app/components/workflow/nodes/_base/components/next-step/operator.tsx+++ b/web/app/components/workflow/nodes/_base/components/next-step/operator.tsx@@ -1,7 +1,8 @@import type { CommonNodeType, OnSelectBlock } from '@/app/components/workflow/types'-import { Button } from '@langgenius/dify-ui/button'+import { buttonVariants } from '@langgenius/dify-ui/button'import {DropdownMenu,+ DropdownMenuItem,DropdownMenuPopup,DropdownMenuPortal,DropdownMenuPositioner,@@ -39,9 +40,19 @@ const ChangeItem = ({ data, nodeId, sourceHandle }: ChangeItemProps) => {)const triggerElement = (- <Button variant="ghost" size="medium" className="w-full justify-start px-2">+ <DropdownMenuItem+ nativeButton+ render={<button type="button" />}+ closeOnClick={false}+ className={buttonVariants({+ variant: 'ghost',+ size: 'medium',+ className:+ 'mx-0 w-full justify-start px-2 data-highlighted:bg-components-button-ghost-bg-hover',+ })}+ >{t(($) => $['panel.change'], { ns: 'workflow' })}- </Button>+ </DropdownMenuItem>)return (@@ -90,26 +101,26 @@ const Operator = ({ open, onOpenChange, data, nodeId, sourceHandle }: OperatorPr<div className="min-w-30 rounded-xl border-[0.5px] border-components-panel-border bg-components-panel-bg-blur system-md-regular text-text-secondary shadow-lg"><div className="p-1"><ChangeItem data={data} nodeId={nodeId} sourceHandle={sourceHandle} />- <div- className="flex h-8 cursor-pointer items-center rounded-lg px-2 hover:bg-state-base-hover"+ <DropdownMenuItem+ className="mx-0"onClick={() => {onOpenChange(false)handleNodeDisconnect(nodeId)}}>{t(($) => $['common.disconnect'], { ns: 'workflow' })}- </div>+ </DropdownMenuItem></div><div className="p-1">- <div- className="flex h-8 cursor-pointer items-center rounded-lg px-2 hover:bg-state-base-hover"+ <DropdownMenuItem+ className="mx-0"onClick={() => {onOpenChange(false)handleNodeDelete(nodeId)}}>{t(($) => $['operation.delete'], { ns: 'common' })}- </div>+ </DropdownMenuItem></div></div></DropdownMenuPopup>diff --git a/web/app/components/workflow/nodes/_base/components/node-control.tsx b/web/app/components/workflow/nodes/_base/components/node-control.tsxindex 13699a140c5..882c6286e16 100644--- a/web/app/components/workflow/nodes/_base/components/node-control.tsx+++ b/web/app/components/workflow/nodes/_base/components/node-control.tsx@@ -4,7 +4,6 @@ import { cn } from '@langgenius/dify-ui/cn'import { Tooltip, TooltipContent, TooltipTrigger } from '@langgenius/dify-ui/tooltip'import { memo } from 'react'import { useTranslation } from 'react-i18next'-import { Stop } from '@/app/components/base/icons/src/vender/line/mediaAndDevices'import { useHooksStore } from '@/app/components/workflow/hooks-store'import { NodeActionsDropdown } from '@/app/components/workflow/node-actions-menu'import { useWorkflowStore } from '@/app/components/workflow/store'@@ -28,14 +27,15 @@ const NodeControl: FC<NodeControlProps> = ({ id, data, pluginInstallLocked }) =>return (<divclassName={cn(- 'invisible absolute -top-7 right-0 flex h-7 pb-1',+ 'invisible absolute -top-8 right-0 flex h-8 origin-bottom-right pb-1',!pluginInstallLocked && 'group-hover:visible',data.selected && 'visible','has-data-popup-open:visible',)}+ style={{ scale: 'var(--workflow-control-scale, 1)' }}><div- className="nodrag nopan nowheel flex h-6 items-center rounded-lg border-[0.5px] border-components-actionbar-border bg-components-actionbar-bg px-0.5 text-text-tertiary shadow-md backdrop-blur-[5px]"+ className="nodrag nopan nowheel flex h-7 items-center rounded-lg border-[0.5px] border-components-actionbar-border bg-components-actionbar-bg px-0.5 text-text-tertiary shadow-md backdrop-blur-[5px]"onMouseDown={(e) => e.stopPropagation()}onClick={(e) => e.stopPropagation()}>@@ -47,7 +47,7 @@ const NodeControl: FC<NodeControlProps> = ({ id, data, pluginInstallLocked }) =>? t(($) => $['debug.variableInspect.trigger.stop'], { ns: 'workflow' }): t(($) => $['panel.runThisStep'], { ns: 'workflow' })}- className={`flex size-5 items-center justify-center rounded-md ${isSingleRunning && 'cursor-pointer hover:bg-state-base-hover'}`}+ className={`flex size-6 items-center justify-center rounded-md ${isSingleRunning && 'cursor-pointer hover:bg-state-base-hover'}`}onClick={() => {const action = isSingleRunning ? 'stop' : 'run'@@ -61,7 +61,7 @@ const NodeControl: FC<NodeControlProps> = ({ id, data, pluginInstallLocked }) =>}}>{isSingleRunning ? (- <Stop className="size-3" />+ <span aria-hidden className="i-custom-vender-line-mediaanddevices-stop size-3" />) : (<Tooltip><TooltipTrigger render={<span className="i-ri-play-large-line size-3" />} />@@ -72,7 +72,7 @@ const NodeControl: FC<NodeControlProps> = ({ id, data, pluginInstallLocked }) =>)}</button>)}- <NodeActionsDropdown id={id} data={data} triggerClassName="w-5! h-5!" />+ <NodeActionsDropdown id={id} data={data} /></div></div>)diff --git a/web/app/components/workflow/nodes/_base/components/node-handle.tsx b/web/app/components/workflow/nodes/_base/components/node-handle.tsxindex 30a22ab512c..9cd0842d5ec 100644--- a/web/app/components/workflow/nodes/_base/components/node-handle.tsx+++ b/web/app/components/workflow/nodes/_base/components/node-handle.tsx@@ -12,6 +12,7 @@ import { useIsChatMode, useNodesReadOnly } from '../../../hooks/use-workflow'import { useStore, useWorkflowStore } from '../../../store'import { BlockEnum, NodeRunningStatus } from '../../../types'import { getNodeCatalogType } from '../../../utils'+import { ErrorHandleTypeEnum } from './error-handle/types'type NodeHandleProps = {handleId: string@@ -20,6 +21,9 @@ type NodeHandleProps = {showExceptionStatus?: boolean} & Pick<Node, 'id' | 'data'>+// React Flow measures the 16px handle box. Enlarge its hit area with ::before+// and scale the button independently so zoom compensation cannot move edge endpoints.+const canAutoOpenStartNodeSelector = (nodeType: BlockEnum, isChatMode: boolean) => {if (isChatMode) return false@@ -77,9 +81,8 @@ export const NodeTargetHandle = memo(position={Position.Left}className={cn('z-1 size-4! rounded-none! border-none! bg-transparent! outline-hidden!',+ 'before:absolute before:-inset-1 before:scale-[var(--workflow-control-scale,1)]','after:absolute after:top-1 after:left-1.5 after:h-2 after:w-0.5 after:bg-workflow-link-line-handle',- 'transition-all hover:scale-125',- open && 'scale-125',data._runningStatus === NodeRunningStatus.Succeeded &&'after:bg-workflow-link-line-success-handle',data._runningStatus === NodeRunningStatus.Failed &&@@ -106,12 +109,13 @@ export const NodeTargetHandle = memo(nextNodeId: id,nextNodeTargetHandle: handleId,}}+ triggerStyle={{ scale: 'var(--workflow-control-scale, 1)' }}placement="left"showStartTabtriggerClassName={`- absolute left-0 top-0 opacity-0 pointer-events-none transition-opacity duration-150+ absolute -left-1 -top-1 opacity-0 pointer-events-none transition-opacity duration-150${nodeSelectorClassName}- group-hover:opacity-100+ group-hover:opacity-100 focus-visible:opacity-100${data.selected && 'opacity-100'}data-popup-open:opacity-100`}@@ -152,6 +156,14 @@ export const NodeSourceHandle = memo(const [open, setOpen] = useState(() => shouldAutoOpen)const connected = data._connectedSourceHandleIds?.includes(handleId)+ // Branch ports can be only 24px apart in canvas coordinates. Keep their+ // buttons and hit areas in that coordinate space so zooming out cannot make+ // one branch intercept another's click or connection drag.+ const hasMultipleSourceHandles =+ data.type === BlockEnum.IfElse ||+ data.type === BlockEnum.QuestionClassifier ||+ data.type === BlockEnum.HumanInput ||+ data.error_strategy === ErrorHandleTypeEnum.failBranchconst handleOpenChange = useCallback((v: boolean) => {setOpen(v)}, [])@@ -206,9 +218,9 @@ export const NodeSourceHandle = memo(position={Position.Right}className={cn('group/handle z-1 size-4! rounded-none! border-none! bg-transparent! outline-hidden!',+ 'before:absolute before:-inset-1',+ !hasMultipleSourceHandles && 'before:scale-[var(--workflow-control-scale,1)]','after:absolute after:top-1 after:right-1.5 after:h-2 after:w-0.5 after:bg-workflow-link-line-handle',- 'transition-all hover:scale-125',- open && 'scale-125',data._runningStatus === NodeRunningStatus.Succeeded &&'after:bg-workflow-link-line-success-handle',data._runningStatus === NodeRunningStatus.Failed &&@@ -248,13 +260,16 @@ export const NodeSourceHandle = memo(prevNodeSourceHandle: handleId,}}triggerClassName={`- absolute top-0 left-0 opacity-0 pointer-events-none transition-opacity duration-150+ absolute -top-1 -left-1 opacity-0 pointer-events-none transition-opacity duration-150${nodeSelectorClassName}- group-hover:opacity-100+ group-hover:opacity-100 focus-visible:opacity-100${data.selected && 'opacity-100'}data-popup-open:opacity-100`}availableBlocksTypes={availableNextBlocks}+ triggerStyle={{+ scale: hasMultipleSourceHandles ? '1' : 'var(--workflow-control-scale, 1)',+ }}showStartTab/>)}diff --git a/web/app/components/workflow/nodes/_base/components/title-description-input.tsx b/web/app/components/workflow/nodes/_base/components/title-description-input.tsxindex 6dba43c4c86..e82118927ff 100644--- a/web/app/components/workflow/nodes/_base/components/title-description-input.tsx+++ b/web/app/components/workflow/nodes/_base/components/title-description-input.tsx@@ -1,4 +1,4 @@-import { memo, useCallback, useEffect, useState } from 'react'+import { memo, useCallback, useEffect, useId, useState } from 'react'import { useTranslation } from 'react-i18next'import Textarea from 'react-textarea-autosize'@@ -9,6 +9,7 @@ type TitleInputProps = {export const TitleInput = memo(({ value, onBlur }: TitleInputProps) => {const { t } = useTranslation()+ const inputId = useId()const [localValue, setLocalValue] = useState(value)const handleBlur = () => {@@ -40,14 +41,20 @@ export const TitleInput = memo(({ value, onBlur }: TitleInputProps) => {}, [value])return (- <input- value={localValue}- onChange={handleChange}- onKeyDown={handleKeyDown}- className={`mr-2 h-7 min-w-0 grow appearance-none rounded-md border border-transparent bg-transparent px-1 system-xl-semibold text-text-primary outline-hidden focus:shadow-xs`}- placeholder={t(($) => $['common.addTitle'], { ns: 'workflow' }) || ''}- onBlur={handleBlur}- />+ <div className="mr-2 min-w-0 grow">+ <label htmlFor={inputId} className="block px-1 system-xs-medium text-text-secondary">+ {t(($) => $['common.nodeTitle'], { ns: 'workflow' })}+ </label>+ <input+ id={inputId}+ value={localValue}+ onChange={handleChange}+ onKeyDown={handleKeyDown}+ className={`h-7 w-full min-w-0 appearance-none rounded-md border border-transparent bg-transparent px-1 system-xl-semibold text-text-primary outline-hidden focus:shadow-xs focus-visible:ring-1 focus-visible:ring-components-input-border-hover`}+ placeholder={t(($) => $['common.addTitle'], { ns: 'workflow' }) || ''}+ onBlur={handleBlur}+ />+ </div>)})TitleInput.displayName = 'TitleInput'@@ -58,6 +65,7 @@ type DescriptionInputProps = {}export const DescriptionInput = memo(({ value, onChange }: DescriptionInputProps) => {const { t } = useTranslation()+ const inputId = useId()const [focus, setFocus] = useState(false)const handleFocus = useCallback(() => {setFocus(true)@@ -67,18 +75,24 @@ export const DescriptionInput = memo(({ value, onChange }: DescriptionInputProps}, [])return (- <div- className={`group flex max-h-15 overflow-y-auto rounded-lg bg-components-panel-bg px-2 py-1.25 leading-0 ${focus && 'shadow-xs!'} `}- >- <Textarea- value={value}- onChange={(e) => onChange(e.target.value)}- minRows={1}- onFocus={handleFocus}- onBlur={handleBlur}- className={`w-full resize-none appearance-none bg-transparent text-xs leading-4.5 text-text-primary caret-[#295EFF] outline-hidden placeholder:text-text-quaternary`}- placeholder={t(($) => $['common.addDescription'], { ns: 'workflow' }) || ''}- />+ <div>+ <label htmlFor={inputId} className="mb-1 block system-xs-medium text-text-secondary">+ {t(($) => $['common.nodeDescription'], { ns: 'workflow' })}+ </label>+ <div+ className={`group flex max-h-15 overflow-y-auto rounded-lg bg-components-panel-bg px-2 py-1.25 leading-0 ${focus && 'shadow-xs!'} `}+ >+ <Textarea+ id={inputId}+ value={value}+ onChange={(e) => onChange(e.target.value)}+ minRows={1}+ onFocus={handleFocus}+ onBlur={handleBlur}+ className={`w-full resize-none appearance-none bg-transparent text-xs leading-4.5 text-text-primary caret-[#295EFF] outline-hidden placeholder:text-text-quaternary focus-visible:ring-1 focus-visible:ring-components-input-border-hover`}+ placeholder={t(($) => $['common.addDescription'], { ns: 'workflow' }) || ''}+ />+ </div></div>)})diff --git a/web/app/components/workflow/note-node/note-editor/__tests__/editor.spec.tsx b/web/app/components/workflow/note-node/note-editor/__tests__/editor.spec.tsxindex 60a01970019..145dc14b724 100644--- a/web/app/components/workflow/note-node/note-editor/__tests__/editor.spec.tsx+++ b/web/app/components/workflow/note-node/note-editor/__tests__/editor.spec.tsx@@ -50,7 +50,9 @@ describe('Editor', () => {renderEditor({ placeholder: 'Type note' })expect(screen.getByText('Type note')).toBeInTheDocument()- expect(screen.getByRole('textbox')).toBeInTheDocument()+ expect(+ screen.getByRole('textbox', { name: 'workflow.nodes.note.editor.label' }),+ ).toBeInTheDocument()})it('should render linked text with distinct link styling', async () => {@@ -152,6 +154,9 @@ describe('Editor', () => {await waitFor(() => {expect(changes).toContain('hello world')+ expect(+ screen.getByRole('textbox', { name: 'workflow.nodes.note.editor.label' }),+ ).toHaveTextContent('hello world')})})})diff --git a/web/app/components/workflow/note-node/note-editor/editor.tsx b/web/app/components/workflow/note-node/note-editor/editor.tsxindex d91759d5f64..451e1baf234 100644--- a/web/app/components/workflow/note-node/note-editor/editor.tsx+++ b/web/app/components/workflow/note-node/note-editor/editor.tsx@@ -10,6 +10,7 @@ import { ListPlugin } from '@lexical/react/LexicalListPlugin'import { OnChangePlugin } from '@lexical/react/LexicalOnChangePlugin'import { RichTextPlugin } from '@lexical/react/LexicalRichTextPlugin'import { memo, useCallback } from 'react'+import { useTranslation } from 'react-i18next'// import TreeView from '@/app/components/base/prompt-editor/plugins/tree-view'import Placeholder from '@/app/components/base/prompt-editor/plugins/placeholder'import FormatDetectorPlugin from './plugins/format-detector-plugin'@@ -22,11 +23,12 @@ type EditorProps = {setHistoryShortcutsEnabled?: (v: boolean) => void}const Editor = ({- placeholder = 'write you note...',+ placeholder,onChange,containerElement,setHistoryShortcutsEnabled,}: EditorProps) => {+ const { t } = useTranslation()const handleEditorChange = useCallback((editorState: EditorState) => {onChange?.(editorState)@@ -40,6 +42,7 @@ const Editor = ({contentEditable={<div><ContentEditable+ aria-label={t(($) => $['nodes.note.editor.label'], { ns: 'workflow' })}onFocus={() => setHistoryShortcutsEnabled?.(false)}onBlur={() => setHistoryShortcutsEnabled?.(true)}spellCheck={false}@@ -47,7 +50,12 @@ const Editor = ({/></div>}- placeholder={<Placeholder value={placeholder} compact />}+ placeholder={+ <Placeholder+ value={placeholder ?? t(($) => $['nodes.note.editor.placeholder'], { ns: 'workflow' })}+ compact+ />+ }ErrorBoundary={LexicalErrorBoundary}/><ClickableLinkPlugin disabled />diff --git a/web/app/components/workflow/operator/__tests__/zoom-in-out.spec.tsx b/web/app/components/workflow/operator/__tests__/zoom-in-out.spec.tsxindex 25a70d32c10..d3f1599dba7 100644--- a/web/app/components/workflow/operator/__tests__/zoom-in-out.spec.tsx+++ b/web/app/components/workflow/operator/__tests__/zoom-in-out.spec.tsx@@ -1,4 +1,6 @@import { fireEvent, screen, within } from '@testing-library/react'+import userEvent from '@testing-library/user-event'+import { useState } from 'react'import { renderWithConsoleQuery } from '@/test/console/query-data'import ZoomInOut from '../zoom-in-out'@@ -156,6 +158,41 @@ describe('workflow zoom controls', () => {expect(mockToggleUserCursors).toHaveBeenCalledTimes(1)})+ it('exposes display settings as checked menu items and updates them with the keyboard', async () => {+ const user = userEvent.setup()+ const DisplaySettings = () => {+ const [showMiniMap, setShowMiniMap] = useState(true)+ return (+ <ZoomInOut+ showMiniMap={showMiniMap}+ onToggleMiniMap={() => setShowMiniMap((value) => !value)}+ showUserCursors={false}+ showUserComments+ />+ )+ }+ renderZoomInOut(<DisplaySettings />)++ await user.click(screen.getByRole('button', { name: '100%' }))+ const miniMap = screen.getByRole('menuitemcheckbox', { name: 'workflow.operator.showMiniMap' })+ expect(miniMap).toBeChecked()+ expect(+ screen.getByRole('menuitemcheckbox', { name: 'workflow.operator.showUserCursors' }),+ ).not.toBeChecked()+ expect(+ screen.getByRole('menuitemcheckbox', { name: 'workflow.operator.showUserComments' }),+ ).toBeChecked()+ expect(screen.getByRole('menuitem', { name: '200%' })).toBeInTheDocument()++ miniMap.focus()+ await user.keyboard('{Enter}')+ await user.click(screen.getByRole('button', { name: '100%' }))+ expect(+ screen.getByRole('menuitemcheckbox', { name: 'workflow.operator.showMiniMap' }),+ ).not.toBeChecked()+ expect(mockHandleSyncWorkflowDraft).not.toHaveBeenCalled()+ })+it('keeps the show-user-comments action disabled in comment mode', () => {renderZoomInOut(<ZoomInOut isCommentMode onToggleUserComments={mockToggleUserComments} />)diff --git a/web/app/components/workflow/operator/zoom-in-out.tsx b/web/app/components/workflow/operator/zoom-in-out.tsxindex 69d7dd0672b..a7affb6eccd 100644--- a/web/app/components/workflow/operator/zoom-in-out.tsx+++ b/web/app/components/workflow/operator/zoom-in-out.tsx@@ -1,6 +1,7 @@import type { FC } from 'react'import {DropdownMenu,+ DropdownMenuCheckboxItem,DropdownMenuItem,DropdownMenuPopup,DropdownMenuPortal,@@ -93,20 +94,24 @@ const ZoomInOut: FC<ZoomInOutProps> = ({{key: ZoomType.toggleUserComments,text: t(($) => $['operator.showUserComments'], { ns: 'workflow' }),+ checked: showUserComments,},{key: ZoomType.toggleUserCursors,text: t(($) => $['operator.showUserCursors'], { ns: 'workflow' }),+ checked: showUserCursors,},{key: ZoomType.toggleMiniMap,text: t(($) => $['operator.showMiniMap'], { ns: 'workflow' }),+ checked: showMiniMap,},]: [{key: ZoomType.toggleMiniMap,text: t(($) => $['operator.showMiniMap'], { ns: 'workflow' }),+ checked: showMiniMap,},],]@@ -187,68 +192,58 @@ const ZoomInOut: FC<ZoomInOutProps> = ({<Fragment key={options[0]!.key}>{groupIndex !== 0 && <DropdownMenuSeparator className="my-0" />}<div className="p-1">- {options.map((option) => (- <DropdownMenuItem- key={option.key}- className="justify-between px-3 py-1.5 system-md-regular text-text-secondary"- disabled={option.key === ZoomType.toggleUserComments && isCommentMode}- onClick={() => handleZoom(option.key)}- >- <div className="flex items-center gap-2">- {option.key === ZoomType.toggleUserComments && showUserComments && (- <span- aria-hidden- className="i-ri-check-line size-4 text-text-accent"- />- )}- {option.key === ZoomType.toggleUserComments && !showUserComments && (- <span aria-hidden className="size-4" />- )}- {option.key === ZoomType.toggleUserCursors && showUserCursors && (- <span- aria-hidden- className="i-ri-check-line size-4 text-text-accent"- />- )}- {option.key === ZoomType.toggleUserCursors && !showUserCursors && (- <span aria-hidden className="size-4" />- )}- {option.key === ZoomType.toggleMiniMap && showMiniMap && (- <span- aria-hidden- className="i-ri-check-line size-4 text-text-accent"- />- )}- {option.key === ZoomType.toggleMiniMap && !showMiniMap && (- <span aria-hidden className="size-4" />- )}- {option.key === ZoomType.zoomToFit && (- <span- aria-hidden- className="i-ri-fullscreen-line size-4 text-text-tertiary"- />- )}- {option.key !== ZoomType.toggleUserComments &&- option.key !== ZoomType.toggleUserCursors &&- option.key !== ZoomType.toggleMiniMap &&- option.key !== ZoomType.zoomToFit && (+ {options.map((option) =>+ 'checked' in option ? (+ <DropdownMenuCheckboxItem+ key={option.key}+ className="gap-2 px-3 py-1.5 system-md-regular text-text-secondary"+ checked={option.checked}+ disabled={option.key === ZoomType.toggleUserComments && isCommentMode}+ closeOnClick+ onCheckedChange={() => handleZoom(option.key)}+ >+ <span+ aria-hidden+ className={+ option.checked+ ? 'i-ri-check-line size-4 text-text-accent'+ : 'size-4'+ }+ />+ <span>{option.text}</span>+ </DropdownMenuCheckboxItem>+ ) : (+ <DropdownMenuItem+ key={option.key}+ className="justify-between px-3 py-1.5 system-md-regular text-text-secondary"+ onClick={() => handleZoom(option.key)}+ >+ <div className="flex items-center gap-2">+ {option.key === ZoomType.zoomToFit && (+ <span+ aria-hidden+ className="i-ri-fullscreen-line size-4 text-text-tertiary"+ />+ )}+ {option.key !== ZoomType.zoomToFit && (<span aria-hidden className="size-4" />)}- <span>{option.text}</span>- </div>- <div className="flex items-center space-x-0.5">- {option.key === ZoomType.zoomToFit && (- <ShortcutKbd shortcut="workflow.zoom-to-fit" />- )}- {option.key === ZoomType.zoomTo50 && (- <ShortcutKbd shortcut="workflow.zoom-to-50" />- )}- {option.key === ZoomType.zoomTo100 && (- <ShortcutKbd shortcut="workflow.zoom-to-100" />- )}- </div>- </DropdownMenuItem>- ))}+ <span>{option.text}</span>+ </div>+ <div className="flex items-center space-x-0.5">+ {option.key === ZoomType.zoomToFit && (+ <ShortcutKbd shortcut="workflow.zoom-to-fit" />+ )}+ {option.key === ZoomType.zoomTo50 && (+ <ShortcutKbd shortcut="workflow.zoom-to-50" />+ )}+ {option.key === ZoomType.zoomTo100 && (+ <ShortcutKbd shortcut="workflow.zoom-to-100" />+ )}+ </div>+ </DropdownMenuItem>+ ),+ )}</div></Fragment>))}diff --git a/web/i18n/ar-TN/workflow.json b/web/i18n/ar-TN/workflow.jsonindex 02b046b3737..3f5aec204a5 100644--- a/web/i18n/ar-TN/workflow.json+++ b/web/i18n/ar-TN/workflow.json@@ -170,6 +170,7 @@"common.disconnect": "قطع الاتصال","common.draftSaveFailed": "فشل حفظ المسودة","common.duplicate": "تكرار",+ "common.edgeLabel": "اتصال من {{source}} إلى {{target}}","common.effectVarConfirm.content": "يتم استخدام المتغير في عقد أخرى. هل ما زلت تريد إزالته؟","common.effectVarConfirm.title": "إزالة المتغير","common.enableJinja": "تمكين دعم قالب Jinja",@@ -207,6 +208,8 @@"common.needConnectTip": "هذه الخطوة غير متصلة بأي شيء","common.needStartNode": "يجب إضافة عقدة بدء واحدة على الأقل","common.noVar": "لا يوجد متغير",+ "common.nodeDescription": "الوصف",+ "common.nodeTitle": "اسم العقدة","common.notPublishedYet": "لم يتم النشر بعد","common.notRunning": "لم يتم التشغيل بعد","common.onFailure": "عند الفشل",@@ -827,6 +830,7 @@"nodes.note.editor.enterUrl": "أدخل URL...","nodes.note.editor.invalidUrl": "URL غير صالح","nodes.note.editor.italic": "مائل",+ "nodes.note.editor.label": "محتوى الملاحظة","nodes.note.editor.large": "كبير","nodes.note.editor.link": "رابط","nodes.note.editor.medium": "متوسط",diff --git a/web/i18n/de-DE/workflow.json b/web/i18n/de-DE/workflow.jsonindex 899ac5f2a17..fbe2d6ae0ae 100644--- a/web/i18n/de-DE/workflow.json+++ b/web/i18n/de-DE/workflow.json@@ -170,6 +170,7 @@"common.disconnect": "Trennen","common.draftSaveFailed": "Entwurf konnte nicht gespeichert werden","common.duplicate": "Duplizieren",+ "common.edgeLabel": "Verbindung von {{source}} zu {{target}}","common.effectVarConfirm.content": "Die Variable wird in anderen Knoten verwendet. Möchten Sie sie trotzdem entfernen?","common.effectVarConfirm.title": "Variable entfernen","common.enableJinja": "Jinja-Vorlagenunterstützung aktivieren",@@ -207,6 +208,8 @@"common.needConnectTip": "Dieser Schritt ist mit nichts verbunden","common.needStartNode": "Es muss mindestens ein Startknoten hinzugefügt werden","common.noVar": "Keine Variable",+ "common.nodeDescription": "Beschreibung",+ "common.nodeTitle": "Knotenname","common.notPublishedYet": "Noch nicht veröffentlicht","common.notRunning": "Noch nicht ausgeführt","common.onFailure": "Bei Ausfall",@@ -827,6 +830,7 @@"nodes.note.editor.enterUrl": "URL eingeben...","nodes.note.editor.invalidUrl": "Ungültige URL","nodes.note.editor.italic": "Kursiv",+ "nodes.note.editor.label": "Notizinhalt","nodes.note.editor.large": "Groß","nodes.note.editor.link": "Verbinden","nodes.note.editor.medium": "Mittel",diff --git a/web/i18n/en-US/workflow.json b/web/i18n/en-US/workflow.jsonindex 327936e2ef4..8d35645314d 100644--- a/web/i18n/en-US/workflow.json+++ b/web/i18n/en-US/workflow.json@@ -170,6 +170,7 @@"common.disconnect": "Disconnect","common.draftSaveFailed": "Draft save failed","common.duplicate": "Duplicate",+ "common.edgeLabel": "Connection from {{source}} to {{target}}","common.effectVarConfirm.content": "The variable is used in other nodes. Do you still want to remove it?","common.effectVarConfirm.title": "Remove Variable","common.enableJinja": "Enable Jinja template support",@@ -207,6 +208,8 @@"common.needConnectTip": "This step is not connected to anything","common.needStartNode": "At least one start node must be added","common.noVar": "No variable",+ "common.nodeDescription": "Description",+ "common.nodeTitle": "Node name","common.notPublishedYet": "Not published yet","common.notRunning": "Not running yet","common.onFailure": "On Failure",@@ -827,6 +830,7 @@"nodes.note.editor.enterUrl": "Enter URL...","nodes.note.editor.invalidUrl": "Invalid URL","nodes.note.editor.italic": "Italic",+ "nodes.note.editor.label": "Note content","nodes.note.editor.large": "Large","nodes.note.editor.link": "Link","nodes.note.editor.medium": "Medium",diff --git a/web/i18n/es-ES/workflow.json b/web/i18n/es-ES/workflow.jsonindex 8e5368d794b..1fc5d25d8fe 100644--- a/web/i18n/es-ES/workflow.json+++ b/web/i18n/es-ES/workflow.json@@ -170,6 +170,7 @@"common.disconnect": "Desconectar","common.draftSaveFailed": "Error al guardar el borrador","common.duplicate": "Duplicar",+ "common.edgeLabel": "Conexión de {{source}} a {{target}}","common.effectVarConfirm.content": "La variable se utiliza en otros nodos. ¿Aún quieres eliminarla?","common.effectVarConfirm.title": "Eliminar variable","common.enableJinja": "Habilitar soporte de plantillas Jinja",@@ -207,6 +208,8 @@"common.needConnectTip": "Este paso no está conectado a nada","common.needStartNode": "Se debe añadir al menos un nodo de inicio","common.noVar": "Sin variable",+ "common.nodeDescription": "Descripción",+ "common.nodeTitle": "Nombre del nodo","common.notPublishedYet": "Aún no publicado","common.notRunning": "Aún no se está ejecutando","common.onFailure": "Sobre el fracaso",@@ -827,6 +830,7 @@"nodes.note.editor.enterUrl": "Introducir URL...","nodes.note.editor.invalidUrl": "URL inválida","nodes.note.editor.italic": "Itálica",+ "nodes.note.editor.label": "Contenido de la nota","nodes.note.editor.large": "Grande","nodes.note.editor.link": "Enlace","nodes.note.editor.medium": "Mediano",diff --git a/web/i18n/fa-IR/workflow.json b/web/i18n/fa-IR/workflow.jsonindex 2224f6f6799..89d51e4cc73 100644--- a/web/i18n/fa-IR/workflow.json+++ b/web/i18n/fa-IR/workflow.json@@ -170,6 +170,7 @@"common.disconnect": "قطع اتصال","common.draftSaveFailed": "ذخیره پیشنویس ناموفق بود","common.duplicate": "تکثیر",+ "common.edgeLabel": "اتصال از {{source}} به {{target}}","common.effectVarConfirm.content": "این متغیر در گرههای دیگر استفاده شده است. آیا مطمئنید میخواهید آن را حذف کنید؟","common.effectVarConfirm.title": "حذف متغیر","common.enableJinja": "فعالسازی پشتیبانی از الگوی Jinja",@@ -207,6 +208,8 @@"common.needConnectTip": "این مرحله به هیچ گرهای متصل نیست","common.needStartNode": "حداقل یک گره شروع باید اضافه شود","common.noVar": "بدون متغیر",+ "common.nodeDescription": "توضیحات",+ "common.nodeTitle": "نام گره","common.notPublishedYet": "هنوز منتشر نشده","common.notRunning": "هنوز اجرا نشده","common.onFailure": "در صورت شکست",@@ -827,6 +830,7 @@"nodes.note.editor.enterUrl": "URL را وارد کنید...","nodes.note.editor.invalidUrl": "URL نامعتبر","nodes.note.editor.italic": "ایتالیک",+ "nodes.note.editor.label": "محتوای یادداشت","nodes.note.editor.large": "بزرگ","nodes.note.editor.link": "لینک","nodes.note.editor.medium": "متوسط",diff --git a/web/i18n/fr-FR/workflow.json b/web/i18n/fr-FR/workflow.jsonindex 8fa8bc29232..70d7d07f3b9 100644--- a/web/i18n/fr-FR/workflow.json+++ b/web/i18n/fr-FR/workflow.json@@ -170,6 +170,7 @@"common.disconnect": "Déconnecter","common.draftSaveFailed": "Échec de l’enregistrement du brouillon","common.duplicate": "Dupliquer",+ "common.edgeLabel": "Connexion de {{source}} à {{target}}","common.effectVarConfirm.content": "La variable est utilisée dans d'autres nœuds. Voulez-vous toujours la supprimer?","common.effectVarConfirm.title": "Supprimer la variable","common.enableJinja": "Activer le support des templates Jinja",@@ -207,6 +208,8 @@"common.needConnectTip": "Cette étape n'est connectée à rien","common.needStartNode": "Au moins un nœud de départ doit être ajouté","common.noVar": "Pas de variable",+ "common.nodeDescription": "Description",+ "common.nodeTitle": "Nom du nœud","common.notPublishedYet": "Pas encore publié","common.notRunning": "Pas encore en cours d'exécution","common.onFailure": "Sur l’échec",@@ -827,6 +830,7 @@"nodes.note.editor.enterUrl": "Entrer l'URL...","nodes.note.editor.invalidUrl": "URL invalide","nodes.note.editor.italic": "Italique",+ "nodes.note.editor.label": "Contenu de la note","nodes.note.editor.large": "Grand","nodes.note.editor.link": "Lien","nodes.note.editor.medium": "Moyen",diff --git a/web/i18n/hi-IN/workflow.json b/web/i18n/hi-IN/workflow.jsonindex cdc80bbb94e..9f96f4568c0 100644--- a/web/i18n/hi-IN/workflow.json+++ b/web/i18n/hi-IN/workflow.json@@ -170,6 +170,7 @@"common.disconnect": "अलग करना","common.draftSaveFailed": "ड्राफ़्ट सहेजना विफल रहा","common.duplicate": "डुप्लिकेट करें",+ "common.edgeLabel": "{{source}} से {{target}} तक कनेक्शन","common.effectVarConfirm.content": "वेरिएबल अन्य नोड्स में उपयोग किया जाता है। क्या आप अभी भी इसे हटाना चाहते हैं?","common.effectVarConfirm.title": "वेरिएबल हटाएं","common.enableJinja": "Jinja टेम्पलेट समर्थन सक्षम करें",@@ -207,6 +208,8 @@"common.needConnectTip": "यह चरण किसी से जुड़ा नहीं है","common.needStartNode": "कम से कम एक प्रारंभ नोड जोड़ा जाना चाहिए","common.noVar": "कोई वेरिएबल नहीं",+ "common.nodeDescription": "विवरण",+ "common.nodeTitle": "नोड का नाम","common.notPublishedYet": "अभी तक प्रकाशित नहीं","common.notRunning": "अभी तक नहीं चल रहा","common.onFailure": "असफलता पर",@@ -827,6 +830,7 @@"nodes.note.editor.enterUrl": "URL दर्ज करें...","nodes.note.editor.invalidUrl": "अवैध URL","nodes.note.editor.italic": "इटैलिक",+ "nodes.note.editor.label": "नोट की सामग्री","nodes.note.editor.large": "बड़ा","nodes.note.editor.link": "लिंक","nodes.note.editor.medium": "मध्यम",diff --git a/web/i18n/id-ID/workflow.json b/web/i18n/id-ID/workflow.jsonindex 8870e6d7162..56f02e2ad58 100644--- a/web/i18n/id-ID/workflow.json+++ b/web/i18n/id-ID/workflow.json@@ -170,6 +170,7 @@"common.disconnect": "Lepaskan","common.draftSaveFailed": "Gagal menyimpan draf","common.duplicate": "Duplikat",+ "common.edgeLabel": "Koneksi dari {{source}} ke {{target}}","common.effectVarConfirm.content": "Variabel ini digunakan di node lain. Apakah Anda masih ingin menghapusnya?","common.effectVarConfirm.title": "Hapus Variabel","common.enableJinja": "Aktifkan dukungan template Jinja",@@ -207,6 +208,8 @@"common.needConnectTip": "Langkah ini tidak terhubung ke apa pun","common.needStartNode": "Setidaknya satu node awal harus ditambahkan","common.noVar": "Tidak ada variabel",+ "common.nodeDescription": "Deskripsi",+ "common.nodeTitle": "Nama node","common.notPublishedYet": "Belum diterbitkan","common.notRunning": "Belum berjalan","common.onFailure": "Pada Kegagalan",@@ -827,6 +830,7 @@"nodes.note.editor.enterUrl": "Masukkan URL...","nodes.note.editor.invalidUrl": "URL tidak valid","nodes.note.editor.italic": "Miring",+ "nodes.note.editor.label": "Isi catatan","nodes.note.editor.large": "Besar","nodes.note.editor.link": "Tautan","nodes.note.editor.medium": "Sedang",diff --git a/web/i18n/it-IT/workflow.json b/web/i18n/it-IT/workflow.jsonindex c3235f18a29..0aef12b4d99 100644--- a/web/i18n/it-IT/workflow.json+++ b/web/i18n/it-IT/workflow.json@@ -170,6 +170,7 @@"common.disconnect": "Disconnettere","common.draftSaveFailed": "Salvataggio della bozza non riuscito","common.duplicate": "Duplica",+ "common.edgeLabel": "Collegamento da {{source}} a {{target}}","common.effectVarConfirm.content": "La variabile è utilizzata in altri nodi. Vuoi comunque rimuoverla?","common.effectVarConfirm.title": "Rimuovi Variabile","common.enableJinja": "Abilita supporto template Jinja",@@ -207,6 +208,8 @@"common.needConnectTip": "Questo passaggio non è collegato a nulla","common.needStartNode": "Deve essere aggiunto almeno un nodo iniziale","common.noVar": "Nessuna variabile",+ "common.nodeDescription": "Descrizione",+ "common.nodeTitle": "Nome del nodo","common.notPublishedYet": "Non ancora pubblicato","common.notRunning": "Non ancora in esecuzione","common.onFailure": "In caso di guasto",@@ -827,6 +830,7 @@"nodes.note.editor.enterUrl": "Inserisci URL...","nodes.note.editor.invalidUrl": "URL non valido","nodes.note.editor.italic": "Corsivo",+ "nodes.note.editor.label": "Contenuto della nota","nodes.note.editor.large": "Grande","nodes.note.editor.link": "Link","nodes.note.editor.medium": "Medio",diff --git a/web/i18n/ja-JP/workflow.json b/web/i18n/ja-JP/workflow.jsonindex da448174661..a67b5a84cb0 100644--- a/web/i18n/ja-JP/workflow.json+++ b/web/i18n/ja-JP/workflow.json@@ -170,6 +170,7 @@"common.disconnect": "接続解除","common.draftSaveFailed": "下書きの保存に失敗しました","common.duplicate": "複製",+ "common.edgeLabel": "{{source}} から {{target}} への接続","common.effectVarConfirm.content": "他のノードで変数が使用されています。それでも削除しますか?","common.effectVarConfirm.title": "変数の削除","common.enableJinja": "Jinja テンプレートを有効化",@@ -207,6 +208,8 @@"common.needConnectTip": "接続されていないステップがあります","common.needStartNode": "少なくとも1つのスタートノードを追加する必要があります","common.noVar": "変数がありません",+ "common.nodeDescription": "説明",+ "common.nodeTitle": "ノード名","common.notPublishedYet": "まだ公開されていません","common.notRunning": "まだ実行されていません","common.onFailure": "失敗時",@@ -827,6 +830,7 @@"nodes.note.editor.enterUrl": "リンク入力中...","nodes.note.editor.invalidUrl": "リンク無効","nodes.note.editor.italic": "斜体",+ "nodes.note.editor.label": "メモの内容","nodes.note.editor.large": "大","nodes.note.editor.link": "リンク","nodes.note.editor.medium": "中",diff --git a/web/i18n/ko-KR/workflow.json b/web/i18n/ko-KR/workflow.jsonindex 876c8a06395..4339883ea33 100644--- a/web/i18n/ko-KR/workflow.json+++ b/web/i18n/ko-KR/workflow.json@@ -170,6 +170,7 @@"common.disconnect": "연결 해제","common.draftSaveFailed": "초안 저장에 실패했습니다","common.duplicate": "복제",+ "common.edgeLabel": "{{source}}에서 {{target}}으로의 연결","common.effectVarConfirm.content": "변수가 다른 노드에서 사용되고 있습니다. 그래도 제거하시겠습니까?","common.effectVarConfirm.title": "변수 제거","common.enableJinja": "Jinja 템플릿 지원 활성화",@@ -207,6 +208,8 @@"common.needConnectTip": "이 단계는 아무것도 연결되어 있지 않습니다","common.needStartNode": "적어도 하나의 시작 노드를 추가해야 합니다","common.noVar": "변수 없음",+ "common.nodeDescription": "설명",+ "common.nodeTitle": "노드 이름","common.notPublishedYet": "아직 게시되지 않음","common.notRunning": "아직 실행되지 않음","common.onFailure": "실패 시",@@ -827,6 +830,7 @@"nodes.note.editor.enterUrl": "URL 입력...","nodes.note.editor.invalidUrl": "잘못된 URL","nodes.note.editor.italic": "이탤릭체",+ "nodes.note.editor.label": "메모 내용","nodes.note.editor.large": "큰","nodes.note.editor.link": "링크","nodes.note.editor.medium": "보통",diff --git a/web/i18n/lo-LA/workflow.json b/web/i18n/lo-LA/workflow.jsonindex 3410d052d90..98f3eb281eb 100644--- a/web/i18n/lo-LA/workflow.json+++ b/web/i18n/lo-LA/workflow.json@@ -170,6 +170,7 @@"common.disconnect": "ຕັດການເຊື່ອມຕໍ່","common.draftSaveFailed": "ບັນທຶກສະບັບຮ່າງບໍ່ສຳເລັດ","common.duplicate": "ເຮັດຊ້ຳ",+ "common.edgeLabel": "ການເຊື່ອມຕໍ່ຈາກ {{source}} ໄປຫາ {{target}}","common.effectVarConfirm.content": "ຕົວປ່ຽນນີ້ຖືກໃຊ້ໃນໂນດອື່ນ. ທ່ານຍັງຕ້ອງການລຶບມັນຢູ່ບໍ?","common.effectVarConfirm.title": "ລຶບຕົວປ່ຽນ","common.enableJinja": "ເປີດໃຊ້ການຮອງຮັບ Jinja template",@@ -207,6 +208,8 @@"common.needConnectTip": "ຂັ້ນຕອນນີ້ຍັງບໍ່ໄດ້ເຊື່ອມຕໍ່ກັບຫຍັງເລີຍ","common.needStartNode": "ຕ້ອງເພີ່ມຢ່າງໜ້ອຍໜຶ່ງໂນດເລີ່ມຕົ້ນ","common.noVar": "ບໍ່ມີຕົວປ່ຽນ",+ "common.nodeDescription": "ຄຳອະທິບາຍ",+ "common.nodeTitle": "ຊື່ໂນດ","common.notPublishedYet": "ຍັງບໍ່ໄດ້ເຜີຍແຜ່","common.notRunning": "ຍັງບໍ່ໄດ້ລັນ","common.onFailure": "ເມື່ອລົ້ມເຫຼວ",@@ -827,6 +830,7 @@"nodes.note.editor.enterUrl": "ປ້ອນ URL...","nodes.note.editor.invalidUrl": "URL ບໍ່ຖືກຕ້ອງ","nodes.note.editor.italic": "ຕົວອຽງ",+ "nodes.note.editor.label": "ເນື້ອຫາບັນທຶກ","nodes.note.editor.large": "ໃຫຍ່","nodes.note.editor.link": "ລິ້ງ","nodes.note.editor.medium": "ກາງ",diff --git a/web/i18n/nl-NL/workflow.json b/web/i18n/nl-NL/workflow.jsonindex b1d4a153ee1..38c2374ad91 100644--- a/web/i18n/nl-NL/workflow.json+++ b/web/i18n/nl-NL/workflow.json@@ -170,6 +170,7 @@"common.disconnect": "Disconnect","common.draftSaveFailed": "Opslaan van concept mislukt","common.duplicate": "Duplicate",+ "common.edgeLabel": "Verbinding van {{source}} naar {{target}}","common.effectVarConfirm.content": "The variable is used in other nodes. Do you still want to remove it?","common.effectVarConfirm.title": "Remove Variable","common.enableJinja": "Enable Jinja template support",@@ -207,6 +208,8 @@"common.needConnectTip": "This step is not connected to anything","common.needStartNode": "At least one start node must be added","common.noVar": "No variable",+ "common.nodeDescription": "Beschrijving",+ "common.nodeTitle": "Naam van knooppunt","common.notPublishedYet": "Nog niet gepubliceerd","common.notRunning": "Not running yet","common.onFailure": "On Failure",@@ -827,6 +830,7 @@"nodes.note.editor.enterUrl": "Enter URL...","nodes.note.editor.invalidUrl": "Invalid URL","nodes.note.editor.italic": "Italic",+ "nodes.note.editor.label": "Notitie-inhoud","nodes.note.editor.large": "Large","nodes.note.editor.link": "Link","nodes.note.editor.medium": "Medium",diff --git a/web/i18n/pl-PL/workflow.json b/web/i18n/pl-PL/workflow.jsonindex 279f5a30b20..904970b84b8 100644--- a/web/i18n/pl-PL/workflow.json+++ b/web/i18n/pl-PL/workflow.json@@ -170,6 +170,7 @@"common.disconnect": "Odłączyć","common.draftSaveFailed": "Nie udało się zapisać wersji roboczej","common.duplicate": "Duplikuj",+ "common.edgeLabel": "Połączenie z {{source}} do {{target}}","common.effectVarConfirm.content": "Zmienna jest używana w innych węzłach. Czy na pewno chcesz ją usunąć?","common.effectVarConfirm.title": "Usuń zmienną","common.enableJinja": "Włącz obsługę szablonów Jinja",@@ -207,6 +208,8 @@"common.needConnectTip": "Ten krok nie jest połączony z niczym","common.needStartNode": "Należy dodać co najmniej jeden węzeł początkowy","common.noVar": "Brak zmiennej",+ "common.nodeDescription": "Opis",+ "common.nodeTitle": "Nazwa węzła","common.notPublishedYet": "Jeszcze nie opublikowano","common.notRunning": "Jeszcze nie uruchomiono","common.onFailure": "W przypadku niepowodzenia",@@ -827,6 +830,7 @@"nodes.note.editor.enterUrl": "Wpisz adres URL...","nodes.note.editor.invalidUrl": "Nieprawidłowy adres URL","nodes.note.editor.italic": "Kursywa",+ "nodes.note.editor.label": "Treść notatki","nodes.note.editor.large": "Duży","nodes.note.editor.link": "Łącze","nodes.note.editor.medium": "Średni",diff --git a/web/i18n/pt-BR/workflow.json b/web/i18n/pt-BR/workflow.jsonindex c1c1f8c555c..f7e6b53a9ce 100644--- a/web/i18n/pt-BR/workflow.json+++ b/web/i18n/pt-BR/workflow.json@@ -170,6 +170,7 @@"common.disconnect": "Desligar","common.draftSaveFailed": "Falha ao salvar o rascunho","common.duplicate": "Duplicar",+ "common.edgeLabel": "Conexão de {{source}} para {{target}}","common.effectVarConfirm.content": "A variável é usada em outros nós. Você ainda deseja removê-la?","common.effectVarConfirm.title": "Remover variável","common.enableJinja": "Ativar suporte ao template Jinja",@@ -207,6 +208,8 @@"common.needConnectTip": "Este passo não está conectado a nada","common.needStartNode": "Pelo menos um nó inicial deve ser adicionado","common.noVar": "Sem variável",+ "common.nodeDescription": "Descrição",+ "common.nodeTitle": "Nome do nó","common.notPublishedYet": "Ainda não publicado","common.notRunning": "Ainda não está em execução","common.onFailure": "Em caso de falha",@@ -827,6 +830,7 @@"nodes.note.editor.enterUrl": "Digite o URL...","nodes.note.editor.invalidUrl": "URL inválido","nodes.note.editor.italic": "Itálico",+ "nodes.note.editor.label": "Conteúdo da nota","nodes.note.editor.large": "Grande","nodes.note.editor.link": "Link","nodes.note.editor.medium": "Média",diff --git a/web/i18n/ro-RO/workflow.json b/web/i18n/ro-RO/workflow.jsonindex 23ce473b147..98c365b5f00 100644--- a/web/i18n/ro-RO/workflow.json+++ b/web/i18n/ro-RO/workflow.json@@ -170,6 +170,7 @@"common.disconnect": "Deconecta","common.draftSaveFailed": "Salvarea schiței a eșuat","common.duplicate": "Duplică",+ "common.edgeLabel": "Conexiune de la {{source}} la {{target}}","common.effectVarConfirm.content": "Variabila este utilizată în alte noduri. Doriți să o eliminați oricum?","common.effectVarConfirm.title": "Elimină variabila","common.enableJinja": "Activează suportul pentru șabloane Jinja",@@ -207,6 +208,8 @@"common.needConnectTip": "Acest pas nu este conectat la nimic","common.needStartNode": "Trebuie adăugat cel puțin un nod de start","common.noVar": "Fără variabilă",+ "common.nodeDescription": "Descriere",+ "common.nodeTitle": "Numele nodului","common.notPublishedYet": "Nu a fost publicat încă","common.notRunning": "Încă nu rulează","common.onFailure": "În caz de eșec",@@ -827,6 +830,7 @@"nodes.note.editor.enterUrl": "Introduceți adresa URL...","nodes.note.editor.invalidUrl": "URL nevalidă","nodes.note.editor.italic": "Cursiv",+ "nodes.note.editor.label": "Conținutul notei","nodes.note.editor.large": "Mare","nodes.note.editor.link": "Legătură","nodes.note.editor.medium": "Medie",diff --git a/web/i18n/ru-RU/workflow.json b/web/i18n/ru-RU/workflow.jsonindex a6f67c8aa71..61f5b811898 100644--- a/web/i18n/ru-RU/workflow.json+++ b/web/i18n/ru-RU/workflow.json@@ -170,6 +170,7 @@"common.disconnect": "Разъединять","common.draftSaveFailed": "Не удалось сохранить черновик","common.duplicate": "Дублировать",+ "common.edgeLabel": "Соединение от {{source}} к {{target}}","common.effectVarConfirm.content": "Переменная используется в других узлах. Вы все еще хотите удалить ее?","common.effectVarConfirm.title": "Удалить переменную","common.enableJinja": "Включить поддержку шаблонов Jinja",@@ -207,6 +208,8 @@"common.needConnectTip": "Этот шаг ни к чему не подключен","common.needStartNode": "Необходимо добавить хотя бы один начальный узел","common.noVar": "Нет переменной",+ "common.nodeDescription": "Описание",+ "common.nodeTitle": "Название узла","common.notPublishedYet": "Ещё не опубликовано","common.notRunning": "Еще не запущено","common.onFailure": "О неудаче",@@ -827,6 +830,7 @@"nodes.note.editor.enterUrl": "Введите URL...","nodes.note.editor.invalidUrl": "Неверный URL","nodes.note.editor.italic": "Курсив",+ "nodes.note.editor.label": "Содержимое заметки","nodes.note.editor.large": "Большой","nodes.note.editor.link": "Ссылка","nodes.note.editor.medium": "Средний",diff --git a/web/i18n/sl-SI/workflow.json b/web/i18n/sl-SI/workflow.jsonindex deb8a2d289b..32b19157697 100644--- a/web/i18n/sl-SI/workflow.json+++ b/web/i18n/sl-SI/workflow.json@@ -170,6 +170,7 @@"common.disconnect": "Odklop","common.draftSaveFailed": "Shranjevanje osnutka ni uspelo","common.duplicate": "Podvojiti",+ "common.edgeLabel": "Povezava od {{source}} do {{target}}","common.effectVarConfirm.content": "Spremenljivka se uporablja v drugih vozliščih. Ali jo še vedno želite odstraniti?","common.effectVarConfirm.title": "Odstrani spremenljivko","common.enableJinja": "Omogoči podporo za Jinja predloge",@@ -207,6 +208,8 @@"common.needConnectTip": "Ta korak ni povezan z ničemer.","common.needStartNode": "Dodati je treba vsaj eno začetno vozlišče","common.noVar": "Brez spremenljivke",+ "common.nodeDescription": "Opis",+ "common.nodeTitle": "Ime vozlišča","common.notPublishedYet": "Še ni objavljeno","common.notRunning": "Še ne teče","common.onFailure": "O neuspehu",@@ -827,6 +830,7 @@"nodes.note.editor.enterUrl": "Vnesite URL...","nodes.note.editor.invalidUrl": "Nesprejemljiv URL","nodes.note.editor.italic": "Italika",+ "nodes.note.editor.label": "Vsebina opombe","nodes.note.editor.large": "Velik","nodes.note.editor.link": "Povezava","nodes.note.editor.medium": "Srednje",diff --git a/web/i18n/th-TH/workflow.json b/web/i18n/th-TH/workflow.jsonindex c918cbe062c..9c088fce9af 100644--- a/web/i18n/th-TH/workflow.json+++ b/web/i18n/th-TH/workflow.json@@ -170,6 +170,7 @@"common.disconnect": "ยก เลิก","common.draftSaveFailed": "บันทึกฉบับร่างไม่สำเร็จ","common.duplicate": "สำเนา",+ "common.edgeLabel": "การเชื่อมต่อจาก {{source}} ไปยัง {{target}}","common.effectVarConfirm.content": "ตัวแปรนี้ใช้ในโหนดอื่น คุณยังต้องการลบออกหรือไม่?","common.effectVarConfirm.title": "ลบตัวแปร","common.enableJinja": "เปิดใช้งานการสนับสนุนเทมเพลต Jinja",@@ -207,6 +208,8 @@"common.needConnectTip": "ขั้นตอนนี้ไม่ได้เชื่อมต่อกับสิ่งใด","common.needStartNode": "ต้องเพิ่มโหนดเริ่มต้นอย่างน้อยหนึ่งโหนด","common.noVar": "ไม่มีตัวแปร",+ "common.nodeDescription": "คำอธิบาย",+ "common.nodeTitle": "ชื่อโหนด","common.notPublishedYet": "ยังไม่ได้เผยแพร่","common.notRunning": "ยังไม่ได้ทํางาน","common.onFailure": "เมื่อล้มเหลว",@@ -827,6 +830,7 @@"nodes.note.editor.enterUrl": "ป้อน URL...","nodes.note.editor.invalidUrl": "URL ไม่ถูกต้อง","nodes.note.editor.italic": "ตัวเอียง",+ "nodes.note.editor.label": "เนื้อหาบันทึก","nodes.note.editor.large": "ใหญ่","nodes.note.editor.link": "ลิงก์","nodes.note.editor.medium": "ปานกลาง",diff --git a/web/i18n/tr-TR/workflow.json b/web/i18n/tr-TR/workflow.jsonindex fb990afbee4..8a4a8611e7b 100644--- a/web/i18n/tr-TR/workflow.json+++ b/web/i18n/tr-TR/workflow.json@@ -170,6 +170,7 @@"common.disconnect": "Bağlantıyı Kes","common.draftSaveFailed": "Taslak kaydedilemedi","common.duplicate": "Çoğalt",+ "common.edgeLabel": "{{source}} düğümünden {{target}} düğümüne bağlantı","common.effectVarConfirm.content": "Değişken diğer düğümlerde kullanılıyor. Yine de kaldırmak istiyor musunuz?","common.effectVarConfirm.title": "Değişkeni Kaldır","common.enableJinja": "Jinja şablon desteğini etkinleştir",@@ -207,6 +208,8 @@"common.needConnectTip": "Bu adım hiçbir şeye bağlı değil","common.needStartNode": "En az bir başlangıç düğümü eklenmelidir","common.noVar": "Değişken yok",+ "common.nodeDescription": "Açıklama",+ "common.nodeTitle": "Düğüm adı","common.notPublishedYet": "Henüz yayınlanmadı","common.notRunning": "Henüz çalıştırılmadı","common.onFailure": "Başarısızlık Üzerine",@@ -827,6 +830,7 @@"nodes.note.editor.enterUrl": "URL girin...","nodes.note.editor.invalidUrl": "Geçersiz URL","nodes.note.editor.italic": "İtalik",+ "nodes.note.editor.label": "Not içeriği","nodes.note.editor.large": "Büyük","nodes.note.editor.link": "Bağlantı","nodes.note.editor.medium": "Orta",diff --git a/web/i18n/uk-UA/workflow.json b/web/i18n/uk-UA/workflow.jsonindex 7e35bc37696..daa116b7e00 100644--- a/web/i18n/uk-UA/workflow.json+++ b/web/i18n/uk-UA/workflow.json@@ -170,6 +170,7 @@"common.disconnect": "Відключити","common.draftSaveFailed": "Не вдалося зберегти чернетку","common.duplicate": "Дублювати",+ "common.edgeLabel": "З’єднання від {{source}} до {{target}}","common.effectVarConfirm.content": "Змінна використовується в інших вузлах. Ви все ще хочете її видалити?","common.effectVarConfirm.title": "Видалити змінну","common.enableJinja": "Увімкнути підтримку шаблонів Jinja",@@ -207,6 +208,8 @@"common.needConnectTip": "Цей крок ні до чого не підключений","common.needStartNode": "Потрібно додати щонайменше один початковий вузол","common.noVar": "Без змінної",+ "common.nodeDescription": "Опис",+ "common.nodeTitle": "Назва вузла","common.notPublishedYet": "Ще не опубліковано","common.notRunning": "Ще не запущено","common.onFailure": "Про невдачу",@@ -827,6 +830,7 @@"nodes.note.editor.enterUrl": "Введіть URL-адресу...","nodes.note.editor.invalidUrl": "Невірна URL-адреса","nodes.note.editor.italic": "Курсив",+ "nodes.note.editor.label": "Вміст нотатки","nodes.note.editor.large": "Великий","nodes.note.editor.link": "Посилання","nodes.note.editor.medium": "Середнє",diff --git a/web/i18n/vi-VN/workflow.json b/web/i18n/vi-VN/workflow.jsonindex 1402de0633e..5aceab1d3c0 100644--- a/web/i18n/vi-VN/workflow.json+++ b/web/i18n/vi-VN/workflow.json@@ -170,6 +170,7 @@"common.disconnect": "Ngắt kết nối","common.draftSaveFailed": "Lưu bản nháp thất bại","common.duplicate": "Nhân bản",+ "common.edgeLabel": "Kết nối từ {{source}} đến {{target}}","common.effectVarConfirm.content": "Biến được sử dụng trong các nút khác. Bạn có chắc chắn muốn xóa nó không?","common.effectVarConfirm.title": "Xóa biến","common.enableJinja": "Bật hỗ trợ mẫu Jinja",@@ -207,6 +208,8 @@"common.needConnectTip": "Bước này không được kết nối với bất kỳ điều gì","common.needStartNode": "Phải thêm ít nhất một nút bắt đầu","common.noVar": "Không có biến",+ "common.nodeDescription": "Mô tả",+ "common.nodeTitle": "Tên nút","common.notPublishedYet": "Chưa xuất bản","common.notRunning": "Chưa chạy","common.onFailure": "Khi thất bại",@@ -827,6 +830,7 @@"nodes.note.editor.enterUrl": "Nhập URL...","nodes.note.editor.invalidUrl": "URL không hợp lệ","nodes.note.editor.italic": "Nghiêng",+ "nodes.note.editor.label": "Nội dung ghi chú","nodes.note.editor.large": "Lớn","nodes.note.editor.link": "Liên kết","nodes.note.editor.medium": "Đau vừa",diff --git a/web/i18n/zh-Hans/workflow.json b/web/i18n/zh-Hans/workflow.jsonindex baf5976a9fc..d952292f1f4 100644--- a/web/i18n/zh-Hans/workflow.json+++ b/web/i18n/zh-Hans/workflow.json@@ -170,6 +170,7 @@"common.disconnect": "断开连接","common.draftSaveFailed": "草稿保存失败","common.duplicate": "复制",+ "common.edgeLabel": "从 {{source}} 到 {{target}} 的连线","common.effectVarConfirm.content": "该变量在其他节点中使用。您是否仍要删除它?","common.effectVarConfirm.title": "移除变量","common.enableJinja": "开启支持 Jinja 模板",@@ -207,6 +208,8 @@"common.needConnectTip": "此节点尚未连接到其他节点","common.needStartNode": "必须添加至少一个开始节点","common.noVar": "没有变量",+ "common.nodeDescription": "描述",+ "common.nodeTitle": "节点名称","common.notPublishedYet": "尚未发布","common.notRunning": "尚未运行","common.onFailure": "异常时",@@ -827,6 +830,7 @@"nodes.note.editor.enterUrl": "输入链接...","nodes.note.editor.invalidUrl": "无效的链接","nodes.note.editor.italic": "斜体",+ "nodes.note.editor.label": "便签内容","nodes.note.editor.large": "大","nodes.note.editor.link": "链接","nodes.note.editor.medium": "中",diff --git a/web/i18n/zh-Hant/workflow.json b/web/i18n/zh-Hant/workflow.jsonindex 7723e5e23a6..dbf76924d45 100644--- a/web/i18n/zh-Hant/workflow.json+++ b/web/i18n/zh-Hant/workflow.json@@ -170,6 +170,7 @@"common.disconnect": "斷開","common.draftSaveFailed": "草稿儲存失敗","common.duplicate": "複製",+ "common.edgeLabel": "從 {{source}} 到 {{target}} 的連線","common.effectVarConfirm.content": "該變數在其他節點中使用。您是否仍要刪除它?","common.effectVarConfirm.title": "移除變數","common.enableJinja": "開啟支持 Jinja 模板",@@ -207,6 +208,8 @@"common.needConnectTip": "此節點尚未連接到其他節點","common.needStartNode": "至少必須新增一個起始節點","common.noVar": "沒有變數",+ "common.nodeDescription": "描述",+ "common.nodeTitle": "節點名稱","common.notPublishedYet": "尚未發佈","common.notRunning": "尚未運行","common.onFailure": "失敗時",@@ -827,6 +830,7 @@"nodes.note.editor.enterUrl": "輸入網址...","nodes.note.editor.invalidUrl": "URL 無效","nodes.note.editor.italic": "斜體的",+ "nodes.note.editor.label": "便箋內容","nodes.note.editor.large": "大","nodes.note.editor.link": "連結","nodes.note.editor.medium": "中等",