From 8d0f6c950f62b5cf98ef993b9ffe208e2121445a Mon Sep 17 00:00:00 2001 From: Dhravya Shah Date: Thu, 13 Aug 2026 22:03:04 -0700 Subject: [PATCH] feat(web): add memory button to company brain navbar The company brain header had no Add button (only Invite + Search). Wire the onAddMemory callback through Header into CompanyBrainHeader and add an Add button to the desktop action cluster plus an "Add memory" item at the top of the mobile hamburger menu, matching the personal header pattern. Co-Authored-By: Claude Opus 4.8 --- apps/web/components/company-brain-header.tsx | 42 +++++++++++++++++++- apps/web/components/header.tsx | 7 +++- 2 files changed, 47 insertions(+), 2 deletions(-) diff --git a/apps/web/components/company-brain-header.tsx b/apps/web/components/company-brain-header.tsx index 99cd1116..e7c9258a 100644 --- a/apps/web/components/company-brain-header.tsx +++ b/apps/web/components/company-brain-header.tsx @@ -21,6 +21,7 @@ import { LifeBuoy, LayoutGrid, MenuIcon, + Plus, SearchIcon, Settings, Settings2, @@ -55,6 +56,7 @@ const BACKEND = type SlackStatus = { connected: boolean; teamName: string | null } interface CompanyBrainHeaderProps { + onAddMemory?: () => void onOpenSearch?: () => void } @@ -108,7 +110,10 @@ function useSlackStatus() { }) } -export function CompanyBrainHeader({ onOpenSearch }: CompanyBrainHeaderProps) { +export function CompanyBrainHeader({ + onAddMemory, + onOpenSearch, +}: CompanyBrainHeaderProps) { const { user, org, organizations, setActiveOrg } = useAuth() const autumn = useCustomer() const { currentPlan } = useTokenUsage(autumn) @@ -412,6 +417,18 @@ export function CompanyBrainHeader({ onOpenSearch }: CompanyBrainHeaderProps) { "linear-gradient(180deg, #0A0E14 0%, #05070A 100%)", }} > + {onAddMemory && ( + <> + + + Add memory + + + + )} + {onAddMemory && ( + + + + + + Add memory (C) + + + )} {canInvite && ( diff --git a/apps/web/components/header.tsx b/apps/web/components/header.tsx index c30f84c4..20f76f19 100644 --- a/apps/web/components/header.tsx +++ b/apps/web/components/header.tsx @@ -70,7 +70,12 @@ const brainTileClass = (active: boolean) => export function Header(props: HeaderProps) { const hasCompanyBrain = useHasCompanyBrain() if (hasCompanyBrain) { - return + return ( + + ) } return }