Skip to content

fix(observability): keep usage chart labels visible - #6055

Draft
kkkhs wants to merge 1 commit into
Agenta-AI:mainfrom
kkkhs:agent/fix-observability-chart-axis-clipping
Draft

fix(observability): keep usage chart labels visible#6055
kkkhs wants to merge 1 commit into
Agenta-AI:mainfrom
kkkhs:agent/fix-observability-chart-axis-clipping

Conversation

@kkkhs

@kkkhs kkkhs commented Aug 15, 2026

Copy link
Copy Markdown

Summary

Fixes #5968.

Usage charts were using a negative left margin, which pushed wider y-axis labels outside the SVG clip. This keeps the left chart margin at zero so labels like 20Kms and $4.00 stay visible.

Testing

Verified locally

  • pnpm --filter @agenta/oss exec vitest run src/components/pages/observability/dashboard/CustomAreaChart.test.tsx
  • pnpm exec eslint oss/src/components/pages/observability/dashboard/CustomAreaChart.tsx oss/src/components/pages/observability/dashboard/CustomAreaChart.test.tsx
  • pnpm --filter @agenta/oss exec tsc --noEmit
  • git diff --check

Added or updated tests

Added a regression test for the chart margin used by the observability usage charts.

QA follow-up

Verify the expanded Usage card with latency and cost values wide enough to produce labels such as 20Kms or $4.00.

Demo

Draft PR: demo recording pending before ready-for-review.

Checklist

  • I have included a video or screen recording for UI changes, or marked Demo as N/A
  • Relevant tests pass locally
  • Relevant linting and formatting pass locally
  • I have signed the CLA, or I will sign it when the bot prompts me

Contributor Resources

Copilot AI lite review requested due to automatic review settings August 15, 2026 00:25

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@vercel

vercel Bot commented Aug 15, 2026

Copy link
Copy Markdown

@kkkhs is attempting to deploy a commit to the agenta projects Team on Vercel.

A member of the Team first needs to authorize it.

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@coderabbitai

coderabbitai Bot commented Aug 15, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository YAML (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro Plus

Run ID: dfb9e0cd-1d21-4fa4-a763-6503fe2e09d1

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

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.

@ashrafchowdury

Copy link
Copy Markdown
Contributor

Hey @kkkhs, thank you for the fix. Can you please sign the CLA license? After that, we can merge the PR

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

(bug) Usage chart y-axis labels are clipped, so the latency scale reads 0K / 5K / 0K / 5K

4 participants