mirror of
https://github.com/langgenius/dify.git
synced 2026-07-21 02:28:30 +08:00
chore: remove empty advanced setting (#39147)
This commit is contained in:
parent
f4ad6ce978
commit
18f4640ad1
@ -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()
|
||||
|
||||
@ -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>
|
||||
)
|
||||
}
|
||||
@ -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}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user