Skip to content

fix: hide ECharts toolbox in sandbox metrics chart#460

Merged
ben-fornefeld merged 1 commit into
mainfrom
devin/1782332903-hide-echarts-toolbox
Jun 24, 2026
Merged

fix: hide ECharts toolbox in sandbox metrics chart#460
ben-fornefeld merged 1 commit into
mainfrom
devin/1782332903-hide-echarts-toolbox

Conversation

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Summary

The sandbox detail monitoring chart (SandboxMetricsChart) registers ToolboxComponent (required for brush/zoom), but unlike team-metrics-chart and compute-usage-chart, it was missing toolbox: { show: false } in its ECharts option. This caused the toolbox icons (brush, zoom, reset, etc.) to render visibly in the top-right corner of the chart.

With Turbopack this defaulted to hidden due to different module initialization order, but Webpack renders the toolbox visibly.

 return {
   backgroundColor: 'transparent',
   animation: false,
+  toolbox: { show: false },
   brush: isMobile ? undefined : { ... },

Link to Devin session: https://app.devin.ai/sessions/26cc0135d9e24aaa87881e8d7e2069cb

Co-Authored-By: ben@e2b.dev <ben@e2b.dev>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

@devin-ai-integration devin-ai-integration Bot requested a review from Kraci as a code owner June 24, 2026 20:28
@cla-bot cla-bot Bot added the cla-signed label Jun 24, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

@vercel

vercel Bot commented Jun 24, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
web Ready Ready Preview, Comment Jun 24, 2026 8:31pm
web-tango Building Building Preview, Comment Jun 24, 2026 8:31pm

Request Review

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, simple 3-line fix to hide the ECharts toolbox following the same pattern as other metrics charts.

Extended reasoning...

Overview

This PR adds a 3-line toolbox: { show: false } option to the ECharts config in monitoring-sandbox-metrics-chart.tsx. The ToolboxComponent is registered (required for brush/zoom functionality), but the toolbox UI itself needs to be explicitly hidden — which Webpack was rendering visibly while Turbopack happened to hide due to different module init order. The fix mirrors the established pattern already used in team-metrics-chart and compute-usage-chart.

Security risks

None. This is a purely visual/UI fix that disables a built-in ECharts UI element. No data flow, auth, or input handling is touched.

Level of scrutiny

Low. The change is a tiny, mechanical config tweak in a frontend chart component, matching an existing convention in sibling files. It cannot affect behavior beyond hiding the toolbox icons.

Other factors

No bugs were flagged by the bug hunting system. The PR description clearly explains the root cause (Webpack vs Turbopack module init order) and the fix is a one-line addition. No outstanding reviewer comments to address.

@ben-fornefeld ben-fornefeld merged commit 3fe0cf8 into main Jun 24, 2026
14 checks passed
@ben-fornefeld ben-fornefeld deleted the devin/1782332903-hide-echarts-toolbox branch June 24, 2026 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant