Skip to content

[PowerX] open /pwx and its tutorial to every visitor / [PowerX] 向所有访客开放 /pwx 及其教程 - #1951

Open
edwingao28 wants to merge 1 commit into
mainfrom
feat/powerx-public-access
Open

edwingao28 wants to merge 1 commit into
mainfrom
feat/powerx-public-access

Conversation

@edwingao28

@edwingao28 edwingao28 commented Dec 4, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

/pwx, /zh/pwx and both tutorial pages sent a visitor without the unlock key to the landing page, and PowerX was missing from the tab strip, site search, the sitemap and llms.txt, so a shared PowerX link opened the home page in a fresh browser.

Hold: merge on the PowerX launch day only. Opened early so checks and the preview stay green.

Changes:

  • dashboard-routes.ts: powerx is navGroup: 'primary' and indexable: true, placed last, after OperatorX; the tab strip, mobile tab list, site search and sitemap read it from the registry.
  • pwx/page.tsx, pwx/tutorial/page.tsx and their /zh siblings: PowerXFeatureGate removed and the component deleted, so a locked visitor gets the same page as an unlocked one.
  • tutorialIndexable(guide) in tutorial-content.ts: a tutorial is indexed exactly when its dashboard tab is; sitemap.ts and llms.txt now list /pwx and /pwx/tutorial. The VideoGenX guide stays out because its tab is still gated.
  • Unchanged: /vgx, /colx, /infx/agentic-workload-explorer, /infx/ai-chart, /infx/current-inferencex-image and /feedback stay feature-gated; no API, metric or control changes.

Unlock-flag readers, opens with PowerX:

  • Page gate on /pwx, /zh/pwx, /pwx/tutorial, /zh/pwx/tutorial: removed.
  • tab-nav.tsx: the PowerX tab moves from the Hidden popover to the public strip through the registry.
  • Site search, sitemap, llms.txt and robots meta: through the registry and tutorialIndexable.

Unlock-flag readers, stays gated:

  • tab-nav.tsx: the Hidden popover and the redirect off the other feature-gated routes.
  • ScatterGraph.tsx: View PowerX on a pinned Inference Performance point.
  • agentic-point-detail.tsx: the PowerX view of an AgentX point; a shared ?view=power link still opens it.
  • GPUGraph.tsx, ChartControls.tsx visibleGroups: the Measured Energy group in Historical Trends and the Inference Performance metric picker; a link that selects a measured metric still opens it.
  • ProfitEstimatorDisplay.tsx: power controls on the per-gigawatt basis.
  • InferenceContext.tsx, ChartControls.tsx tokenBasisVisible: the uncached token basis (i_tokens=uncached); no PowerX view reads it.
  • FirstTokenLimitsDisplay.tsx, FleetLifecycleDisplay.tsx, ThroughputCalculatorDisplay.tsx: the agentic percentile selector.
  • GlobalFilterContext.tsx, model-feature-boundary.tsx, ChartControls.tsx selectableModels, latest-image-content.tsx, overview-navigation.tsx, site-search-dialog.tsx, inference-route-warm.ts: gated models.

Results:

A visitor without the unlock key. Before is production; After is a local build of this head on public data, which adds the red deployment banner.

View Before After
Tab strip, 1440 px
Tab strip, 390 px
/pwx, 1440 px; Before lands on /
/pwx, 390 px; Before lands on /
/zh/pwx/tutorial, 1440 px, dark; Before lands on /zh

The same local build opened without and with the unlock key, on eight share links that cover the PowerX views, 1440 px, scrolled to the chart:

Share link Without the unlock key With the unlock key
Energy per Token, per output token, every boundary, GB300 NVL72 (vLLM), one pinned run
Breakdown, H200 (vLLM)
Energy per Token, per output token, every boundary, H200 (vLLM), one pinned run
Power Draw as % of TDP, H200 (vLLM)
Energy per Token, per output token, nine chips on vLLM
Power Draw as % of TDP, B200 and MI355X (vLLM)
Energy per Token, per output token, B200 and MI355X (vLLM)
Power Draw, Prefill vs decode, GB200 NVL72 (Dynamo vLLM)
  • Vercel preview of this head, browser with no unlock key: 26 / 26 PowerX share links (8 view links, 18 pinned-run links) stay on /pwx and draw a chart; tab, pressed controls (metric, token basis, boundary), chart title and series counts equal the unlocked visit on all 26. The only difference is the Hidden tab in the unlocked strip.
  • 390 px stills of the same eight links on the local build: the locked and unlocked files are byte-identical, 8 / 8.
  • Unofficial-run overlay, same preview, ?unofficialrun=47197556825: the locked visitor gets the same overlay roofline, points and legend entry as the unlocked one.
  • Local build, locked visitor: /pwx, /zh/pwx and both tutorial pages render at 1440 and 390 px in light and dark without horizontal overflow, 16 / 16.
  • Local build against production, locked visitor: /vgx, /colx, /infx/agentic-workload-explorer, /infx/ai-chart, /infx/current-inferencex-image and /feedback end on the same path with the same heading, 6 / 6.

