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(empty-states): make endpoint, evaluation and dataset previews read as examples (#111669)

posthog[bot]1e4107b21bdc
diff --git a/.agents/skills/building-product-empty-states/SKILL.md b/.agents/skills/building-product-empty-states/SKILL.md
index d0634bdc415d..607494c634f2 100644
--- a/.agents/skills/building-product-empty-states/SKILL.md
+++ b/.agents/skills/building-product-empty-states/SKILL.md
@@ -82,7 +82,7 @@ This is not a flat mock - the bar is "fun and involved", and the references set
- **Layer 2-3 small cards** that tell one story together (a list + the mini app it drives + a stat card with a chart), not a single panel of rows.
- **One real interaction with a visible payoff.** Drive it with a hidden checkbox/radio and `:checked ~` styles - clicking a flag row flips a mini app's UI and steps a conversion chart up at a "Released" marker; picking a variant highlights its interval and re-skins the app. No React state, no JS timers (`setInterval` is banned; CSS keyframes only).
-- **Ambient motion so it feels alive at rest:** a trace segment cycling along a sparkline, a pulsing "Running" dot - subtle and continuous. Do **not** auto-toggle the interactive state on a loop - a UI that flips itself reads as broken, not alive; the user flips it, ambient motion does the rest.
+- **Ambient motion so it feels alive at rest:** a trace segment cycling along a sparkline, a nudge on the next control to click - subtle and continuous. Never imitate live status ("Running", "updated 2h ago", "New item saved") or real-looking identifiers (`/api/projects/2/...`): next to a "Create your first…" call to action, they read as the user's own data. Use obviously placeholder names and paths, and start `previewLabel` with "Example:". Do **not** auto-toggle the interactive state on a loop - a UI that flips itself reads as broken, not alive; the user flips it, ambient motion does the rest.
- **No layout shift on state change:** stack on/off variants in one grid cell and crossfade opacity; never swap `display` or animate heights for state text.
- **Never paint text in the raw product accent.** Those tokens are sidebar icon tints; on the light surface most land under the 4.5:1 AA floor as text. Use `@include preview-accent-text(var(--<x>-preview-accent))` for every `color:` declaration and keep the raw accent for fills, borders, and strokes.
- **Crossfade with the `preview-swap-hidden` / `preview-swap-visible` mixins** (`lib/components/ProductEmptyState/_previewMixins.scss`), never bare `opacity`. Opacity alone leaves the hidden half in the accessibility tree and the tab order, so a screen reader announces both states at once and a keyboard user can land on an invisible button. The mixins add `visibility` on a delay, which keeps the fade and costs no layout shift.
diff --git a/frontend/snapshots.yml b/frontend/snapshots.yml
index 2dd9c06c122f..6c6e34cc6d9b 100644
--- a/frontend/snapshots.yml
+++ b/frontend/snapshots.yml
@@ -2257,9 +2257,9 @@ snapshots:
components-product-empty-state--data-warehouse-needs-setup--light:
hash: v1.k794b7964.00719fec7ae732c14e138f5490b704dd4b43851f8b64ed4f0b520c405e036d61.cMX_6z3cOUjIzxBTb0s6zFxXtvMkSIc8bpg-WdgariU
components-product-empty-state--datasets-needs-setup--dark:
- hash: v1.k794b7964.01f60a890684cbe8ce2e6710438881a14cea589f0329a0c7bb81e6ba3c7d705c.RDQRVZbNasaNJAmELuFQwrgwmPHFLSDnpqwMR65kwLc
+ hash: v1.k794b7964.f1df9041bbf4883ec7978a2fc9a4e16f813de314dacfddafa00f43b4ba7eff6b.xUa2mTq-kwAFtUkjC9J-AUa27SKYrzlmK1MQnc_Mu1Y
components-product-empty-state--datasets-needs-setup--light:
- hash: v1.k794b7964.7822854706ae6666084d7fc87da5c4fcdd8203bf699cff091e4127311c0d36c6.THvugQSJkiPaI4f_IXmCG5wi_pP4W2uFYHeqWhBzZ9k
+ hash: v1.k794b7964.a074d7e629a8325bbf155f33a979a086e08592b98aef2c4e57f56329f5a164d0.B9zZ6fZHgw8Z81PPY5swmKBRgoIZ1B045bhOCAWgV9A
components-product-empty-state--destinations-needs-setup--dark:
hash: v1.k794b7964.257dac1f2339b456e84031f7b087d081d4bdc6373545f755a1d59901d2b12be3.UrYCWLgZjZ81WivesRcKLD0sOzNOwWIBQUomKBs13xo
components-product-empty-state--destinations-needs-setup--light:
@@ -2277,9 +2277,9 @@ snapshots:
components-product-empty-state--empty-with-action--light:
hash: v1.k794b7964.80a94ce3b72b30fc78f17c3df97f60b02513da190f16b10b785ddc6410e29610.LI50ALV6r5CTuWZhpD9jAdNFn5t82tuAdtAuP0FZw7o
components-product-empty-state--endpoints-needs-setup--dark:
- hash: v1.k794b7964.3c5039cbcc774991bfb7e05d84438d5f1b9620c84a344712afc9b5c13c9ceea6.zm9S5unaKvH8yjtwEX4Yy_j65dpsk6ggEHqogRNH4i8
+ hash: v1.k794b7964.ec42f33cbdbd5f733815fe21613cc8941a938c20215690bc68259e5121cdd878.zOjDqHOwpdTqwqdHqHxES8nivlagIolMagezssu0XMw
components-product-empty-state--endpoints-needs-setup--light:
- hash: v1.k794b7964.469d0d5a9946460cfb61138bf4e7d188b8b1dfe4c3ef28464094c233776cafd8.mVmnTe1dNcZjfkGE_Hk_YqapXw603g_7v6ZgtmvQoM4
+ hash: v1.k794b7964.db34d39ee77830601f8ffcc260b08e6da668b7b6020e3046c3bb98ea9391b8bc.sWFMZaSbahNkj7JMFztcUDt4VLe_10MR2lDjAQJ_kWs
components-product-empty-state--engineering-analytics-needs-setup--dark:
hash: v1.k794b7964.f4701ace2d331f207653d041cbee247542a2fdcc8bd4b8ac6e1aee20bdf1fe21.me5Fb7zbwdX-93VdIfM8UE6Yv3pOH4FsbXCUxIlsYiU
components-product-empty-state--engineering-analytics-needs-setup--light:
@@ -2301,9 +2301,9 @@ snapshots:
components-product-empty-state--error-tracking-waiting-for-data-new-wizard--light:
hash: v1.k794b7964.1c2478e9c9e74eb47d896585f4f78e377c27a838e4f60cb35f7e685709d4fff9.xW8y7FqybbzrWn2szBUXyfUTJMNMrCVmSVBDVa6Fpbg
components-product-empty-state--evaluations-needs-setup--dark:
- hash: v1.k794b7964.d66a917dd9bbb71fe2c50f81b2c5a873af729170292973601909c77c6ed54304.X1ueW3Kooz45WUhf9edIjjWCpiT9MwXfZAuclmpxL_M
+ hash: v1.k794b7964.86a1b36b37f9dba0c971d777a8c88d7826037d7555560bb58290f354a4098fa2.yFdmlSWulwx9q7PbzGH5DIbxYeTqN5evO1mASoujGTs
components-product-empty-state--evaluations-needs-setup--light:
- hash: v1.k794b7964.8f1c1a0f298854ab3d87e5d52a4531daf193a9a4415bfaefc2962d1403860d33.4vgyKRIRxjX1MkCE9LQv5yEOfh3jfs1SEMiFvIzAOSI
+ hash: v1.k794b7964.5558ae08fe036047b496a2b39a36103445afb56eda50861dc5e25997994740e8.Nxl8CSYD-xHBRdqky0ya_qSAoIRQcyBFTRgsgarS-BM
components-product-empty-state--experiments-needs-setup--dark:
hash: v1.k794b7964.2cdc47f158cecd85687618856c238c7ac65456dfa887db9e5e66baa9476cd145.mBKJtWHPn-vr4FCycrTMD2WE4K4a6cOT8SGg4p6MzbE
components-product-empty-state--experiments-needs-setup--light:
diff --git a/products/ai_observability/frontend/emptyState/DatasetsPreview.scss b/products/ai_observability/frontend/emptyState/DatasetsPreview.scss
index 7ffcc80c6e11..f3d4f1a8dc0b 100644
--- a/products/ai_observability/frontend/emptyState/DatasetsPreview.scss
+++ b/products/ai_observability/frontend/emptyState/DatasetsPreview.scss
@@ -191,7 +191,6 @@
height: 7px;
background: var(--datasets-preview-accent);
border-radius: 50%;
- animation: DatasetsPreview__pulse 1.8s ease-in-out infinite;
}
}
@@ -244,15 +243,4 @@
}
}
-@keyframes DatasetsPreview__pulse {
- 0%,
- 100% {
- box-shadow: 0 0 0 0 color-mix(in oklab, var(--datasets-preview-accent) 45%, transparent);
- }
-
- 50% {
- box-shadow: 0 0 0 4px color-mix(in oklab, var(--datasets-preview-accent) 0%, transparent);
- }
-}
-
@include preview-motion-guards('DatasetsPreview');
diff --git a/products/ai_observability/frontend/emptyState/DatasetsPreview.tsx b/products/ai_observability/frontend/emptyState/DatasetsPreview.tsx
index e27cbb8376db..7d2c0d2e25b8 100644
--- a/products/ai_observability/frontend/emptyState/DatasetsPreview.tsx
+++ b/products/ai_observability/frontend/emptyState/DatasetsPreview.tsx
@@ -8,7 +8,6 @@ interface PreviewDataset {
id: string
name: string
items: number
- updated: string
rows: { input: string; expected: string }[]
}
@@ -17,9 +16,8 @@ interface PreviewDataset {
const DATASETS: PreviewDataset[] = [
{
id: 'support',
- name: 'Support replies',
+ name: 'Example: support replies',
items: 48,
- updated: 'updated 2h ago',
rows: [
{ input: 'How do I export my data?', expected: 'Links to the export docs, mentions CSV and API' },
{ input: 'Can I pause my subscription?', expected: 'Yes, from billing settings, keeps data for 90 days' },
@@ -28,9 +26,8 @@ const DATASETS: PreviewDataset[] = [
},
{
id: 'refunds',
- name: 'Refund policy Q&A',
+ name: 'Example: refund policy Q&A',
items: 21,
- updated: 'updated yesterday',
rows: [
{ input: 'I was charged twice this month', expected: 'Apologize, confirm the duplicate, offer a refund' },
{ input: 'Refund a plan I cancelled last week?', expected: 'Prorated refund within 14 days of cancelling' },
@@ -39,9 +36,8 @@ const DATASETS: PreviewDataset[] = [
},
{
id: 'onboarding',
- name: 'Onboarding prompts',
+ name: 'Example: onboarding prompts',
items: 33,
- updated: 'updated 3d ago',
rows: [
{ input: 'Set up tracking on a Next.js app', expected: 'Install steps, provider wrapper, env var' },
{ input: "My events aren't showing up", expected: 'Check the API key, host, and ad blockers' },
@@ -92,9 +88,7 @@ export function DatasetsPreview(): JSX.Element {
/>
<span className="DatasetsPreview__copy">
<span className="DatasetsPreview__name">{dataset.name}</span>
- <span className="DatasetsPreview__meta">
- {dataset.items} items · {dataset.updated}
- </span>
+ <span className="DatasetsPreview__meta">{dataset.items} items</span>
</span>
</label>
))}
@@ -144,7 +138,7 @@ export function DatasetsPreview(): JSX.Element {
))}
<div className="DatasetsPreview__incoming">
<span className="DatasetsPreview__dot" aria-hidden="true" />
- New item saved from a trace
+ Save items straight from your traces
</div>
</div>
</div>
diff --git a/products/ai_observability/frontend/emptyState/EvaluationsPreview.scss b/products/ai_observability/frontend/emptyState/EvaluationsPreview.scss
index 3aa7a994a9c8..cc7f12575a9e 100644
--- a/products/ai_observability/frontend/emptyState/EvaluationsPreview.scss
+++ b/products/ai_observability/frontend/emptyState/EvaluationsPreview.scss
@@ -109,21 +109,6 @@
}
// "Running" only lights up on the selected row; the others stay muted.
- &__running {
- display: flex;
- gap: 0.3125rem;
- align-items: center;
- font-size: 0.625rem;
- color: var(--color-text-tertiary);
- }
-
- &__running-dot {
- width: 6px;
- height: 6px;
- background: var(--color-border-primary);
- border-radius: 50%;
- }
-
&__hint {
padding: 0 0.75rem 0.625rem;
font-size: 0.6875rem;
@@ -217,16 +202,6 @@
#evaluations-preview-sentiment:checked ~ .EvaluationsPreview__list .EvaluationsPreview__row--sentiment {
background: color-mix(in oklab, var(--evaluations-preview-accent) 8%, transparent);
border-color: color-mix(in oklab, var(--evaluations-preview-accent) 40%, transparent);
-
- // "Running" lights up on the selected row only.
- .EvaluationsPreview__running {
- color: var(--color-green-700);
- }
-
- .EvaluationsPreview__running-dot {
- background: var(--color-green-500);
- animation: EvaluationsPreview__pulse 1.6s ease-in-out infinite;
- }
}
#evaluations-preview-accuracy:checked ~ .EvaluationsPreview__list .EvaluationsPreview__vradio--accuracy::after,
@@ -263,17 +238,6 @@
}
}
-@keyframes EvaluationsPreview__pulse {
- 0%,
- 100% {
- box-shadow: 0 0 0 0 color-mix(in oklab, var(--color-green-500) 45%, transparent);
- }
-
- 50% {
- box-shadow: 0 0 0 4px color-mix(in oklab, var(--color-green-500) 0%, transparent);
- }
-}
-
@keyframes EvaluationsPreview__breathe {
0%,
100% {
diff --git a/products/ai_observability/frontend/emptyState/EvaluationsPreview.tsx b/products/ai_observability/frontend/emptyState/EvaluationsPreview.tsx
index 068ff54e318f..5333727bd13f 100644
--- a/products/ai_observability/frontend/emptyState/EvaluationsPreview.tsx
+++ b/products/ai_observability/frontend/emptyState/EvaluationsPreview.tsx
@@ -107,10 +107,6 @@ export function EvaluationsPreview(): JSX.Element {
<LemonTag size="small" type={evaluation.kind.tag}>
{evaluation.kind.label}
</LemonTag>
- <span className="EvaluationsPreview__running">
- <span className="EvaluationsPreview__running-dot" aria-hidden="true" />
- Running
- </span>
</label>
))}
</div>
diff --git a/products/ai_observability/frontend/emptyState/datasetsEmptyState.tsx b/products/ai_observability/frontend/emptyState/datasetsEmptyState.tsx
index 0b1f33de7ef9..4191a8224fab 100644
--- a/products/ai_observability/frontend/emptyState/datasetsEmptyState.tsx
+++ b/products/ai_observability/frontend/emptyState/datasetsEmptyState.tsx
@@ -39,7 +39,7 @@ export const datasetsEmptyState: SceneProductEmptyState = {
},
docsUrl: 'https://posthog.com/docs/ai-evals/datasets',
skippable: false,
- previewLabel: 'Your datasets, once filled',
+ previewLabel: 'Example: how your datasets will look',
Preview: DatasetsPreview,
},
}
diff --git a/products/ai_observability/frontend/emptyState/evaluationsEmptyState.tsx b/products/ai_observability/frontend/emptyState/evaluationsEmptyState.tsx
index 48028da1e38e..cbec165d5806 100644
--- a/products/ai_observability/frontend/emptyState/evaluationsEmptyState.tsx
+++ b/products/ai_observability/frontend/emptyState/evaluationsEmptyState.tsx
@@ -39,7 +39,7 @@ export const evaluationsEmptyState: SceneProductEmptyState = {
},
docsUrl: 'https://posthog.com/docs/ai-evals/evaluations',
skippable: false,
- previewLabel: 'Your evaluations, once running',
+ previewLabel: 'Example: how your evaluations will score',
Preview: EvaluationsPreview,
},
}
diff --git a/products/endpoints/frontend/emptyState/EndpointPreview.tsx b/products/endpoints/frontend/emptyState/EndpointPreview.tsx
index b79975bec382..b26ff43a1942 100644
--- a/products/endpoints/frontend/emptyState/EndpointPreview.tsx
+++ b/products/endpoints/frontend/emptyState/EndpointPreview.tsx
@@ -43,9 +43,9 @@ export function EndpointPreview(): JSX.Element {
className="EndpointPreview__row EndpointPreview__row--hero"
>
<span className="EndpointPreview__copy">
- <span className="EndpointPreview__name">active-users-daily</span>
+ <span className="EndpointPreview__name">example-daily-users</span>
<span className="EndpointPreview__path">
- /api/projects/2/endpoints/active-users-daily/run
+ /api/projects/:project_id/endpoints/example-daily-users/run
</span>
</span>
<span className="EndpointPreview__swap EndpointPreview__mat">
@@ -56,8 +56,10 @@ export function EndpointPreview(): JSX.Element {
</label>
<div className="EndpointPreview__row">
<span className="EndpointPreview__copy">
- <span className="EndpointPreview__name">revenue-by-plan</span>
- <span className="EndpointPreview__path">/api/projects/2/endpoints/revenue-by-plan/run</span>
+ <span className="EndpointPreview__name">example-revenue</span>
+ <span className="EndpointPreview__path">
+ /api/projects/:project_id/endpoints/example-revenue/run
+ </span>
</span>
<span className="EndpointPreview__mat EndpointPreview__mat--live">Materialized</span>
<span className="EndpointPreview__switch EndpointPreview__switch--on" aria-hidden="true" />
@@ -84,7 +86,7 @@ export function EndpointPreview(): JSX.Element {
<div className="EndpointPreview__screen">
<div className="EndpointPreview__line">
<span className="EndpointPreview__prompt-char">$</span> curl
- us.posthog.com/api/projects/2/endpoints/active-users-daily/run
+ us.posthog.com/api/projects/:project_id/endpoints/example-daily-users/run
</div>
<div className="EndpointPreview__line EndpointPreview__response">
{'{ "results": [["2026-07-28", 4102], ["2026-07-27", 3987], …] }'}
@@ -104,7 +106,7 @@ export function EndpointPreview(): JSX.Element {
<div className="EndpointPreview__spark">
<div className="EndpointPreview__spark-head">
- <span className="EndpointPreview__spark-title">p95 latency · active-users-daily · 7 days</span>
+ <span className="EndpointPreview__spark-title">p95 latency · example-daily-users · 7 days</span>
<LemonTag size="small">example data</LemonTag>
</div>
diff --git a/products/endpoints/frontend/emptyState/endpointsEmptyState.tsx b/products/endpoints/frontend/emptyState/endpointsEmptyState.tsx
index 56560b93416e..c987b877330e 100644
--- a/products/endpoints/frontend/emptyState/endpointsEmptyState.tsx
+++ b/products/endpoints/frontend/emptyState/endpointsEmptyState.tsx
@@ -30,7 +30,7 @@ export const endpointsEmptyState: SceneProductEmptyState = {
PrimaryAction: CreateFirstEndpointButton,
skippable: false,
docsUrl: 'https://posthog.com/docs/endpoints',
- previewLabel: 'Your endpoints, once created',
+ previewLabel: 'Example: how your endpoints will look',
Preview: EndpointPreview,
},
}