Skip to content

feat: carry-over Source and WHERE when navigating from Search to Chart Explorer#1964

Draft
MikeShi42 wants to merge 1 commit intomainfrom
cursor/HDX-3781-search-to-chart-navigation-0825
Draft

feat: carry-over Source and WHERE when navigating from Search to Chart Explorer#1964
MikeShi42 wants to merge 1 commit intomainfrom
cursor/HDX-3781-search-to-chart-navigation-0825

Conversation

@MikeShi42
Copy link
Contributor

Summary

Adds an "Open in Chart Explorer" button to the Search page toolbar that carries over the currently selected source and WHERE clause when navigating to Chart Explorer. This eliminates the need for users to re-select their data source and re-enter filters when switching from Search to Chart Explorer.

The button appears as a chart icon (matching the Chart Explorer icon in AppNav) in the Search toolbar next to the Save/Alerts buttons. It includes a tooltip reading "Open in Chart Explorer" and builds a URL containing:

  • config JSON with the source ID, WHERE clause, WHERE language, and default chart settings
  • from / to time range parameters matching the current searched time range

The button is rendered as an anchor element, so users can also right-click → "Open in new tab" for a non-disruptive workflow.

How to test locally or on Vercel

  1. Navigate to the Search page
  2. Select a data source and enter a WHERE clause (e.g., level = 'error')
  3. Run the query, then click the chart icon button in the toolbar (next to Save/Alerts)
  4. Verify you land on Chart Explorer with the same source pre-selected and the WHERE clause pre-populated
  5. Verify the time range also carries over

References

  • Linear Issue: HDX-3781

Linear Issue: HDX-3781

Open in Web Open in Cursor 

Adds a button in the Search page toolbar that navigates to Chart Explorer
with the current source and WHERE clause pre-populated. This allows users
to quickly go from a search query to charting without re-selecting the
data source or re-entering filters.

The button appears as an icon (chart dots) next to the Save/Alerts buttons,
with a tooltip reading 'Open in Chart Explorer'. It builds a Chart Explorer
URL containing the config (source, where, whereLanguage) and the current
time range (from, to).

Resolves HDX-3781

Co-authored-by: Mike Shi <mike@hyperdx.io>
@vercel
Copy link

vercel bot commented Mar 23, 2026

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

Project Deployment Actions Updated (UTC)
hyperdx-oss Ready Ready Preview, Comment Mar 23, 2026 3:35am

Request Review

@changeset-bot
Copy link

changeset-bot bot commented Mar 23, 2026

⚠️ No Changeset found

Latest commit: 2883acc

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions
Copy link
Contributor

E2E Test Results

All tests passed • 91 passed • 3 skipped • 964s

Status Count
✅ Passed 91
❌ Failed 0
⚠️ Flaky 2
⏭️ Skipped 3

Tests ran across 4 shards in parallel.

View full report →

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.

2 participants