From 2121fd0452afd212caaaa6962c8710606417658a Mon Sep 17 00:00:00 2001 From: klopez4212 Date: Fri, 17 Jul 2026 12:40:05 +0100 Subject: [PATCH] Polish Buzz theme and sidebar (#1971) --- desktop/scripts/check-file-sizes.mjs | 5 - desktop/src-tauri/tauri.conf.json | 2 +- desktop/src/app/AppShell.tsx | 7 +- desktop/src/app/BuzzThemeSurfaces.tsx | 31 ++ .../src/features/settings/ui/SettingsView.tsx | 31 +- .../src/features/sidebar/ui/AppSidebar.tsx | 418 ++++++++------- .../sidebar/ui/AppSidebarPinnedHeader.tsx | 200 +++---- .../sidebar/ui/CustomChannelSection.tsx | 17 +- .../sidebar/ui/SidebarProfileCard.tsx | 7 +- .../features/sidebar/ui/SidebarSection.tsx | 7 +- .../src/shared/styles/globals/scrollbars.css | 11 +- desktop/src/shared/styles/globals/theme.css | 433 +++++++++++---- .../src/shared/theme/ThemePreviewFrame.tsx | 16 +- desktop/src/shared/theme/ThemeProvider.tsx | 71 ++- desktop/src/shared/ui/sidebar-menu-label.tsx | 31 ++ desktop/tailwind.config.js | 3 + .../tests/e2e/buzz-theme-screenshots.spec.ts | 499 +++++++++++++++++- .../e2e/top-chrome-zoom-clearance.spec.ts | 8 +- 18 files changed, 1351 insertions(+), 446 deletions(-) create mode 100644 desktop/src/app/BuzzThemeSurfaces.tsx create mode 100644 desktop/src/shared/ui/sidebar-menu-label.tsx diff --git a/desktop/scripts/check-file-sizes.mjs b/desktop/scripts/check-file-sizes.mjs index b787e7f9a1..11ebd31039 100644 --- a/desktop/scripts/check-file-sizes.mjs +++ b/desktop/scripts/check-file-sizes.mjs @@ -202,11 +202,6 @@ const overrides = new Map([ // mapper. This is the existing API boundary; split remains queued. // team-instructions-first-class: createManagedAgent Tauri bridge threads the // new teamId input through to the backend (+1 line). - // #1970 merge-skew: add-community deep-link wiring (+4) was based before - // #1923 (+3) landed, so PR CI was green while the merged total crossed the - // cap (996 -> 1003). Pre-existing red on main, not one PR's feature debt. - // Queued to split with the rest of this list. - ["src/app/AppShell.tsx", 1003], ["src/shared/api/tauri.ts", 1305], // doctor-npm-eacces-preflight: hint field added to InstallStepResult (+1 line). // codex-acp-package-swap: "adapter_outdated" variant added to AcpAvailabilityStatus (+1 line). diff --git a/desktop/src-tauri/tauri.conf.json b/desktop/src-tauri/tauri.conf.json index 0e611556ed..77933cbe78 100644 --- a/desktop/src-tauri/tauri.conf.json +++ b/desktop/src-tauri/tauri.conf.json @@ -27,7 +27,7 @@ "dragDropEnabled": false, "trafficLightPosition": { "x": 16, - "y": 24 + "y": 25 }, "backgroundThrottling": "disabled", "minWidth": 800, diff --git a/desktop/src/app/AppShell.tsx b/desktop/src/app/AppShell.tsx index ff21b07a61..dbae066b70 100644 --- a/desktop/src/app/AppShell.tsx +++ b/desktop/src/app/AppShell.tsx @@ -4,6 +4,7 @@ import { Outlet, useLocation } from "@tanstack/react-router"; import { deriveShellRoute } from "@/app/AppShell.helpers"; import { AppShellProvider } from "@/app/AppShellContext"; +import * as BuzzTheme from "@/app/BuzzThemeSurfaces"; import { AppShellOverlays } from "@/app/AppShellOverlays"; import { AppTopChrome } from "@/app/AppTopChrome"; import { useAppNavigation } from "@/app/navigation/useAppNavigation"; @@ -761,6 +762,7 @@ export function AppShell() { isHuddleDrawerOpen && "buzz-huddle-app-surface-open", )} > + {hasCommunityRail ? ( -
+ -
+