Skip to content

feat(project-details): link to mobile session health#106520

Merged
bcoe merged 1 commit intomasterfrom
link-to-mobile-health
Jan 19, 2026
Merged

feat(project-details): link to mobile session health#106520
bcoe merged 1 commit intomasterfrom
link-to-mobile-health

Conversation

@bcoe
Copy link
Member

@bcoe bcoe commented Jan 19, 2026

Feedback has primarily been from mobile users so far, as such link to mobile session health instead.

Feedback has primarily been from mobile users so far, as such link to
mobile session health instead
@bcoe bcoe changed the title feat(projects): link to mobile session health feat(project-details): link to mobile session health Jan 19, 2026
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jan 19, 2026
settingsLink: <Link to={`/settings/${orgId}/projects/${projectSlug}/`} />,
sessionHealth: (
<Link to={`/organizations/${orgId}/insights/frontend/sessions/`} />
<Link to={`/organizations/${orgId}/insights/mobile/sessions/`} />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: The link to the sessions page is hardcoded to the 'mobile' view, which will direct users from non-mobile projects to an incorrect and irrelevant dashboard.
Severity: CRITICAL

Suggested Fix

The link should be made platform-aware. It should dynamically construct the URL based on the project's platform, for example by using the project.platform property to select the correct path (e.g., 'frontend', 'mobile'). Alternatively, use a generic sessions endpoint that renders the appropriate view for any platform.

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: static/app/views/projectDetail/projectDetail.tsx#L94

Potential issue: The `ProjectDetail` component is used for all project types, including
frontend, mobile, and backend. The change hardcodes the link to the sessions page to
`/organizations/${orgId}/insights/mobile/sessions/`. This creates a bug for non-mobile
projects. For example, a user viewing a frontend project will be incorrectly navigated
to the mobile-specific sessions dashboard, which has a different layout and shows
mobile-specific metrics. This results in a confusing user experience by presenting an
irrelevant view to users of frontend and backend projects.

Did we get this right? 👍 / 👎 to inform future reviews.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is probably not worth the work, so far almost all the feedback we've received about the project details page banner is from mobile users, who seem to use this page heavily having been let down by other workflows in Sentry (let's fix this!).

@bcoe bcoe merged commit b2c6b5d into master Jan 19, 2026
55 checks passed
@bcoe bcoe deleted the link-to-mobile-health branch January 19, 2026 16:24
BYK pushed a commit that referenced this pull request Jan 19, 2026
Feedback has primarily been from mobile users so far, as such link to
mobile session health instead.
@github-actions github-actions bot locked and limited conversation to collaborators Feb 4, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants