Skip to content

feat(seer): Render dashboards in block embeds - #122836

Merged
billyvg merged 9 commits into
masterfrom
feat/seer-dashboard-embed
Sep 1, 2026
Merged

billyvg merged 9 commits into
masterfrom
feat/seer-dashboard-embed

Conversation

@billyvg

@billyvg billyvg commented Aug 27, 2026

Copy link
Copy Markdown
Member

Dashboard embeds now render a live block preview of the saved dashboard while preserving the existing compact inline link. The preview shows up to four real dashboard widgets and links to the full dashboard when more widgets are available, keeping large dashboards from overwhelming a Seer response.

Block previews fetch dashboard details by ID, apply saved page and global filters, and hydrate prebuilt dashboard definitions before rendering existing widget cards. The heavier dashboard code is lazy-loaded, Storybook selects an available dashboard for its example, and the generated Seer schema directs the agent not to duplicate widget content in surrounding text.

@github-actions github-actions Bot added Scope: Frontend Automatically applied to PRs that change frontend components Scope: Backend Automatically applied to PRs that change backend components labels Aug 27, 2026
@github-actions

github-actions Bot commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

Story previews

Preview the stories changed in this PR on the Vercel deployment:

Preview deployment: https://sentry-95fpo45mh.sentry.dev

@linear-code

linear-code Bot commented Aug 28, 2026

Copy link
Copy Markdown

CW-1937

@billyvg billyvg changed the title feat(seer): Preview dashboards in block embeds feat(seer): Render dashboards in block embeds Aug 31, 2026
@billyvg
billyvg force-pushed the feat/seer-dashboard-embed branch from 57a6a9a to 390b63b Compare August 31, 2026 19:07
@billyvg
billyvg marked this pull request as ready for review August 31, 2026 19:25
@billyvg
billyvg requested review from a team as code owners August 31, 2026 19:25
@billyvg
billyvg requested a review from ryan953 August 31, 2026 19:25
@github-actions

github-actions Bot commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

📊 Type Coverage Diff

✅ no issues found

@ryan953 ryan953 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

cool. i feel like the fetching and rendering bits snap together really well in these embeds. useQuery with the re-useable queryOptions stuff is working out here imo

Comment thread static/app/views/dashboards/utils.tsx Resolved
Render dashboard load failures as an accessible error notice and document the separate widget and per-widget item limits.
Store dashboard legend selection in the embed instead of writing it to the host route. Document the isolation requirement for future interactive embeds.
Notify React when an embedded dashboard legend changes so controlled chart selections remain visible without mutating the host route.
Memoize derived prebuilt dashboard previews so local widget interaction state is not discarded when the host conversation rerenders.
Apply saved dashboard datetime defaults and UTC settings, then render widgets with the same interval, metrics, and synchronization providers as the dashboard page.
Provide the required history action explicitly so the isolated legend location no longer needs a type assertion.

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 0943900. Configure here.

widget.limit ?? MAX_PREVIEW_ITEMS_PER_WIDGET,
MAX_PREVIEW_ITEMS_PER_WIDGET
)}
widget={{...widget}}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Chart series limit not applied

Low Severity

MAX_PREVIEW_ITEMS_PER_WIDGET is only passed as tableItemLimit. Chart widgets still fetch series from widget.limit (or their dataset default), so the per-widget cap does not apply to timeseries or breakdown series.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 0943900. Configure here.

@billyvg
billyvg merged commit 35479e8 into master Sep 1, 2026
74 checks passed
@billyvg
billyvg deleted the feat/seer-dashboard-embed branch September 1, 2026 15:40
sentry-junior Bot added a commit that referenced this pull request Sep 1, 2026
billyvg added a commit that referenced this pull request Sep 1, 2026
Dashboard block previews now cap chart series at five and keep legend
selection local
to the embedded widget, so previews avoid oversized requests and legend
clicks work
without mutating the host route state.

Follow-up to #122836 and [the missed review
comment](#122836 (comment)).

This branch was successfully deployed

1 active deployment
Preview — 0943900b Deployed Aug 31, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants