Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Show "No results" empty state in Metric Viewer #73705

Draft
AndreyChernykh wants to merge 3 commits intomastermetabase/metabase:masterfrom
uxw-3906-metric-viewer-should-use-existing-no-results-statemetabase/metabase:uxw-3906-metric-viewer-should-use-existing-no-results-stateCopy head branch name to clipboard
Draft

Show "No results" empty state in Metric Viewer #73705
AndreyChernykh wants to merge 3 commits intomastermetabase/metabase:masterfrom
uxw-3906-metric-viewer-should-use-existing-no-results-statemetabase/metabase:uxw-3906-metric-viewer-should-use-existing-no-results-stateCopy head branch name to clipboard

Conversation

@AndreyChernykh
Copy link
Copy Markdown
Contributor

Description

Fixes UXW-3906.

When all series in the Metric Viewer have zero rows (e.g. a filter excludes everything), render the same chill-mode "No results!" empty state used by the question viewer instead of the per-visualization MinRowsError warning. The warning was misleading — zero rows from filters isn't a visualization configuration problem.

How to verify

  • Open a metric whose Created At tab uses a line chart (e.g. Orders, Count by Created At: Month).
  • Add a filter that yields zero rows (e.g. Total >= 999999999).
  • Confirm the chart pane shows the sailboat "No results!" state with the "try removing or changing your filters" subtitle, not the warning triangle.

Demo

Before

image

After

image

Checklist

  • Tests have been added/updated to cover changes in this PR
  • If adding new Loki tests: they pass stress testing

@AndreyChernykh AndreyChernykh added the backport Automatically create PR on current release branch on merge label May 5, 2026
@metabase-bot metabase-bot Bot added the .Team/UXWest UX West - use for bugs and feature requests label May 5, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 6, 2026

e2e tests failed on 7ded8b8f17bf9eedeb768562e679af38856e7859-1

e2e test run

File Test Name
metrics-explorer.cy.spec.ts scenarios > metrics > explorer > Adding metrics and measures > should add metrics and measures from the entity picker
metrics-explorer.cy.spec.ts scenarios > metrics > explorer > Adding metrics and measures > should add multiple metrics one by one using metrics dropdown
model-actions.cy.spec.js Write actions on model detail page (postgres) > should respect impersonated permission
source-replacement.cy.spec.ts scenarios > data-studio > source replacement > Native queries > replaces a table referenced in a native SQL question
usage-auditing.cy.spec.ts scenarios > metabot > usage auditing > drills through from the conversations by day chart to the conversations list
usage-auditing.cy.spec.ts scenarios > metabot > usage auditing > drills through from the conversations by hour chart to the conversations list
usage-auditing.cy.spec.ts scenarios > metabot > usage auditing > uses hourly stats for a single-day date filter
query-external.cy.spec.js scenarios > question > query > external > can query Mongo database

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

Labels

backport Automatically create PR on current release branch on merge .Team/UXWest UX West - use for bugs and feature requests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.