Skip to content

feat(dashboards): Add Sentry Built nav item and remove prebuilt toggle#110468

Merged
DominikB2014 merged 9 commits intomasterfrom
dominikbuszowiecki/browse-431-add-sentry-built-to-dashboards-sidebar
Mar 12, 2026
Merged

feat(dashboards): Add Sentry Built nav item and remove prebuilt toggle#110468
DominikB2014 merged 9 commits intomasterfrom
dominikbuszowiecki/browse-431-add-sentry-built-to-dashboards-sidebar

Conversation

@DominikB2014
Copy link
Contributor

@DominikB2014 DominikB2014 commented Mar 11, 2026

Adds a "Sentry Built" item to the dashboards secondary navigation sidebar, gated behind the dashboards-prebuilt-insights-dashboards feature 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":

  • Page title and document title update to "Sentry Built"
  • Tooltip describes prebuilt dashboards
  • "My Dashboards" sort option is hidden (prebuilt dashboards are not user-owned)
image

Depends on #110465 for the backend onlyPrebuilt filter.

Refs BROWSE-429

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>
@linear-code
Copy link

linear-code bot commented Mar 11, 2026

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Mar 11, 2026
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>
@DominikB2014 DominikB2014 marked this pull request as ready for review March 11, 2026 19:31
@DominikB2014 DominikB2014 requested review from a team as code owners March 11, 2026 19:31
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>
Copy link
Contributor

@cursor cursor bot left a comment

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.

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

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.
@DominikB2014 DominikB2014 merged commit edffeac into master Mar 12, 2026
63 checks passed
@DominikB2014 DominikB2014 deleted the dominikbuszowiecki/browse-431-add-sentry-built-to-dashboards-sidebar branch March 12, 2026 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants