Repository navigation
feat(seer): Render dashboards in block embeds - #122836
Conversation
Story previewsPreview the stories changed in this PR on the Vercel deployment: Preview deployment: https://sentry-95fpo45mh.sentry.dev |
57a6a9a to
390b63b
Compare
📊 Type Coverage Diff✅ no issues found |
ryan953
left a comment
There was a problem hiding this comment.
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
16514cf to
b88877f
Compare
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.
4be5b54 to
0943900
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ 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}} |
There was a problem hiding this comment.
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.
Reviewed by Cursor Bugbot for commit 0943900. Configure here.
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)).


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.