From ae1599c66a39c7745b5c374eecca4eb7456e725e Mon Sep 17 00:00:00 2001 From: Richard Tang Date: Thu, 16 Apr 2026 11:15:30 -0700 Subject: [PATCH] feat: queen profile side bar --- core/frontend/src/components/AppHeader.tsx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/core/frontend/src/components/AppHeader.tsx b/core/frontend/src/components/AppHeader.tsx index be5fe63b..d4b586c6 100644 --- a/core/frontend/src/components/AppHeader.tsx +++ b/core/frontend/src/components/AppHeader.tsx @@ -31,6 +31,15 @@ export default function AppHeader({ onOpenQueenProfile }: AppHeaderProps) { const colonyId = colonyMatch[1]; const colony = colonies.find((c) => c.id === colonyId); title = colony?.name ?? colonyId; + // Show queen profile button when the colony has a linked queen profile + if (colony?.queenProfileId) { + const profile = queenProfiles.find((q) => q.id === colony.queenProfileId); + if (profile) { + queenIdForProfile = profile.id; + queenTitle = profile.title ?? null; + icon = ; + } + } } else if (queenMatch) { const queenId = queenMatch[1]; const profile = queenProfiles.find((q) => q.id === queenId);