diff --git a/apps/app/bundle-budget.json b/apps/app/bundle-budget.json index 51098e2298f..1769256ad02 100644 --- a/apps/app/bundle-budget.json +++ b/apps/app/bundle-budget.json @@ -47,7 +47,7 @@ "`node scripts/why-eager.mjs --from=views/SplitWorkspaceRoute.tsx `", "to print the static chain that pulled a package into the closure." ], - "maxBootBytes": 1723936, + "maxBootBytes": 1730080, "maxBootBrotliBytes": 429072, "forbiddenBootPackages": [ "@pierre/diffs", diff --git a/apps/app/src/components/plugin/PluginNavSidebarItems.tsx b/apps/app/src/components/plugin/PluginNavSidebarItems.tsx index 484651681e1..658586d4fbf 100644 --- a/apps/app/src/components/plugin/PluginNavSidebarItems.tsx +++ b/apps/app/src/components/plugin/PluginNavSidebarItems.tsx @@ -1,7 +1,6 @@ import { useCallback, useEffect, - useId, useMemo, useRef, useState, @@ -18,8 +17,6 @@ import { verticalListSortingStrategy, } from "@dnd-kit/sortable"; import { Button } from "@bb/shared-ui/button"; -import { Popover, PopoverContent, PopoverTrigger } from "@bb/shared-ui/popover"; -import { Checkbox } from "@bb/shared-ui/checkbox"; import { Icon, type IconName } from "@bb/shared-ui/icon"; import { ContextMenu, @@ -35,16 +32,19 @@ import { DropdownMenuSeparator, DropdownMenuTrigger, } from "@bb/shared-ui/dropdown-menu"; -import { - COARSE_POINTER_COMPACT_ROW_HEIGHT_CLASS, - COARSE_POINTER_ICON_SIZE_CLASS, - COARSE_POINTER_ROW_ACTION_SIZE_CLASS, -} from "@bb/shared-ui/coarse-pointer-sizing"; -import { CHROME_SECTION_LABEL_CLASS } from "@bb/shared-ui/chrome-style-tokens"; +import { COARSE_POINTER_ICON_SIZE_CLASS } from "@bb/shared-ui/coarse-pointer-sizing"; import { useIsCompactViewport } from "@bb/shared-ui/hooks/use-compact-viewport"; import { PluginIcon } from "@/components/plugin/PluginIcon"; import { PluginSlotMount } from "@/components/plugin/PluginSlotMount"; -import { PROJECT_LIST_ACTION_BUTTON_CLASS } from "@/components/sidebar/ProjectList"; +import { + SidebarMore, + SidebarOverflowItem, + SidebarVisibilityCustomize, + SidebarVisibilityActionContent, + SidebarCustomizeActionContent, + type SidebarVisibilityItem, + type SidebarActivationModifiers as SidebarNavActivationModifiers, +} from "@/components/sidebar/SidebarVisibilityControls"; import { AUTOMATIONS_PLUGIN_ID, getPluginDetailRoutePath, @@ -64,6 +64,7 @@ import { usePaneContentSplitIndicator } from "@/components/sidebar/paneContentSp import type { MiniMapSlot } from "@/components/sidebar/paneContentSplitIndicator"; import { SplitPaneMiniMap } from "@/components/sidebar/SplitPaneMiniMap"; import { + PROJECT_LIST_ACTION_BUTTON_CLASS, SIDEBAR_CONTROL_STATE_CLASS, SIDEBAR_MORE_ACTION_TRIGGER_CLASS, } from "@/components/sidebar/sidebarRowClasses"; @@ -96,22 +97,8 @@ import { openPluginDetailsInWorkspace } from "./plugin-detail-opener"; import type { PaneContent } from "@/lib/split-layout"; const MORE_TRIGGER_TEST_ID = "sidebar-navigation-more-trigger"; -const OVERFLOW_ROW_BUTTON_CLASS = - "w-full justify-start gap-2 rounded-sm px-2 text-xs font-normal hover:bg-state-hover focus-visible:bg-state-hover"; -export interface SidebarNavActivationModifiers { - metaKey: boolean; - ctrlKey: boolean; -} - -function CustomizeMenuItemContent() { - return ( - <> -