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(engineering-analytics): rename to Engineering analytics (#67102)

Raúl Negrón-Otero7ea0d4d88055
diff --git a/frontend/src/products.json b/frontend/src/products.json
index 326b3506e3e7..11edad6b8417 100644
--- a/frontend/src/products.json
+++ b/frontend/src/products.json
@@ -120,7 +120,7 @@
"intents": ["endpoints"]
},
{
- "path": "CI analytics",
+ "path": "Engineering analytics",
"category": "Unreleased",
"iconType": null,
"type": "engineering_analytics",
diff --git a/frontend/src/products.tsx b/frontend/src/products.tsx
index 611e24d08492..ea9bdd44f413 100644
--- a/frontend/src/products.tsx
+++ b/frontend/src/products.tsx
@@ -664,7 +664,7 @@ export const productConfiguration: Record<string, any> = {
EndpointScene: { projectBased: true, name: 'Endpoint', activityScope: 'Endpoint' },
EngineeringAnalytics: {
projectBased: true,
- name: 'CI analytics',
+ name: 'Engineering analytics',
layout: 'app-container',
description: 'Pull request and workflow CI health across connected GitHub repos.',
iconType: 'health',
@@ -1665,25 +1665,6 @@ export const getTreeItemsProducts = (): FileSystemImport[] => [
sceneKey: 'BusinessKnowledge',
sceneKeys: ['BusinessKnowledge'],
},
- {
- path: 'CI analytics',
- intents: [ProductKey.ENGINEERING_ANALYTICS],
- category: ProductItemCategory.UNRELEASED,
- type: 'engineering_analytics',
- iconType: 'health' as FileSystemIconType,
- iconColor: ['var(--color-product-data-warehouse-light)'] as FileSystemIconColor,
- href: urls.engineeringAnalytics(),
- flag: FEATURE_FLAGS.ENGINEERING_ANALYTICS,
- tags: ['alpha'],
- sceneKey: 'EngineeringAnalytics',
- sceneKeys: [
- 'EngineeringAnalytics',
- 'EngineeringAnalyticsPullRequest',
- 'EngineeringAnalyticsWorkflowRun',
- 'EngineeringAnalyticsWorkflowRuns',
- 'EngineeringAnalyticsAuthor',
- ],
- },
{
path: 'Clusters',
intents: [ProductKey.LLM_CLUSTERS],
@@ -1812,6 +1793,25 @@ export const getTreeItemsProducts = (): FileSystemImport[] => [
sceneKey: 'EndpointsScene',
sceneKeys: ['EndpointsScene', 'EndpointScene'],
},
+ {
+ path: 'Engineering analytics',
+ intents: [ProductKey.ENGINEERING_ANALYTICS],
+ category: ProductItemCategory.UNRELEASED,
+ type: 'engineering_analytics',
+ iconType: 'health' as FileSystemIconType,
+ iconColor: ['var(--color-product-data-warehouse-light)'] as FileSystemIconColor,
+ href: urls.engineeringAnalytics(),
+ flag: FEATURE_FLAGS.ENGINEERING_ANALYTICS,
+ tags: ['alpha'],
+ sceneKey: 'EngineeringAnalytics',
+ sceneKeys: [
+ 'EngineeringAnalytics',
+ 'EngineeringAnalyticsPullRequest',
+ 'EngineeringAnalyticsWorkflowRun',
+ 'EngineeringAnalyticsWorkflowRuns',
+ 'EngineeringAnalyticsAuthor',
+ ],
+ },
{
path: 'Error tracking',
intents: [ProductKey.ERROR_TRACKING],
diff --git a/products/engineering_analytics/frontend/components/CIAnalyticsLoadError.tsx b/products/engineering_analytics/frontend/components/CIAnalyticsLoadError.tsx
index c3a917559158..07c22cc9af1b 100644
--- a/products/engineering_analytics/frontend/components/CIAnalyticsLoadError.tsx
+++ b/products/engineering_analytics/frontend/components/CIAnalyticsLoadError.tsx
@@ -1,14 +1,13 @@
import { LemonButton } from '@posthog/lemon-ui'
/**
- * Generic, retryable error state for the CI analytics scenes. Distinct from
- * ConnectGitHubSource: shown when a source IS connected but its data endpoints failed
- * (e.g. a 500), so a connected team is never wrongly told to connect a source.
+ * Retryable error state for the engineering analytics scenes. Unlike ConnectGitHubSource, shown when a
+ * source is connected but its data endpoints failed — so a connected team isn't wrongly told to connect one.
*/
export function CIAnalyticsLoadError({ onRetry }: { onRetry: () => void }): JSX.Element {
return (
<div className="flex flex-col items-center gap-2 py-12 text-center">
- <span className="font-medium text-danger">Couldn't load CI analytics</span>
+ <span className="font-medium text-danger">Couldn't load engineering analytics</span>
<span className="max-w-md text-sm text-secondary">
A GitHub source is connected, but its data endpoints returned an error — this isn't a missing source.
Retry, or check the source's sync status.
diff --git a/products/engineering_analytics/frontend/components/ConnectGitHubSource.tsx b/products/engineering_analytics/frontend/components/ConnectGitHubSource.tsx
index 0074657ee261..7e0ec06ca6f2 100644
--- a/products/engineering_analytics/frontend/components/ConnectGitHubSource.tsx
+++ b/products/engineering_analytics/frontend/components/ConnectGitHubSource.tsx
@@ -8,11 +8,11 @@ import { ProductKey } from '~/queries/schema/schema-general'
export function ConnectGitHubSource(): JSX.Element {
return (
<ProductIntroduction
- productName="CI analytics"
+ productName="Engineering analytics"
productKey={ProductKey.ENGINEERING_ANALYTICS}
thingName="GitHub source"
titleOverride="Connect a GitHub source to get started"
- description="CI analytics reads pull requests and workflow runs from a GitHub data warehouse source — once connected, you'll see CI health, throughput, and where engineering hours go."
+ description="Engineering analytics reads pull requests and workflow runs from a GitHub data warehouse source — once connected, you'll see CI health, throughput, and where engineering hours go."
isEmpty
actionElementOverride={
<LemonButton
diff --git a/products/engineering_analytics/frontend/scenes/EngineeringAnalyticsScene.tsx b/products/engineering_analytics/frontend/scenes/EngineeringAnalyticsScene.tsx
index e37eaa9b82b4..c6e2b781edfb 100644
--- a/products/engineering_analytics/frontend/scenes/EngineeringAnalyticsScene.tsx
+++ b/products/engineering_analytics/frontend/scenes/EngineeringAnalyticsScene.tsx
@@ -59,7 +59,7 @@ export function EngineeringAnalyticsScene(): JSX.Element {
<BindLogic logic={engineeringAnalyticsLogic} props={{}}>
<SceneContent>
<SceneTitleSection
- name="CI analytics"
+ name="Engineering analytics"
description={TAB_DESCRIPTIONS[activeTab]}
resourceType={{ type: 'health' }}
actions={
@@ -89,7 +89,7 @@ export function EngineeringAnalyticsScene(): JSX.Element {
}
/>
<LemonBanner type="info" dismissKey="engineering-analytics-alpha">
- CI analytics is in alpha. Metrics are limited to CI events, and details may change.
+ Engineering analytics is in alpha. Metrics are limited to CI events, and details may change.
</LemonBanner>
<LemonTabs activeKey={activeTab} data-attr="engineering-analytics-tabs" tabs={tabs} sceneInset />
</SceneContent>
diff --git a/products/engineering_analytics/frontend/scenes/authorLogic.ts b/products/engineering_analytics/frontend/scenes/authorLogic.ts
index b04626c864cc..ac60dab94592 100644
--- a/products/engineering_analytics/frontend/scenes/authorLogic.ts
+++ b/products/engineering_analytics/frontend/scenes/authorLogic.ts
@@ -15,9 +15,9 @@ import { PullRequestRow, toPullRequestRow } from './engineeringAnalyticsLogic'
const projectId = (): string => String(ApiConfig.getCurrentProjectId())
-// The PR list itself isn't date-scoped (the date picker only scopes the cost tiles), but the load still
-// needs a floor for finished PRs — a wide one so the list reads as "this author's recent PRs". Open PRs
-// come back regardless of this. Wider than any tile window option, so the tiles are always a subset.
+// The PR list isn't date-scoped (the picker only scopes the cost tiles), but the load needs a floor for
+// finished PRs — wide so the list reads as "this author's recent PRs", and wider than any tile window so
+// the tiles stay a subset. Open PRs come back regardless.
const LIST_WINDOW = '-365d'
export interface AuthorLogicProps {
@@ -42,7 +42,7 @@ export const authorLogic = kea<authorLogicType>([
[] as PullRequestRow[],
{
// Loaded once: the author's recent PRs, mapped to the shared table row shape. Stable across
- // date changes — the date picker only scopes the tiles.
+ // date changes — the picker only scopes the tiles.
loadPrs: async (): Promise<PullRequestRow[]> => {
const result = await engineeringAnalyticsPullRequests(projectId(), {
author: props.handle,
@@ -91,7 +91,7 @@ export const authorLogic = kea<authorLogicType>([
(handle): Breadcrumb[] => [
{
key: 'EngineeringAnalytics',
- name: 'CI analytics',
+ name: 'Engineering analytics',
path: urls.engineeringAnalytics(),
iconType: 'health',
},
diff --git a/products/engineering_analytics/frontend/scenes/pullRequestDetailLogic.ts b/products/engineering_analytics/frontend/scenes/pullRequestDetailLogic.ts
index 0f3d69963d12..b10983374412 100644
--- a/products/engineering_analytics/frontend/scenes/pullRequestDetailLogic.ts
+++ b/products/engineering_analytics/frontend/scenes/pullRequestDetailLogic.ts
@@ -77,8 +77,8 @@ function toWorkflowRun(run: WorkflowRunDetailApi): WorkflowRun {
}
}
-// Re-exported for existing importers (the PR detail scene); defined in lib/jobs so the shared RunsTable
-// can read the cache without importing scene logic.
+// Re-exported for the PR detail scene; defined in lib/jobs so the shared RunsTable can read the cache
+// without importing scene logic.
export { jobCacheKey }
/** Group a PR's runs by commit, newest push first — so the detail shows CI across all pushes. */
@@ -157,9 +157,9 @@ export const pullRequestDetailLogic = kea<pullRequestDetailLogicType>([
runJobs: [
{} as Record<string, WorkflowJobApi[]>,
{
- // Lazy: fetched only when a run row is first expanded. Keyed by run+attempt; the
- // post-await read of values.runJobs (not a pre-await snapshot) keeps two near-simultaneous
- // first-expands from clobbering each other's entries.
+ // Lazy: fetched only on first expand. Keyed by run+attempt; the post-await read of
+ // values.runJobs (not a pre-await snapshot) keeps two near-simultaneous first-expands
+ // from clobbering each other.
loadJobs: async ({
runId,
runAttempt,
@@ -187,8 +187,8 @@ export const pullRequestDetailLogic = kea<pullRequestDetailLogicType>([
loadLifecycleFailure: () => true,
},
],
- // Separate from loadFailed (the PR header): a runs-load failure shows an error in the CI-runs
- // section instead of the misleading "no runs attributed" empty state, with its own retry.
+ // Separate from loadFailed (the header): a runs-load failure shows an error in the CI-runs section
+ // instead of the misleading "no runs attributed" empty state, with its own retry.
prRunsFailed: [
false,
{
@@ -245,8 +245,8 @@ export const pullRequestDetailLogic = kea<pullRequestDetailLogicType>([
.filter((group) => group.runs.length > 0)
},
],
- // The PR's runs as one flat list (newest push first), each tagged with its commit and narrowed
- // to the workflow filter — the single runs table that replaced the per-commit tables.
+ // The PR's runs as one flat list (newest push first), each tagged with its commit, narrowed to
+ // the workflow filter.
filteredRuns: [
(s) => [s.filteredCommitGroups],
(groups): PrRunRow[] =>
@@ -254,9 +254,9 @@ export const pullRequestDetailLogic = kea<pullRequestDetailLogicType>([
group.runs.map((run) => ({ ...run, headSha: group.headSha, headBranch: group.headBranch }))
),
],
- // The PR's runs rolled up per workflow, in the same WorkflowHealthRow shape the Workflows tab
- // uses — so the PR page reuses the shared WorkflowHealthTable. The sparkline buckets are the
- // PR's pushes (oldest → newest), zero-filled across all pushes so every workflow row aligns.
+ // The PR's runs rolled up per workflow, in the Workflows tab's WorkflowHealthRow shape so the PR
+ // page reuses the shared WorkflowHealthTable. Sparkline buckets are the PR's pushes (oldest →
+ // newest), zero-filled so every workflow row aligns.
workflowHealthRows: [
(s) => [s.commitGroups, s.repoOwner, s.repoName, s.prCost],
(commitGroups, repoOwner, repoName, prCost): WorkflowHealthRow[] => {
@@ -324,9 +324,8 @@ export const pullRequestDetailLogic = kea<pullRequestDetailLogicType>([
})
},
],
- // Per-run cost keyed by jobCacheKey(run_id, run_attempt) — so the expanded runs table can show a
- // cost column per attempt, rolling up to the per-workflow figure above it. Empty when the job
- // source isn't synced (prCost.jobs_available false).
+ // Per-run cost keyed by jobCacheKey(run_id, run_attempt) — so the expanded runs table shows a cost
+ // column per attempt. Empty when the job source isn't synced (prCost.jobs_available false).
runCostByKey: [
(s) => [s.prCost],
(prCost): Record<string, { minutes: number | null; cost: number | null }> => {
@@ -357,7 +356,7 @@ export const pullRequestDetailLogic = kea<pullRequestDetailLogicType>([
(repoOwner, repoName, number): Breadcrumb[] => [
{
key: 'EngineeringAnalytics',
- name: 'CI analytics',
+ name: 'Engineering analytics',
path: urls.engineeringAnalytics(),
iconType: 'health',
},
diff --git a/products/engineering_analytics/frontend/scenes/workflowRunDetailLogic.ts b/products/engineering_analytics/frontend/scenes/workflowRunDetailLogic.ts
index 9f501a1847ee..e92d10165820 100644
--- a/products/engineering_analytics/frontend/scenes/workflowRunDetailLogic.ts
+++ b/products/engineering_analytics/frontend/scenes/workflowRunDetailLogic.ts
@@ -38,10 +38,10 @@ export const workflowRunDetailLogic = kea<workflowRunDetailLogicType>([
}),
},
],
- // A single workflow run drills into its jobs — the same breakdown the PR view shows on expand.
- // null while not loaded (kea reducers can't hold undefined), [] when the source isn't synced.
- // Scoped to the run's actual attempt (loaded first): a rerun's jobs source can lag, and the
- // backend's omitted-attempt fallback would otherwise show an older attempt's jobs/costs here.
+ // A single run's jobs — the breakdown the PR view shows on expand. null while not loaded (kea
+ // reducers can't hold undefined), [] when the source isn't synced. Scoped to the run's actual
+ // attempt (loaded first): a rerun's jobs source can lag, and the backend's omitted-attempt fallback
+ // would otherwise show an older attempt's jobs/costs.
jobs: [
null as WorkflowJobApi[] | null,
{
@@ -82,7 +82,7 @@ export const workflowRunDetailLogic = kea<workflowRunDetailLogicType>([
(repoOwner, repoName, runId): Breadcrumb[] => [
{
key: 'EngineeringAnalytics',
- name: 'CI analytics',
+ name: 'Engineering analytics',
path: urls.engineeringAnalytics(),
iconType: 'health',
},
diff --git a/products/engineering_analytics/frontend/scenes/workflowRunsLogic.ts b/products/engineering_analytics/frontend/scenes/workflowRunsLogic.ts
index e7ef62a51373..76b50d9bc938 100644
--- a/products/engineering_analytics/frontend/scenes/workflowRunsLogic.ts
+++ b/products/engineering_analytics/frontend/scenes/workflowRunsLogic.ts
@@ -19,8 +19,8 @@ import type { workflowRunsLogicType } from './workflowRunsLogicType'
const projectId = (): string => String(ApiConfig.getCurrentProjectId())
-// Mirrors the backend runs-list cap (`workflow_run_list.py` `_LIMIT`). When the list comes back this full
-// it's almost certainly truncated, so the header labels its run rollups as "recent" rather than full-window.
+// Mirrors the backend runs-list cap (`workflow_run_list.py` `_LIMIT`). A full list is likely truncated, so
+// the header labels run rollups "recent" rather than full-window.
const RUN_LIST_LIMIT = 200
/** A workflow run mapped to the shared RunsTable shape: the RunRowBase fields the table needs, plus the
@@ -98,8 +98,8 @@ export const workflowRunsLogic = kea<workflowRunsLogicType>([
runJobs: [
{} as Record<string, WorkflowJobApi[]>,
{
- // Lazy: fetched only when a run row is first expanded. Keyed by run+attempt; reads the
- // post-await values.runJobs so two near-simultaneous first-expands don't clobber each other.
+ // Lazy: fetched only on first expand. Keyed by run+attempt; reads the post-await
+ // values.runJobs so two near-simultaneous first-expands don't clobber each other.
loadJobs: async ({
runId,
runAttempt,
@@ -137,8 +137,8 @@ export const workflowRunsLogic = kea<workflowRunsLogicType>([
}),
selectors({
- // Pass props through as values so the scene reads the repo/workflow identity (for the title and
- // links) without reaching into logic internals, and can preserve `?source=` on outbound links.
+ // Pass props through as values so the scene reads repo/workflow identity (title, links) without
+ // reaching into logic internals, and can preserve `?source=` on outbound links.
sourceId: [() => [(_, p: WorkflowRunsLogicProps) => p.sourceId], (sourceId): string | null => sourceId],
repoOwner: [() => [(_, p: WorkflowRunsLogicProps) => p.repoOwner], (repoOwner): string => repoOwner],
repoName: [() => [(_, p: WorkflowRunsLogicProps) => p.repoName], (repoName): string => repoName],
@@ -146,8 +146,7 @@ export const workflowRunsLogic = kea<workflowRunsLogicType>([
() => [(_, p: WorkflowRunsLogicProps) => p.workflowName],
(workflowName): string => workflowName,
],
- // Runs mapped to the shared RunsTable row shape so this page reuses the same runs → jobs table the
- // PR detail page uses.
+ // Runs mapped to the shared RunsTable row shape, reusing the same runs → jobs table the PR detail uses.
runRows: [
(s) => [s.runs],
(runs: WorkflowRunDetailApi[]): WorkflowRunRow[] =>
@@ -166,8 +165,8 @@ export const workflowRunsLogic = kea<workflowRunsLogicType>([
],
// Verdict + headline stats for the health strip above the chart.
healthSummary: [(s) => [s.runRows], (runRows): HealthSummary => computeHealthSummary(runRows)],
- // The runs list is capped server-side; when hit, the header's run rollups are over the most recent
- // runs only (cost still comes from the full-window aggregate), so it labels them as such.
+ // Runs list is capped server-side; when hit, run rollups cover only the most recent runs (cost
+ // still comes from the full-window aggregate), so the header labels them as such.
runsTruncated: [(s) => [s.runRows], (runRows): boolean => runRows.length >= RUN_LIST_LIMIT],
// Billable minutes + estimated cost summed across runner tiers, for the strip's cost rollup.
costSummary: [
@@ -195,7 +194,7 @@ export const workflowRunsLogic = kea<workflowRunsLogicType>([
(repoOwner, repoName, workflowName): Breadcrumb[] => [
{
key: 'EngineeringAnalytics',
- name: 'CI analytics',
+ name: 'Engineering analytics',
path: urls.engineeringAnalytics(),
iconType: 'health',
},
diff --git a/products/engineering_analytics/manifest.tsx b/products/engineering_analytics/manifest.tsx
index 28b4437c2c6f..4141a196995f 100644
--- a/products/engineering_analytics/manifest.tsx
+++ b/products/engineering_analytics/manifest.tsx
@@ -1,8 +1,4 @@
-/**
- * Product manifest for engineering_analytics.
- *
- * Defines scenes, routes, URLs, and navigation for this product.
- */
+/** Product manifest for engineering_analytics: scenes, routes, URLs, and navigation. */
import { FEATURE_FLAGS } from 'lib/constants'
import { urls } from 'scenes/urls'
@@ -16,7 +12,7 @@ export const manifest: ProductManifest = {
EngineeringAnalytics: {
import: () => import('./frontend/scenes/EngineeringAnalyticsScene'),
projectBased: true,
- name: 'CI analytics',
+ name: 'Engineering analytics',
layout: 'app-container',
description: 'Pull request and workflow CI health across connected GitHub repos.',
iconType: 'health',
@@ -54,9 +50,9 @@ export const manifest: ProductManifest = {
iconType: 'health',
},
},
- // Detail paths mirror GitHub 1:1 (owner/repo/pull/:n, owner/repo/actions/runs/:id); the cross-repo
- // aggregate dashboards stay at the product root. Provider lives on the data (RepoRef.provider), so
- // these url builders are the single place to branch verbs for a future provider (e.g. GitLab).
+ // Detail paths mirror GitHub 1:1 (owner/repo/pull/:n, owner/repo/actions/runs/:id); cross-repo
+ // aggregates stay at the product root. Provider lives on the data (RepoRef.provider), so these url
+ // builders are the single place to branch verbs for a future provider (e.g. GitLab).
routes: {
'/engineering-analytics': ['EngineeringAnalytics', 'engineeringAnalytics'],
'/engineering-analytics/workflows': ['EngineeringAnalytics', 'engineeringAnalyticsWorkflows'],
@@ -93,7 +89,7 @@ export const manifest: ProductManifest = {
treeItemsNew: [],
treeItemsProducts: [
{
- path: 'CI analytics',
+ path: 'Engineering analytics',
intents: [ProductKey.ENGINEERING_ANALYTICS],
category: ProductItemCategory.UNRELEASED,
type: 'engineering_analytics',