: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
feat(metrics): remove last seen column from overview (#110010)
Frank Hamand1977fc4a1594
diff --git a/products/metrics/frontend/components/MetricsOverview.tsx b/products/metrics/frontend/components/MetricsOverview.tsxindex 8d84ba911b64..1cc5f207ed9b 100644--- a/products/metrics/frontend/components/MetricsOverview.tsx+++ b/products/metrics/frontend/components/MetricsOverview.tsx@@ -1,6 +1,6 @@import { useActions, useValues } from 'kea'-import { LemonBanner, LemonSkeleton, LemonTable, LemonTag, Link } from '@posthog/lemon-ui'+import { LemonBanner, LemonSkeleton, LemonTable, Link } from '@posthog/lemon-ui'import { TZLabel } from 'lib/components/TZLabel'import { dayjs } from 'lib/dayjs'@@ -16,7 +16,7 @@ const isStale = (lastSeen: string): boolean => dayjs().diff(dayjs(lastSeen)) > Sconst STAT_LABELS = ['Services', 'Metric names', 'Active series'] as const// Header text only, so the placeholder table has the same columns as the real one.-const SERVICE_COLUMN_TITLES = ['Service', 'Metrics', 'Active series', 'Last seen']+const SERVICE_COLUMN_TITLES = ['Service', 'Metrics', 'Active series']// `null` renders the placeholder. One component for both states, so the loading// card cannot drift from the loaded one and change size when the data lands.@@ -170,17 +170,6 @@ export const MetricsOverview = (): JSX.Element => {render: (_, service) => humanFriendlyNumber(service.series),sorter: (a, b) => a.series - b.series,},- {- title: 'Last seen',- key: 'last_seen',- render: (_, service) => (- <span className="flex items-center gap-2">- <TZLabel time={service.last_seen} />- {isStale(service.last_seen) && <LemonTag type="warning">quiet</LemonTag>}- </span>- ),- sorter: (a, b) => a.last_seen.localeCompare(b.last_seen),- },]}/></div>