Skip to content

feat(dashboards): show icons instead of hedgehogs for v2 error states - #142855

Draft
MattPua wants to merge 4 commits into
posthog/dashboards-v2-timing-sample-datafrom
posthog/dashboards-v2-error-state-icons
Draft

MattPua wants to merge 4 commits into
posthog/dashboards-v2-timing-sample-datafrom
posthog/dashboards-v2-error-state-icons

Conversation

@MattPua

@MattPua MattPua commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

Problem

Changes

  • Tile errors show a quill icon, as v1 insight errors do: a red warning, an amber puzzle (unknown type) or an amber wrench (invalid settings).
  • The "dashboard couldn't be shown" page shows a red warning icon.
  • "Not found" and "no access" keep their hedgehogs. Loading states had none.

Tile error states with icons

No before screenshot: each of these tiles showed a hedgehog.

How did you test this code?

  • The "Tile states" tab of /dashboard-v2 renders every error state with its new icon (screenshot above).

Test rationale: No new test. The change swaps an illustration, and no test asserts on it.

Release status

  • This change is behind a feature flag and is not available to users

Docs update

  • None.

🤖 Agent context

Autonomy: Human-driven (agent-assisted)

Agent: Claude Code, Claude Opus 5.5

Skills: /writing-ui-components, /writing-pr-descriptions

Driver checked: Not yet checked by the driver

Security review: not needed

More context for AI agents
  • Decisions: icons and colors copy InsightErrorIllustration in frontend/src/scenes/insights/EmptyStates/EmptyStates.tsx.
  • Decisions: DashboardUnavailable keeps hedgehogs for notFound and noAccess; only error changed.

🤖 Generated with Claude Code

MattPua and others added 4 commits November 26, 2026 09:32
- Send a `dashboard v2 loaded` event per load, refresh, filter change and tab switch, tagged with the host surface.
- Let widget types supply a sample data state, shown when the host has no real data.
- Show widget problems and empty results in the quill empty-state layout.
- Share one chart theme across charts instead of one per tile.
- Pass refresh, sample data and query timing to widgets through one `WidgetHostContext`.
- Move widget core files into `widgets/core/`, query code into `query/`, and add a Tile states tab to the kitchen sink.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Label a property pill with its own type's operator, so a numeric pill reads "= 5", as the picker does.
- Show separate loading, error and empty messages in the value list.
- Leave hidden properties out of the property search, as v1 does.
- Name the right feature flag in the product guide.

Unverified: untestable, label and copy changes checked by tsc and jest only

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The overlay, the tile outline and the lit edge turn red when a tile hits its minimum size.

Unverified: trivial, CSS color change checked in the local app

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant