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.

feat(today): colour the health subheader by severity in the more menu (#122139)

Shy Alterd2ecea71bf29
diff --git a/frontend/src/layout/today/TodayMoreMenu.tsx b/frontend/src/layout/today/TodayMoreMenu.tsx
index d84c0867bd53..849b5f96337d 100644
--- a/frontend/src/layout/today/TodayMoreMenu.tsx
+++ b/frontend/src/layout/today/TodayMoreMenu.tsx
@@ -26,7 +26,8 @@ export function TodayMoreMenu(): JSX.Element {
const { isHelpMenuOpen } = useValues(helpMenuLogic)
const { setHelpMenuOpen } = useActions(helpMenuLogic)
const { statusPageUrl } = useValues(posthogStatusLogic)
- const { statusSeverity, statusText, healthText, moreSeverity, moreLabel } = useValues(todayRailStatusLogic)
+ const { statusSeverity, statusText, healthSeverity, healthText, moreSeverity, moreLabel } =
+ useValues(todayRailStatusLogic)
return (
<DropdownMenu open={isHelpMenuOpen} onOpenChange={setHelpMenuOpen}>
@@ -61,7 +62,13 @@ export function TodayMoreMenu(): JSX.Element {
</DropdownMenuItem>
<DropdownMenuItem
render={todayMenuLinkItem(urls.health())}
- description={healthText}
+ description={
+ healthText && (
+ <span className={SEVERITY_TEXT_CLASS[healthSeverity === 'ok' ? 'none' : healthSeverity]}>
+ {healthText}
+ </span>
+ )
+ }
data-attr="more-menu-health-button"
>
Health