feat(dashboards): Add Sentry Built nav item and remove prebuilt toggle#110468
Merged
DominikB2014 merged 9 commits intomasterfrom Mar 12, 2026
Merged
Conversation
Add a 'Sentry Built' item to the dashboards secondary nav that links to ?filter=onlyPrebuilt, showing only prebuilt dashboards. Remove the 'Show Sentry Built Dashboards' toggle from the manage page header since the sidebar nav item replaces it. When viewing 'Sentry Built', the page title and tooltip update, and the 'My Dashboards' sort option is hidden since prebuilt dashboards are not user-owned. Refs BROWSE-429 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add a DashboardFilterType union type for the dashboard API filter query parameter values. Use it in both the manage page and sidebar nav to type-check filter values. Fix the Sentry Built nav item not showing as selected by using the isActive prop to manually control active state based on the URL filter query param, since path-based matching doesn't differentiate on query params. Refs BROWSE-429 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Refs BROWSE-429
Prevent an infinite redirect loop when navigating to the Sentry Built page with sort=mydashboards in the URL. Since mydashboards is excluded from sort options for prebuilt dashboards, getDefaultSort needs to return a valid sort. Default to mostPopular for prebuilt dashboards. Refs BROWSE-429 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace the DashboardFilterType union type with a DashboardFilter enum so filter values can be used as both types and runtime values. Add DEFAULT_PREBUILT_SORT constant to settings and use it in both the sidebar nav link and getDefaultSort. Include sort in the Sentry Built nav link URL to ensure it applies immediately on navigation. Refs BROWSE-429 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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/navigation/secondary/sections/dashboards/dashboardsSecondaryNavigation.tsx
Outdated
Show resolved
Hide resolved
Use isSidebarLinkActive with end matching to check if we're on the dashboards list page before overriding isActive. Previously, when the prebuilt dashboards feature flag was enabled, "All Dashboards" would incorrectly appear active on detail pages like /dashboards/123/ because isActive was set to !isOnlyPrebuilt for any non-prebuilt-filtered URL. Co-Authored-By: Claude Opus 4.6 <noreply@example.com>
Remove "you" from the tooltip to use more concise phrasing.
…nfusion Replace "key metrics" with "your application" to avoid confusion with the Metrics product.
gggritso
approved these changes
Mar 11, 2026
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.
Adds a "Sentry Built" item to the dashboards secondary navigation sidebar, gated behind the
dashboards-prebuilt-insights-dashboardsfeature flag. Clicking it navigates to the dashboards manage page with?filter=onlyPrebuilt, which filters the API response to only prebuilt dashboards.Removes the "Show Sentry Built Dashboards" toggle from the manage page header since the dedicated sidebar nav item replaces this functionality.
When viewing "Sentry Built":
Depends on #110465 for the backend
onlyPrebuiltfilter.Refs BROWSE-429