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(eng-analytics): keep comparisons out of table cells (#103947)

Raúl Negrón-Otero139a52a31050
diff --git a/frontend/snapshots.yml b/frontend/snapshots.yml
index 54b702c6f315..bfcbfac96806 100644
--- a/frontend/snapshots.yml
+++ b/frontend/snapshots.yml
@@ -7961,9 +7961,9 @@ snapshots:
scenes-app-engineering-analytics-repo-overview--repo-overview--light:
hash: v1.k794b7964.f709ff67c44f86f69d951fc6fbb18b17b6090f6c5793bf6bc16fc803e0a0498c.SmWuVYGMNsp3hU9ipmoQyalTt57uRsG0DrLJlw7LzPU
scenes-app-engineering-analytics-repo-overview--repo-overview-with-trunk-queue-data--dark:
- hash: v1.k794b7964.99bcc4aa618c0c6ceb0f5589213426fb51865d6353f30beaed25b64578f5ffc0.F-ci8KA9aLO2BdWqAoyqoJe0vw3cdwL870yzUWI1ilI
+ hash: v1.k794b7964.e41516eb5d7528bb6cdafcfed7b945bdfff57705006e5b1501fe1df83801bcb0.8wlIRFK9SKD4l-ylc5-bSGqoR3zc6Vl7tJ0YuTX8jBI
scenes-app-engineering-analytics-repo-overview--repo-overview-with-trunk-queue-data--light:
- hash: v1.k794b7964.fb0d3e9e51c16c40878d5b96d93d31aad8842801049a97f647ad0635b4a224c4.a9xQ7QWBiUGQMZHwjUBzX1e93fYB2mxdleiXIswFwnM
+ hash: v1.k794b7964.35cebfe769e744738260c1b98c6cbf3223bb0413a8e32bef243d07af3299163e.HB5Ni0JKUikZ2M5KucMLI89Kj3TkxPurMONhWDoQz_w
scenes-app-engineering-analytics-run-activity-chart--default--dark:
hash: v1.k794b7964.7f17c5ac7c6862493f7c4d59e6e3c3146c42e3d7b08908ee1716d387c129ba64.lPsE9KrOSZee9wJq8zjqYnvk09numvEFWOn4mdCOgJE
scenes-app-engineering-analytics-run-activity-chart--default--light:
@@ -7979,11 +7979,11 @@ snapshots:
scenes-app-engineering-analytics-teams--team-ci-health-load-error--dark:
hash: v1.k794b7964.3a839a620f73e3dc44cff35a662c6a52dadf86547a223a7dc6148737fe79f0c6.FYDXKQfHQWLVNj17PoARgYeeWCcbB2lgbT79SHWlXO0
scenes-app-engineering-analytics-teams--team-ci-health-load-error--light:
- hash: v1.k794b7964.2ae8567ecba1e0f18aa602f50a3507186282b70117bab2b9918c5094f5080e3b.df6SnP3ZVrpGmauzKMEMqeCvC0IOei-i69N5_qhRPtY
+ hash: v1.k794b7964.38e858e8ea756f89bad877b3f79d7ed27bdd095f8288fcfb8048e76f82cdd9b6.ahM72YYj-kUM4oV9agNlhFrJ76acVv4sj9OLSetV7Ko
scenes-app-engineering-analytics-teams--team-ci-health-roster--dark:
hash: v1.k794b7964.28329d99bc651f0715101462c03d6d705fb3e4d37499266a23feb1ef6e0f81c6.yxbLfZo_pTh5AL4-eVbNT0hWVBqCPy7yVuFu5SeAuBQ
scenes-app-engineering-analytics-teams--team-ci-health-roster--light:
- hash: v1.k794b7964.f0520354e7a177f917bede0c0a1007bd04a893ff8f494808e749e8e2c5aaac0f.R6pPRzdhxtoOqML9GGetDsHuke5tN4EOdi3-gTSy6tA
+ hash: v1.k794b7964.8ca5727f3a88c992e853fb86dd97345d28a423b495b8168db699d8c95a84c669.B5q68Wu2spY4RK2aZYRzfLV6J6UodvnZ1nGnXO_d1Tk
scenes-app-engineering-analytics-test-health--quarantine-load-error--dark:
hash: v1.k794b7964.d7e3fc4de2855869b44d9eecb6cec959bf6c3d35cb322e017b5348b0c2d5c83a.yjDuCrUz1yJCnvsHkaUIjRuB7HT8u9J24BJGFTmwFAo
scenes-app-engineering-analytics-test-health--quarantine-load-error--light:
@@ -7991,23 +7991,23 @@ snapshots:
scenes-app-engineering-analytics-test-health--trunk-quarantine-debt--dark:
hash: v1.k794b7964.82e019d6b450b049daf8c4fe0b4b9f43be6a650144f40f09ea761863bf96c970.6dhWrSB7uTAMHVSNquK_uLMHLUuPm795mP3W9DeCxRQ
scenes-app-engineering-analytics-test-health--trunk-quarantine-debt--light:
- hash: v1.k794b7964.0a7754a264ff83aca3b7eab3d907538cb304f62d236059b2ceef6cbbea494e28.ps2-hjw0YXwzgaz5iHZ43ZJSnkufbn290A6omxfgK5s
+ hash: v1.k794b7964.2ed28d8a3a16527c3b77fd009b43297fa55b8ed87298364b51f30529915a9cc6.-gfEs-7FlL9QlnYqoALI0CkfqGcRFPmnybHxe5hQrLc
scenes-app-engineering-analytics-test-health--trunk-quarantine-debt-owners-unavailable--dark:
hash: v1.k794b7964.a3e541251aa1f57db9e9d47ba4f7c70da1dcd7e947ca0e77867c8dc9cf079a8f.ng17zeQ5cixYBFBfQ7gxq4xlkPebUMr0-jbDE1IjYfw
scenes-app-engineering-analytics-test-health--trunk-quarantine-debt-owners-unavailable--light:
hash: v1.k794b7964.dbe38d8cfb84a27dd37f90b28c7b23d6172aa038f799c56ba506e6cfa5713d73.fjLhZkUmm8oWHQUPls1VsxQmOrCeQYPrxJ9Qavt1vuE
scenes-app-engineering-analytics-workflow--workflow-detail--dark:
- hash: v1.k794b7964.22bf886859816ee11d232317ca59554e06fd9708011d78d00ea8f071dd3d7c9a.UyFkQYvasBL9ER7I1qlztCTuqpP7FZ6FtlaauK-77Uc
+ hash: v1.k794b7964.8076b6df9380cff51ae9dcabd18b56ecf33fd0c79d5c737ad0a923d8f46927a8.--p9iekv7i9kfLDbeo-Q2x5QyLEVGmHy3ycGGw6Zeqk
scenes-app-engineering-analytics-workflow--workflow-detail--light:
- hash: v1.k794b7964.090828c0b039102802079fb8f9ac6b9b968ccf23bf67ecdd09fbdc8ac8863eaf.GUwG8v-K4ZtwwRbfwtalN_wzkGYNN5C7qCd9jsa-SzQ
+ hash: v1.k794b7964.7d4f81636b0bafd3b7ccbf295ec9b49f24cb43b48472a59d82836dc272dc77d7.aG-GxW4n0g2sdnA_ixeR1EEgVUBJFc4nmdnh2eR8Aes
scenes-app-engineering-analytics-workflow--workflow-detail-scoped-to-pull-requests--dark:
- hash: v1.k794b7964.f9af7dfa88306ebff94da2e8f4bfc5c9f97ac7a80120c86e5658b48d238369ee.L2oQBtMNTOfq-qHUpqPflbws_HUvay6oIx1GaF8YJD4
+ hash: v1.k794b7964.e810f8df37894094a14dffc9bffddb5fe7e285010f0905b6e2939f6e44b6ed9b.5f7tkQpkUdlrV6EG3dVmzWJspzZ-WuINVYpPMTHyWR0
scenes-app-engineering-analytics-workflow--workflow-detail-scoped-to-pull-requests--light:
- hash: v1.k794b7964.57df8858f99e0ca154f05d7d6cfc07fabd811863825f45668c306bb4d24bb6f5.O5MORnJ71031Dz5qFaaas50e6V9SG1oKoPvvwOfVNBw
+ hash: v1.k794b7964.766c2f13d85693a00089417345ed61b339aea96d1106af206cee96fb37d65671.tYzxZL78bKqvUm1gA65olN1upDKjYvf4UlaayqNhlGY
scenes-app-engineering-analytics-workflow--workflow-detail-section-load-errors--dark:
- hash: v1.k794b7964.6c8d54637d7ea1593573c4fe61da7d2bd5beabf4f64ef874f5f02b57af707cb7.svL4STO-Lw-ehnOdqGsnVBKrEEIHeMVPDdPPQGIqRmA
+ hash: v1.k794b7964.1138e5d885f169ffa0619c3084ed98c52d0e0d9c50495114716a6c51876df00e.WtOFtpae27Ff_bRa4lJQc7WjeR4k90SEi3jx2GRAoXc
scenes-app-engineering-analytics-workflow--workflow-detail-section-load-errors--light:
- hash: v1.k794b7964.f545b566e1bc0fc20f142a01be178fd34b5ff0ff8b5d3860369a780485d5a6b2.bcPmmTjQS5QNi-QGg0EsEoQ763V8mr9exW1wZSoJbSs
+ hash: v1.k794b7964.84f8223fcaa0e115cd1f9ee5f5198a9af1a51270c7bc10fdc9ebd1b5616708eb.23dbZo3jWrrPpnetF_gpnOvNz3FsB8Z80ovfVXiFsmE
scenes-app-engineering-analytics-workflow-run--failed-run--dark:
hash: v1.k794b7964.a00911d6c52b4049f604b641659b6fdcfbda71c715e1bbcb937eb2e5d8f7af25.Cn8V_cwoSpfwEXevukgCHuTVDB8Fpcid4fxJ2GZI7kc
scenes-app-engineering-analytics-workflow-run--failed-run--light:
@@ -8017,13 +8017,13 @@ snapshots:
scenes-app-engineering-analytics-workflow-run--jobs-and-logs-load-errors--light:
hash: v1.k794b7964.8d6bf7c0f4238aa5be869b4182bf75ca1c1acecadcb6091318286f4513b2f8d0.nT4uFXeozIsR2wryuF0Wzmdg5A2Lus5xSA5npxN7cqE
scenes-app-engineering-analytics-workflows--workflow-list--dark:
- hash: v1.k794b7964.a6574f63289438debc52ecec13b02dbe441bc929a8d6f710da3186331cd8d1eb.KpORwpMNnIj4CILhscu52yveUkN_65SPEzYkBUAaumU
+ hash: v1.k794b7964.9ff33d7aca77bbd3fc44cceea7dcceda758f1f336cbbc2ff08c6ad0a0753a343.US059hzG0MBu__41cQIXFJ13UmOqb5RibtChjQqaOpQ
scenes-app-engineering-analytics-workflows--workflow-list--light:
- hash: v1.k794b7964.5f05abb04f8ecaedb71a23c181ece577502973cffc121b6efa62a625b387b849.kvJE0j7aXn3msG_CABO1vJ0JnwNSl7xR6WvTI-96Uf4
+ hash: v1.k794b7964.086a675ed307a0b658e97f433a0ca524e843ea7aa9dc7bf02d60ecf947252350.2R1ALlOKLCrCNPE_JP8s4GtLW1nv_CynXyWnHCZiSXc
scenes-app-engineering-analytics-workflows--workflow-list-scoped-to-merge-queue--dark:
- hash: v1.k794b7964.c5861b175d342db52fea2665ce0e7fb957ccc6b3b26f57f75a3ef402d021d293.hVYlxFiBOoeoyiY3YjznW61SDRRFFdtyI2GKBFAPKB8
+ hash: v1.k794b7964.cd415dce5640149a0ec0500d4218ab70f7584f65f6abc204602b97d1e9239c2a.itZi5U9R78-ZspDJWYdVOeJzXx-EcR8gVtthfbzpjA4
scenes-app-engineering-analytics-workflows--workflow-list-scoped-to-merge-queue--light:
- hash: v1.k794b7964.81034f96a01d79a233f8293715962f309d39be65d6a41683a1c18ddfd1c100f6.Wv2sRm7umnWkCm2J-G71MT5c_2yKa4sRdlzIgOqOc6M
+ hash: v1.k794b7964.49ab6522e67ad615c78f0bd38c5d2d93ef4bfde0159c8c79585c96096ef91833.d_Wl4TZWhL-by1secJzvhEpH1dn1uUXcz9K-q3_gGuE
scenes-app-error-project-access-denied--default--dark:
hash: v1.k794b7964.6d58f8cb9ef390270f74ef07d5104b7f42d70bb51ca35f3fdb6556bab46581ce.GP8NrKkdhrAlKBIiXl3b5ydJgg0KsSjEWj1UHG2muTo
scenes-app-error-project-access-denied--default--light:
diff --git a/products/engineering_analytics/frontend/components/MetricTile.tsx b/products/engineering_analytics/frontend/components/MetricTile.tsx
index 725c92c8ead9..357c54d3db0d 100644
--- a/products/engineering_analytics/frontend/components/MetricTile.tsx
+++ b/products/engineering_analytics/frontend/components/MetricTile.tsx
@@ -1,11 +1,11 @@
-// Headline-metric tile: label · value · delta pill vs the previous window · caption, rendered
-// with quill's MetricCard inside the product's card chrome. Every entity page builds its stat
-// strip from this tile.
+// Headline-metric tile: label · value · caption, rendered with quill's MetricCard inside the
+// product's card chrome. It carries no delta, because a window comparison renders as
+// WindowComparisonCard.
import { ReactNode } from 'react'
import { LemonSkeleton, Tooltip } from '@posthog/lemon-ui'
-import { MetricCard, type MetricChange } from '@posthog/quill-charts'
+import { MetricCard } from '@posthog/quill-charts'
import { LemonCard } from 'lib/lemon-ui/LemonCard'
import { cn } from 'lib/utils/css-classes'
@@ -26,7 +26,7 @@ export function pointChange(current: number | null | undefined, previous: number
return (current - previous) * 100
}
-/** Compact inline delta for table cells — tiles use `MetricTile`'s `delta` prop instead. */
+/** Compact inline delta against the previous window, for `WindowComparisonCard`. Never put it in a table cell. */
export function DeltaBadge({
value,
unit = '%',
@@ -36,7 +36,7 @@ export function DeltaBadge({
/** The delta to show; null hides the badge (no baseline to compare against). */
value: number | null
unit?: string
- /** For costs, durations, failures — a drop is the good direction. */
+ /** For costs, durations, and failures, a drop is the good direction. */
goodWhenDown?: boolean
precision?: number
}): JSX.Element | null {
@@ -53,7 +53,7 @@ export function DeltaBadge({
}
const up = rounded > 0
const good = goodWhenDown ? !up : up
- // A near-zero baseline turns growth into a meaningless five-digit percentage — clamp the display.
+ // A near-zero baseline turns growth into a meaningless five-digit percentage, so clamp the display.
const display = Math.abs(rounded) > 999 ? '>999' : Math.abs(rounded).toFixed(precision)
return (
<Tooltip title="vs the previous window">
@@ -65,37 +65,10 @@ export function DeltaBadge({
)
}
-export interface TileDelta {
- /** The delta to show; null (no baseline) and ±0 both hide the pill. */
- value: number | null
- unit?: string
- /** For costs, durations, failures — a drop is the good direction. */
- goodWhenDown?: boolean
- precision?: number
- /** What the delta compares against, shown on pill hover. */
- vs?: string
-}
-
-/** DeltaBadge's display rules (rounding, ±0 suppression, >999 clamp) as a MetricCard change pill. */
-function deltaToChange(delta: TileDelta | undefined): MetricChange | null {
- if (!delta || delta.value == null) {
- return null
- }
- const precision = delta.precision ?? 0
- const rounded = Number(delta.value.toFixed(precision))
- if (rounded === 0) {
- return null
- }
- // A near-zero baseline turns growth into a meaningless five-digit percentage — clamp the display.
- const display = Math.abs(rounded) > 999 ? '>999' : Math.abs(rounded).toFixed(precision)
- return { value: rounded, label: `${display}${delta.unit ?? '%'}` }
-}
-
export function MetricTile({
label,
tooltip,
value,
- delta,
sub,
loading = false,
className,
@@ -105,11 +78,10 @@ export function MetricTile({
tooltip?: ReactNode
/** Pre-formatted headline value; '—' for no data. */
value: string
- delta?: TileDelta
- /** Visible caption — only for an answer worth a glance (what's failing, why there's no value). */
+ /** Visible caption, only for an answer worth a glance (what's failing, why there's no value). */
sub?: ReactNode
/** Backend load in flight: skeleton the value so it doesn't flash a stale/zero number. Only for a
- * genuine reload — client-side-instant derivations should never pass this. */
+ * genuine reload. Derivations that resolve instantly on the client never pass this. */
loading?: boolean
className?: string
}): JSX.Element {
@@ -139,9 +111,6 @@ export function MetricTile({
// so the pre-formatted display string rides through MetricCard's formatter.
value={0}
formatValue={() => value}
- change={deltaToChange(delta)}
- goodDirection={delta?.goodWhenDown ? 'down' : 'up'}
- changeTooltip={delta ? (delta.vs ?? 'vs the previous window') : undefined}
subtitle={sub}
/>
)}
diff --git a/products/engineering_analytics/frontend/components/ScopeBar.tsx b/products/engineering_analytics/frontend/components/ScopeBar.tsx
index b4b7529d4ebb..071a774ba4dd 100644
--- a/products/engineering_analytics/frontend/components/ScopeBar.tsx
+++ b/products/engineering_analytics/frontend/components/ScopeBar.tsx
@@ -6,7 +6,7 @@ import { useActions, useValues } from 'kea'
import { router } from 'kea-router'
import { Fragment, ReactNode, useState } from 'react'
-import { IconX } from '@posthog/icons'
+import { IconChevronDown, IconX } from '@posthog/icons'
import {
LemonButton,
LemonDropdown,
@@ -33,7 +33,7 @@ import {
import { engineeringAnalyticsLogic } from '../scenes/engineeringAnalyticsLogic'
import { workflowSwitcherLogic } from '../scenes/workflowSwitcherLogic'
-// The endpoints require a window start (no "all time") — relative windows + Custom only.
+// The endpoints require a window start (no "all time"), so offer relative windows and Custom only.
export const SCOPE_DATE_OPTIONS = dateMapping.filter(({ key }) =>
[
'Custom',
@@ -92,7 +92,7 @@ export function SourceScopeChip({ pickerOnly = false }: { pickerOnly?: boolean }
/>
)
}
- // No repo name yet — render nothing rather than a dead "Repository" pill.
+ // No repo name yet: render nothing rather than a dead "Repository" pill.
if (pickerOnly || !repoLabel) {
return null
}
@@ -199,14 +199,15 @@ export function WorkflowScopeChip({
</div>
}
>
- <span
- className={cn(CHIP_CLASS, 'cursor-pointer')}
+ <LemonButton
+ size="small"
+ type="secondary"
+ sideIcon={<IconChevronDown />}
title="Switch to another workflow in this repository"
data-attr="engineering-analytics-workflow-switcher"
>
- <strong className="font-semibold text-primary">{workflowName}</strong>
- <span className="text-[8px] text-tertiary">▼</span>
- </span>
+ {workflowName}
+ </LemonButton>
</LemonDropdown>
)
}
@@ -278,7 +279,7 @@ export function ScopeBar({
repoSlot: ReactNode
/** Hierarchy below the repo (workflow › run); empty on the repo hub itself. */
crumbs?: ScopeCrumb[]
- /** The active cross-cutting lens (pr: #N) — dismissible, zooms out to `to`. */
+ /** The active cross-cutting lens (pr: #N). Dismissing it zooms out to `to`. */
lensFilter?: LensChip
showDate?: boolean
extra?: ReactNode
diff --git a/products/engineering_analytics/frontend/components/WorkflowHealthTable.tsx b/products/engineering_analytics/frontend/components/WorkflowHealthTable.tsx
index 484c778d911d..3d743a7500eb 100644
--- a/products/engineering_analytics/frontend/components/WorkflowHealthTable.tsx
+++ b/products/engineering_analytics/frontend/components/WorkflowHealthTable.tsx
@@ -19,7 +19,6 @@ import { withScope } from '../lib/scope'
import { WorkflowHealthRow, workflowFailureSeries } from '../scenes/engineeringAnalyticsLogic'
import { BillableBadge } from './BillableBadge'
import { FailureSparkline } from './FailureSparkline'
-import { DeltaBadge, pointChange } from './MetricTile'
function formatSeconds(seconds: number | null): string {
return seconds == null ? '—' : humanFriendlyDuration(seconds)
@@ -57,7 +56,7 @@ function statusRank(failed: boolean | null): number {
function StatusTag({ failed, conclusion }: { failed: boolean | null; conclusion: string | null }): JSX.Element {
if (failed === null) {
- // Nothing has completed in the window — no pass/fail signal to show.
+ // Nothing has completed in the window, so there is no pass/fail signal to show.
return <span className="text-xs text-secondary">—</span>
}
if (failed) {
@@ -66,8 +65,8 @@ function StatusTag({ failed, conclusion }: { failed: boolean | null; conclusion:
if (conclusion === 'success' || conclusion == null) {
return <LemonTag type="success">Passing</LemonTag>
}
- // Latest run neither a decisive failure nor a clean success — show the raw outcome muted, not a
- // misleading green "Passing".
+ // The latest run is neither a decisive failure nor a clean success, so show the raw outcome muted
+ // instead of a misleading green "Passing".
return <LemonTag type="muted">{capitalizeFirstLetter(conclusion.replace('_', ' '))}</LemonTag>
}
@@ -81,20 +80,19 @@ export interface WorkflowHealthTableProps {
defaultSorting?: { columnKey: string; order: 1 | -1 } | null
/** Show the billable cost column (needs per-workflow cost on the rows). */
showCost?: boolean
- /** Rows per page — the shared 25 by default; the hub passes a small page to stay scannable. */
+ /** Rows per page: the shared 25 by default. The hub passes a small page to stay scannable. */
pageSize?: number
emptyState?: ReactNode
dataAttr?: string
- /** Drop the table's own border when it sits inside a LemonCard (the hub) — avoids a double frame. */
+ /** Drop the table's own border when it sits inside a LemonCard (the hub), to avoid a double frame. */
embedded?: boolean
- /** Hub preview variant: a focused column set (status · pass rate · Δ · cost · health) with the health
+ /** Hub preview variant: a focused column set (status · pass rate · cost · health) with the health
* sparkline given room. The full run/p50/p95/re-runs/last-failure columns stay on the Workflows tab. */
compact?: boolean
}
-// The compact (hub preview) column set, in display order: the health-and-cost story with pass rate next
-// to its own trend (Δ). Cost only appears when showCost adds it. Headers stay intact.
-const COMPACT_COLUMN_ORDER = ['workflowName', 'status', 'successRate', 'successRateDelta', 'cost', 'trend']
+// The compact (hub preview) column set, in display order. Cost only appears when showCost adds it.
+const COMPACT_COLUMN_ORDER = ['workflowName', 'status', 'successRate', 'cost', 'trend']
export function WorkflowHealthTable({
rows,
@@ -152,6 +150,8 @@ export function WorkflowHealthTable({
key: 'successRate',
width: 96,
align: 'right',
+ tooltip:
+ 'Successful runs out of runs that passed, failed, timed out, failed to start, or went stale. Skipped, canceled, neutral, and action-required runs are left out.',
sorter: (a, b) => (a.successRate ?? -1) - (b.successRate ?? -1),
render: (_, row) => (
<span
@@ -183,24 +183,6 @@ export function WorkflowHealthTable({
},
]
: []) as LemonTableColumns<WorkflowHealthRow>),
- {
- title: 'Δ',
- key: 'successRateDelta',
- width: 76,
- align: 'right',
- tooltip: 'Success-rate change in percentage points vs the equal-length window before this one.',
- sorter: (a, b) =>
- (pointChange(a.successRate, a.successRatePrev) ?? -Infinity) -
- (pointChange(b.successRate, b.successRatePrev) ?? -Infinity),
- render: (_, row) => {
- const delta = pointChange(row.successRate, row.successRatePrev)
- return delta == null ? (
- <span className="text-xs text-secondary">—</span>
- ) : (
- <DeltaBadge value={delta} unit="pp" />
- )
- },
- },
{
title: 'P50',
key: 'p50Seconds',
@@ -248,6 +230,8 @@ export function WorkflowHealthTable({
{
title: 'Health',
key: 'trend',
+ tooltip:
+ 'Completed runs over the window, one bar per period, with failed runs in red. Health is per workflow, not per job.',
// Pinned so the layout doesn't shift when sorting reorders rows with and without history.
width: 132,
render: function RenderTrend(_, row) {
diff --git a/products/engineering_analytics/frontend/components/WorkflowsHealthHeader.tsx b/products/engineering_analytics/frontend/components/WorkflowsHealthHeader.tsx
index c2ae7fee9b51..c31b310c8e88 100644
--- a/products/engineering_analytics/frontend/components/WorkflowsHealthHeader.tsx
+++ b/products/engineering_analytics/frontend/components/WorkflowsHealthHeader.tsx
@@ -10,7 +10,7 @@ import { formatCost } from './runTables'
interface WorkflowsHealthHeaderProps {
summary: FleetSummary
- /** Workflow list was capped server-side — totals cover the top N by run count, not the whole fleet. */
+ /** Workflow list was capped server-side, so totals cover the top N by run count, not the whole fleet. */
truncated?: boolean
/** Reloading on a window/branch change: show a skeleton so the old numbers don't read as current. */
loading?: boolean
@@ -64,12 +64,12 @@ export function WorkflowsHealthHeader({
className
)}
>
- <div className="flex flex-col">
+ <div className="flex flex-col gap-1.5">
<div className="flex items-center gap-2">
<span className={cn('h-2.5 w-2.5 shrink-0 rounded-full', meta.dotClass)} />
<span className={cn('text-xl font-semibold leading-none', meta.wordClass)}>{meta.word}</span>
</div>
- <span className="mt-1.5 text-xs text-secondary">
+ <span className="text-xs text-secondary">
{summary.workflowCount === 0
? 'No workflow runs in this window'
: summary.settledWorkflows === 0
@@ -79,9 +79,14 @@ export function WorkflowsHealthHeader({
: summary.flakyNow > 0
? `${summary.flakyNow} flaky · below 90% pass rate`
: truncated
- ? `Top ${summary.workflowCount} by runs · none failing`
+ ? 'All shown workflows healthy'
: `All ${summary.workflowCount} workflows healthy`}
</span>
+ {truncated && (
+ <span className="text-xs text-tertiary">
+ Top {summary.workflowCount} workflows by run count. All summary values use this set.
+ </span>
+ )}
</div>
<div className="flex flex-col border-l border-primary pl-6">
@@ -104,7 +109,20 @@ export function WorkflowsHealthHeader({
</Tooltip>
}
/>
- <HealthKpi label="Total runs" value={summary.totalRuns.toLocaleString()} />
+ <HealthKpi
+ label="Total runs"
+ value={
+ <Tooltip
+ title={
+ truncated
+ ? `Covers the top ${summary.workflowCount} workflows by run count. Workflows with fewer runs are left out.`
+ : undefined
+ }
+ >
+ <span>{summary.totalRuns.toLocaleString()}</span>
+ </Tooltip>
+ }
+ />
{hasCost && <HealthKpi label="CI cost" value={`≈ ${formatCost(summary.estimatedCostUsd)}`} />}
</div>
</LemonCard>
diff --git a/products/engineering_analytics/frontend/scenes/EngineeringAnalyticsWorkflows.tsx b/products/engineering_analytics/frontend/scenes/EngineeringAnalyticsWorkflows.tsx
index 746c4ae8c107..03631ed87593 100644
--- a/products/engineering_analytics/frontend/scenes/EngineeringAnalyticsWorkflows.tsx
+++ b/products/engineering_analytics/frontend/scenes/EngineeringAnalyticsWorkflows.tsx
@@ -11,7 +11,7 @@ import { SourceScopeChip, WorkflowScopeControls } from '../components/ScopeBar'
import { ScopePanel } from '../components/ScopePanel'
import { WorkflowHealthTable } from '../components/WorkflowHealthTable'
import { WorkflowsHealthHeader } from '../components/WorkflowsHealthHeader'
-import { WORKFLOW_HEALTH_LIMIT, WorkflowStatusFilter, engineeringAnalyticsLogic } from './engineeringAnalyticsLogic'
+import { WorkflowStatusFilter, engineeringAnalyticsLogic } from './engineeringAnalyticsLogic'
export function EngineeringAnalyticsWorkflows(): JSX.Element {
const {
@@ -93,14 +93,6 @@ export function EngineeringAnalyticsWorkflows(): JSX.Element {
)
}
/>
-
- <div className="text-xs text-tertiary">
- Pass rate compares successful runs with runs that failed, timed out, failed to start, or became
- stale. Skipped, canceled, neutral, and action-required runs are excluded. Durations cover successful
- runs only. Health is workflow-level, not per-job. Workflows that run in the merge queue sort first;
- the rest are muted.
- {fleetTruncated && ` Showing the top ${WORKFLOW_HEALTH_LIMIT} workflows by run count.`}
- </div>
</ScopePanel>
</div>
)
diff --git a/products/engineering_analytics/frontend/scenes/engineeringAnalyticsLogic.ts b/products/engineering_analytics/frontend/scenes/engineeringAnalyticsLogic.ts
index e65700b93c63..fb88c5a25a72 100644
--- a/products/engineering_analytics/frontend/scenes/engineeringAnalyticsLogic.ts
+++ b/products/engineering_analytics/frontend/scenes/engineeringAnalyticsLogic.ts
@@ -130,8 +130,6 @@ export interface WorkflowHealthRow {
estimatedCostUsd?: number | null
/** Runs in the window that were a 2nd+ attempt. */
rerunCycles?: number
- /** Success rate over the previous equal-length window. */
- successRatePrev?: number | null
/** Runs on merge-queue gate branches, counted regardless of the active scope. Above zero marks a
* workflow the queue runs before a merge lands, so the list can rank it first. */
mergeQueueRunCount: number
@@ -774,7 +772,6 @@ export const engineeringAnalyticsLogic: LogicWrapper<engineeringAnalyticsLogicTy
billableMinutes: it.billable_minutes ?? null,
estimatedCostUsd: it.estimated_cost_usd ?? null,
rerunCycles: it.rerun_cycles ?? 0,
- successRatePrev: it.success_rate_prev ?? null,
mergeQueueRunCount: it.merge_queue_run_count ?? 0,
})
)