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.

fix(web-analytics): clearer precomputed badge icon and toggle tooltip (#59970)

Lucas Ricoy23a935b12fc6
diff --git a/frontend/src/lib/components/PreAggregatedBadge/PreAggregatedBadge.tsx b/frontend/src/lib/components/PreAggregatedBadge/PreAggregatedBadge.tsx
index c4e503a91d8e..8fe9bf22765a 100644
--- a/frontend/src/lib/components/PreAggregatedBadge/PreAggregatedBadge.tsx
+++ b/frontend/src/lib/components/PreAggregatedBadge/PreAggregatedBadge.tsx
@@ -1,4 +1,4 @@
-import { IconBolt, IconSparkles } from '@posthog/icons'
+import { IconBolt, IconDatabaseBolt } from '@posthog/icons'
import { Tooltip } from 'lib/lemon-ui/Tooltip'
@@ -18,9 +18,9 @@ const VARIANT_CONFIG: Record<
Icon: IconBolt,
},
precomputed: {
- tooltip: 'Served from precomputed cache',
+ tooltip: 'Loaded from a pre-computed dataset',
iconClassName: 'text-success w-4 h-4',
- Icon: IconSparkles,
+ Icon: IconDatabaseBolt,
},
}
diff --git a/frontend/src/scenes/web-analytics/WebAnalyticsMenu.tsx b/frontend/src/scenes/web-analytics/WebAnalyticsMenu.tsx
index 99cb6b6a21d5..d0c649c61dde 100644
--- a/frontend/src/scenes/web-analytics/WebAnalyticsMenu.tsx
+++ b/frontend/src/scenes/web-analytics/WebAnalyticsMenu.tsx
@@ -60,7 +60,7 @@ export const WebAnalyticsMenu = (): JSX.Element => {
Filter out internal and test users
</ButtonPrimitive>
{featureFlags[FEATURE_FLAGS.WEB_ANALYTICS_PRECOMPUTE_TOGGLE] && (
- <Tooltip title="Serve eligible web analytics queries (overview, paths) from the precomputed cache. Only takes effect when the web-analytics-precompute-toggle feature flag is on for the team's organization.">
+ <Tooltip title="When on, eligible web analytics tiles (currently overview and paths) load from a pre-computed result instead of running a live query. Results are faster but may be a few minutes behind the latest events. Other tiles run live as usual.">
<ButtonPrimitive
menuItem
onClick={() => {