Skip to content

fix(components): small UI tweaks for queries-over-time#1096

Merged
fhennig merged 6 commits intomainfrom
queries-over-time-style-fixes
Mar 12, 2026
Merged

fix(components): small UI tweaks for queries-over-time#1096
fhennig merged 6 commits intomainfrom
queries-over-time-style-fixes

Conversation

@fhennig
Copy link
Contributor

@fhennig fhennig commented Mar 10, 2026

resolves #1094, resolves #1095

Summary

  • row label tooltip
    • remove coverage query, because we're generating it now and it's not informative to display
    • set a max width and wrap count query
  • row label column
    • don't wrap labels
  • Export CountCoverageQuery instead of QueryDefinition. CountCoverageQuery actually includes a description for each variant, which is displayed in the tooltips.

We're not using any sort of truncating on the variant name, because important parts of the name might be left out. For very long names this might look silly in the UI, but we're fine with that for now.

Screenshot

Don't wrap row labels, and added a little mr-2 to the label:

image

No more coverage query:

image

max width and wrapping:

image

PR Checklist

  • All necessary documentation has been adapted.
  • The implemented feature is covered by an appropriate test.

@vercel
Copy link

vercel bot commented Mar 10, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
dashboard-components Ready Ready Preview, Comment Mar 11, 2026 10:40am

Request Review

@fhennig fhennig changed the title WIP feat(components): small UI tweaks for queries-over-time Mar 10, 2026
@fhennig fhennig self-assigned this Mar 10, 2026
@fhennig fhennig marked this pull request as ready for review March 10, 2026 16:58
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the “queries over time” UI to improve readability for long row labels and to simplify the row-label tooltip contents, aligning with issues #1094 and #1095.

Changes:

  • Adjust row label rendering (spacing/no-wrap behavior) and update visual regression snapshots accordingly.
  • Simplify the row-label tooltip by removing the “coverage query” section and improving count-query wrapping/width.
  • Update the public util entrypoint export to expose CountCoverageQuery (instead of QueryDefinition) for richer tooltip metadata.

Reviewed changes

Copilot reviewed 4 out of 14 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
components/src/preact/queriesOverTime/queries-over-time.tsx Tweaks row label rendering inside the grid row-label tooltip wrapper.
components/src/preact/queriesOverTime/queries-over-time-row-label-tooltip.tsx Removes coverage query section; adds max width and wraps count query.
components/src/preact/queriesOverTime/queries-over-time-row-label-tooltip.stories.tsx Updates Storybook expectations/data to match tooltip changes.
components/src/utilEntrypoint.ts Switches exported public type from QueryDefinition to CountCoverageQuery.
components/tests/snapshots.spec.ts-snapshots/Queries-over-time-Story-visualization-queries-over-time--*-chromium-linux.png Updates/adds visual snapshots to reflect the UI changes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@fhennig fhennig changed the title feat(components): small UI tweaks for queries-over-time fix(components): small UI tweaks for queries-over-time Mar 12, 2026
@fhennig fhennig merged commit c5c5840 into main Mar 12, 2026
7 checks passed
@fhennig fhennig deleted the queries-over-time-style-fixes branch March 12, 2026 14:33
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.

queries over time: tooltip shouldn't contain the coverage query queries over time: long variant names look awkward

3 participants