Skip to content

feat(landing): centered Google TPUv7 AgentX launch modal / 首页新增居中的 Google TPUv7 AgentX 发布弹窗 - #1358

Merged
functionstackx merged 4 commits into
masterfrom
feat/tpuv7-landing-modal
Oct 15, 2026
Merged

functionstackx merged 4 commits into
masterfrom
feat/tpuv7-landing-modal

Conversation

@functionstackx

@functionstackx functionstackx commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Adds a centered launch modal (with backdrop) on the landing page: Google TPUv7 joins AgentX with a flashing NEW badge and the subtitle "TPUv7 Qwen3.5 397B AgentX Preview Results, 1.7x better perf per TCO".
  • View results opens /inference/qwen-3-5 (keeps /zh on the Chinese site); Maybe Later / X / backdrop dismiss it permanently (inferencex-tpuv7-agentx-modal-dismissed).
  • Analytics: inference_tpuv7_agentx_modal_shown / _dismissed / _clicked.
  • The existing TPUv7 banner and TPU card stay as they are; the modal uses the separate overlay slot.
  • Chinese copy included. No filter/view/API changes, so no API or skills updates are needed. Landing page only, so the unofficial-run overlay path does not apply.

Tests

  • Unit: registry tests cover the modal's scope, centering, storage key, analytics, and /zh destination.
  • E2E: cypress/support/e2e.ts seeds the modal key by default (opt out with keepLaunchModal()) so the backdrop doesn't block other landing specs; nudge-system.cy.ts adds specs for centering, the flashing badge, navigation, dismissal persistence, and Chinese localization.

AI model disclosure

  • Claude Opus 5.5 (claude-opus-5-5[1m]) via Claude Code: implementation, tests, PR text.

中文说明

  • 在首页新增居中显示的发布弹窗(带遮罩):Google TPUv7 加入 AgentX,带闪烁的 NEW 标记,副标题为“TPUv7 Qwen3.5 397B AgentX 预览结果:单位 TCO 性能提升 1.7 倍”。
  • 查看结果 跳转到 /inference/qwen-3-5(中文页面保持 /zh 路由);点击 稍后再看、关闭按钮或遮罩后永久关闭(存储键 inferencex-tpuv7-agentx-modal-dismissed)。
  • 新增分析事件 inference_tpuv7_agentx_modal_shown / _dismissed / _clicked。
  • 现有 TPUv7 横幅和 TPU 卡片保持不变;弹窗使用独立的浮层位置。
  • 未改动筛选器、视图或 API,因此无需更新 API 与 skills;仅涉及首页,不涉及非官方运行(unofficial run)叠加图层。
  • 测试:单元测试覆盖弹窗的作用范围、居中、存储键、分析事件和 /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-5 with 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.ts adds E2E coverage for centering, a11y, dismissal persistence, navigation, and /zh routing. 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.

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]>
@vercel

vercel Bot commented Oct 15, 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 Oct 15, 2026 3:23am UTC

Request Review

@blacksmith-sh

This comment has been minimized.

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

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]>

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ 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]>
@functionstackx
functionstackx merged commit b13806f into master Oct 15, 2026
36 checks passed
@functionstackx
functionstackx deleted the feat/tpuv7-landing-modal branch October 15, 2026 03:25

This branch was successfully deployed

1 active deployment
Preview — e4adabaf Deployed Oct 15, 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