An open-source, faster Devin alternative
TypeScript
fix(web): design-review polish round 2 (no serif, sharper, aligned shell)
Igor Zalutskiab8eff7aa40a
diff --git a/web/package-lock.json b/web/package-lock.jsonindex 07c03ce4..776b249b 100644--- a/web/package-lock.json+++ b/web/package-lock.json@@ -10,7 +10,6 @@"dependencies": {"@fontsource-variable/geist-mono": "^5.2.8","@fontsource-variable/inter": "^5.2.8",- "@fontsource-variable/newsreader": "^5.2.10","@posthog/react": "^1.9.0","@tanstack/react-query": "^5.60.0","@xterm/addon-fit": "^0.11.0",@@ -1410,15 +1409,6 @@"url": "https://github.com/sponsors/ayuhito"}},- "node_modules/@fontsource-variable/newsreader": {- "version": "5.2.10",- "resolved": "https://registry.npmjs.org/@fontsource-variable/newsreader/-/newsreader-5.2.10.tgz",- "integrity": "sha512-MdI2iRwrqWpMOU/2aV2BgfZ4dJNlj/XlYaY8Zb7t87mWqHskYW0XiUANkt1cyOCiEfW2VQ0bQ5vZgGPp6B2B4w==",- "license": "OFL-1.1",- "funding": {- "url": "https://github.com/sponsors/ayuhito"- }- },"node_modules/@hono/node-server": {"version": "1.19.14","resolved": "https://registry.npmjs.org/@hono/node-server/-/node-server-1.19.14.tgz",diff --git a/web/package.json b/web/package.jsonindex 3e7f4aed..c9833af5 100644--- a/web/package.json+++ b/web/package.json@@ -16,7 +16,6 @@"dependencies": {"@fontsource-variable/geist-mono": "^5.2.8","@fontsource-variable/inter": "^5.2.8",- "@fontsource-variable/newsreader": "^5.2.10","@posthog/react": "^1.9.0","@tanstack/react-query": "^5.60.0","@xterm/addon-fit": "^0.11.0",diff --git a/web/src/components/app-shell.tsx b/web/src/components/app-shell.tsxindex 014213ba..65817c14 100644--- a/web/src/components/app-shell.tsx+++ b/web/src/components/app-shell.tsx@@ -105,14 +105,10 @@ function OrgSwitcher() {)}-function SidebarBody({ onNavigate }: { onNavigate?: () => void }) {+function SidebarNav({ onNavigate }: { onNavigate?: () => void }) {const { user } = useAuth()return (- <div className="flex h-full flex-col">- <div className="flex h-16 shrink-0 items-center border-b px-4">- <Brand />- </div>-+ <div className="flex h-full min-h-0 flex-col">{(user?.orgs?.length ?? 0) > 1 ? (<div className="border-b px-3 py-3"><OrgSwitcher />@@ -136,7 +132,8 @@ function SidebarBody({ onNavigate }: { onNavigate?: () => void }) {}><item.icon- className="size-[18px] shrink-0 opacity-50"+ className="size-[18px] shrink-0 opacity-60"+ strokeWidth={1.5}aria-hidden/>{item.label}@@ -156,9 +153,9 @@ function SidebarBody({ onNavigate }: { onNavigate?: () => void }) {onClick={() => logout()}aria-label="Sign out"title="Sign out"- className="text-muted-foreground hover:bg-sidebar-accent hover:text-foreground flex size-7 shrink-0 items-center justify-center rounded-md transition-colors"+ className="text-muted-foreground/60 hover:text-foreground flex size-7 shrink-0 items-center justify-center transition-colors">- <LogOut className="size-4" aria-hidden />+ <LogOut className="size-4" strokeWidth={1.5} aria-hidden /></button></div></div>@@ -199,9 +196,17 @@ export default function AppShell() {return (<div className="bg-background text-foreground min-h-screen font-sans">- {/* Desktop sidebar */}- <aside className="bg-sidebar fixed inset-y-0 left-0 z-30 hidden w-60 border-r md:block">- <SidebarBody />+ {/* Desktop top bar — a continuous line across the app; the brand sits in+ the column above the sidebar so its right + bottom borders line up. */}+ <header className="bg-sidebar fixed inset-x-0 top-0 z-30 hidden h-16 items-center border-b md:flex">+ <div className="flex h-full w-60 shrink-0 items-center border-r px-6">+ <Brand />+ </div>+ </header>++ {/* Desktop sidebar (below the top bar) */}+ <aside className="bg-sidebar fixed top-16 bottom-0 left-0 z-20 hidden w-60 flex-col border-r md:flex">+ <SidebarNav /></aside>{/* Mobile top bar */}@@ -212,18 +217,24 @@ export default function AppShell() {<Menu className="size-5" /></Button></SheetTrigger>- <SheetContent side="left" className="bg-sidebar w-64 p-0">+ <SheetContent+ side="left"+ className="bg-sidebar flex w-64 flex-col p-0"+ ><SheetTitle className="sr-only">Navigation</SheetTitle>- <SidebarBody onNavigate={() => setDrawerOpen(false)} />+ <div className="flex h-14 shrink-0 items-center border-b px-4">+ <Brand />+ </div>+ <SidebarNav onNavigate={() => setDrawerOpen(false)} /></SheetContent></Sheet><Brand /></header>{/* Main content */}- <div className="md:pl-60">+ <div className="md:pt-16 md:pl-60"><HaltBanner />- <main className="mx-auto max-w-7xl px-4 py-5 sm:px-8">+ <main className="mx-auto max-w-7xl px-4 py-6 sm:px-8"><Outlet /></main></div>diff --git a/web/src/components/page-header.tsx b/web/src/components/page-header.tsxindex 0ad1bf8b..7d63e468 100644--- a/web/src/components/page-header.tsx+++ b/web/src/components/page-header.tsx@@ -20,7 +20,7 @@ export function PageHeader({)}><div className="space-y-1">- <h1 className="font-heading text-foreground text-2xl font-semibold tracking-tight">+ <h1 className="text-foreground text-xl font-semibold tracking-tight">{title}</h1>{description ? (diff --git a/web/src/components/ui/button.tsx b/web/src/components/ui/button.tsxindex 99baf81d..920272a2 100644--- a/web/src/components/ui/button.tsx+++ b/web/src/components/ui/button.tsx@@ -5,7 +5,7 @@ import { Slot } from 'radix-ui'import { cn } from '@/lib/utils'const buttonVariants = cva(- "group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",+ "group/button inline-flex shrink-0 items-center justify-center rounded-md border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants: {variant: {@@ -23,14 +23,13 @@ const buttonVariants = cva(size: {default:'h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2',- xs: "h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",- sm: "h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",+ xs: "h-6 gap-1 rounded-sm px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",+ sm: "h-7 gap-1 rounded-sm px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg: 'h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2',icon: 'size-8','icon-xs':- "size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3",- 'icon-sm':- 'size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg',+ "size-6 rounded-sm in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3",+ 'icon-sm': 'size-7 rounded-sm in-data-[slot=button-group]:rounded-lg','icon-lg': 'size-9',},},diff --git a/web/src/components/ui/dialog.tsx b/web/src/components/ui/dialog.tsxindex a3f47d2e..3ee64677 100644--- a/web/src/components/ui/dialog.tsx+++ b/web/src/components/ui/dialog.tsx@@ -59,7 +59,7 @@ function DialogContent({<DialogPrimitive.Contentdata-slot="dialog-content"className={cn(- 'bg-popover text-popover-foreground ring-foreground/10 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl p-4 text-sm ring-1 duration-100 outline-none sm:max-w-sm',+ 'bg-popover text-popover-foreground data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-lg border p-5 text-sm shadow-lg duration-100 outline-none sm:max-w-sm',className,)}{...props}@@ -104,7 +104,7 @@ function DialogFooter({<divdata-slot="dialog-footer"className={cn(- 'bg-muted/50 -mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t p-4 sm:flex-row sm:justify-end',+ 'mt-2 flex flex-col-reverse gap-2 sm:flex-row sm:justify-end',className,)}{...props}diff --git a/web/src/components/ui/table.tsx b/web/src/components/ui/table.tsxindex 8f197214..96b63245 100644--- a/web/src/components/ui/table.tsx+++ b/web/src/components/ui/table.tsx@@ -68,7 +68,7 @@ function TableHead({ className, ...props }: React.ComponentProps<'th'>) {<thdata-slot="table-head"className={cn(- 'text-muted-foreground h-11 px-4 text-left align-middle text-xs font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0',+ 'text-muted-foreground h-9 px-4 text-left align-middle text-xs font-medium tracking-wide whitespace-nowrap uppercase [&:has([role=checkbox])]:pr-0',className,)}{...props}diff --git a/web/src/index.css b/web/src/index.cssindex 3fac16a5..e7ebf6a9 100644--- a/web/src/index.css+++ b/web/src/index.css@@ -36,7 +36,6 @@/* Self-hosted brand fonts (no external CDN dependency). */@import '@fontsource-variable/inter';@import '@fontsource-variable/geist-mono';-@import '@fontsource-variable/newsreader';@custom-variant dark (&:is(.dark *));@@ -48,8 +47,8 @@--font-mono:'Geist Mono Variable', ui-monospace, 'SF Mono', 'Menlo', 'Consolas',monospace;- /* Display/brand serif — matches the Mintlify docs heading font (Newsreader). */- --font-heading: 'Newsreader Variable', ui-serif, Georgia, serif;+ /* Headings use the UI sans (Inter) — serif felt out of place in the app. */+ --font-heading: var(--font-sans);/* shadcn semantic colors -> our tokens */--color-background: var(--background);