Skip to content

An open-source, faster Devin alternative

TypeScript

refactor(web): rename the "Sessions" tab to "Sandboxes"

Igor Zalutski579dc54cbade
diff --git a/web/src/App.tsx b/web/src/App.tsx
index ddc7eb3b..b73d3725 100644
--- a/web/src/App.tsx
+++ b/web/src/App.tsx
@@ -18,8 +18,13 @@ export default function App() {
<Route element={<ProtectedRoute />}>
<Route element={<AppShell />}>
<Route index element={<Dashboard />} />
- <Route path="sessions" element={<Sessions />} />
- <Route path="sessions/:sandboxId" element={<SessionDetail />} />
+ <Route path="sandboxes" element={<Sessions />} />
+ <Route path="sandboxes/:sandboxId" element={<SessionDetail />} />
+ {/* Back-compat: the tab was renamed Sessions → Sandboxes. */}
+ <Route
+ path="sessions"
+ element={<Navigate to="/sandboxes" replace />}
+ />
<Route path="checkpoints" element={<Checkpoints />} />
<Route path="templates" element={<Templates />} />
<Route path="api-keys" element={<APIKeys />} />
diff --git a/web/src/components/app-shell.tsx b/web/src/components/app-shell.tsx
index 174f8ba5..30882d02 100644
--- a/web/src/components/app-shell.tsx
+++ b/web/src/components/app-shell.tsx
@@ -38,7 +38,7 @@ type NavItem = { to: string; label: string; icon: LucideIcon; end?: boolean }
const NAV: NavItem[] = [
{ to: '/', label: 'Dashboard', icon: LayoutGrid, end: true },
- { to: '/sessions', label: 'Sessions', icon: Boxes },
+ { to: '/sandboxes', label: 'Sandboxes', icon: Boxes },
{ to: '/checkpoints', label: 'Checkpoints', icon: Layers },
{ to: '/templates', label: 'Templates', icon: Package },
{ to: '/api-keys', label: 'API Keys', icon: KeyRound },
diff --git a/web/src/pages/Dashboard.tsx b/web/src/pages/Dashboard.tsx
index 7576e9ae..275d9112 100644
--- a/web/src/pages/Dashboard.tsx
+++ b/web/src/pages/Dashboard.tsx
@@ -65,7 +65,7 @@ export default function Dashboard() {
header: 'Sandbox ID',
cell: (s) => (
<Link
- to={`/sessions/${s.sandboxId}`}
+ to={`/sandboxes/${s.sandboxId}`}
className="text-foreground font-mono text-[13px] underline-offset-4 hover:underline"
>
{s.sandboxId}
@@ -125,7 +125,7 @@ export default function Dashboard() {
value={loadingRunning ? '—' : active.length.toLocaleString()}
/>
<MetricCard
- label="Sessions today"
+ label="Sandboxes today"
value={loadingAll ? '—' : sessionsToday.toLocaleString()}
/>
</div>
@@ -160,7 +160,7 @@ export default function Dashboard() {
<Panel className="overflow-hidden">
<PanelHeader>
- <PanelTitle>Recent sessions</PanelTitle>
+ <PanelTitle>Recent sandboxes</PanelTitle>
</PanelHeader>
<ResourceTable
columns={recentColumns}
@@ -170,7 +170,7 @@ export default function Dashboard() {
empty={
<EmptyState
icon={Boxes}
- title="No sessions yet"
+ title="No sandboxes yet"
description="Sandboxes you start will show up here."
/>
}
@@ -186,7 +186,7 @@ function SandboxRow({ session }: { session: Session }) {
const elapsed = elapsedMinutes(session)
return (
<Link
- to={`/sessions/${session.sandboxId}`}
+ to={`/sandboxes/${session.sandboxId}`}
className="hover:bg-row-hover flex items-center justify-between px-5 py-3 transition-colors"
>
<div className="flex items-center gap-2.5">
diff --git a/web/src/pages/SessionDetail.tsx b/web/src/pages/SessionDetail.tsx
index 04d8c3e5..0706f851 100644
--- a/web/src/pages/SessionDetail.tsx
+++ b/web/src/pages/SessionDetail.tsx
@@ -145,11 +145,11 @@ export default function SessionDetail() {
return (
<Panel>
<EmptyState
- title="Session not found"
+ title="Sandbox not found"
description="This sandbox may have been deleted."
action={
- <Button variant="outline" onClick={() => navigate('/sessions')}>
- Back to Sessions
+ <Button variant="outline" onClick={() => navigate('/sandboxes')}>
+ Back to Sandboxes
</Button>
}
/>
@@ -167,11 +167,11 @@ export default function SessionDetail() {
return (
<div>
<Link
- to="/sessions"
+ to="/sandboxes"
className="text-muted-foreground hover:text-foreground mb-5 inline-flex items-center gap-1.5 text-sm transition-colors"
>
<ArrowLeft className="size-4" />
- Back to Sessions
+ Back to Sandboxes
</Link>
{/* Header */}
diff --git a/web/src/pages/Sessions.tsx b/web/src/pages/Sessions.tsx
index 839546ba..248bdbaa 100644
--- a/web/src/pages/Sessions.tsx
+++ b/web/src/pages/Sessions.tsx
@@ -78,7 +78,7 @@ export default function Sessions() {
header: 'Sandbox ID',
cell: (s) => (
<Link
- to={`/sessions/${s.sandboxId}`}
+ to={`/sandboxes/${s.sandboxId}`}
className="text-foreground font-mono text-[13px] underline-offset-4 hover:underline"
>
{s.sandboxId}
@@ -135,7 +135,7 @@ export default function Sessions() {
return (
<div>
- <PageHeader title="Sessions" description="Session history" />
+ <PageHeader title="Sandboxes" description="Active and recent sandboxes" />
<ActivityChart sessions={allSessions ?? []} loading={loadingAll} />
@@ -161,10 +161,10 @@ export default function Sessions() {
empty={
<EmptyState
icon={Boxes}
- title="No sessions found"
+ title="No sandboxes found"
description={
status
- ? 'No sessions match this filter.'
+ ? 'No sandboxes match this filter.'
: 'Sandboxes you start will show up here.'
}
/>
@@ -254,7 +254,7 @@ function ActivityChart({
<div className="relative">
{/* Accessible summary (chart is decorative; this conveys the data). */}
<p className="sr-only">
- {total} sessions started in the last 14 days.
+ {total} sandboxes started in the last 14 days.
</p>
{/* Y-axis */}
@@ -275,7 +275,7 @@ function ActivityChart({
return (
<div
key={day.date}
- title={`${day.label}: ${day.count} sessions${
+ title={`${day.label}: ${day.count} sandboxes${
day.hibernated ? ` (${day.hibernated} hibernated)` : ''
}${day.errored ? ` (${day.errored} errors)` : ''}`}
className={cn(