feat(dashboards): Register Mobile Session Health prebuilt dashboard#107095
Merged
DominikB2014 merged 1 commit intomasterfrom Jan 29, 2026
Conversation
Add prebuilt dashboard registration for Mobile Session Health module: - Add MOBILE_SESSION_HEALTH = 13 to PrebuiltDashboardId enum - Add dashboard entry to PREBUILT_DASHBOARDS list
| MOBILE_VITALS_SCREEN_LOADS = 10 | ||
| MOBILE_VITALS_SCREEN_RENDERING = 11 | ||
| BACKEND_OVERVIEW = 12 | ||
| MOBILE_SESSION_HEALTH = 13 |
Contributor
There was a problem hiding this comment.
Bug: The backend adds a new prebuilt dashboard (ID 13), but the frontend's PREBUILT_DASHBOARDS configuration is missing an entry for this ID, which will cause a runtime error on render.
Severity: HIGH
Suggested Fix
Ensure the frontend PR that adds the configuration for the MOBILE_SESSION_HEALTH dashboard (ID 13) to the PrebuiltDashboardId enum and PREBUILT_DASHBOARDS record in prebuiltConfigs.tsx is merged and deployed alongside or before this backend change. The code explicitly notes that backend and frontend configs must be kept in sync.
Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.
Location: src/sentry/dashboards/endpoints/organization_dashboards.py#L77
Potential issue: The backend code introduces a new prebuilt dashboard,
`MOBILE_SESSION_HEALTH`, with an ID of `13`. However, the frontend configuration in
`prebuiltConfigs.tsx` is not updated to include this new dashboard. If this dashboard is
enabled via feature flag or configuration, the backend will create it in the database.
When the frontend attempts to render it, the lookup `PREBUILT_DASHBOARDS[13]` will
return `undefined`. Subsequent code in `prebuiltDashboardRenderer.tsx` that tries to
destructure this `undefined` value (e.g., `const {title, filters} = prebuiltDashboard`)
will throw a runtime error, causing the UI to crash for users viewing this dashboard.
Did we get this right? 👍 / 👎 to inform future reviews.
Contributor
Author
There was a problem hiding this comment.
THere will be a frontend PR as well
gggritso
approved these changes
Jan 28, 2026
priscilawebdev
pushed a commit
that referenced
this pull request
Feb 2, 2026
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
Register the Mobile Session Health prebuilt dashboard in the backend:
MOBILE_SESSION_HEALTH = 13to thePrebuiltDashboardIdenumPREBUILT_DASHBOARDSlist with title "Mobile Session Health"This is part of the mobile session health module migration to the dashboards platform.