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
fix(web): name human input preview close (#40321)
yyh5d58a25e5237
diff --git a/web/app/components/workflow/nodes/human-input/components/__tests__/form-content-preview.spec.tsx b/web/app/components/workflow/nodes/human-input/components/__tests__/form-content-preview.spec.tsxindex 230cc9a70a8..6ad664b91e0 100644--- a/web/app/components/workflow/nodes/human-input/components/__tests__/form-content-preview.spec.tsx+++ b/web/app/components/workflow/nodes/human-input/components/__tests__/form-content-preview.spec.tsx@@ -22,15 +22,6 @@ vi.mock('@/app/components/workflow/store/workflow/use-nodes', () => ({default: () => mockUseNodes(),}))-vi.mock('@/app/components/base/action-button', () => ({- __esModule: true,- default: ({ children, onClick }: { children?: ReactNode; onClick?: () => void }) => (- <button type="button" aria-label="close-preview" onClick={onClick}>- {children}- </button>- ),-}))-vi.mock('@/app/components/base/badge', () => ({__esModule: true,default: ({ children }: { children?: ReactNode }) => <div data-testid="badge">{children}</div>,@@ -140,7 +131,7 @@ describe('FormContentPreview', () => {<FormContentPreview content="content" formInputs={[]} userActions={[]} onClose={onClose} />,)- fireEvent.click(screen.getByRole('button', { name: 'close-preview' }))+ fireEvent.click(screen.getByRole('button', { name: 'operation.close' }))expect(onClose).toHaveBeenCalledTimes(1)})diff --git a/web/app/components/workflow/nodes/human-input/components/form-content-preview.tsx b/web/app/components/workflow/nodes/human-input/components/form-content-preview.tsxindex 57a60901d36..0e3f288c32a 100644--- a/web/app/components/workflow/nodes/human-input/components/form-content-preview.tsx+++ b/web/app/components/workflow/nodes/human-input/components/form-content-preview.tsx@@ -69,8 +69,11 @@ const FormContentPreview: FC<FormContentPreviewProps> = ({<Badge uppercase className="border-text-accent-secondary text-text-accent-secondary">{t(($) => $[`${i18nPrefix}.formContent.preview`], { ns: 'workflow' })}</Badge>- <ActionButton onClick={onClose}>- <span className="i-ri-close-line size-5 text-text-tertiary" />+ <ActionButton+ aria-label={t(($) => $['operation.close'], { ns: 'common' })}+ onClick={onClose}+ >+ <span aria-hidden className="i-ri-close-line size-5 text-text-tertiary" /></ActionButton></div><div className="max-h-[calc(100vh-167px)] overflow-y-auto px-4">