feat(dashboards): Add starred transaction field to widget builder#110450
Merged
DominikB2014 merged 3 commits intomasterfrom Mar 11, 2026
Merged
Conversation
Add `is_starred_transaction` as a column option in the dashboard widget builder for the Spans dataset. This field is scoped to dashboards only (not Explore) since the starring mutation relies on the dashboard widget query cache. Also updates StarredSegmentCell to accept an optional projectId prop and makes projectSlug optional, allowing the cell to work when only project ID is available. Fixes BROWSE-224
Contributor
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.
static/app/views/dashboards/widgetBuilder/components/visualize/index.tsx
Outdated
Show resolved
Hide resolved
…ropdown Exclude is_starred_transaction from the "already selected but unknown columns" section to avoid it appearing twice when selected.
…xplore Instead of manually adding is_starred_transaction to the widget builder column list, add it to SENTRY_SPAN_BOOLEAN_TAGS (single source of truth) and filter it out from Explore via useSpanItemAttributes using a new DASHBOARD_ONLY_SPAN_ATTRIBUTES constant. The widget builder uses useTraceItemDatasetAttributes directly, so it still sees the field. Explore uses useSpanItemAttributes which now automatically excludes dashboard-only attributes.
edwardgou-sentry
approved these changes
Mar 11, 2026
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
is_starred_transactionas a column option in the dashboard widget builder for the Spans datasetStarredSegmentCellto accept an optionalprojectIdprop, makingprojectSlugoptional, starring is only available whenprojector 'project.idis selected andtransaction`SpanFieldsenum constants in the field renderer for consistencyFixes BROWSE-224
Test plan
is_starred_transactionappears in the column dropdownis_starred_transactioncolumn with and withouttransactioncolumn — star button should be disabled when transaction is absentis_starred_transactiondoes NOT appear in Explore column picker