Skip to content

An open-source, faster Devin alternative

TypeScript

fix(web): failed-checkpoint strip, warm dark surfaces, dialog/log polish

Igor Zalutskiea2547d566dc
diff --git a/web/src/components/LogsPanel.tsx b/web/src/components/LogsPanel.tsx
index 32a5df50..5007e336 100644
--- a/web/src/components/LogsPanel.tsx
+++ b/web/src/components/LogsPanel.tsx
@@ -31,16 +31,14 @@ const visibleCap = 3000 // hard cap on retained events
const debounceMs = 200 // search-box debounce
const nearBottomPx = 40 // "auto-scroll if within this many px of bottom"
-// One colour per source. Distinct hues across the four; no overlap
-// with the green used for success-EOF rows (✓ exited 0) and the rose
-// used for failure-EOF rows.
-// Dark-surface palette: one distinct hue per source, no overlap with the
-// emerald (✓ exited 0) / rose (✗) used for EOF rows.
+// One muted hue per source — distinct but toned down (not neon) so they sit
+// quietly on the warm-dark surface; no overlap with the green/rose used for
+// EOF rows.
const sources: { value: LogEvent['source']; label: string; color: string }[] = [
- { value: 'exec_stdout', label: 'stdout', color: '#a1a1aa' }, // zinc-400
- { value: 'exec_stderr', label: 'stderr', color: '#fb7185' }, // rose-400
- { value: 'var_log', label: 'var/log', color: '#fbbf24' }, // amber-400
- { value: 'agent', label: 'agent', color: '#38bdf8' }, // sky-400
+ { value: 'exec_stdout', label: 'stdout', color: '#a8a299' }, // warm grey
+ { value: 'exec_stderr', label: 'stderr', color: '#dc8f88' }, // soft rose
+ { value: 'var_log', label: 'var/log', color: '#cfa45e' }, // soft amber
+ { value: 'agent', label: 'agent', color: '#7ba4cd' }, // soft blue
]
function useDebouncedValue<T>(value: T, delayMs: number): T {
@@ -215,7 +213,7 @@ export default function LogsPanel({ sandboxId, onClose }: LogsPanelProps) {
value={query}
onChange={(e) => setQuery(e.target.value)}
placeholder="Search…"
- className="border-code-border text-code-foreground placeholder:text-code-muted w-full rounded-md border bg-black/20 px-2.5 py-1.5 pr-7 text-[13px] outline-none focus-visible:border-zinc-500"
+ className="border-code-border text-code-foreground placeholder:text-code-muted focus-visible:border-code-muted/70 w-full rounded-md border bg-black/20 px-2.5 py-1.5 pr-7 text-[13px] outline-none"
/>
{query ? (
<button
@@ -242,12 +240,14 @@ export default function LogsPanel({ sandboxId, onClose }: LogsPanelProps) {
className="rounded-md border px-2 py-0.5 font-mono text-[11px] transition-opacity"
style={{
color: src.color,
- borderColor: src.color,
+ // Fine, low-contrast border — a faint tint of the source
+ // color rather than a screamy full-saturation outline.
+ borderColor: `color-mix(in srgb, ${src.color} 32%, transparent)`,
background: isVisible
- ? `color-mix(in srgb, ${src.color} 16%, transparent)`
+ ? `color-mix(in srgb, ${src.color} 12%, transparent)`
: 'transparent',
- opacity: isVisible ? 1 : 0.4,
- fontWeight: isVisible ? 600 : 400,
+ opacity: isVisible ? 1 : 0.45,
+ fontWeight: isVisible ? 500 : 400,
}}
>
{src.label}
@@ -314,7 +314,7 @@ function ConnectionDot({
state: 'connecting' | 'open' | 'error' | 'closed'
}) {
const color =
- state === 'open' ? '#34d399' : state === 'error' ? '#fb7185' : '#71717a'
+ state === 'open' ? '#6bbd95' : state === 'error' ? '#dc8f88' : '#8a847b'
return (
<span
title={`Connection: ${state}`}
@@ -326,7 +326,7 @@ function ConnectionDot({
function Row({ ev }: { ev: LogEvent }) {
const sourceMeta = sources.find((s) => s.value === ev.source)
- const sourceColor = sourceMeta?.color || '#71717a'
+ const sourceColor = sourceMeta?.color || '#8a847b'
const time = formatTime(ev._time)
// Exec EOF marker: empty line + exit_code present → a synthetic "command X
@@ -336,7 +336,7 @@ function Row({ ev }: { ev: LogEvent }) {
return (
<div
className="flex gap-2.5 px-4 py-0.5 italic"
- style={{ color: ok ? '#34d399' : '#fb7185' }}
+ style={{ color: ok ? '#6bbd95' : '#dc8f88' }}
>
<span className="text-code-muted not-italic">{time}</span>
<span>
diff --git a/web/src/components/Terminal.tsx b/web/src/components/Terminal.tsx
index dceb87b1..f3513ecd 100644
--- a/web/src/components/Terminal.tsx
+++ b/web/src/components/Terminal.tsx
@@ -30,10 +30,10 @@ export default function Terminal({ sandboxId, onClose }: TerminalProps) {
fontSize: 13,
fontFamily: '"Geist Mono Variable", Menlo, Monaco, Consolas, monospace',
theme: {
- background: '#0a0a0f',
- foreground: '#e4e4e7',
- cursor: '#818cf8',
- selectionBackground: 'rgba(129, 140, 248, 0.3)',
+ background: '#14120f', // warm near-black — matches --terminal
+ foreground: '#e6e1d8', // warm light
+ cursor: '#c2bcae', // warm neutral (de-purpled)
+ selectionBackground: 'rgba(230, 225, 216, 0.16)',
black: '#18181b',
red: '#fb7185',
green: '#34d399',
diff --git a/web/src/components/resource-table.tsx b/web/src/components/resource-table.tsx
index 0db04344..e40034c1 100644
--- a/web/src/components/resource-table.tsx
+++ b/web/src/components/resource-table.tsx
@@ -103,7 +103,7 @@ export function ResourceTable<T>({
</TableRow>
{sub ? (
<TableRow className="hover:bg-transparent">
- <TableCell colSpan={columns.length} className="pt-0">
+ <TableCell colSpan={columns.length} className="p-0">
{sub}
</TableCell>
</TableRow>
diff --git a/web/src/index.css b/web/src/index.css
index 7e5193b3..9c604d9b 100644
--- a/web/src/index.css
+++ b/web/src/index.css
@@ -167,12 +167,15 @@
--status-pending: hsl(34 80% 31%);
--status-pending-bg: hsl(42 88% 90%);
- /* Dark technical surfaces */
- --code: hsl(240 14% 9%); /* code blocks */
+ /* Dark technical surfaces — WARM dark (hue ~36) so they read as the app's
+ own dark, not a generic cool-blue terminal. */
+ --code: hsl(36 9% 10%); /* code blocks */
--code-foreground: hsl(40 12% 88%);
- --code-muted: hsl(240 6% 55%); /* line numbers, gutters */
- --code-border: hsl(240 8% 18%);
- --terminal: #0a0a0f; /* xterm bg — preserved exactly */
+ --code-muted: hsl(40 6% 54%); /* line numbers, gutters */
+ --code-border: hsl(36 8% 19%);
+ --terminal: hsl(
+ 36 13% 7%
+ ); /* warm near-black (xterm bg matches in Terminal.tsx) */
/* Charts — neutral ink ramp (light → dark) */
--chart-1: hsl(45 8% 25%);
diff --git a/web/src/pages/APIKeys.tsx b/web/src/pages/APIKeys.tsx
index c74871bc..61a8715e 100644
--- a/web/src/pages/APIKeys.tsx
+++ b/web/src/pages/APIKeys.tsx
@@ -199,7 +199,7 @@ export default function APIKeys() {
<DialogFooter className="mt-4">
<Button
type="button"
- variant="outline"
+ variant="ghost"
onClick={() => {
setShowCreate(false)
setNewKeyName('')
diff --git a/web/src/pages/Checkpoints.tsx b/web/src/pages/Checkpoints.tsx
index ca77a420..759102b4 100644
--- a/web/src/pages/Checkpoints.tsx
+++ b/web/src/pages/Checkpoints.tsx
@@ -13,7 +13,6 @@ import { Button } from '@/components/ui/button'
import { Badge } from '@/components/ui/badge'
import { Checkbox } from '@/components/ui/checkbox'
import { Label } from '@/components/ui/label'
-import { Alert, AlertDescription } from '@/components/ui/alert'
import { StatusBadge } from '@/components/status-badge'
import { EmptyState } from '@/components/empty-state'
import { ConfirmDialog } from '@/components/confirm-dialog'
@@ -192,17 +191,20 @@ export default function Checkpoints() {
loading={isLoading}
renderSubRow={(cp) =>
cp.status === 'failed' && cp.errorMsg ? (
- <Alert variant="destructive">
- <CircleAlert />
- <AlertDescription>
- <p className="break-words">{cp.errorMsg}</p>
+ <div className="bg-status-error-bg/50 flex items-start gap-2 px-4 py-2.5">
+ <CircleAlert className="text-status-error mt-px size-3.5 shrink-0" />
+ <div className="min-w-0 text-xs">
+ <span className="text-status-error break-words">
+ {cp.errorMsg}
+ </span>
{cp.failedAt ? (
- <p className="text-muted-foreground mt-1">
- Failed {new Date(cp.failedAt).toLocaleString()}
- </p>
+ <span className="text-muted-foreground">
+ {' · failed '}
+ {new Date(cp.failedAt).toLocaleString()}
+ </span>
) : null}
- </AlertDescription>
- </Alert>
+ </div>
+ </div>
) : null
}
empty={