Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ services:
- KataContainerManager__PodNamePrefix=kata-sandbox
- KataContainerManager__CleanupCompletedPods=true
- KataContainerManager__PodReadyTimeoutSeconds=90
# MCP Server Configuration
- KataContainerManager__McpServerImage=ghcr.io/andyjmorgan/donkeywork-codesandbox-mcpserver:latest
- KataContainerManager__McpPodNamePrefix=kata-mcp
- KataContainerManager__McpWarmPoolSize=5
- KataContainerManager__McpIdleTimeoutMinutes=60
- KataContainerManager__McpMaxContainerLifetimeMinutes=480
# Serilog Configuration
- Serilog__MinimumLevel__Default=Information
- Serilog__MinimumLevel__Override__Microsoft=Warning
Expand Down
11 changes: 9 additions & 2 deletions frontend/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
import { useState } from 'react'
import { AppLayout } from '@/components/layout/AppLayout'
import { SandboxManager } from '@/components/sandbox/SandboxManager'
import { McpServerManager } from '@/components/mcp/McpServerManager'

export type ActiveSection = 'sandboxes' | 'mcp-servers'

function App() {
const [activeSection, setActiveSection] = useState<ActiveSection>('sandboxes')

return (
<AppLayout>
<SandboxManager />
<AppLayout activeSection={activeSection} onSectionChange={setActiveSection}>
{activeSection === 'sandboxes' && <SandboxManager />}
{activeSection === 'mcp-servers' && <McpServerManager />}
</AppLayout>
)
}
Expand Down
39 changes: 36 additions & 3 deletions frontend/src/components/layout/AppLayout.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
import type { ReactNode } from 'react'
import type { ActiveSection } from '@/App'
import { ThemeToggle } from './ThemeToggle'
import { Github } from 'lucide-react'
import { Github, Box, Server } from 'lucide-react'
import { Button } from '@/components/ui/button'
import { cn } from '@/lib/utils'

interface AppLayoutProps {
children: ReactNode
activeSection: ActiveSection
onSectionChange: (section: ActiveSection) => void
}

export function AppLayout({ children }: AppLayoutProps) {
export function AppLayout({ children, activeSection, onSectionChange }: AppLayoutProps) {
return (
<div className="flex flex-col h-screen bg-background text-foreground">
{/* Header */}
Expand All @@ -19,8 +23,37 @@ export function AppLayout({ children }: AppLayoutProps) {
alt="DonkeyWork Logo"
className="w-7 h-7"
/>
<h1 className="text-xl font-semibold">Sandbox Manager</h1>
<h1 className="text-xl font-semibold hidden sm:block">Sandbox Manager</h1>
</div>

{/* Navigation */}
<nav className="flex items-center gap-1">
<Button
variant="ghost"
size="sm"
onClick={() => onSectionChange('sandboxes')}
className={cn(
"gap-2",
activeSection === 'sandboxes' && "bg-muted text-foreground"
)}
>
<Box className="h-4 w-4" />
<span className="hidden sm:inline">Sandboxes</span>
</Button>
<Button
variant="ghost"
size="sm"
onClick={() => onSectionChange('mcp-servers')}
className={cn(
"gap-2",
activeSection === 'mcp-servers' && "bg-muted text-foreground"
)}
>
<Server className="h-4 w-4" />
<span className="hidden sm:inline">MCP Servers</span>
</Button>
</nav>

<div className="flex items-center gap-2">
<Button
variant="ghost"
Expand Down
Loading
Loading