Skip to content

armgit / dify

Public Imported from GitHub
0

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

chore: remove empty advanced setting (#39147)

Joel18f4640ad17e
diff --git a/web/app/components/workflow/nodes/agent-v2/__tests__/panel.spec.tsx b/web/app/components/workflow/nodes/agent-v2/__tests__/panel.spec.tsx
index ffd30bcc469..3b191efacdd 100644
--- a/web/app/components/workflow/nodes/agent-v2/__tests__/panel.spec.tsx
+++ b/web/app/components/workflow/nodes/agent-v2/__tests__/panel.spec.tsx
@@ -425,8 +425,8 @@ describe('agent/panel', () => {
).toBeInTheDocument()
expect(screen.getByRole('textbox', { name: 'workflow.nodes.agent.task.label' })).toHaveValue('')
expect(
- screen.getByRole('button', { name: 'workflow.nodes.agent.advancedSetting' }),
- ).toBeInTheDocument()
+ screen.queryByRole('button', { name: 'workflow.nodes.agent.advancedSetting' }),
+ ).not.toBeInTheDocument()
expect(screen.getByText('text')).toBeInTheDocument()
expect(screen.getByText('workflow.nodes.agent.outputVars.text')).toBeInTheDocument()
expect(screen.queryByText('usage')).not.toBeInTheDocument()
diff --git a/web/app/components/workflow/nodes/agent-v2/components/agent-advanced-settings.tsx b/web/app/components/workflow/nodes/agent-v2/components/agent-advanced-settings.tsx
deleted file mode 100644
index 10b64125241..00000000000
--- a/web/app/components/workflow/nodes/agent-v2/components/agent-advanced-settings.tsx
+++ /dev/null
@@ -1,23 +0,0 @@
-import { Collapsible, CollapsiblePanel, CollapsibleTrigger } from '@langgenius/dify-ui/collapsible'
-import { useTranslation } from 'react-i18next'
-
-export function AgentAdvancedSettings() {
- const { t } = useTranslation()
-
- return (
- <Collapsible className="border-b border-divider-subtle py-2">
- <CollapsibleTrigger className="group h-8 min-h-0 justify-start gap-0 rounded-none px-4 py-0 hover:not-data-disabled:bg-transparent hover:not-data-disabled:text-text-secondary data-panel-open:text-text-secondary">
- <span className="min-w-0 truncate system-sm-semibold-uppercase text-text-secondary">
- {t(($) => $['nodes.agent.advancedSetting'], { ns: 'workflow' })}
- </span>
- <span
- aria-hidden="true"
- className="i-custom-vender-solid-general-arrow-down-round-fill size-4 rotate-270 text-text-quaternary transition-transform group-data-panel-open:rotate-0 motion-reduce:transition-none"
- />
- </CollapsibleTrigger>
- <CollapsiblePanel>
- <div className="px-4" />
- </CollapsiblePanel>
- </Collapsible>
- )
-}
diff --git a/web/app/components/workflow/nodes/agent-v2/panel.tsx b/web/app/components/workflow/nodes/agent-v2/panel.tsx
index d8984fb9f8d..ced3ebdf092 100644
--- a/web/app/components/workflow/nodes/agent-v2/panel.tsx
+++ b/web/app/components/workflow/nodes/agent-v2/panel.tsx
@@ -23,7 +23,6 @@ import { useStore } from '@/app/components/workflow/store'
import { consoleQuery } from '@/service/client'
import { FlowType } from '@/types/common'
import useNodeCrud from '../_base/hooks/use-node-crud'
-import { AgentAdvancedSettings } from './components/agent-advanced-settings'
import {
WorkflowInlineAgentConfigureWorkspace,
WorkflowRosterAgentOrchestratePanelContent,
@@ -703,7 +702,6 @@ export function AgentV2Panel({ id, data }: NodePanelProps<AgentV2NodeType>) {
onOutputsChange={handleDeclaredOutputsChange}
/>
</div>
- <AgentAdvancedSettings />
<div>
<AgentOutputVariables
collapsed={isOutputVariablesCollapsed}