Testing:

  • cypress/e2e/navigation.cy.ts: /pwx, /zh/pwx, /pwx/tutorial and /zh/pwx/tutorial each render for a visitor without the unlock key and keep the path; the previous assertions expected the redirect, so they fail on main.
  • dashboard-routes.test.ts, sitemap.test.ts: PowerX is the last primary tab and indexable in both locales; both tutorial URLs are in the sitemap and /vgx/quality is not. 61 / 61 pass.
  • cypress/component/tab-nav.cy.tsx: the PowerX tab links to /pwx for a locked visitor and is gone from the Hidden popover. 21 / 21 pass.

Limits:

  • View PowerX on a pinned point and the Measured Energy group in Historical Trends stay behind the unlock key; opening them is a follow-up.
AI model disclosure
  • Model/version: claude-fable-5-2
  • Role: wrote the change, the tests and this description; ran the local checks and the browser comparison.
PR checklist
  • I have completed the AI model disclosure and kept it current
  • Added, changed, or removed filters, views, or pages include the matching API and inferencex-skills changes
  • New or changed indexable pages ship their /zh sibling
  • Changed Chinese copy follows the PR review checklist in docs/chinese-copy.md
中文

没有解锁密钥的访客打开 /pwx、/zh/pwx 和两个教程页面时会被送回首页,标签栏、站内搜索、站点地图和 llms.txt 里也没有 PowerX,所以分享出去的 PowerX 链接在新浏览器里打开的是首页。

暂缓合并:仅在 PowerX 上线当天合并。 提前开 PR 是为了让检查和预览保持通过。

改动:

  • dashboard-routes.ts:powerx 改为 navGroup: 'primary'、indexable: true,排在 OperatorX 之后的最后一位;标签栏、移动端标签列表、站内搜索和站点地图都从注册表读取。
  • pwx/page.tsx、pwx/tutorial/page.tsx 及其 /zh 页面:移除 PowerXFeatureGate 并删除该组件,未解锁访客看到的页面与已解锁访客相同。
  • tutorial-content.ts 新增 tutorialIndexable(guide):教程是否收录取决于对应的仪表板标签;sitemap.ts 和 llms.txt 现在列出 /pwx 和 /pwx/tutorial。VideoGenX 指南的标签仍受限,因此不收录。
  • 未改动:/vgx、/colx、/infx/agentic-workload-explorer、/infx/ai-chart、/infx/current-inferencex-image 和 /feedback 仍为 feature-gated;API、指标和控件均无变化。

读取解锁标记的位置,随 PowerX 开放:

  • /pwx、/zh/pwx、/pwx/tutorial、/zh/pwx/tutorial 的页面拦截:已移除。
  • tab-nav.tsx:PowerX 标签通过注册表从 Hidden 弹出菜单移到公开标签栏。
  • 站内搜索、站点地图、llms.txt 和 robots 元信息:通过注册表和 tutorialIndexable。

读取解锁标记的位置,保持受限:

  • tab-nav.tsx:Hidden 弹出菜单,以及其他 feature-gated 路由的跳转。
  • ScatterGraph.tsx:推理性能页固定数据点上的 View PowerX。
  • agentic-point-detail.tsx:AgentX 数据点的 PowerX 视图;带 ?view=power 的分享链接仍可打开。
  • GPUGraph.tsx、ChartControls.tsx 的 visibleGroups:历史趋势和推理性能指标选择器中的 Measured Energy 分组;链接已选中实测指标时仍可打开。
  • ProfitEstimatorDisplay.tsx:按吉瓦计算时的功耗控件。
  • InferenceContext.tsx、ChartControls.tsx 的 tokenBasisVisible:未缓存 token 口径(i_tokens=uncached);PowerX 的视图都不读取它。
  • FirstTokenLimitsDisplay.tsx、FleetLifecycleDisplay.tsx、ThroughputCalculatorDisplay.tsx:智能体场景的百分位选择器。
  • GlobalFilterContext.tsx、model-feature-boundary.tsx、ChartControls.tsx 的 selectableModels、latest-image-content.tsx、overview-navigation.tsx、site-search-dialog.tsx、inference-route-warm.ts:受限模型。

