Skip to content

fix: power user popup chart errors and model list overflow#203

Merged
Rob Bos (rajbos) merged 1 commit into
mainfrom
fix/power-user-popup-chart-errors
Jun 24, 2026
Merged

fix: power user popup chart errors and model list overflow#203
Rob Bos (rajbos) merged 1 commit into
mainfrom
fix/power-user-popup-chart-errors

Conversation

@rajbos

Copy link
Copy Markdown
Collaborator

Changes

Fix chart crash when disabling a model in the legend

Clicking a model name in the Power User Breakdown chart legend previously set visibleBars to the model name, which broke the tooltip (looked up model name in a config that only had compliant/exceeding keys, causing 'Cannot read properties of undefined (reading color)') and didn't actually hide the model.

Fix: Added hiddenPowerUserModelNames state to track hidden models. getVisiblePowerUserModels() filters them out. Legend click handler properly distinguishes model toggles from compliance toggles. Tooltip rebuilt to use inline color resolution. Empty state shown when all bars are hidden. Dimmed visual for hidden legend items.

Fix model list overflow

The Requests per Model table overflowed the viewport with no horizontal scroll. Added overflow-x-auto, text truncation on model names, and width constraints.

Fix width/height -1 chart error

Added overflow-hidden and min-w-0 to chart wrappers to prevent transient negative dimension measurements during Sheet slide-in animation.

@github-actions

Copy link
Copy Markdown
Contributor

Tagging Rob Bos (@rajbos) for notifications

@rajbos Rob Bos (rajbos) merged commit babe63c into main Jun 24, 2026
9 of 11 checks passed
@rajbos Rob Bos (rajbos) deleted the fix/power-user-popup-chart-errors branch June 24, 2026 21:36
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.

1 participant