Repository navigation
Fix overview share links, agentic axis clipping and PNG export labels / 修复总览分享链接、AgentX 详情坐标轴裁切和 PNG 导出标签 - #1848
Merged
Merged
Conversation
The Share popover built its link from dashboard URL state, which the overview page does not use, so the link dropped tier, engine, comparison and model scope. Overview share links now carry the overview search params on /overview and /zh/overview. 总览页的分享弹窗此前基于仪表盘的 URL 状态生成链接,而总览页并不使用该状态,因此链接会丢失 SLO 档位、引擎、对比方式和模型范围。现在 /overview 与 /zh/overview 的分享链接会保留这些参数。
The agentic point detail charts used a fixed 60px left pad, so eight-digit ticks such as 60,000,000 started left of the SVG and were clipped, and seven-digit ticks ran into the rotated Y-axis title. The time-series, distribution and aggregate charts now size the left pad with computeLeftMargin from the rendered tick labels, plus room for the axis title. AgentX 单点详情页的图表此前固定使用 60px 左边距,导致 60,000,000 这类八位数刻度超出 SVG 左侧而被裁切,七位数刻度也会与旋转的 Y 轴标题重叠。现在时间序列、分布和跨配置汇总图表会用 computeLeftMargin 按实际刻度标签宽度计算左边距,并为轴标题预留空间。
Line-label pills are hidden when every nearby slot would cover another curve. On screen the legend still names those curves, but the PNG has no legend, so the default Kimi K3.1 Pro export left 2 of its 6 curves (MI355X and GB200 NVL72) unnamed. When the export has 8 or fewer labelled curves, a pill that finds no clear slot may now cover another line, still without overlapping other pills or leaving the plot. Screen layout and exports with more curves are unchanged. The export also drops the preview notice's close button, which cannot be clicked in a PNG. 当附近所有位置都会遮挡其他曲线时,线条标签会被隐藏。页面上仍有图例说明这些曲线,但导出的 PNG 没有图例,因此 Kimi K3.1 Pro 默认导出图中 6 条曲线里有 2 条(MI355X 和 GB200 NVL72)没有名称。现在当导出图中需要标注的曲线不超过 8 条时,找不到空位的标签可以覆盖其他曲线,但仍不会与其他标签重叠或超出绘图区。页面显示和曲线更多的导出保持不变。导出图也不再包含预览提示的关闭按钮,因为 PNG 中无法点击它。
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Move the Overview search keys into an import-free module so url-state no longer pulls overview-links (and its data deps) into every route, and measure agentic Y tick labels directly instead of going through computeLeftMargin, whose axis-labels import drags in d3. 将 Overview 搜索键移到无依赖模块,避免 url-state 把 overview-links 及其数据依赖打进每个路由;agentic Y 轴刻度直接测量宽度,不再经由 computeLeftMargin(其 axis-labels 会引入 d3)。
chart-shared now measures Y tick labels through dynamic-margins, which imported splitLabel from axis-labels and with it the d3 namespace. That put the agentic detail pages 8 KB over budget. splitLabel and LabelSplitMode move to an import-free label-split module, so dynamic-margins no longer reaches d3. Re-pin the video history source hash, since url-state now reads the overview keys from their own module and no recorded entry changes. chart-shared 通过 dynamic-margins 测量 Y 轴刻度,而 dynamic-margins 从 axis-labels 引入 splitLabel,连带引入整个 d3 命名空间,使 agentic 详情页超出预算 8 KB。现将 splitLabel 和 LabelSplitMode 移到无依赖的 label-split 模块。视频历史源哈希重新固定,因为 url-state 改从独立模块读取 overview 键,记录条目不变。
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Nov 24, 2026
1 of 4 tasks
zbpatel
pushed a commit
to zbpatel/InferenceX-app
that referenced
this pull request
Nov 25, 2026
…例暂不响应点击 (SemiAnalysisAI#1859) * fix(inference): keep a legend pick made while a model pick is still rendering The model, sequence and precision selectors show a pick at once and render the chart for it as a React transition. Until that transition lands, the legend still shows the old scope, and a click there commits before the pick. When the pick lands, InferenceProvider resets the hardware to the new scope's defaults and the click is lost. This made agentic-detail-back-nav.cy.ts flaky, failing in soloLegendSeries with "Found '3', expected '1'" in the SemiAnalysisAI#1848 merge queue and on SemiAnalysisAI#1760. With 20x CPU throttling the spec's steps fail on every run. InferenceProvider now holds a scope pick until its hardware reset runs, together with any hardware the reader picks from the legend in between. The reset keeps that choice, limited to hardware the new scope has. A legend pick made before the scope pick still gives way to the new defaults. The spec also waited only for the selector label, so later steps could click a point on the old model's chart. selectTargetModel now waits for inference-page-heading, which renders from the committed model. 模型、序列长度和精度选择器会立即显示新的选项,再以 React transition 渲染对应的图表。在 transition 完成之前,图例仍然显示旧的筛选范围,这时在图例上的点击会先于切换生效。切换完成后,InferenceProvider 会把硬件重置为新范围的默认值,这次点击就被丢弃了。agentic-detail-back-nav.cy.ts 因此间歇失败,soloLegendSeries 报错 "Found '3', expected '1'",SemiAnalysisAI#1848 的 merge queue 和 SemiAnalysisAI#1760 都出现过。在 20 倍 CPU 节流下,这组测试步骤每次都会失败。 现在 InferenceProvider 会保留尚未执行硬件重置的范围切换,并记下读者在此期间从图例中选择的硬件。重置时保留这一选择,只去掉新范围中没有的硬件。在切换之前做出的图例选择仍会让位于新范围的默认值。 此外,测试之前只等待选择器标签更新,后续步骤可能点到旧模型图表上的数据点。selectTargetModel 现在改为等待 inference-page-heading,它根据已提交的模型渲染。 * fix(inference): give a new scope its defaults when a pending legend pick does not carry over When a legend pick made during a pending model, sequence or precision pick shares no hardware with the new scope, the reset fell through to the defaults path. The click had already set bestPerSku to false and hardwareDefaultsOverridden to true, so the new scope selected every chip instead of its defaults. For Qwen 3.5 that kept H200 on, which its defaults leave off. Each scope pick now records the best-per-SKU choice and defaults flag it leaves. When the reader's legend pick does not carry over, the reset restores those flags and computes the defaults from them. A new test picks Qwen 3.5 and solos B200, which Qwen lacks, before the pick lands. It fails without this change. 当模型、序列长度或精度切换尚未完成时,读者在图例中做出的选择如果与新范围没有任何共同硬件,重置会走默认值分支。但这次点击已经把 bestPerSku 设为 false、把 hardwareDefaultsOverridden 设为 true,新范围因此会选中全部芯片,而不是它的默认硬件。以 Qwen 3.5 为例,默认应关闭的 H200 会保持开启。 现在每次范围切换都会记下它设定的 best-per-SKU 选择和默认值标记。读者的图例选择无法保留时,重置会恢复这两个值,并据此计算默认硬件。新增测试在 Qwen 3.5 切换完成前单独选择 Qwen 没有的 B200,未修复时该测试失败。 * fix(inference): keep a pending model pick's reset flags when a precision or sequence pick follows A sequence or precision pick made while a model pick was still rendering overwrote the pending scope pick with the best-per-SKU choice and defaults flag from its own render, which predates the model pick. If a legend click then picked only hardware the new model lacks, the reset restored those stale flags. A reader who had set best per SKU before switching models got every chip of the new model instead of its defaults. Sequence and precision picks now keep the flags of a pick that is still pending and only clear its legend hardware. A new test sets best per SKU, then picks Qwen 3.5 and FP8 and solos B200 before either lands. It ends on Qwen 3.5's defaults and fails without this change. 模型切换尚未完成时,如果又切换了序列长度或精度,后者会用自身渲染时的 best-per-SKU 选择和默认值标记覆盖待处理的范围切换,而这些值早于模型切换。随后若读者在图例中只选择了新模型没有的硬件,重置就会恢复这些过时的标记。读者如果在切换模型前设置过 best per SKU,新模型就会选中全部芯片,而不是它的默认硬件。 现在序列长度和精度切换会保留仍在等待中的切换所记录的标记,只清除其中的图例硬件选择。新增测试先设置 best per SKU,再在切换完成前选择 Qwen 3.5 和 FP8 并单独选择 B200,最终应得到 Qwen 3.5 的默认硬件,未修复时该测试失败。 * fix(inference): make hardware actions inert while a scope pick is still rendering Replace the record-and-replay handling of legend clicks made during a pending model, sequence or precision pick. Bugbot found five problems in it, all in how the recorded pick was merged, restored or cleared. InferenceProvider now exposes scopePickPending from useInferenceFilters. It is useOptimistic state set inside the pick's transition, so React clears it when that transition ends, including a pick that ends on the scope already shown. While it is true, legend toggle, remove, select all and best per SKU do nothing, and a ?preset= link waits. The inference, power timeline and historical trends legends render aria-busy and inert with no layout change. A click in that brief window now does nothing, instead of being applied and then undone. The pending-pick tests now check that actions made while a model pick is pending are ignored and the new model opens on its defaults, that the flag clears after a no-op or reverted pick, and that best per SKU and presets still apply once nothing is pending. The video history source pin is updated for the new filters field, which feeds no recorded entry. 用新的方式取代此前对切换期间图例点击的记录并重放逻辑。Bugbot 在这套逻辑中发现了五个问题,都出在记录的切换如何合并、恢复或清除上。 现在 InferenceProvider 通过 useInferenceFilters 提供 scopePickPending。它是在切换的 transition 中设置的 useOptimistic 状态,transition 结束时由 React 自动清除,即使切换最终停留在当前范围也一样。该值为 true 时,图例的单选、移除、全选和 best per SKU 都不会执行,?preset= 链接会等待。推理图表、功耗时间线和历史趋势的图例会带上 aria-busy 和 inert,布局不变。在这段短暂时间里点击图例不会有任何效果,而不是先生效再被撤销。 pending-pick 测试现在检查模型切换尚未完成时的操作会被忽略、新模型以默认硬件打开,检查无效切换或被撤回的切换之后标记会被清除,并检查没有待完成的切换时 best per SKU 和预设照常生效。视频历史的源文件哈希随新的 filters 字段更新,该字段不影响任何已记录的条目。
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Three production bugs, one commit each.
/overview, the Share popover and its Copy button built the link from dashboard URL state, which the overview page does not use. A view such as?tier=150&engine=all&compare=90d&models=allwas shared as a bare/overview.buildShareUrlnow carries the overview search params (tier,engine,ref,compare,models,rows,hwrows,present) on/overviewand/zh/overview, and opening the link restores the view. The X and LinkedIn buttons already usedwindow.location.hrefand kept the params, so the issue report was wrong about those two./infx/inference/agentic/448437?g_model=Kimi-K3.1-Pro&i_seq=agentic-traces, "Unique Input Tokens in Flight" ticks such as60,000,000started 5px left of the SVG and showed as0,000,000. The throughput chart's6,000,000ticks ran into the rotated "Tokens / sec" title. The time-series, distribution and aggregate charts now size their left pad withcomputeLeftMarginfrom the tick labels they render, plus room for the axis title. Charts with short ticks keep the 60px pad.Not changed: on the agentic "Aggregates across configs" view, the rotated config names on the X axis (e.g.
1xTEP8/DCP8+2xEP2/DCP8 · c=175 · off=ON) also run past the SVG's left edge. That is a long-text label problem, not a large-number one, and fixing it needs a layout decision (truncate or enlarge the margins). It is left for a follow-up.Before / after
?tier=150&engine=all&compare=90d&models=all)https://inferencex.semianalysis.com/overview…/overview?tier=150&engine=all&compare=90d&models=all(en) and…/zh/overview?…(zh). Opening either restores SLO 150 and vs 3 months ago60,000,000at x = −5px (clipped), overlapping the title6,000,000at x = 1px, overlapping the titleTick positions are measured from the SVG's left edge on the live page. The after values come from a local fixture build, with
/api/*proxied read-only to production data.Validation details
bun run lint,bun run fmt,bun run typecheck,bunx tsc --noEmit -p packages/app/tsconfig.json: pass.bun run test:unit: pass. New tests:url-state.test.tscovers overview share links on/overviewand/zh/overview.time-series-chart.test.tsxchecks that eight-digit ticks stay inside the SVG, with and without the axis title. It fails on main with-48.line-label-pill-bounds.test.tscovers 8 export curves all labelled without pill overlap, plus the unchanged hiding on screen and with 9 curves. The first case fails on main.knownIssueAnnotations.test.tschecks there is no close button on the export surface.video-history-store.test.tsis re-pinned:url-state.tsis in its source graph, andbuildShareUrldoesn't feed recorded entries. The reason is added to the comment.E2E_FIXTURES=1build:overview,agentic-point-time-series,inference-chart,gpu-compare-agentic-detail,agentic-detail-back-nav,csv-exportandnavigationall pass (134/134). New specs cover overview share and restore in en and zh, and eight-digit in-flight ticks inside the chart.AI model disclosure
PR checklist
inferencex-skillschanges/zhsiblingdocs/chinese-copy.md中文
修复了三个线上问题,每个问题一个提交。
/overview的分享弹窗和复制按钮此前基于仪表盘 URL 状态生成链接,而总览页并不使用该状态。因此?tier=150&engine=all&compare=90d&models=all这样的视图被分享成了不带参数的/overview。现在buildShareUrl会在/overview和/zh/overview上保留总览页的查询参数,打开链接即可恢复同一视图。X 和 LinkedIn 按钮本来就使用window.location.href,参数没有丢失,问题报告中关于这两个按钮的描述有误。60,000,000刻度从 SVG 左侧外 5px 处开始,显示成0,000,000。吞吐图的6,000,000刻度也会压到旋转的 “Tokens / sec” 标题上。现在时间序列、分布和跨配置汇总图表会用computeLeftMargin按实际刻度宽度计算左边距,并为轴标题预留空间。刻度较短的图表仍为 60px。未修改:“Aggregates across configs” 视图中,X 轴上旋转的配置名称(如
1xTEP8/DCP8+2xEP2/DCP8 · c=175 · off=ON)也会超出 SVG 左边缘。这属于长文本标签问题,而不是大数字问题,修复需要先决定布局方案(截断或加大边距),留待后续处理。验证:lint、格式检查、类型检查、生产类型检查和全部单元测试均通过。在
E2E_FIXTURES=1构建上运行的 7 个相关 Cypress 测试文件(134 个用例)全部通过。新增的单元测试在 main 分支上会失败。AI 模型:anthropic/claude-opus-5-5,负责调查问题、编写代码和测试、运行检查并准备此 PR。Note
Low Risk
Changes are localized to share URL construction, chart padding math, and export-only rendering paths, with broad test coverage.
Overview
Fixes three production bugs spanning URL sharing, chart layout, and PNG exports.
Overview share links now preserve filter state on
/overviewand/zh/overview.buildShareUrlcopies the overview query params (tier,engine,compare, etc.) instead of stripping them. Search key types moved to a lightweightoverview-search-keysmodule for the share builder.Agentic point charts no longer clip large Y-axis tick labels (e.g.
60,000,000). A newchartPadForYTickshelper measures tick text width and grows the left margin on time-series, distribution, and aggregate charts; short ticks keep the default padding.PNG exports with ≤8 series now label every curve even when a pill would overlap another line (
labelEverySerieson the export surface). Export renders also drop dismiss buttons on known-issue preview notices. Screen behavior and crowded exports are unchanged.Reviewed by Cursor Bugbot for commit 118fd79. Bugbot is set up for automated code reviews on this repo. Configure here.