feat: queen profile side bar

This commit is contained in:
Richard Tang
2026-04-16 11:15:30 -07:00
parent 810cf5a6d3
commit ae1599c66a
@@ -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 = <Crown className="w-4 h-4 text-primary" />;
}
}
} else if (queenMatch) {
const queenId = queenMatch[1];
const profile = queenProfiles.find((q) => q.id === queenId);