Repository navigation
feat(landing): centered Google TPUv7 AgentX launch modal / 首页新增居中的 Google TPUv7 AgentX 发布弹窗 - #1358
Merged
Merged
Conversation
Show a centered, backdrop-dimmed launch modal on the landing page announcing
"Google TPUv7 joins AgentX" ("TPUv7 Qwen3.5 397B AgentX Preview Results, 1.7x
better perf per TCO") with a flashing NEW badge, "Maybe Later" dismissal, and a
"View results" action to /inference/qwen-3-5 that keeps /zh routes. Dismissal
is permanent under its own key, which the Cypress support file seeds so the
backdrop doesn't cover other landing specs.
中文:在首页新增居中显示、带遮罩的发布弹窗,宣布“Google TPUv7 加入 AgentX”
(“TPUv7 Qwen3.5 397B AgentX 预览结果:单位 TCO 性能提升 1.7 倍”),包含闪烁的 NEW
标记、“稍后再看”关闭按钮,以及跳转到 /inference/qwen-3-5 的“查看结果”按钮(中文页面
保持 /zh 路由)。关闭状态使用独立存储键永久保存;Cypress 支持文件会预置该键,避免遮罩
挡住其他首页测试。
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This comment has been minimized.
This comment has been minimized.
Move focus into a centered modal (primary action first), keep Tab inside it, dismiss on Escape, and restore focus on close. Measure the e2e centering check against clientWidth/Height so the scrollbar doesn't skew it. 中文:居中弹窗打开时将焦点移入(优先主操作按钮),Tab 键焦点限制在弹窗内,按 Escape 关闭,并在关闭后恢复原焦点。端到端居中检查改用 clientWidth/Height,避免滚动条导致偏差。 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit b7a0801. Configure here.
Treat the focused dialog panel as outside the Tab cycle so Shift+Tab wraps to the last control, and take the mouse-only backdrop button out of the Tab order. 中文:将获得焦点的弹窗面板视为 Tab 循环之外,使 Shift+Tab 回到最后一个控件;并将仅供鼠标 使用的遮罩按钮移出 Tab 顺序。 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
中文:端到端测试改为点击弹窗内边距区域,而非圆角边缘。 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
1 task done
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
/inference/qwen-3-5(keeps/zhon the Chinese site); Maybe Later / X / backdrop dismiss it permanently (inferencex-tpuv7-agentx-modal-dismissed).inference_tpuv7_agentx_modal_shown/_dismissed/_clicked.Tests
/zhdestination.cypress/support/e2e.tsseeds the modal key by default (opt out withkeepLaunchModal()) so the backdrop doesn't block other landing specs;nudge-system.cy.tsadds specs for centering, the flashing badge, navigation, dismissal persistence, and Chinese localization.AI model disclosure
claude-opus-5-5[1m]) via Claude Code: implementation, tests, PR text.中文说明
/inference/qwen-3-5(中文页面保持/zh路由);点击 稍后再看、关闭按钮或遮罩后永久关闭(存储键inferencex-tpuv7-agentx-modal-dismissed)。inference_tpuv7_agentx_modal_shown/_dismissed/_clicked。/zh跳转;Cypress 默认预置关闭键(可用keepLaunchModal()关闭预置),nudge-system.cy.ts新增居中、闪烁标记、跳转、关闭持久化和中文本地化测试。🤖 Generated with Claude Code
Note
Low Risk
Landing-only nudge UI with localStorage dismissal and modal a11y in the shared renderer; no API, auth, or data-path changes.
Overview
Adds a landing-scoped, centered TPUv7 AgentX launch modal (backdrop, permanent dismissal via
inferencex-tpuv7-agentx-modal-dismissed, analytics events, EN/zh copy) that routes View results to/inference/qwen-3-5with locale preserved. The existing launch banner is unchanged.NudgeEngine centered modals now get dialog keyboard behavior: initial focus on the primary action, Tab cycling inside the panel, Escape dismiss, focus restore on close, backdrop excluded from tab order, and a flashing NEW badge on the modal.
Cypress seeds the modal dismissal key by default (like other overlay nudges) and exports
keepLaunchModal()for specs that need the real modal;nudge-system.cy.tsadds E2E coverage for centering, a11y, dismissal persistence, navigation, and/zhrouting. Registry unit tests assert scope, centering, storage key, analytics, and localized click-through.Reviewed by Cursor Bugbot for commit e4adaba. Bugbot is set up for automated code reviews on this repo. Configure here.