Repository navigation
[PowerX] open /pwx and its tutorial to every visitor / [PowerX] 向所有访客开放 /pwx 及其教程 - #1951
Open
edwingao28 wants to merge 1 commit into
Open
edwingao28 wants to merge 1 commit into
edwingao28 wants to merge 1 commit into
Conversation
中文:向所有访客开放 PowerX。
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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
/pwx,/zh/pwxand 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 andllms.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:powerxisnavGroup: 'primary'andindexable: 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.tsxand their/zhsiblings:PowerXFeatureGateremoved and the component deleted, so a locked visitor gets the same page as an unlocked one.tutorialIndexable(guide)intutorial-content.ts: a tutorial is indexed exactly when its dashboard tab is;sitemap.tsandllms.txtnow list/pwxand/pwx/tutorial. The VideoGenX guide stays out because its tab is still gated./vgx,/colx,/infx/agentic-workload-explorer,/infx/ai-chart,/infx/current-inferencex-imageand/feedbackstayfeature-gated; no API, metric or control changes.Unlock-flag readers, opens with PowerX:
/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.llms.txtand robots meta: through the registry andtutorialIndexable.Unlock-flag readers, stays gated:
tab-nav.tsx: the Hidden popover and the redirect off the otherfeature-gatedroutes.ScatterGraph.tsx: View PowerX on a pinned Inference Performance point.agentic-point-detail.tsx: the PowerX view of an AgentX point; a shared?view=powerlink still opens it.GPUGraph.tsx,ChartControls.tsxvisibleGroups: 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.tsxtokenBasisVisible: 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.tsxselectableModels,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.
/pwx, 1440 px; Before lands on//pwx, 390 px; Before lands on//zh/pwx/tutorial, 1440 px, dark; Before lands on/zhThe 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:
/pwxand 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.?unofficialrun=47197556825: the locked visitor gets the same overlay roofline, points and legend entry as the unlocked one./pwx,/zh/pwxand both tutorial pages render at 1440 and 390 px in light and dark without horizontal overflow, 16 / 16./vgx,/colx,/infx/agentic-workload-explorer,/infx/ai-chart,/infx/current-inferencex-imageand/feedbackend on the same path with the same heading, 6 / 6.Testing:
cypress/e2e/navigation.cy.ts:/pwx,/zh/pwx,/pwx/tutorialand/zh/pwx/tutorialeach render for a visitor without the unlock key and keep the path; the previous assertions expected the redirect, so they fail onmain.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/qualityis not. 61 / 61 pass.cypress/component/tab-nav.cy.tsx: the PowerX tab links to/pwxfor a locked visitor and is gone from the Hidden popover. 21 / 21 pass.Limits:
AI model disclosure
PR checklist
inferencex-skillschanges/zhsiblingdocs/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:受限模型。结果:
/pwx和/zh/pwx/tutorial分别被送回/和/zh。/pwx并画出图表;标签页、选中的控件(指标、token 口径、功耗边界)、图表标题和曲线数量与解锁后完全一致。唯一差别是解锁后的标签栏多一个 Hidden 标签。?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).PowerXFeatureGateis removed from/pwx, tutorials, and Chinese mirrors, so locked visitors load those pages instead of being redirected home.tutorialIndexableties each guide'srobotsmeta and sitemap inclusion to its dashboard tab; PowerX and its/pwx/tutorialURLs are listed in sitemap, site search, andllms.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
/pwxaccess without the unlock key.Reviewed by Cursor Bugbot for commit a805052. Bugbot is set up for automated code reviews on this repo. Configure here.