Skip to content

ref(insights): collapse agents, mcp, and sessions pages#114248

Draft
gggritso wants to merge 3 commits intomasterfrom
georgegritsouk/dain-1568-pr5-agents-mcp-sessions
Draft

ref(insights): collapse agents, mcp, and sessions pages#114248
gggritso wants to merge 3 commits intomasterfrom
georgegritsouk/dain-1568-pr5-agents-mcp-sessions

Conversation

@gggritso
Copy link
Copy Markdown
Member

Fifth in the DAIN-1568 split. Collapses the remaining Insights pages: `pages/agents/overview`, `pages/mcp/overview`, `sessions/views/overview`, and the MCP/agent landing pages (`toolsLandingPage`, `modelsLandingPage`, `mcpToolsLandingPage`, `mcpResourcesLandingPage`, `mcpPromptsLandingPage`).

Removes

  • pages/agents/components: `issuesWidget`, `llmCallsWidget`, `modelCostWidget`, `modelsTable`, `tokenTypesWidget`, `tokenUsageWidget`, `toolCallsWidget`, `toolErrorsWidget`, `toolsTable`, `common`, `styles`
  • pages/agents/hooks: `useAgentMonitoringTrackPageView`, `useAgentSpanSearchProps`, `useShowAgentOnboarding`
  • pages/mcp/components: `groupedDuration/ErrorRate/TrafficWidget`, `mcpOverviewTable`, `mcp{Prompt,Resource,Tool}{Duration,ErrorRate,Traffic}Widget`, `mcp{Prompts,Resources,Tools}Table`, `mcpTrafficByClientWidget`, `mcpTransportWidget`, `styles`
  • pages/mcp/hooks: `useMcpSpanSearchProps`
  • sessions/components: `filterReleaseDropdown`, `releaseTableSearch`, `tables/releaseHealth`, `tables/releaseHealthTable`
  • sessions/queries: `useOrganizationReleases`

Stays in place (deferred)

CHART_MAP-referenced session widgets and their dependencies stay because the chart loader still resolves them: `crashFreeSessionsChartWidget`, `releaseSessionCount/Percentage`, `sessionHealth*`, `userHealth*`, `unhealthySessions`, `releaseNewIssues`, `newAndResolvedIssue`, plus the session queries and chart helpers they import. Cleaned up in the final PR.

Verification

  • `pnpm run typecheck` clean
  • `pnpm exec knip` — no new entries beyond pre-existing residue

Refs DAIN-1568

Collapse the agents and MCP overview pages, the sessions overview, and
the MCP/agent landing pages (toolsLandingPage, modelsLandingPage,
mcpToolsLandingPage, mcpResourcesLandingPage, mcpPromptsLandingPage)
to render their Platformized equivalents directly.

Removes legacy components, tables, and widgets only the legacy
implementations used:

- pages/agents/components/* (issuesWidget, llmCallsWidget,
  modelCostWidget, modelsTable, tokenTypesWidget, tokenUsageWidget,
  toolCallsWidget, toolErrorsWidget, toolsTable, common, styles)
- pages/agents/hooks/* (useAgentMonitoringTrackPageView,
  useAgentSpanSearchProps, useShowAgentOnboarding)
- pages/mcp/components/* (groupedDurationWidget, groupedErrorRateWidget,
  groupedTrafficWidget, mcpOverviewTable, mcpPrompt/Resource/Tool
  Duration/ErrorRate/Traffic widgets, mcpToolsTable,
  mcpTrafficByClientWidget, mcpTransportWidget, styles)
- pages/mcp/hooks/useMcpSpanSearchProps
- sessions/components/{filterReleaseDropdown,releaseTableSearch,
  releaseHealth,releaseHealthTable} and useOrganizationReleases

CHART_MAP-referenced session widgets, charts, and queries
(crashFreeSessionsChartWidget, releaseSessionCount/Percentage,
sessionHealth*, userHealth*, unhealthySessions, releaseNewIssues,
newAndResolvedIssue) and their dependencies (chartWithIssues,
chartMap, chartPlacement, chartSelectionTitle, useReleaseSession*,
useSessionHealthBreakdown, useUserHealthBreakdown, useErroredSessions,
useCrashFreeSessions, useNewAndResolvedIssues, useSessionProjectTotal,
useProjectHasSessions, useRecentIssues, useReleaseNewIssues,
sessions util) stay in place. They get cleaned up in the final PR
of the series alongside useHasPlatformizedInsights removal.

Refs DAIN-1568
@linear-code
Copy link
Copy Markdown

linear-code Bot commented Apr 28, 2026

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.

1 participant