Skip to content

fix(app-shell)!: Home no longer offers Build with AI or Build an app - #37249

Draft
objectstack-fleet[bot] wants to merge 3 commits into
mainfrom
claude/issue-37227-home-drop-build-entries
Draft

objectstack-fleet[bot] wants to merge 3 commits into
mainfrom
claude/issue-37227-home-drop-build-entries

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Fixes #37227
repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW

Clause-②: yes (narrowing)
Metadata-protocol: none
Skills-docs: none — no skill or doc teaches the two Home entries; git grep of skills/ and content/docs/ finds neither the entries nor the key

维护者速读

  • 手机首页、以及电脑上「暂无应用」页面,不再出现「用 AI 搭建」和「搭建应用」两个入口;「从模板开始」和其它入口照旧。
  • 落实维护者「两个入口一并去掉」的裁决,属于 Studio 首页收口这条主线。
  • 若出错,用户会看到缺了一个本该保留的入口,或删掉的入口又出现;改动只删不加,撤回即可恢复。
  • 无。

What changes

  • HomePage.tsx
    • The greeting row's agent-present build chip, 「Build an app」 (to bare /studio), is gone. The no-agent form, 「New in Studio」, is untouched: label, key, condition and target are as on main (per ruling 7153400210, feat(studio): remove the Studio home; /studio opens the last package or Setup > Packages #37166 owns that chip).
    • HomeAiActions no longer draws 「Build with AI」. 「Ask AI」 keeps exactly the gate it had: hidden for a maker the build agent serves (the cloud#1674 convergence), shown otherwise.
    • The desktop no-apps empty state leaves the build-with-ai entry out of the shared 「Add app」 list (useAddAppEntries). The sidebar's 「Add app」 menu reads that list unchanged and still offers it. With a marketplace mounted, 「Start with a template」 is now the first button of the empty state.
    • Doc comments that described the two entries are rewritten. The comment lines and the import that feat(studio): remove the Studio home; /studio opens the last package or Setup > Packages #37166 edits are not touched.
  • QuickActions.tsx: comment only (the component has no call site).
  • home.build.title ("Build an app") is removed from all eleven locale packs. It shipped in 18.6.0 and nothing reads it now. home.buildWithAI stays: the sidebar menu still reads it. home.build.inStudio and home.build.noCapability stay.
  • Changeset 37227-home-drop-build-entries.md: Clause-②: yes (narrowing), a 「Removed translation keys」 section, not-required (no-migration-prescription) disposition.

With the build agent deployed, the chip row after this change holds 「Start with a template」 alone: no build chip until #37166 makes 「New in Studio」 always shown.

Tests

  • HomePage.noAgentsBuildChip-26614: the agent-present describe now pins that neither build chip is drawn, for a maker and for a session that may not author, and for the legacy build-agent id. Each absence is read after the catalog stand-in has answered.
  • HomePage.desktopNoApps-36732: the no-apps doors are exactly template, marketplace; no /studio link and no 「Build with AI」 label.
  • HomePage.authoringCapabilityGate: the gate now acts on 「Start with a template」. The capability-present case pins both entries absent, and the phone zero-app welcome pins 「Build with AI」 absent.
  • HomePage.greetingAndApps-12601, HomePage.phoneTapTargets-29147: build-chip assertions move to the template chip; the phone-target case pins both entries absent with the build agent served.
  • HomePage.aiStudioDisabled, HomePage.marketplaceDisabled: their catalog moves from build to a custom agent, so the chip these flags gate is 「New in Studio」. These pins keep covering a kept entry, unchanged in strength.

Acceptance notes

  • homeAffordancesFollowDeclaration-7256, landingHomeParity-7256, homeRecoveryRedirectsFollowDeclaration-7373, useHomePath.test, homePath.test and workspaceAdminPositions-5389 mention 「Build an app」 only in prose that describes a past defect. They assert nothing about the chip and are left as they are.
  • With features.aiStudio on, no marketplace, and the build agent served, the no-apps empty state now shows its title and description and no button. Before, 「Build with AI」 was its only button. The issue names the template entry as the way to start an app, and that entry needs a marketplace. Recorded in the report's open questions.
  • The phone zero-app admin welcome still reads home.welcome / home.welcomeAdminDescription ("Describe your business in one sentence …") where the build agent is deployed. The assistant drawer still serves the build agent there, so the sentence is not false. Its button is gone, though. Recorded as an open question.

Verification

Two-minute check: run pnpm --dir ui exec vitest run packages/app-shell/src/console/home/. All files pass, and no assertion finds home-build-app or home-build-with-ai on the page.

Read first, by risk:

  1. HomePage.tsx HomeAiActions: the early return if (!askAvailable || maker) return null, which keeps the 「Ask AI」 gate byte-equivalent.
  2. HomePage.tsx NoAppsAddActions: the build-with-ai filter.
  3. HomePage.noAgentsBuildChip-26614.test.tsx: catalogAnswered(), so the absence pins cannot pass before the chip could draw.
Ablations: restoring either entry turns the pins red (scripts/ablation-replace.mjs, on 940ec57; the tests import HomePage from src, no dist on the path)

Each mutation was checked on disk (anchor count 1 to 0, blob changed), and each restore was checked against HEAD (blob equal to HEAD 6b5357123bf4, git diff HEAD empty).

  • The 「Build an app」 chip restored (aiStudioEnabled && buildServed, to /studio, testId home-build-app). 4 files, 8 failed / 43 passed:
    • greetingAndApps: CONTROL; no-marketplace.
    • phoneTapTargets: build agent served.
    • noAgentsBuildChip: three cases.
    • authoringCapabilityGate: the capability-absent case; the capability-present case.
  • 「Build with AI」 restored in HomeAiActions (a maker gets home-build-with-ai). 3 files, 3 failed / 30 passed:
    • phoneTapTargets: build agent served.
    • authoringCapabilityGate: capability present; the phone zero-app welcome.
  • The no-apps build-with-ai filter deleted. desktopNoApps-36732: 1 failed / 5 passed (the doors case).
Local gates and tests (head 230a11d)

Generated by Claude Code

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/m tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

首页(手机与「暂无应用」空状态)去掉「用 AI 搭建」和「搭建应用」两个入口

2 participants