From 12a9a8a7ea96e527be87c78237a482481f8406a3 Mon Sep 17 00:00:00 2001 From: Julius Marminge <51714798+juliusmarminge@users.noreply.github.com> Date: Tue, 22 Sep 2026 00:13:17 -0700 Subject: [PATCH] refactor(web): fold repeated overrides into ui defaults - MenuItemLabel truncates by default; every label is a single line and the four sites that asked for it were the ones long enough to notice. - MenuCheckboxItem's label column is minmax(0,1fr) so labels can truncate; two consumers patched this per site. - PopoverTitle is text-sm; three of four consumers shrank it from text-lg. - Empty title and description drop text-foreground / text-sm, which the base already applies, and the /78 description tint and mt-2 nudge, so the three hero empty states match every other Empty. EmptyDescription now keeps its top margin when it follows another description. Lowers the no-restyle ceiling from 1125 to 1106. Co-Authored-By: Claude Fable 5 --- apps/web/src/components/NoActiveThreadState.tsx | 4 ++-- apps/web/src/components/NoProjectsHero.tsx | 8 ++------ apps/web/src/components/ProjectScriptsControl.tsx | 6 +++--- apps/web/src/components/chat/OpenInPicker.tsx | 2 +- .../components/chat/SnapShotAttachmentDetails.tsx | 2 +- .../src/components/device/DeviceToolVersions.tsx | 2 +- .../components/pullRequest/PullRequestComposer.tsx | 2 +- .../pullRequest/PullRequestListFilters.tsx | 1 - apps/web/src/components/ui/empty.tsx | 2 +- apps/web/src/components/ui/menu.tsx | 6 ++++-- apps/web/src/components/ui/popover.tsx | 2 +- apps/web/src/components/usage/UsagePage.tsx | 1 - apps/web/src/routes/_chat.index.tsx | 14 +++++--------- scripts/lint-restyle-ceiling.ts | 2 +- 14 files changed, 23 insertions(+), 31 deletions(-) diff --git a/apps/web/src/components/NoActiveThreadState.tsx b/apps/web/src/components/NoActiveThreadState.tsx index 79da7a0cad19..651c664b6aa8 100644 --- a/apps/web/src/components/NoActiveThreadState.tsx +++ b/apps/web/src/components/NoActiveThreadState.tsx @@ -22,8 +22,8 @@ export function NoActiveThreadState() {
- Pick a thread to continue - + Pick a thread to continue + Select an existing thread or create a new one to get started. diff --git a/apps/web/src/components/NoProjectsHero.tsx b/apps/web/src/components/NoProjectsHero.tsx index 5aa29a729b69..daa371fc1310 100644 --- a/apps/web/src/components/NoProjectsHero.tsx +++ b/apps/web/src/components/NoProjectsHero.tsx @@ -15,12 +15,8 @@ export function NoProjectsHero() {
- - What should we work on? - - - Add a project to start your first thread. - + What should we work on? + Add a project to start your first thread.