Skip to content
This repository was archived by the owner on Aug 6, 2026. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 31 additions & 1 deletion packages/ui/src/features/canvas/components/ChannelNav.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
import { BellIcon, EnvelopeSimple, Lightning } from "@phosphor-icons/react";
import {
BellIcon,
EnvelopeSimple,
Lightning,
RepeatIcon,
SlidersHorizontal,
} from "@phosphor-icons/react";
import { cn } from "@posthog/quill";
import { LOOPS_FLAG } from "@posthog/shared";
import {
ANALYTICS_EVENTS,
type SidebarNavItem,
Expand All @@ -10,12 +17,15 @@ import {
SHORTCUTS,
} from "@posthog/ui/features/command/keyboard-shortcuts";
import { useCommandCenterActiveCount } from "@posthog/ui/features/command-center/useCommandCenterActiveCount";
import { useFeatureFlag } from "@posthog/ui/features/feature-flags/useFeatureFlag";
import { useInboxAllReports } from "@posthog/ui/features/inbox/hooks/useInboxAllReports";
import { openSettings } from "@posthog/ui/features/settings/hooks/useOpenSettings";
import { CountBadge } from "@posthog/ui/primitives/CountBadge";
import { Tooltip } from "@posthog/ui/primitives/Tooltip";
import {
navigateToActivity,
navigateToInbox,
navigateToLoops,
navigateToWebsiteCommandCenter,
} from "@posthog/ui/router/navigationBridge";
import { useAppView } from "@posthog/ui/router/useAppView";
Expand Down Expand Up @@ -64,6 +74,7 @@ function NavIcon({

export function ChannelNav() {
const view = useAppView();
const loopsEnabled = useFeatureFlag(LOOPS_FLAG, import.meta.env.DEV);

const { counts } = useInboxAllReports({
ignoreFilters: true,
Expand Down Expand Up @@ -118,6 +129,25 @@ export function ChannelNav() {
/>
}
/>
{loopsEnabled ? (
<NavIcon
icon={
<RepeatIcon
size={16}
weight={view.type === "loops" ? "fill" : "regular"}
/>
}
label="Loops"
isActive={view.type === "loops"}
onClick={withTrack("loops", navigateToLoops)}
/>
) : null}
<NavIcon
icon={<SlidersHorizontal size={16} />}
label="Configure"
isActive={false}
onClick={withTrack("configure", () => openSettings("agents"))}
/>
</div>
);
}
Loading