Repository navigation
fix(conversations): Restore detail tab-switch and chart save-as analytics - #130777
Merged
Merged
Conversation
…tics The redesigned conversation detail page stopped firing conversations.detail.tab-switch, and replacing the legacy Agents chart with dashboard widget cards dropped conversations.save_as. Both events are still defined but nothing fires them. Fire tab-switch from the Transcript/Timeline tabs. Add an onContextMenuAction callback to WidgetCard so the Agents charts can report Add to Dashboard and Create Monitor selections, with the chart id. Co-Authored-By: ale <[email protected]>
vgrozdanic
approved these changes
Nov 11, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two Agents analytics events are still defined, but nothing fires them anymore:
conversations.detail.tab-switch: the event stopped arriving after the conversation detail redesign rolled out. ref(conversations): Remove redesign feature flag and old components #120434 then removed the old components that fired it, and the new Transcript/Timeline tabs inconversationDetail.tsxnever tracked it.conversations.save_as: ref(agents): Remove legacy overview flag-off paths #126303 replaced the legacy Agents chart with dashboardWidgetCards. The old chart's own menu fired this event for "Create alert" and "Add to dashboard". The shared widget context menu doesn't.Changes:
onChangefiresconversations.detail.tab-switchwithfromTab/toTabwhen the tab actually changes.onContextMenuAction(key)prop. A smallwithMenuActionCallbackhelper wraps each menu item'sonAction, including submenu children like the per-series "Create a Monitor for" items, so the existing action still runs. OtherWidgetCardcallers are unchanged.AgentsChartsmapsadd-to-dashboard→save_type: 'dashboard'andcreate-alert*→save_type: 'alert'. It also sends a newchartparam with the widget id, so we can tell which chart was saved.Tests cover the tab-switch event, the WidgetCard callback (it reports the key and still runs the original action), and Add to Dashboard from the Agents overview firing
save_as.Follow-up to #130776.
via ale.
--
View Session in Sentry