fix(app-shell,components): welcome「创建你的环境」CTA 直达创建对话框 (#844)#2631
Merged
Conversation
…t create dialog Staging E2E (2026-07-17): the welcome hero's "Create your environment" navigated to the environments list, where the user had to find and click a SECOND create button — an extra hop on the very first thing a new user does (#844). - action:button: client-side `autoTrigger` flag — runs the action once on mount through the exact same execute path as a click (param dialog, confirm, entitlement gate all apply). Not persisted metadata; only client- composed schemas set it. - EnvironmentListToolbar: consume `?runAction=create_environment` once entitlements resolve — setup_production / add_development mark the create action autoTrigger; upgrade-locked orgs open the upgrade prompt (the honest answer to "create" there). Param is stripped on consumption so refresh / back don't re-open the dialog. Router-free (location + replaceState) so non-Router hosts and tests keep working. - CloudOnboardingNext: the create CTA navigates with the runAction param. - i18n: the toolbar's state-aware label overrides were hard-coded English in a zh console — now {en,zh} via the same pick() pattern as the widget. Closes #844. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
✅ Console Performance Budget
📦 Bundle Size Report
Size Limits
|
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.
Closes #844(staging E2E 2026-07-17 P2)。
问题
welcome 主 CTA「创建你的环境」只是导航到环境列表,用户要再找右上角创建按钮点第二次;且列表工具栏的状态化标签(Set up your production environment / Add development environment / Add environment)是硬编码英文,混在中文控制台里。
修复
action:button新增客户端autoTrigger:挂载即执行一次,走与点击完全相同的 execute 路径(参数对话框/确认/配额门全部生效);仅客户端组合 schema 使用,不进持久 metadata。?runAction=create_environment:entitlements 解析完成后才触发(setup_production/add_development → create action 标记 autoTrigger;免费档锁 dev → 打开升级提示,即「创建」在该状态下的诚实答案);参数消费即从 URL 剥离(replace),刷新/后退不复弹。实现 router-free(location+replaceState),无 Router 宿主与测试均可用。runAction参数。测试
新增 3 用例(deep-link 标记 autoTrigger + 参数剥离、upgrade 态转升级提示、CTA 导航断言更新);受影响包 30 tests 全过;
turbo build29/29(类型级验证)。🤖 Generated with Claude Code