Skip to content

: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.

fix(mcp): show session sort label instead of raw order value (#64340)

Georgis Andonis71bfa607bc14
diff --git a/frontend/snapshots.yml b/frontend/snapshots.yml
index 7a2f97dc1176..11e391cb7e41 100644
--- a/frontend/snapshots.yml
+++ b/frontend/snapshots.yml
@@ -5633,9 +5633,9 @@ snapshots:
scenes-app-mcp-analytics--dashboard--light:
hash: v1.k794b7964.c64d5d43c4eaa79d3008e9dd40857d9bee879832e68a8f8e9464657ff670773f.yKxStICPwIMCMEnf_zQhK0BuXu5BIxaUKmgPYHAEzYo
scenes-app-mcp-analytics--sessions--dark:
- hash: v1.k794b7964.c316f0028a9cc9b6a8e2b85d95b5e5ab65548805d4069f001c5cbbbcfbac970c.u4rZzVUZRlEBb11eUbRTRsVFfH_5gb3qRI5BEuAN7qw
+ hash: v1.k794b7964.277463ad445565d14f2549a063a4f8c0c23a81af419bfafc9eefc65577fb0834.woelvjefGWPDW4Acae_sP2fA7YidrA7tkhfvC8u_AQ4
scenes-app-mcp-analytics--sessions--light:
- hash: v1.k794b7964.497d9ae69307438f3ef9ebfc80bb948ffd70d285eda4192f6b2e21f1a66d3eba.XI5y0bJbIitncOcXS_6Gxcr4pgGCK1moA7JIAstwuL4
+ hash: v1.k794b7964.bbe32ae76ef1ed9053d24d860933bc0bf1cca54ed3f601effaf515b8d9a6cd21.saYknnP-f1-BwcwRczq_p6CgUmnH8cmE8YJ_9XpN2Pk
scenes-app-mcp-analytics-dashboard-cards--daily-calls-and-errors--dark:
hash: v1.k794b7964.695d298349258e60b3b8f0c8775e1554ffd9ad3a3b9d4d750df124550bf65c51.cpBNQ-OwnkymJacZsj27ScYkVTr_36Yb8Z27xINlTN8
scenes-app-mcp-analytics-dashboard-cards--daily-calls-and-errors--light:
diff --git a/products/mcp_analytics/frontend/sessions/MCPSessionsPlaylist.tsx b/products/mcp_analytics/frontend/sessions/MCPSessionsPlaylist.tsx
index 76175e70a92b..d5d290f2beab 100644
--- a/products/mcp_analytics/frontend/sessions/MCPSessionsPlaylist.tsx
+++ b/products/mcp_analytics/frontend/sessions/MCPSessionsPlaylist.tsx
@@ -159,7 +159,11 @@ function SessionsListPanel(): JSX.Element {
onValueChange={(value) => setSorting(valueToSorting(value as MCPSessionOrderBy))}
>
<SelectTrigger size="sm" data-attr="mcp-sessions-sort">
- <SelectValue />
+ <SelectValue>
+ {(value: MCPSessionOrderBy) =>
+ SORT_OPTIONS.find((o) => o.value === value)?.label ?? value
+ }
+ </SelectValue>
</SelectTrigger>
<SelectContent>
{SORT_OPTIONS.map((option) => (