Fully autonomous AI Agents system capable of performing complex penetration testing tasks
Go ai-agentsai-security-toolanthropicautonomous-agentsgolanggptgraphqlmulti-agent-systemoffensive-securityopen-sourceopenaipenetration-testingpenetration-testing-toolsreactsecurity-automationsecurity-testingsecurity-toolsself-hosted
refactor(prompts): render the prompt meta and variables as one panel block
Sergey Kozyrenkoa66ac97a9b07
diff --git a/frontend/src/pages/settings/settings-prompt.tsx b/frontend/src/pages/settings/settings-prompt.tsxindex 43d682f4..e48d3dcf 100644--- a/frontend/src/pages/settings/settings-prompt.tsx+++ b/frontend/src/pages/settings/settings-prompt.tsx@@ -788,7 +788,7 @@ function SettingsPrompt() {const defaultTemplate = activeTab === 'system' ? promptInfo.defaultSystemTemplate : promptInfo.defaultHumanTemplate;const hasHumanPrompt = promptInfo.type === 'agent' && promptInfo.hasHuman;- const promptMeta = (+ const promptPanel = (<><div className="flex flex-col gap-2 text-center"><h2 className="text-2xl font-semibold">Edit prompt</h2>@@ -832,17 +832,17 @@ function SettingsPrompt() {Human Prompt</TabsTrigger></TabsList>++ {variablesData ? (+ <VariablesPanelContainer+ control={activeControl}+ onVariableClick={handleVariableClick}+ variables={variablesData.variables}+ />+ ) : null}</>);- const variablesPanel = variablesData ? (- <VariablesPanelContainer- control={activeControl}- onVariableClick={handleVariableClick}- variables={variablesData.variables}- />- ) : null;-const systemPlaceholder =promptInfo.type === 'tool' ? 'Enter the tool template...' : 'Enter the system prompt template...';@@ -911,18 +911,12 @@ function SettingsPrompt() {{isDesktop ? (<DetailSplitLayoutcontent={promptEditor}- panel={- <>- {promptMeta}- {variablesPanel}- </>- }+ panel={promptPanel}/>) : (<div className="flex min-h-0 flex-1 flex-col gap-4 p-4">- {promptMeta}+ {promptPanel}{promptEditor}- {variablesPanel}</div>)}</Tabs>