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(frontend): unify mobile layout + intro across the 2-pane edit pages
Sergey Kozyrenkofd6185969de3
diff --git a/frontend/src/features/knowledges/knowledge-form-layout.tsx b/frontend/src/features/knowledges/knowledge-form-layout.tsxindex 9c18307c..2f2c0205 100644--- a/frontend/src/features/knowledges/knowledge-form-layout.tsx+++ b/frontend/src/features/knowledges/knowledge-form-layout.tsx@@ -73,25 +73,21 @@ export function KnowledgeFormLayoutDesktop({ control, isNew, isSaving, knowledgeexport function KnowledgeFormLayoutMobile({ control, isNew, isSaving, knowledge }: KnowledgeFormLayoutProps) {return (- <div className="flex min-w-0 flex-1 items-start justify-center p-4">- <Card className="w-full max-w-3xl">- <CardContent className="flex flex-col gap-6 pt-6">- <KnowledgeIntroBlock- isNew={isNew}- knowledge={knowledge}- />- <KnowledgeMetaFields- control={control}- isNew={isNew}- isSaving={isSaving}- />- <KnowledgeContentField- control={control}- isSaving={isSaving}- showLabel- />- </CardContent>- </Card>+ <div className="flex min-h-0 flex-1 flex-col gap-4 p-4">+ <KnowledgeIntroBlock+ isNew={isNew}+ knowledge={knowledge}+ />+ <KnowledgeMetaFields+ control={control}+ isNew={isNew}+ isSaving={isSaving}+ />+ <KnowledgeContentField+ control={control}+ isSaving={isSaving}+ showLabel+ /></div>);}@@ -99,11 +95,11 @@ export function KnowledgeFormLayoutMobile({ control, isNew, isSaving, knowledgefunction KnowledgeIntroBlock({ isNew, knowledge }: KnowledgeIntroBlockProps) {return (<div className="flex flex-col gap-4">- <div className="text-center">- <h1 className="text-2xl font-semibold">+ <div className="flex flex-col gap-2 text-center">+ <h2 className="text-2xl font-semibold">{isNew ? 'Create a new knowledge document' : 'Edit knowledge document'}- </h1>- <p className="text-muted-foreground mt-2">+ </h2>+ <p className="text-muted-foreground">{isNew? 'Add an entry to the vector knowledge base': 'Edits to content or metadata will trigger re-embedding'}diff --git a/frontend/src/pages/settings/settings-prompt.tsx b/frontend/src/pages/settings/settings-prompt.tsxindex ef8957d3..202b59df 100644--- a/frontend/src/pages/settings/settings-prompt.tsx+++ b/frontend/src/pages/settings/settings-prompt.tsx@@ -800,7 +800,7 @@ function SettingsPrompt() {const promptMeta = (<>- <div className="flex flex-col items-center gap-1 text-center">+ <div className="flex flex-col gap-2 text-center"><h2 className="text-2xl font-semibold">{isNew ? 'Create a prompt' : 'Edit prompt'}</h2><p className="text-muted-foreground">{promptInfo.type === 'agent'diff --git a/frontend/src/pages/settings/settings-provider.tsx b/frontend/src/pages/settings/settings-provider.tsxindex 8a5d1ece..69e5da38 100644--- a/frontend/src/pages/settings/settings-provider.tsx+++ b/frontend/src/pages/settings/settings-provider.tsx@@ -1519,9 +1519,9 @@ function SettingsProvider() {const metaFields = (<div className="flex flex-col gap-6">- <div className="text-center">+ <div className="flex flex-col gap-2 text-center"><h2 className="text-2xl font-semibold">{isNew ? 'Create a new provider' : 'Edit provider'}</h2>- <p className="text-muted-foreground mt-2">+ <p className="text-muted-foreground">{isNew ? 'Configure a new language model provider' : 'Update provider settings and configuration'}</p></div>@@ -1884,13 +1884,9 @@ function SettingsProvider() {</ResizablePanelGroup></div>) : (- <div className="flex min-w-0 flex-1 items-start justify-center p-4">- <Card className="w-full max-w-3xl">- <CardContent className="flex flex-col gap-6 pt-6">- {metaFields}- {agentConfigs}- </CardContent>- </Card>+ <div className="flex min-h-0 flex-1 flex-col gap-4 p-4">+ {metaFields}+ {agentConfigs}</div>)}</form>