feat: add preset picker for new and existing sandboxes

- add security preset selector to policy editor
- surface canned exec allowlists per preset
- add danger warnings for Spicy and Ultra-Lobster
- reuse preset-driven policy editor in create sandbox flow
This commit is contained in:
Mark McKeen
2026-03-29 08:47:20 -06:00
parent 3b4a52bd6c
commit 22998e6da7
2 changed files with 90 additions and 50 deletions
+11 -8
View File
@@ -2,6 +2,7 @@
import { useState } from 'react'
import Sidebar from './components/Sidebar'
import SandboxList from './components/SandboxList'
import ConfigurationPanel from './components/ConfigurationPanel'
export default function Dashboard() {
const [theme, setTheme] = useState<'light' | 'dark'>('dark')
@@ -83,14 +84,16 @@ export default function Dashboard() {
<div className={isSubmenuOpen ? 'ml-72' : ''}>
<div className="p-8">
{isCreateMode ? (
<div className="panel p-8">
<h1 className="text-lg font-semibold text-[var(--nvidia-green)] uppercase tracking-wider mb-4">
CREATE SANDBOX
</h1>
<p className="text-sm text-[var(--foreground-dim)]">
Sandbox creation workflow will appear here. Configure parameters and deploy a new sandbox instance.
</p>
{/* TODO: Add creation form */}
<div className="space-y-6">
<div className="panel p-8">
<h1 className="text-lg font-semibold text-[var(--nvidia-green)] uppercase tracking-wider mb-4">
CREATE SANDBOX
</h1>
<p className="text-sm text-[var(--foreground-dim)]">
Start from a named security preset, then refine the OpenShell policy before creating the sandbox.
</p>
</div>
<ConfigurationPanel sandboxId="new-sandbox" mode="create" />
</div>
) : isDestroyMode ? (
<div className="panel p-8 border-2 border-[var(--status-stopped)]">