Skip to content

feat: Add custom onClick field to external dashboards API#2156

Draft
pulpdrew wants to merge 1 commit intodrew/dashboard-filter-linkingfrom
drew/dashboard-linking-external-api
Draft

feat: Add custom onClick field to external dashboards API#2156
pulpdrew wants to merge 1 commit intodrew/dashboard-filter-linkingfrom
drew/dashboard-linking-external-api

Conversation

@pulpdrew
Copy link
Copy Markdown
Contributor

@pulpdrew pulpdrew commented Apr 23, 2026

Summary

This is the fifth in a series of PRs adding customizable on-click / linking behaviors to dashboard tables. This PR extends the custom dashboard table onClick behavior from #2140.

This feature is behind the NEXT_PUBLIC_IS_DASHBOARD_LINKING_ENABLED, which has been enabled in the preview environment and for local development.

Scope

In this PR: The external dashboards API now supports CRUD for dashboards with custom onClick behaviors.

Not included yet

Future PRs will add:

  • Updates to the MCP prompts to support generating dashboards with custom links
  • Updates to the import flow to support importing bundles of linked dashboards at once
  • Support for linking on other visualization types

Screenshots or video

Screenshot 2026-04-29 at 8 39 59 AM

How to test locally or on Vercel

This must be tested locally because the external API doesn't run in the preview environment

To test:

  1. Create or update a dashboard via the external API, adding an OnClick behavior to one or more tiles
  2. View the dashboard and verify the on click linking behavior in the UI
  3. GET the dashboard via API and confirm the format of the OnClick field

References

  • Linear Issue: Closes HDX-4061
  • Related PRs:

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 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 Apr 28, 2026 11:32pm

Request Review

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 23, 2026

🦋 Changeset detected

Latest commit: 61ad06c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
@hyperdx/common-utils Patch
@hyperdx/api Patch
@hyperdx/app Patch
@hyperdx/otel-collector Patch

Not sure what this means? Click here to learn what changesets are.

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

@pulpdrew pulpdrew changed the base branch from main to drew/dashboard-filter-linking April 23, 2026 13:11
@pulpdrew pulpdrew changed the title Drew/dashboard linking external api feat: Add custom onClick field to external dashboards API Apr 23, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Knip - Unused Code Analysis

🔴 1 issue found

Unused exports (1)

  • packages/api/src/routers/external-api/v2/utils/dashboards.ts:isSeriesTile

Knip finds unused files, dependencies, and exports in your codebase.
Run yarn knip locally to see full details.

@github-actions
Copy link
Copy Markdown
Contributor

E2E Test Results

All tests passed • 156 passed • 3 skipped • 1162s

Status Count
✅ Passed 156
❌ Failed 0
⚠️ Flaky 7
⏭️ Skipped 3

Tests ran across 4 shards in parallel.

View full report →

@pulpdrew pulpdrew force-pushed the drew/dashboard-filter-linking branch 2 times, most recently from de0c501 to 226d4ff Compare April 27, 2026 02:48
@pulpdrew pulpdrew force-pushed the drew/dashboard-linking-external-api branch from 4092322 to 452d359 Compare April 28, 2026 00:40
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