Skip to content

ref(agents): Remove legacy overview flag-off paths - #126303

Merged
obostjancic merged 2 commits into
masterfrom
ognjenbostjancic/tet-3074-clean-up-overview-feature-flag
Oct 2, 2026
Merged

obostjancic merged 2 commits into
masterfrom
ognjenbostjancic/tet-3074-clean-up-overview-feature-flag

Conversation

@obostjancic

Copy link
Copy Markdown
Member

Keep the fully rolled-out agents overview unconditionally and remove the legacy conversations-only path, including its unused chart and flag-off tests. Existing overview tests now run without the flag in the organization fixture.

Leave the flag registration and automator entry untouched. After this deploys everywhere, remove the automator entry, then remove the registration after the automator change deploys.

Local tests, lint, and typecheck are blocked by missing worktree dependencies; the Python environment for prek is also absent. The diff whitespace check passes.

Refs TET-3074

Keep the fully rolled-out agents overview and delete the unused conversations chart.
Leave the flag registration in place until the call-site cleanup deploys.

Refs TET-3074
@linear-code

linear-code Bot commented Oct 2, 2026

Copy link
Copy Markdown

TET-3074

@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Oct 2, 2026
@obostjancic
obostjancic marked this pull request as ready for review October 2, 2026 08:10
@obostjancic
obostjancic requested a review from a team as a code owner October 2, 2026 08:10
@obostjancic
obostjancic merged commit c8b6761 into master Oct 2, 2026
73 checks passed
@obostjancic
obostjancic deleted the ognjenbostjancic/tet-3074-clean-up-overview-feature-flag branch October 2, 2026 11:00
ale-cota added a commit that referenced this pull request Nov 11, 2026
…tics (#130777)

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. #120434 then removed
the old components that fired it, and the new Transcript/Timeline tabs
in `conversationDetail.tsx` never tracked it.
- **`conversations.save_as`**: #126303 replaced the legacy Agents chart
with dashboard `WidgetCard`s. The old chart's own menu fired this event
for "Create alert" and "Add to dashboard". The shared widget context
menu doesn't.

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.

<!-- junior-request-attribution:start -->
via **ale**.
<!-- junior-request-attribution:end -->

<!-- junior-session-footer:start -->
<!-- junior-conversation-id:local%3Aweb%3A486bbfe9b2d4cf324748a1ed -->

--

[View Session in
Sentry](https://sentry.sentry.io/explore/conversations/local%3Aweb%3A486bbfe9b2d4cf324748a1ed/?project=4510944073809921)

<!-- junior-session-footer:end -->

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: ale <[email protected]>

This branch was successfully deployed

1 active deployment
Preview — f3643204 Deployed Oct 2, 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