Skip to content

fix(conversations): Restore detail tab-switch and chart save-as analytics - #130777

Merged
ale-cota merged 1 commit into
masterfrom
fix/agents-restore-tab-switch-save-as-analytics
Nov 11, 2026
Merged

ale-cota merged 1 commit into
masterfrom
fix/agents-restore-tab-switch-save-as-analytics

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

Two Agents analytics events are still defined, but nothing fires them anymore:

Changes:

  • Tab switches: the detail page Tabs onChange fires conversations.detail.tab-switch with fromTab / toTab when the tab actually changes.
  • WidgetCard callback: new optional onContextMenuAction(key) prop. A small withMenuActionCallback helper wraps each menu item's onAction, including submenu children like the per-series "Create a Monitor for" items, so the existing action still runs. Other WidgetCard callers are unchanged.
  • Agents charts: AgentsCharts maps add-to-dashboard → save_type: 'dashboard' and create-alert* → save_type: 'alert'. It also sends a new chart param 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

…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]>
@sentry-junior
sentry-junior Bot requested review from a team as code owners November 11, 2026 12:53
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Nov 11, 2026
@linear-code

linear-code Bot commented Nov 11, 2026

Copy link
Copy Markdown

BI-676

@ale-cota
ale-cota merged commit 54a950b into master Nov 11, 2026
86 checks passed
@ale-cota
ale-cota deleted the fix/agents-restore-tab-switch-save-as-analytics branch November 11, 2026 13:11

This branch was successfully deployed

1 active deployment
Preview — 9cede1f4 Deployed Nov 11, 2026 by vercel[bot]
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