Skip to content

Conversation

TkDodo
Copy link
Collaborator

@TkDodo TkDodo commented Oct 7, 2025

No description provided.

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Oct 7, 2025

return (
<Fragment>
{handle && 'module' in handle ? <AgentsPageHeader module={handle.module} /> : null}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

note: I left out passing headerTitle={<Fragment>{getAIModuleTitle(organization)}</Fragment>} because headerTitle just falls back to domainTitle if it’s not present, and that does the exact same thing:

headerTitle={headerTitle}
domainTitle={getAIModuleTitle(organization)}

Comment on lines +1999 to +2013
path: `${MODULE_BASE_URLS[ModuleName.AGENTS]}/`,
children: [
{
index: true,
handle: {module: ModuleName.AGENTS},
component: make(() => import('sentry/views/insights/agents/views/overview')),
},
],
},
{
path: `${MODULE_BASE_URLS[ModuleName.MCP]}/`,
children: [
{
index: true,
handle: {module: ModuleName.MCP},
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

note: I think it’s quite weird that these routes are part of the moduleRoutes object. That object gets passed to 4 different parent routes: frontend, backend, mobile and ai and should probably only contain things that we need everywhere or in multiple places.

But right now, that means I can go to urls like /insights/frontend/agents/ and it works because the route exists but it renders a non-sensical page: frontend header with the agents page :/

@TkDodo TkDodo marked this pull request as ready for review October 7, 2025 15:37
@TkDodo TkDodo requested review from a team as code owners October 7, 2025 15:37
cursor[bot]

This comment was marked as outdated.

Copy link
Member

@ArthurKnaus ArthurKnaus left a comment

Choose a reason for hiding this comment

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

🙌 thx

@TkDodo TkDodo merged commit e37b78a into master Oct 8, 2025
46 checks passed
@TkDodo TkDodo deleted the tkdodo/fix/flashing-tabs-ai branch October 8, 2025 12:35
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.

2 participants