:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(mcp-analytics): make sessions table responsive (#60878)
Georgis Andonis216bc435a737
diff --git a/products/mcp_analytics/frontend/sessions/MCPSessionsTable.scss b/products/mcp_analytics/frontend/sessions/MCPSessionsTable.scssindex 24e32439c59b..d9b541af21d1 100644--- a/products/mcp_analytics/frontend/sessions/MCPSessionsTable.scss+++ b/products/mcp_analytics/frontend/sessions/MCPSessionsTable.scss@@ -17,5 +17,14 @@// Sit above the body rows (including the highlighted selected row) as they scroll under it.z-index: 2;++ th {+ white-space: nowrap;+ }+ }++ .LemonTable__content > table {+ width: 100%;+ table-layout: fixed;}}diff --git a/products/mcp_analytics/frontend/sessions/MCPSessionsTable.tsx b/products/mcp_analytics/frontend/sessions/MCPSessionsTable.tsxindex c166b408ec96..aa7708d5f843 100644--- a/products/mcp_analytics/frontend/sessions/MCPSessionsTable.tsx+++ b/products/mcp_analytics/frontend/sessions/MCPSessionsTable.tsx@@ -21,13 +21,14 @@ export function MCPSessionsTable(): JSX.Element {{title: 'Person',key: 'distinct_id',+ width: '40%',render: (_, record) => {const label = record.person_name || record.person_emailif (label) {- return <span className="text-xs font-medium truncate">{label}</span>+ return <div className="text-xs font-medium truncate">{label}</div>}if (record.distinct_id) {- return <span className="text-xs font-mono text-secondary truncate">{record.distinct_id}</span>+ return <div className="text-xs font-mono text-secondary truncate">{record.distinct_id}</div>}return <span className="text-secondary">—</span>},@@ -36,6 +37,7 @@ export function MCPSessionsTable(): JSX.Element {{title: 'Started',key: 'session_start',+ width: '20%',render: (_, record) => <TZLabel time={record.session_start} />,sorter: true,},@@ -43,6 +45,7 @@ export function MCPSessionsTable(): JSX.Element {title: 'Tool calls',key: 'tool_call_count',dataIndex: 'tool_calls',+ width: '20%',align: 'right',render: (_, record) => <span className="text-xs whitespace-nowrap">{record.tool_calls}</span>,sorter: true,@@ -50,6 +53,7 @@ export function MCPSessionsTable(): JSX.Element {{title: 'Duration',key: 'duration_seconds',+ width: '20%',align: 'right',render: (_, record) => (<span className="text-xs whitespace-nowrap">