Skip to content

An open-source, faster Devin alternative

TypeScript

Give the swarm run its own full-screen view (no app-shell sidebar)

Mohamed Habib via Computer0194b54b56c4
diff --git a/web/src/App.tsx b/web/src/App.tsx
index 4fba6811..4007d135 100644
--- a/web/src/App.tsx
+++ b/web/src/App.tsx
@@ -132,10 +132,6 @@ export default function App() {
path="projects/:projectId/swarms"
element={<ManagedProjectSwarms />}
/>
- <Route
- path="projects/:projectId/swarms/:runId"
- element={<ManagedProjectSwarm />}
- />
<Route
path="projects/:projectId/:tab"
element={<ManagedProjectDetail />}
@@ -168,6 +164,12 @@ export default function App() {
<Route path="billing" element={<Billing />} />
<Route path="settings" element={<Settings />} />
</Route>
+ {/* A swarm run is its own full-screen view: no app-shell sidebar, so
+ the mission-control map and report get the whole width. */}
+ <Route
+ path="projects/:projectId/swarms/:runId"
+ element={<ManagedProjectSwarm />}
+ />
</Route>
<Route path="*" element={<Navigate to="/" replace />} />
</Routes>
diff --git a/web/src/managed-agents/security/ProjectSwarm.tsx b/web/src/managed-agents/security/ProjectSwarm.tsx
index 2bf881ac..1ad043d2 100644
--- a/web/src/managed-agents/security/ProjectSwarm.tsx
+++ b/web/src/managed-agents/security/ProjectSwarm.tsx
@@ -52,30 +52,38 @@ export default function ProjectSwarm() {
})
return (
- <div className="mx-auto max-w-5xl px-4 py-8">
- <Link
- to={`/projects/${encodeURIComponent(projectId)}/swarms`}
- className="text-muted-foreground hover:text-foreground mb-4 inline-flex items-center gap-1.5 text-sm"
- >
- <ArrowLeft className="size-3.5" /> All swarms
- </Link>
- {manifest.isPending ? (
- <div className="text-muted-foreground inline-flex items-center gap-2 text-sm">
- <Loader2 className="size-4 animate-spin" /> Loading the run…
+ <div className="bg-background min-h-screen">
+ {/* This view runs outside the app shell, so it carries its own slim bar
+ back to the project's swarms list. */}
+ <header className="bg-background/80 sticky top-0 z-10 border-b backdrop-blur">
+ <div className="mx-auto flex h-12 max-w-6xl items-center px-4">
+ <Link
+ to={`/projects/${encodeURIComponent(projectId)}/swarms`}
+ className="text-muted-foreground hover:text-foreground inline-flex items-center gap-1.5 text-sm"
+ >
+ <ArrowLeft className="size-3.5" /> Back to swarms
+ </Link>
</div>
- ) : manifest.data ? (
- <RunView projectId={projectId} manifest={manifest.data} />
- ) : (
- <div className="rounded-lg border border-dashed p-10 text-center">
- <Radar className="text-muted-foreground mx-auto size-6" />
- <p className="text-muted-foreground mt-3 text-sm">
- This swarm run could not be found.
- </p>
- <Button asChild variant="outline" className="mt-4">
- <Link to="/security">Launch a swarm</Link>
- </Button>
- </div>
- )}
+ </header>
+ <div className="mx-auto max-w-6xl px-4 py-6">
+ {manifest.isPending ? (
+ <div className="text-muted-foreground inline-flex items-center gap-2 text-sm">
+ <Loader2 className="size-4 animate-spin" /> Loading the run…
+ </div>
+ ) : manifest.data ? (
+ <RunView projectId={projectId} manifest={manifest.data} />
+ ) : (
+ <div className="rounded-lg border border-dashed p-10 text-center">
+ <Radar className="text-muted-foreground mx-auto size-6" />
+ <p className="text-muted-foreground mt-3 text-sm">
+ This swarm run could not be found.
+ </p>
+ <Button asChild variant="outline" className="mt-4">
+ <Link to="/security">Launch a swarm</Link>
+ </Button>
+ </div>
+ )}
+ </div>
</div>
)
}