Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

chore(navigation): declutter the more menu icons and section spacing (#67927)

Rafael Audibertf1d8d5b225e6
diff --git a/frontend/snapshots.yml b/frontend/snapshots.yml
index 6d3cae17ba00..2a3b7bd7afb2 100644
--- a/frontend/snapshots.yml
+++ b/frontend/snapshots.yml
@@ -501,13 +501,13 @@ snapshots:
components-hedgehogmode--static-hedgehog--light:
hash: v1.k794b7964.43d71f5c3ad02bd9e1fa87433d34df79e0de653c4b55004188bed5de78a2c3f5.i2ATBYyqY7uq7UxwlL2Rdte6AuMyySa8Jnbeb1VouoQ
components-help-menu--open--dark:
- hash: v1.k794b7964.56fed330a41688685d6976693bf923ff70bc0b7e8229311c87d7e43d3aa22514.PD3PLiVadKw2tCCs6RY5mNzHuRU8pza8TFoiVajmL-Q
+ hash: v1.k794b7964.ee1644981db75ef4ebd937c32055a35fc97cc4e9fd7c393fea728473f40e5e74.74zH3AjzNeMoSQoEf0LxYiPpLWs4XHIvX03xEsVR96k
components-help-menu--open--light:
- hash: v1.k794b7964.f477988e96a6cc7fd41bd60429da9653bdf1d26fccfccdd8a1bbaefb4f8a754b.fiAFuUxsW5xNCfnbm037HB-uGCUsajO9AcHMgZhiZ60
+ hash: v1.k794b7964.1d848415946c7241b7d4b7141bfb26cae94e1d5c522016672f2d9afe1463532a.ZZmCGr3y47OFVbGyzvj9D8316Y5q3kZh3WRC_yim_Vk
components-help-menu--open-with-health-issues--dark:
- hash: v1.k794b7964.04caecb24549cd53686a3b1d0f65eb983b16652c7d3029ac32b38b08b0ab5df0.DvgOCzvUAZIF-eno2LluJW3TEqUcSltrVwBRNUgRSNs
+ hash: v1.k794b7964.e97c0233d83389b713058f0cfe98b6aa3c851e70234cad7ef96b0cb39a309b57.gceFrulg3pWMMaIOPxd1g92Db4b_Zpcyc0QmdBEHkgM
components-help-menu--open-with-health-issues--light:
- hash: v1.k794b7964.9aa9db0a06b253bbab5d211804b2a53eba4b123c99f42c3d96402f49d35ce538.69XlTkZdG3-zjs9Ikv0lSwxqpIZkF9YzMqtceSD0-AI
+ hash: v1.k794b7964.99103b402eb01abd3b43e48fe1339448b4f4d3183f91925a476ca92d37124998.kGgix-wMF0AfwIp9JiS8BlHJbz5Epu84QypwvRaFCIc
components-hogcharts-barchart--custom-corner-radius--dark:
hash: v1.k794b7964.ced56b04fb5a6f225291cfda3afa86a761a918389cbef178ff90b0fdce9ff410.1jGojIWZ8Zyj8PgzJOSsBG2_WnQaWs1TVc_QNwTVto0
components-hogcharts-barchart--custom-corner-radius--light:
diff --git a/frontend/src/lib/components/HelpMenu/HelpMenu.tsx b/frontend/src/lib/components/HelpMenu/HelpMenu.tsx
index ce96a0eb5cc9..80ffeebf85ba 100644
--- a/frontend/src/lib/components/HelpMenu/HelpMenu.tsx
+++ b/frontend/src/lib/components/HelpMenu/HelpMenu.tsx
@@ -1,26 +1,12 @@
import { Menu } from '@base-ui/react/menu'
import { useActions, useValues } from 'kea'
-import {
- IconBook,
- IconCloud,
- IconConfetti,
- IconCopy,
- IconDatabase,
- IconDownload,
- IconExpand45,
- IconHeart,
- IconLive,
- IconOpenSidebar,
- IconServer,
- IconShieldLock,
- IconSparkles,
- IconStethoscope,
-} from '@posthog/icons'
+import { IconCopy, IconDatabase, IconOpenSidebar, IconServer, IconShieldLock, IconSparkles } from '@posthog/icons'
import { ProfilePicture } from '@posthog/lemon-ui'
import { useFeatureFlag } from 'lib/hooks/useFeatureFlag'
import { IconMenu, IconWithBadge } from 'lib/lemon-ui/icons'
+import { LemonBadge } from 'lib/lemon-ui/LemonBadge/LemonBadge'
import { Link } from 'lib/lemon-ui/Link/Link'
import { ButtonPrimitive } from 'lib/ui/Button/ButtonPrimitives'
import { Label } from 'lib/ui/Label/Label'
@@ -33,15 +19,10 @@ import { urls } from 'scenes/urls'
import { userLogic } from 'scenes/userLogic'
import { KeyboardShortcut } from '~/layout/navigation-3000/components/KeyboardShortcut'
-import { navigation3000Logic } from '~/layout/navigation-3000/navigationLogic'
import { sidePanelStateLogic } from '~/layout/navigation-3000/sidepanel/sidePanelStateLogic'
import { SidePanelTab } from '~/types'
-import { SidePanelSupportIcon } from 'products/conversations/frontend/components/SidePanel/SidePanelSupportIcon'
-
-import { ThemeMenu } from '../Menus/ThemeMenu'
import { ScrollableShadows } from '../ScrollableShadows/ScrollableShadows'
-import { shortcutLogic } from '../Shortcuts/shortcutLogic'
import { RenderKeybind } from '../Shortcuts/ShortcutMenu'
import { keyBinds } from '../Shortcuts/shortcuts'
import { openCHQueriesDebugModal } from '../Shortcuts/utils/DebugCHQueries'
@@ -54,8 +35,6 @@ export function HelpMenu({ iconOnly = false }: { iconOnly?: boolean }): JSX.Elem
const { openSidePanel } = useActions(sidePanelStateLogic)
const { isHelpMenuOpen, triggerBadgeContent, triggerBadgeStatus } = useValues(helpMenuLogic)
const { setHelpMenuOpen } = useActions(helpMenuLogic)
- const { toggleZenMode } = useActions(navigation3000Logic)
- const { setShortcutMenuOpen } = useActions(shortcutLogic)
const { user } = useValues(userLogic)
const { isCloudOrDev, preflight } = useValues(preflightLogic)
const { reportAccountOwnerClicked } = useActions(eventUsageLogic)
@@ -139,8 +118,8 @@ export function HelpMenu({ iconOnly = false }: { iconOnly?: boolean }): JSX.Elem
buttonProps={{ menuItem: true }}
data-attr="more-menu-ask-ai-button"
>
- <IconSparkles className="text-ai" />
Ask PostHog AI
+ <IconSparkles className="text-ai" />
</Link>
)}
/>
@@ -148,7 +127,6 @@ export function HelpMenu({ iconOnly = false }: { iconOnly?: boolean }): JSX.Elem
onClick={() => openSidePanel(SidePanelTab.Support)}
render={
<ButtonPrimitive menuItem data-attr="more-menu-support-button">
- <SidePanelSupportIcon />
Support
<IconOpenSidebar className="size-3" />
</ButtonPrimitive>
@@ -167,25 +145,35 @@ export function HelpMenu({ iconOnly = false }: { iconOnly?: boolean }): JSX.Elem
tooltipPlacement="right"
data-attr="more-menu-docs-button"
>
- <IconBook />
Docs
</Link>
)}
/>
- <Label intent="menu" className="px-2 mt-2">
- Project
+ <Label intent="menu" className="px-2 mt-3">
+ System
</Label>
<Menu.Item
render={(props) => (
<Link
{...props}
- to={urls.exports()}
+ targetBlankIcon
+ target="_blank"
buttonProps={{ menuItem: true }}
- data-attr="more-menu-exports-button"
+ to={statusPageUrl}
+ tooltip={postHogStatusTooltip}
+ tooltipPlacement="right"
+ tooltipCloseDelayMs={0}
+ data-attr="more-menu-status-button"
>
- <IconDownload />
- Exports
+ Status Page
+ {postHogStatusBadgeStatus !== 'success' && (
+ <LemonBadge
+ content={postHogStatusBadgeContent}
+ size="xsmall"
+ status={postHogStatusBadgeStatus}
+ />
+ )}
</Link>
)}
/>
@@ -204,60 +192,42 @@ export function HelpMenu({ iconOnly = false }: { iconOnly?: boolean }): JSX.Elem
tooltipCloseDelayMs={0}
data-attr="more-menu-health-button"
>
- <IconWithBadge
- size="xsmall"
+ Health
+ <LemonBadge
+ size="small"
content={triggerBadgeContent}
status={triggerBadgeStatus}
- >
- <IconStethoscope />
- </IconWithBadge>
- Health
+ />
</Link>
)}
/>
- <Label intent="menu" className="px-2 mt-2">
- PostHog
- </Label>
<Menu.Item
render={(props) => (
<Link
{...props}
+ tooltip="View our changelog in new browser tab"
+ tooltipPlacement="right"
targetBlankIcon
target="_blank"
buttonProps={{ menuItem: true }}
- to={statusPageUrl}
- tooltip={postHogStatusTooltip}
- tooltipPlacement="right"
- tooltipCloseDelayMs={0}
- data-attr="more-menu-status-button"
+ to="https://posthog.com/changelog"
+ data-attr="more-menu-changelog-button"
>
- <IconWithBadge
- content={postHogStatusBadgeContent}
- size="xsmall"
- status={postHogStatusBadgeStatus}
- className="flex"
- >
- <IconCloud />
- </IconWithBadge>
- Status
+ Changelog
</Link>
)}
/>
+
<Menu.Item
render={(props) => (
<Link
{...props}
- tooltip="View our changelog in new browser tab"
- tooltipPlacement="right"
- targetBlankIcon
- target="_blank"
+ to={urls.exports()}
buttonProps={{ menuItem: true }}
- to="https://posthog.com/changelog"
- data-attr="more-menu-changelog-button"
+ data-attr="more-menu-exports-button"
>
- <IconLive />
- Changelog
+ Exports
</Link>
)}
/>
@@ -271,7 +241,6 @@ export function HelpMenu({ iconOnly = false }: { iconOnly?: boolean }): JSX.Elem
buttonProps={{ menuItem: true }}
data-attr="help-menu-upgrade-to-cloud-button"
>
- <IconConfetti />
Try PostHog Cloud
</Link>
)}
@@ -283,7 +252,6 @@ export function HelpMenu({ iconOnly = false }: { iconOnly?: boolean }): JSX.Elem
<Menu.SubmenuTrigger
render={
<ButtonPrimitive menuItem data-attr="help-menu-admin-button">
- <IconHeart />
Admin (Lucky you!)
<MenuOpenIndicator intent="sub" />
</ButtonPrimitive>
@@ -362,42 +330,6 @@ export function HelpMenu({ iconOnly = false }: { iconOnly?: boolean }): JSX.Elem
</Menu.SubmenuRoot>
)}
- <Label intent="menu" className="px-2 mt-2">
- Display
- </Label>
- <Menu.Item
- onClick={() => setShortcutMenuOpen(true)}
- render={
- <ButtonPrimitive
- tooltip="Open shortcut menu"
- tooltipPlacement="right"
- menuItem
- data-attr="more-menu-shortcuts-button"
- >
- <span className="size-4 flex items-center justify-center">⌘</span>
- Shortcuts
- <div className="flex gap-1 ml-auto items-center">
- <KeyboardShortcut command option k />
- <span className="text-xs opacity-75">or</span>
- <KeyboardShortcut command shift k />
- </div>
- </ButtonPrimitive>
- }
- />
- <Menu.Item
- onClick={() => toggleZenMode('help_menu')}
- render={
- <ButtonPrimitive menuItem data-attr="more-menu-zen-mode-button">
- <IconExpand45 />
- Zen mode
- <div className="flex gap-1 ml-auto items-center">
- <KeyboardShortcut command option z />
- </div>
- </ButtonPrimitive>
- }
- />
- <ThemeMenu />
-
{billing?.account_owner?.email && billing?.account_owner?.name && (
<>
<Label intent="menu" className="px-2 mt-4">