: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(navigation): open account menu from collapsed today rail (#112031)
Adam Leithefc75c2963f9
diff --git a/frontend/src/layout/today/TodayRail.tsx b/frontend/src/layout/today/TodayRail.tsxindex e068101d81fc..b284bcc74615 100644--- a/frontend/src/layout/today/TodayRail.tsx+++ b/frontend/src/layout/today/TodayRail.tsx@@ -1,5 +1,5 @@import { useActions, useValues } from 'kea'-import { ComponentProps } from 'react'+import { ComponentPropsWithoutRef, forwardRef } from 'react'import { IconSearch, IconSidebarClose, IconSidebarOpen } from '@posthog/icons'import { Button, Separator, Tooltip, TooltipContent, TooltipTrigger } from '@posthog/quill'@@ -16,11 +16,10 @@ import { TODAY_RAIL_ITEMS } from './todayRailItems'import { TodayRailTile } from './TodayRailTile'import { TODAY_RAIL_WIDTH, railPaneHref, todayShellLogic } from './todayShellLogic'-function RailUtility({- label,- children,- ...props-}: { label: string; children: JSX.Element } & ComponentProps<typeof Button>): JSX.Element {+const RailUtility = forwardRef<+ HTMLButtonElement,+ { label: string; children: JSX.Element } & ComponentPropsWithoutRef<typeof Button>+>(function RailUtility({ label, children, ...props }, ref): JSX.Element {return (<Tooltip><TooltipTrigger@@ -32,6 +31,7 @@ function RailUtility({aria-label={label}className="relative size-10 rounded-md text-muted-foreground hover:text-foreground [&_svg]:size-5"{...props}+ ref={ref}/>}>@@ -40,7 +40,7 @@ function RailUtility({<TooltipContent side="right">{label}</TooltipContent></Tooltip>)-}+})export function TodayRail(): JSX.Element {const { activePane, sidebarVisible } = useValues(todayShellLogic)