Repository navigation
[Feature] put PowerX behind the feature gate / 将 PowerX 置于功能开关之后 - #1543
Merged
Merged
Conversation
Move the /powerx dashboard route to the feature-gated nav group so it is listed under Hidden only after the gate is unlocked, and offer the AgentX point detail's PowerX view on the same condition. Direct and shared links (/powerx, /zh/powerx, ?view=power) still open; the read-only API is unchanged. 中文:将 PowerX 置于功能开关之后。/powerx 路由改为 feature-gated 导航组, 仅在解锁后显示于“隐藏”菜单;AgentX 数据点详情中的 PowerX 视图遵循同一条件。 直接链接与分享链接(/powerx、/zh/powerx、?view=power)仍可打开,只读 API 不变。
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
9 of 33 tasks
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.
PowerX is currently a primary dashboard tab that every visitor sees. This PR puts the whole PowerX surface behind the existing ↑↑↓↓ feature gate, the same way CollectiveX, Video and AI Chart are gated.
What changes
/powerxmoves from theprimaryto thefeature-gatednav group. While the gate is locked it no longer appears in the desktop tab row or the mobile pill strip. Once the gate is unlocked it shows up under Hidden.?view=powerlink still gets that view, matching how a locked gated tab still names the current page.Measured Energymetric group isgated: true), so they are not changed here.What stays the same
/powerx,/zh/powerx,/powerx/tutorialand legacy redirect links still open for anyone with the URL. The gate controls discovery, not access, which is the existing semantics for gated tabs.inferencex-skillsPowerX export are unchanged. Per AGENTS.md, a navigation gate alone does not make data sensitive, so no API or skills change is needed./powerxwas alreadyindexable: false, so the sitemap and site search are unaffected.Risk: the change is presentation-only. Existing PowerX e2e specs run with the gate unlocked (
cypress/support/e2e.ts), and the one spec that asserted PowerX's primary-tab position has been updated.Validation details
tab-nav.cy.tsxcomponent spec locally (21/21 passing). New assertions: notab-trigger-powerxormobile-tab-powerxwhile locked, and PowerX listed in the Hidden popover withhref=/powerxonce unlocked.dashboard-routesregistry test fails onmaster(PowerX is stillprimary) and passes with this change. NewagenticDetailViewOptionstests cover locked, unlocked and shared?view=powerlinks.Not verified
next devor preview walkthrough against live data.?unofficialruns=forwarding on gated links is covered by the existing popover test.AI model disclosure
Prepared with Claude Opus 5.5 (orchestrator; code, tests, and PR text). No delegated agents.
中文
PowerX 目前是所有访客都能看到的主导航标签页。本 PR 把整个 PowerX 入口放到现有的 ↑↑↓↓ 功能开关(feature gate)之后,与 CollectiveX、Video、AI Chart 的做法一致。
/powerx从primary导航组改为feature-gated。未解锁时,它不会出现在桌面端标签栏或移动端标签条中;解锁后会出现在“隐藏”菜单里。?view=power链接,仍会显示该视图。inferencex-skills的 PowerX 导出都不变。开关只控制入口是否可见,不限制数据访问。Note
Low Risk
Presentation-only navigation and view-toggle gating; routes, APIs, and shared links remain accessible unchanged.
Overview
PowerX is no longer a primary dashboard tab. The
/powerxroute moves to thefeature-gatednav group (same as CollectiveX and AI Chart), so locked visitors do not see it in the desktop tab row or mobile pill strip; after unlock it appears under Hidden.AgentX point detail uses a new
agenticDetailViewOptionshelper wired touseFeatureGate: the PowerX segmented toggle is hidden when locked, shown when unlocked, and still available on a shared?view=powerlink while locked (matching gated-tab “current page” behavior). Direct URLs, APIs, and chart state are unchanged—the gate only affects discovery.Tests and docs are updated: tab-nav and profit-estimator specs no longer expect PowerX in primary tabs; registry and view-option unit tests cover the new grouping and gate rules.
Reviewed by Cursor Bugbot for commit 78287dd. Bugbot is set up for automated code reviews on this repo. Configure here.