feat(dashboards): Add All Dashboards tab and rename existing to Custom#114904
feat(dashboards): Add All Dashboards tab and rename existing to Custom#114904DominikB2014 wants to merge 4 commits intomasterfrom
Conversation
…ustom When `dashboards-prebuilt-insights-dashboards` is enabled, the secondary navigation now shows three tabs: - All Dashboards (`?filter=all`): combined view of custom + prebuilt - Custom Dashboards: the existing no-filter view, renamed from "All Dashboards" - Sentry Built (`?filter=onlyPrebuilt`): unchanged The primary sidebar still lands on Custom Dashboards (the no-filter URL) to preserve existing behavior; the new All tab is opt-in via the secondary nav. DAIN-1637
📊 Type Coverage Diff✅ No new type safety issues introduced. Coverage: 93.40% |
…f prebuilt The vast majority of orgs have the prebuilt dashboards feature enabled, so the per-org label split adds noise without helping the rare non-prebuilt case.
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 f362935. Configure here.
…b enum Replace the ad-hoc isOnlyPrebuilt/isAllDashboards booleans with a single DashboardsTab state derived from the URL filter, plus mapping tables for the page title and API query params. The mutually exclusive boolean states made the filter logic harder to follow and easier to break with a new tab.
Add an "All Dashboards" entry that links to ?filter=all when prebuilt dashboards are enabled, and rename the no-filter entry to "Custom Dashboards" so it matches the secondary nav after the recent split.
gggritso
left a comment
There was a problem hiding this comment.
LGTM, just some nits. This might work a bit better if we had separate URLs for these filters, but not a big deal 👍🏻
| )} | ||
| <CMDKAction | ||
| display={{label: t('All Dashboards')}} | ||
| display={{label: t('Custom Dashboards')}} |
There was a problem hiding this comment.
Maybe a bit more precise here to do something like
| display={{label: t('Custom Dashboards')}} | |
| display={{label: hasPrebuiltDashboards ? t('Custom Dashboards') : t ('All Dashboards')}} |
| analyticsItemName="dashboards_all" | ||
| > | ||
| {t('All Dashboards')} | ||
| {t('Custom Dashboards')} |
There was a problem hiding this comment.
Same note as above, I think if someone doesn't have pre-built dashboards it should continue to say "All Dashboards", but not a big deal

Adds
all dashboardsandcustom dashboardsoption when prebuilt dashboards are enabled,custom dashboardsis retained as the default.