结果:

  • 第一张表:没有解锁密钥的访客看到的页面。Before 来自线上,After 来自本次提交的本地构建(使用公开数据,因此带有红色的部署提示条);修改前 /pwx 和 /zh/pwx/tutorial 分别被送回 / 和 /zh。
  • 第二张表:同一个本地构建在无解锁密钥和有解锁密钥两种情况下打开八个覆盖各 PowerX 视图的分享链接,1440 px,滚动到图表位置。
  • 本次提交的 Vercel 预览,浏览器中没有解锁密钥:26 / 26 个 PowerX 分享链接(8 个视图链接、18 个固定运行链接)都停留在 /pwx 并画出图表;标签页、选中的控件(指标、token 口径、功耗边界)、图表标题和曲线数量与解锁后完全一致。唯一差别是解锁后的标签栏多一个 Hidden 标签。
  • 同样八个链接在本地构建上的 390 px 截图:未解锁与解锁的文件逐字节相同,8 / 8。
  • unofficial run 叠加:同一预览加上 ?unofficialrun=47197556825,未解锁访客看到的叠加曲线、数据点和图例条目与解锁访客相同。
  • 本地构建,未解锁访客:/pwx、/zh/pwx 和两个教程页面在 1440 和 390 px、浅色和深色下均正常渲染,无横向溢出,16 / 16。
  • 本地构建对比线上,未解锁访客:/vgx、/colx、/infx/agentic-workload-explorer、/infx/ai-chart、/infx/current-inferencex-image 和 /feedback 停留的路径和标题相同,6 / 6。

测试:

  • cypress/e2e/navigation.cy.ts:没有解锁密钥的访客打开 /pwx、/zh/pwx、/pwx/tutorial 和 /zh/pwx/tutorial 时页面正常渲染且路径不变;原断言期待跳转,因此在 main 上失败。
  • dashboard-routes.test.ts、sitemap.test.ts:PowerX 是最后一个主标签,中英文均可收录;两个教程 URL 在站点地图中,/vgx/quality 不在。61 / 61 通过。
  • cypress/component/tab-nav.cy.tsx:未解锁访客看到的 PowerX 标签指向 /pwx,且不再出现在 Hidden 弹出菜单中。21 / 21 通过。

限制: 固定数据点上的 View PowerX 和历史趋势中的 Measured Energy 分组仍需解锁密钥;开放它们留待后续。

AI 模型使用说明:模型 claude-fable-5-2;负责编写改动、测试和本说明,并运行本地检查和浏览器对比。


Note

Low Risk
Routing, SEO, and navigation visibility changes only; no API or auth logic. Konami gating remains on secondary entry points.

Overview
PowerX moves from a Konami-gated Hidden tab to a primary, indexable dashboard route (navGroup: 'primary', last in the strip). PowerXFeatureGate is removed from /pwx, tutorials, and Chinese mirrors, so locked visitors load those pages instead of being redirected home.

tutorialIndexable ties each guide's robots meta and sitemap inclusion to its dashboard tab; PowerX and its /pwx/tutorial URLs are listed in sitemap, site search, and llms.txt. The unlock key still gates PowerX entry points on other surfaces (e.g. View PowerX, Measured Energy, AgentX ?view=power).

Tests and docs are updated for public tab navigation and direct /pwx access without the unlock key.

Reviewed by Cursor Bugbot for commit a805052. Bugbot is set up for automated code reviews on this repo. Configure here.

中文:向所有访客开放 PowerX。
@edwingao28
edwingao28 requested a review from adibarra as a code owner December 4, 2026 00:10
@vercel

vercel Bot commented Dec 4, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated
inferencemax-app Ready Ready Preview Dec 4, 2026 12:10am UTC

Request Review

This branch was successfully deployed

1 active deployment
Preview — a805052c Deployed Dec 4, 2026 by vercel[bot]
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