[PowerX] fix telemetry axes and stale power references / 修复遥测坐标轴与残留功耗参考线 - #1196
Conversation
中文:为恒定及近恒定遥测值保留最小坐标范围,避免显存时钟刻度坍缩;补充桌面、手机、全零值和 TDP 参考线的组件回归测试。
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
切换到显存频率时清除旧 TDP 参考线,并验证切回功耗后仅恢复一条参考线。
|
Claude finished @edwingao28's task in 2m 41s —— View job Claude PR Review
🟢 LGTM — no blocking issues found. Both fixes are correct and well-scoped: 1. Y-axis padding ( 2. Stale TDP reference ( Test coverage — Runtime verification note — I loaded |
Summary
Constant telemetry collapsed Y axes, and switching metrics retained the power TDP line. Add minimum axis padding and clear stale references. Based on #1167.
Preview: Memory Clock, 300 s.
AI model disclosure
Validation
Six Cypress regressions pass; desktop/mobile covered. Real-data preview verified.
Units: 6,940 passed, four skipped; DB timeouts passed on retry. Skills: 293 passed, two timeouts passed separately; one file cancellation.
Smoke: 187 passed. Lint, format, typecheck and typography passed.
I have completed the AI model disclosure and kept it current
中文说明
修复恒定遥测值的坐标轴坍缩,以及切换指标后残留的功耗 TDP 参考线。基于 #1167。上方预览选择 Memory Clock、300 s。
6 项组件回归通过,覆盖桌面和手机,真实数据预览已验收。App/constants/DB/MCP 单测共 6,940 项通过、4 项跳过;数据库超时重跑通过。Skills 共 293 项通过、两项超时后单独复跑通过,整轮另记录一次文件取消。187 项 smoke、lint、格式、类型和 typography 检查通过。
AI:GPT-6,无法确认运行时的精确版本;负责实现与验证。
Note
Low Risk
Chart-only display logic and component tests; no auth, data, or API changes.
Overview
Fixes collapsed Y axes when GPU telemetry is flat (constant values, all zeros, or tiny floating-point jitter after rolling averages) by applying a minimum padding on the domain—not only 5% of range, but also at least 1% of magnitude and 1 unit—so ticks stay distinct and labels clear the axis title.
Fixes stale power TDP reference lines after switching away from the power metric: the custom layer always removes existing
.tdp-linemarkup before drawing, instead of skipping render withnulland leaving the old overlay on memory clock and other metrics.Adds Cypress component regressions for desktop/mobile widths, zero and noisy constant series, power + TDP scaling, and toggling power ↔ memory clock.
Reviewed by Cursor Bugbot for commit 9d90424. Bugbot is set up for automated code reviews on this repo. Configure here.