Skip to content

chore(frontend): Remove dead SessionDrawerButton copied from TraceDrawer#5457

Open
ardaerzin wants to merge 1 commit into
mainfrom
chore/remove-dead-session-drawer-button
Open

chore(frontend): Remove dead SessionDrawerButton copied from TraceDrawer#5457
ardaerzin wants to merge 1 commit into
mainfrom
chore/remove-dead-session-drawer-button

Conversation

@ardaerzin

Copy link
Copy Markdown
Contributor

Context

SessionDrawer/components/SessionDrawerButton was copied from TraceDrawer's TraceDrawerButton but never adapted to sessions. It still targeted the trace drawer (importing openTraceDrawerAtom/setTraceDrawerActiveSpanAtom, names the session store never exported) and resolved a trace_id from a playground result, which has no session equivalent. Nothing imports it; the session drawer is opened through openSessionDrawerAtom from the URL state layer (state/url/session.ts).

Changes

Deletes the component and SessionDrawer/types.ts, which held only the button's props interface and had no other importers. 168 lines removed, no code added.

Tests / notes

  • Repo-wide grep: zero remaining references to SessionDrawerButton or SessionDrawer/types.
  • tsc --noEmit on @agenta/oss: no errors related to this change. The two pre-existing TraceSpanNode mismatch errors in sessionDrawerStore.ts are untouched (known ts-chore baseline).
  • Pre-push lint ran clean across all web packages.
  • Nothing user-visible; no QA needed.

The component was never adapted to sessions: it still targeted the trace
drawer atoms, resolved a trace_id from a playground result, and had no
importers. The session drawer is opened via openSessionDrawerAtom from the
URL state layer instead. Also removes SessionDrawer/types.ts, which held
only the button's props interface.
@dosubot dosubot Bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Jul 23, 2026
@vercel

vercel Bot commented Jul 23, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
agenta-documentation Ready Ready Preview, Comment Jul 23, 2026 9:26am

Request Review

@dosubot dosubot Bot added Frontend refactoring A code change that neither fixes a bug nor adds a feature labels Jul 23, 2026
@coderabbitai

coderabbitai Bot commented Jul 23, 2026

Copy link
Copy Markdown

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

💤 Files selected but had no reviewable changes (2)
  • web/oss/src/components/SharedDrawers/SessionDrawer/components/SessionDrawerButton/index.tsx
  • web/oss/src/components/SharedDrawers/SessionDrawer/types.ts
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: eb684d6a-3632-4442-a334-486562fe27f4

📥 Commits

Reviewing files that changed from the base of the PR and between b5d4596 and 2448a92.

📒 Files selected for processing (2)
  • web/oss/src/components/SharedDrawers/SessionDrawer/components/SessionDrawerButton/index.tsx
  • web/oss/src/components/SharedDrawers/SessionDrawer/types.ts

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/remove-dead-session-drawer-button

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

Copy link
Copy Markdown
Contributor

Railway Preview Environment

Preview URL https://gateway-production-9c74.up.railway.app/w
Project agenta-oss-pr-5457
Image tag pr-5457-0df4a47
Status Deployed
Railway logs Open logs
Workflow logs View workflow run
Updated at 2026-07-23T09:32:16.155Z

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Frontend refactoring A code change that neither fixes a bug nor adds a feature size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant