From 7f3ab38bc887a1261a5a67e728931b80a5fcf5e7 Mon Sep 17 00:00:00 2001 From: Sanchit Rk <0xsanchit@gmail.com> Date: Sat, 14 Nov 2026 00:27:01 +0530 Subject: [PATCH] fix(desktop): polish the sidebar, close crosses and empty-state copy - Sidebar New, Search and Threads rows get 4px gaps, inset focus rings and a constant-weight active state; New is full ink as the primary action. Search keeps its tint while filtering and replaces Chromium's clear button with a Phosphor one. - Workspace tab and banner close crosses use the regular weight. - Empty states, failure labels and thread picker prompts are title case. Co-Authored-By: Claude Opus 5.5 --- apps/web/src/components/banner.tsx | 4 +-- apps/web/src/components/model.tsx | 2 +- apps/web/src/landing/sidebar.tsx | 41 +++++++++++++++++------- apps/web/src/projects/projects.tsx | 2 +- apps/web/src/settings/layout.tsx | 4 +-- apps/web/src/settings/workspaces.tsx | 2 +- apps/web/src/shell/palette.tsx | 2 +- apps/web/src/shell/sources.tsx | 2 +- apps/web/src/shell/switcher.tsx | 2 +- apps/web/src/widgets/threads/picker.tsx | 2 +- apps/web/src/widgets/threads/threads.tsx | 12 +++---- 11 files changed, 45 insertions(+), 30 deletions(-) diff --git a/apps/web/src/components/banner.tsx b/apps/web/src/components/banner.tsx index 046d36a5..d3fc4687 100644 --- a/apps/web/src/components/banner.tsx +++ b/apps/web/src/components/banner.tsx @@ -92,7 +92,7 @@ function NoticeCard({ onClick={onDismiss} className="-mr-1 grid size-5 shrink-0 place-items-center rounded-md text-ink-muted transition-[transform,background-color,color] duration-150 ease-out hover:bg-ink/10 hover:text-ink active:scale-95" > - + )} @@ -140,7 +140,7 @@ export function NoticeLine({ onClick={onDismiss} className="grid size-5 shrink-0 place-items-center rounded-md text-ink-muted transition-[transform,background-color,color,opacity] duration-150 ease-out hover:bg-ink/10 hover:text-ink focus-visible:opacity-100 active:scale-95 pointer-fine:opacity-0 pointer-fine:group-hover:opacity-100" > - + )} diff --git a/apps/web/src/components/model.tsx b/apps/web/src/components/model.tsx index a281f503..a6e90bd3 100644 --- a/apps/web/src/components/model.tsx +++ b/apps/web/src/components/model.tsx @@ -190,7 +190,7 @@ function Models({ hostDir, value, onChange }: ModelPickerProps) { const failed = AsyncResult.isFailure(result); const label = failed ? "Unavailable" : none ? "No Models" : (found?.model.name ?? current?.id ?? "Choose model"); const empty = - list === undefined ? "Loading models…" : providers.length === 0 ? "No provider is signed in." : "No models found"; + list === undefined ? "Loading Models…" : providers.length === 0 ? "No Provider Is Signed In" : "No Models Found"; return ( (null); const openElsewhere = useOpenElsewhere(); const [place, setPlace] = useAtom(placeAtom); const addProject = useAddProject(); @@ -138,9 +140,9 @@ export function SessionsSidebar() { return ( - -
@@ -150,6 +152,7 @@ export function SessionsSidebar() { aria-hidden /> + {query !== "" && ( + + )}
svg]:text-ink`} > Threads @@ -179,15 +196,15 @@ export function SessionsSidebar() { className="w-full font-normal text-ink-muted hover:bg-ink/5 hover:text-ink focus-visible:bg-ink/5" /> ) : AsyncResult.isFailure(result) ? ( -

Could not load sessions.

+

Could Not Load Sessions

) : AsyncResult.isSuccess(result) && groups.length === 0 ? ( needle !== "" ? ( -

No threads match “{query}”.

+

No Threads Match “{query}”

) : ( {place.kind === "none" && result.value.length === 0 ? ( <> - No projects yet + No Projects Yet } onClick={addProject} @@ -196,7 +213,7 @@ export function SessionsSidebar() { ) : ( - No threads yet + No Threads Yet )} ) @@ -239,7 +256,7 @@ export function SessionsSidebar() { )} - + Settings diff --git a/apps/web/src/projects/projects.tsx b/apps/web/src/projects/projects.tsx index 20ef2c6a..b33496ca 100644 --- a/apps/web/src/projects/projects.tsx +++ b/apps/web/src/projects/projects.tsx @@ -233,7 +233,7 @@ export function Projects() { return null; }; - if (AsyncResult.isFailure(projects)) return

Could not load projects.

; + if (AsyncResult.isFailure(projects)) return

Could Not Load Projects

; const count = AsyncResult.isSuccess(projects) ? projects.value.length : 0; return (
diff --git a/apps/web/src/settings/layout.tsx b/apps/web/src/settings/layout.tsx index 0841f9ea..b804c2c9 100644 --- a/apps/web/src/settings/layout.tsx +++ b/apps/web/src/settings/layout.tsx @@ -91,9 +91,7 @@ export function SettingsSidebar() { ))} - {matches.length === 0 && ( -

No settings match “{query}”.

- )} + {matches.length === 0 &&

No Settings Match “{query}”

} diff --git a/apps/web/src/settings/workspaces.tsx b/apps/web/src/settings/workspaces.tsx index d02bbb6d..23e498a4 100644 --- a/apps/web/src/settings/workspaces.tsx +++ b/apps/web/src/settings/workspaces.tsx @@ -197,7 +197,7 @@ export function WorkspacesSettings() { {listed.length === 0 && (
-

No workspaces yet

+

No Workspaces Yet

Create a workspace to organize your sessions.

)} diff --git a/apps/web/src/shell/palette.tsx b/apps/web/src/shell/palette.tsx index 2d574217..d4463b0a 100644 --- a/apps/web/src/shell/palette.tsx +++ b/apps/web/src/shell/palette.tsx @@ -120,7 +120,7 @@ export function Palette() { <> - No results. + No Results - No sources match. + No Sources Match {pick !== undefined && bridge !== undefined && ( void close(workspace, index)} className="absolute top-1/2 right-1.5 grid size-5 -translate-y-1/2 place-items-center rounded-md text-ink-muted opacity-0 group-hover/tab:opacity-100 hover:bg-ink/8 hover:text-ink focus-visible:opacity-100" > - +
); diff --git a/apps/web/src/widgets/threads/picker.tsx b/apps/web/src/widgets/threads/picker.tsx index ffea1d73..4f5dfef2 100644 --- a/apps/web/src/widgets/threads/picker.tsx +++ b/apps/web/src/widgets/threads/picker.tsx @@ -96,7 +96,7 @@ export function Picker({ className="h-9 text-[13px]" /> - No results. + No Results {options.map((option, index) => ( ) { onNewGroup={() => void newGroup()} /> {AsyncResult.isFailure(result) && board === undefined ? ( -

Could not load the threads.

+

Could Not Load the Threads

) : shown === undefined ? null : ( - {filtering(options) ? "No threads match the filters." : "No threads yet."} + {filtering(options) ? "No Threads Match the Filters" : "No Threads Yet"}

); @@ -463,7 +463,7 @@ function ThreadPicker({ return ( ({ @@ -481,7 +481,7 @@ function ThreadPicker({ return ( ({ @@ -496,7 +496,7 @@ function ThreadPicker({ return ( 0 ? "Groups" : undefined} value={thread.groupingId ?? "none"} options={[