diff --git a/apps/web/src/components/CommandPalette.tsx b/apps/web/src/components/CommandPalette.tsx index 912f294d95..3498acc330 100644 --- a/apps/web/src/components/CommandPalette.tsx +++ b/apps/web/src/components/CommandPalette.tsx @@ -2874,7 +2874,7 @@ function OpenCommandPaletteDialog(props: { } > {isRemoteProjectPending ? "Working" : remoteProjectButtonLabel} - + Enter @@ -2917,7 +2917,7 @@ function OpenCommandPaletteDialog(props: { {isCloneDestinationStep && isRemoteProjectPending ? "Cloning" : submitActionLabel} - + {hasHighlightedBrowseItem ? `${submitModifierLabel} Enter` : "Enter"} diff --git a/apps/web/src/components/CommandPaletteContent.tsx b/apps/web/src/components/CommandPaletteContent.tsx index 8c1a5b0e3c..a21de9a3c6 100644 --- a/apps/web/src/components/CommandPaletteContent.tsx +++ b/apps/web/src/components/CommandPaletteContent.tsx @@ -52,7 +52,7 @@ export function CommandPaletteContent({ {children}
- + @@ -62,18 +62,18 @@ export function CommandPaletteContent({ Navigate {footerActionLabel !== undefined ? ( - + Enter {footerActionLabel} ) : null} {showBackHint ? ( - + Backspace Back ) : null} - + Esc {escapeLabel} diff --git a/apps/web/src/components/LegacySidebar.tsx b/apps/web/src/components/LegacySidebar.tsx index abeab98929..c61c4caff9 100644 --- a/apps/web/src/components/LegacySidebar.tsx +++ b/apps/web/src/components/LegacySidebar.tsx @@ -2673,18 +2673,13 @@ function LocalSecondaryStatus() { return ( {connecting.length > 0 ? ( - + - - Connecting {connecting.join(", ")} - + Connecting {connecting.join(", ")} ) : null} {failed.length > 0 ? ( - + Couldn't connect {failed.map((entry) => entry.label).join(", ")} @@ -2980,11 +2975,7 @@ const SidebarProjectsContent = memo(function SidebarProjectsContent( > Search - {commandPaletteShortcutLabel ? ( - - {commandPaletteShortcutLabel} - - ) : null} + {commandPaletteShortcutLabel ? {commandPaletteShortcutLabel} : null} @@ -2993,7 +2984,7 @@ const SidebarProjectsContent = memo(function SidebarProjectsContent( > {showArm64IntelBuildWarning && arm64IntelBuildWarningDescription ? ( - + Intel build on Apple Silicon {arm64IntelBuildWarningDescription} diff --git a/apps/web/src/components/chat/ModelListRow.tsx b/apps/web/src/components/chat/ModelListRow.tsx index 1d05374035..9a22a1fc69 100644 --- a/apps/web/src/components/chat/ModelListRow.tsx +++ b/apps/web/src/components/chat/ModelListRow.tsx @@ -98,9 +98,7 @@ export const ModelListRow = memo(function ModelListRow(props: { {props.showSelection && props.isSelected ? (
+ + + + + ); }); diff --git a/apps/web/src/components/chat/ThreadErrorBanner.tsx b/apps/web/src/components/chat/ThreadErrorBanner.tsx index df01506ba9..c61f7b12b9 100644 --- a/apps/web/src/components/chat/ThreadErrorBanner.tsx +++ b/apps/web/src/components/chat/ThreadErrorBanner.tsx @@ -43,12 +43,7 @@ export const ThreadErrorBanner = memo(function ThreadErrorBanner({ if (!error) return null; return (
- + diff --git a/apps/web/src/components/desktop/SnapShotShortcutKeys.tsx b/apps/web/src/components/desktop/SnapShotShortcutKeys.tsx index 2d233461c5..0a49e4068e 100644 --- a/apps/web/src/components/desktop/SnapShotShortcutKeys.tsx +++ b/apps/web/src/components/desktop/SnapShotShortcutKeys.tsx @@ -16,7 +16,7 @@ export function SnapShotShortcutKeys({ const seen = seenLabels.get(label) ?? 0; seenLabels.set(label, seen + 1); return ( - + {label} ); diff --git a/apps/web/src/components/settings/KeybindingsSettings.tsx b/apps/web/src/components/settings/KeybindingsSettings.tsx index e23c487527..4cd64438e0 100644 --- a/apps/web/src/components/settings/KeybindingsSettings.tsx +++ b/apps/web/src/components/settings/KeybindingsSettings.tsx @@ -79,9 +79,9 @@ function KeybindingPill({ value }: { value: string }) { return { part, key: seen === 0 ? part : `${part}-${seen}` }; }); return ( - + {parts.map(({ part, key }) => ( - + {part === "mod" ? navigator.platform.toLowerCase().includes("mac") ? "⌘" diff --git a/apps/web/src/components/settings/SettingsSidebarNav.tsx b/apps/web/src/components/settings/SettingsSidebarNav.tsx index 665a9f963c..e34d6036a9 100644 --- a/apps/web/src/components/settings/SettingsSidebarNav.tsx +++ b/apps/web/src/components/settings/SettingsSidebarNav.tsx @@ -275,7 +275,7 @@ export function SettingsSidebarNav({ pathname }: { pathname: string }) { ) : ( - / + / )}
{isSearching && results.length === 0 ? ( diff --git a/apps/web/src/components/sidebar/SidebarUpdatePill.tsx b/apps/web/src/components/sidebar/SidebarUpdatePill.tsx index 613d329bbe..e1609d4d3b 100644 --- a/apps/web/src/components/sidebar/SidebarUpdatePill.tsx +++ b/apps/web/src/components/sidebar/SidebarUpdatePill.tsx @@ -100,7 +100,7 @@ function SidebarUpdateArchitectureWarningContent() { if (!visible || !description) return null; return ( - + Intel build on Apple Silicon {description} diff --git a/apps/web/src/components/ui/alert.tsx b/apps/web/src/components/ui/alert.tsx index e2a08066e6..1521002256 100644 --- a/apps/web/src/components/ui/alert.tsx +++ b/apps/web/src/components/ui/alert.tsx @@ -6,9 +6,15 @@ import { cn } from "~/lib/utils"; const alertVariants = cva("relative rounded-xl border px-3.5 py-3 text-card-foreground text-sm", { defaultVariants: { + surface: "default", variant: "default", }, variants: { + // "glass" floats the alert over content; alert-glass tints from data-variant. + surface: { + default: "", + glass: "alert-glass", + }, variant: { default: "bg-transparent dark:bg-input/32 [&_svg]:text-muted-foreground", sidebar: @@ -45,6 +51,7 @@ function alertChildSlot(child: React.ReactElement): string | undefined { function Alert({ className, variant, + surface, controlAlignment = "center", children, ...props @@ -73,8 +80,9 @@ function Alert({ return (
diff --git a/scripts/lint-restyle-ceiling.ts b/scripts/lint-restyle-ceiling.ts index 1f284f5179..06429c1b2e 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 = 668; +export const RESTYLE_CEILING = 628; const RULE = "shadcn(no-restyle)";