From c26119ada3565dda55bc3e86fdf47c7f9088e4b5 Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Mon, 21 Sep 2026 22:17:23 -0700 Subject: [PATCH] refactor(web): drop className overrides that repeat the base styles (#12984) Co-authored-by: Claude Fable 5 --- apps/web/src/components/AppSidebarLayout.tsx | 2 +- .../src/components/BranchToolbarBranchSelector.tsx | 2 +- apps/web/src/components/ConfirmDialogHost.tsx | 2 +- apps/web/src/components/NoActiveThreadState.tsx | 6 +++--- apps/web/src/components/NoProjectsHero.tsx | 4 ++-- apps/web/src/components/ProjectScriptsControl.tsx | 2 +- apps/web/src/components/ThreadRouteView.tsx | 2 +- .../web/src/components/chat/ModelPickerContent.tsx | 2 +- .../src/components/settings/FontFamilyPicker.tsx | 2 +- .../web/src/components/settings/SettingsPanels.tsx | 2 +- .../src/components/settings/SettingsSidebarNav.tsx | 2 +- apps/web/src/components/sidebar/SidebarChrome.tsx | 2 +- apps/web/src/components/ui/combobox.tsx | 2 +- apps/web/src/components/ui/sidebar.tsx | 2 +- apps/web/src/components/usage/UsagePage.tsx | 2 +- apps/web/src/routes/_chat.index.tsx | 14 +++++++------- apps/web/src/routes/_chat.pull-requests.tsx | 2 +- apps/web/src/routes/settings.tsx | 2 +- scripts/lint-restyle-ceiling.ts | 2 +- 19 files changed, 28 insertions(+), 28 deletions(-) diff --git a/apps/web/src/components/AppSidebarLayout.tsx b/apps/web/src/components/AppSidebarLayout.tsx index 52b45ab840..14d871c418 100644 --- a/apps/web/src/components/AppSidebarLayout.tsx +++ b/apps/web/src/components/AppSidebarLayout.tsx @@ -244,7 +244,7 @@ export function AppSidebarLayout({ children }: { children: ReactNode }) { side="left" collapsible="offcanvas" data-app-sidebar="" - className="border-r border-sidebar-border bg-sidebar text-sidebar-foreground" + className="border-r border-sidebar-border" resizable={{ maxWidth: sidebarMaximumWidth, minWidth: THREAD_SIDEBAR_MIN_WIDTH, diff --git a/apps/web/src/components/BranchToolbarBranchSelector.tsx b/apps/web/src/components/BranchToolbarBranchSelector.tsx index 9838593a23..8830b6bd18 100644 --- a/apps/web/src/components/BranchToolbarBranchSelector.tsx +++ b/apps/web/src/components/BranchToolbarBranchSelector.tsx @@ -861,7 +861,7 @@ export function BranchToolbarBranchSelector({
No refs found.
- + ref={branchListRef} data={filteredBranchPickerItems} diff --git a/apps/web/src/components/ConfirmDialogHost.tsx b/apps/web/src/components/ConfirmDialogHost.tsx index 322423c40a..3e19606bd4 100644 --- a/apps/web/src/components/ConfirmDialogHost.tsx +++ b/apps/web/src/components/ConfirmDialogHost.tsx @@ -75,7 +75,7 @@ export function ConfirmDialogHost() { if (!open) completeConfirmDialogClose(); }} > - + {copy.title} {copy.description ? ( diff --git a/apps/web/src/components/NoActiveThreadState.tsx b/apps/web/src/components/NoActiveThreadState.tsx index 3e7b0769d4..79da7a0cad 100644 --- a/apps/web/src/components/NoActiveThreadState.tsx +++ b/apps/web/src/components/NoActiveThreadState.tsx @@ -5,7 +5,7 @@ import { WorkspacePageHeader } from "./WorkspacePageHeader"; export function NoActiveThreadState() { return ( - +
{isElectron ? ( @@ -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 09bd92c82e..5aa29a729b 100644 --- a/apps/web/src/components/NoProjectsHero.tsx +++ b/apps/web/src/components/NoProjectsHero.tsx @@ -10,7 +10,7 @@ export function NoProjectsHero() { const openAddProject = useCallback(() => openCommandPalette({ open: "add-project" }), []); return ( - +
@@ -18,7 +18,7 @@ export function NoProjectsHero() { What should we work on? - + Add a project to start your first thread.
diff --git a/apps/web/src/components/ProjectScriptsControl.tsx b/apps/web/src/components/ProjectScriptsControl.tsx index 9736821afa..74bd849187 100644 --- a/apps/web/src/components/ProjectScriptsControl.tsx +++ b/apps/web/src/components/ProjectScriptsControl.tsx @@ -158,7 +158,7 @@ export default function ProjectScriptsControl({ > {fileScript.name} - + diff --git a/apps/web/src/components/ThreadRouteView.tsx b/apps/web/src/components/ThreadRouteView.tsx index ed902d06ed..90bff34051 100644 --- a/apps/web/src/components/ThreadRouteView.tsx +++ b/apps/web/src/components/ThreadRouteView.tsx @@ -207,7 +207,7 @@ export function ThreadRouteView({ target }: { target: ThreadRouteTarget }) { } return ( - + {view} ); diff --git a/apps/web/src/components/chat/ModelPickerContent.tsx b/apps/web/src/components/chat/ModelPickerContent.tsx index 9c8be73e7c..d66065b0e5 100644 --- a/apps/web/src/components/chat/ModelPickerContent.tsx +++ b/apps/web/src/components/chat/ModelPickerContent.tsx @@ -956,7 +956,7 @@ export const ModelPickerContent = memo(function ModelPickerContent(props: { {/* Model list */}
- + ref={modelListRef} data={filteredItemKeys} diff --git a/apps/web/src/components/settings/FontFamilyPicker.tsx b/apps/web/src/components/settings/FontFamilyPicker.tsx index 4be5e43e56..1981b852c0 100644 --- a/apps/web/src/components/settings/FontFamilyPicker.tsx +++ b/apps/web/src/components/settings/FontFamilyPicker.tsx @@ -219,7 +219,7 @@ export function FontFamilyPicker({
No fonts found.
- + ref={listRef} data={items} diff --git a/apps/web/src/components/settings/SettingsPanels.tsx b/apps/web/src/components/settings/SettingsPanels.tsx index 180ab45361..a827cfe7bb 100644 --- a/apps/web/src/components/settings/SettingsPanels.tsx +++ b/apps/web/src/components/settings/SettingsPanels.tsx @@ -845,7 +845,7 @@ function TokenStreamingWarningDialog({ }) { return ( - + Token by token is a worse experience diff --git a/apps/web/src/components/settings/SettingsSidebarNav.tsx b/apps/web/src/components/settings/SettingsSidebarNav.tsx index 87a7e3ce74..ffddb278b6 100644 --- a/apps/web/src/components/settings/SettingsSidebarNav.tsx +++ b/apps/web/src/components/settings/SettingsSidebarNav.tsx @@ -344,7 +344,7 @@ export function SettingsSidebarNav({ pathname }: { pathname: string }) { )} - + diff --git a/apps/web/src/components/sidebar/SidebarChrome.tsx b/apps/web/src/components/sidebar/SidebarChrome.tsx index 6433a1cba8..8ab05b166f 100644 --- a/apps/web/src/components/sidebar/SidebarChrome.tsx +++ b/apps/web/src/components/sidebar/SidebarChrome.tsx @@ -221,7 +221,7 @@ export const SidebarUtilityMenu = memo(function SidebarUtilityMenu() { export const SidebarChromeFooter = memo(function SidebarChromeFooter() { return ( - + diff --git a/apps/web/src/components/ui/combobox.tsx b/apps/web/src/components/ui/combobox.tsx index 42a3b815e2..4428176318 100644 --- a/apps/web/src/components/ui/combobox.tsx +++ b/apps/web/src/components/ui/combobox.tsx @@ -247,7 +247,7 @@ function ComboboxList({ className, ...props }: ComboboxPrimitive.List.Props) { function ComboboxListVirtualized({ className, ...props }: ComboboxPrimitive.List.Props) { return ( diff --git a/apps/web/src/components/ui/sidebar.tsx b/apps/web/src/components/ui/sidebar.tsx index 92f185e6f6..180985620b 100644 --- a/apps/web/src/components/ui/sidebar.tsx +++ b/apps/web/src/components/ui/sidebar.tsx @@ -558,7 +558,7 @@ function SidebarHeader({ className, ...props }: React.ComponentProps<"div">) { function SidebarFooter({ className, ...props }: React.ComponentProps<"div">) { return (
+
{topbarContent} diff --git a/apps/web/src/routes/_chat.index.tsx b/apps/web/src/routes/_chat.index.tsx index b32524bdde..c001e52775 100644 --- a/apps/web/src/routes/_chat.index.tsx +++ b/apps/web/src/routes/_chat.index.tsx @@ -90,11 +90,11 @@ function IndexDraftLanding() { function DraftStartError({ onRetry }: { readonly onRetry: () => void }) { return ( - + - Couldn’t start a new thread - + Couldn’t start a new thread + The project is still available. Try opening the draft again.
@@ -123,7 +123,7 @@ function HostedStaticOnboardingState() { : "Open Connections and add that machine using its pairing link. This app must be able to reach it."; return ( - +
@@ -139,14 +139,14 @@ function HostedStaticOnboardingState() {
- + Connect to a computer running T3 Code - + This app connects to T3 Code running on your computer or a server. Start the T3 Code desktop app or command-line server on that machine and keep it running. - + {description}
diff --git a/apps/web/src/routes/_chat.pull-requests.tsx b/apps/web/src/routes/_chat.pull-requests.tsx index 5936835135..5ed33d27b5 100644 --- a/apps/web/src/routes/_chat.pull-requests.tsx +++ b/apps/web/src/routes/_chat.pull-requests.tsx @@ -2068,7 +2068,7 @@ function PullRequestsRouteView() { }, [keybindings]); return ( - +
{pullRequestsSupported && rightPanelPresent ? openPanelControls : null} diff --git a/apps/web/src/routes/settings.tsx b/apps/web/src/routes/settings.tsx index cd6ca45464..e95895926d 100644 --- a/apps/web/src/routes/settings.tsx +++ b/apps/web/src/routes/settings.tsx @@ -153,7 +153,7 @@ function SettingsContentLayout() { }, [navigateBackWithinApp]); return ( - +
diff --git a/scripts/lint-restyle-ceiling.ts b/scripts/lint-restyle-ceiling.ts index db608db164..9c93a8d466 100644 --- a/scripts/lint-restyle-ceiling.ts +++ b/scripts/lint-restyle-ceiling.ts @@ -8,7 +8,7 @@ import * as NodeURL from "node:url"; // components/ui exports are migrated to variants (see vite.config.ts). This gate keeps the // count from growing: CI fails when findings exceed the ceiling. Lower the ceiling when you // migrate a file, and delete this script when the rule becomes an error. -export const RESTYLE_CEILING = 1247; +export const RESTYLE_CEILING = 1214; const RULE = "shadcn(no-restyle)";