Files
Mark McKeen 0c731b254a feat: Add NVIDIA industrial design dashboard with Create/Destoy sandbox workflows
- Industrial dark theme with #76B900 NVIDIA green accents
- Real-time telemetry from Kubernetes API
- Create Sandbox button and workflow
- Destroy Sandbox mode with destructive confirmation overlay
- Sidebar fetches pod data directly from /api/telemetry/real
- Fixed TypeError with defensive array checks
- Technical typography, sharp corners, data-dense panels
- Status indicators: GREEN RUNNING, red DESTROY mode
2026-03-26 16:39:19 -06:00

21 lines
548 B
TypeScript

import { NextResponse } from 'next/server'
// Mock action handler
export async function POST(request: Request) {
try {
// In production, this would:
// 1. Call OpenShell API to stop the sandbox
// 2. Wait for confirmation
// 3. Return success/error response
await new Promise(resolve => setTimeout(resolve, 1000))
return NextResponse.json({
message: 'Sandbox stopped successfully'
})
} catch (error) {
return NextResponse.json(
{ error: 'Failed to stop sandbox' },
{ status: 500 }
)
}
}