You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8fe4eaf
Browse filesBrowse the repository at this point in the historyBrowse files
fix(app-shell)!: Home no longer offers Build with AI or Build an app (#37249)
repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW
Fixes#37227
Clause-②: yes (narrowing)
Metadata-protocol: none
Skills-docs: none — no skill or doc teaches the two Home entries or the
phone welcome copy; `git grep` of `skills/` and `content/docs/` finds
none of them or the retired keys
## 维护者速读
- 手机首页、以及电脑上「暂无应用」页面,不再出现「用 AI
搭建」和「搭建应用」两个入口;部署了构建智能体时,手机上「暂无应用」的欢迎语改为普通文案,不再承诺「用 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 blank app」
(`home.build.inStudio`), is untouched: label, key, condition and target
are exactly as on main.
- `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 phone zero-app admin welcome, where the build agent is deployed,
now shows `home.noAppsTitle` and the existing NoBuild/NoAi description,
not 「Build your business system with AI」 and "Describe your business in
one sentence — AI generates …". Without the build agent the welcome is
unchanged. No new key is added.
- The desktop no-apps empty state is not changed here. Since #37166 the
shared 「Add app」 list holds no 「Build with AI」 door, so the doors are
`new-in-studio`, `template`, `marketplace`. The page-side filter from
the earlier head was a no-op after the merge and is removed.
- Doc comments that described the two entries are rewritten.
- `QuickActions.tsx`: comment only (the component has no call site).
- Retired from all eleven locale packs, each released in 18.6.0 and with
zero readers on the merged tree: `home.build.title`, `home.buildWithAI`
(its last reader was this page's CTA; #37166 removed the sidebar's) and
`home.welcomeAdminDescription`. `home.build.inStudio`, `home.welcome`
and `home.build.noCapability` stay; they are still read.
- Changeset `37227-home-drop-build-entries.md`: `Clause-②: yes
(narrowing)`, the three keys under 「Removed translation keys」,
`not-required (no-migration-prescription)` disposition.
## Overlap and ordering
Answering the landed notice 7169175122 (body refreshed
2026-11-25T19:21Z): #37166 merged first (fbb62e1). This branch merged
`origin/main` (merge commit b1f7c48, no rebase). Two test files
conflicted and keep both PRs' pins:
- `HomePage.desktopNoApps-36732`: #37166's doors list `[new-in-studio,
template, marketplace]` and its Setup → Packages target are kept. This
PR adds two assertions: no 「Build with AI」 label and no bare `/studio`
door.
- `HomePage.noAgentsBuildChip-26614`: #37166's `setupPair` state and its
Studio-only author case (to `~all`) are kept, beside this PR's
`answered` latch and `catalogAnswered()`.
`overlap-check` at the new head: VERDICT clean (origin/main; no open PR
shares a file).
## Tests
- `HomePage.noAgentsBuildChip-26614`: with the build agent in the
catalog, no build chip of either form, 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`: as above.
- `HomePage.authoringCapabilityGate`: the gate acts on 「Start with a
template」. The capability-present case pins both entries absent. The
phone zero-app welcome pins `home.noAppsTitle` + NoAi and no
`home.welcome`.
- `HomePage.phoneTapTargets-29147`: the phone-target case pins both
entries absent. A new top-level describe covers the phone zero-app admin
welcome: build agent → `noAppsTitle` + NoAi; build + ask → `noAppsTitle`
+ NoBuild; CONTROL with no agent → `home.welcome` + NoAi.
- `HomePage.greetingAndApps-12601`: build-chip assertions move to the
template chip.
- `HomePage.aiStudioDisabled`, `HomePage.marketplaceDisabled`: their
catalog is a custom agent, so the chip these flags gate is 「New blank
app」.
## Acceptance notes
- `homeAffordancesFollowDeclaration-7256`, `landingHomeParity-7256`,
`homeRecoveryRedirectsFollowDeclaration-7373`, `useHomePath.test`,
`homePath.test` and `workspaceAdminPositions-5389` mention 「Build an
app」 only in prose about a past defect, and assert nothing about the
chip.
- The earlier head's gap note (no button on an aiStudio + build-agent +
no-marketplace no-apps state) is closed by #37166: 「New blank app」 now
shows there on every deployment with AI Studio.
## Verification
Two-minute check: run `pnpm --dir ui exec vitest run
packages/app-shell/src/console/home/`. All files pass. No assertion
finds `home-build-app` or `home-build-with-ai` on the page, and the
phone zero-app welcome with the build agent reads `«home.noAppsTitle»`.
Read first, by risk:
1. `HomePage.tsx`, the admin zero-app welcome: the title and description
branches.
2. `HomePage.tsx` `HomeAiActions`: the early return `if (!askAvailable
|| maker) return null`, which keeps the 「Ask AI」 gate byte-equivalent.
3. The two merge-resolved test files (above).
<details><summary>Ablations on the merged head
(scripts/ablation-replace.mjs; the tests import HomePage from
src)</summary>
Every mutation was checked on disk (anchor 1 to 0, blob changed). Every
restore was checked: blob == HEAD 1f30b19, `git diff HEAD` empty.
Suite: phoneTapTargets, authoringCapabilityGate, noAgentsBuildChip,
greetingAndApps.
- Old welcome description restored (`home.welcomeAdminDescription` when
the build agent is deployed): 3 failed / 54 passed.
- Old welcome title restored (`home.welcome`): 3 failed / 54 passed.
- 「Build an app」 chip restored: 8 failed / 49 passed.
- 「Build with AI」 restored in `HomeAiActions`: 4 failed / 53 passed.
</details>
<details><summary>Local gates and tests (head 7e70756)</summary>
- `vitest run` over `packages/app-shell/src/console/home/`,
`packages/app-shell/src/layout/` (incl. SidebarAppMenu-36112),
`packages/app-shell/src/hooks/`, `packages/i18n/` and
`check-i18n-call-site-keys`: Test Files 423 passed (423); Tests 4858
passed, 13 skipped. VERDICT command-exit 0.
- `pnpm --filter @object-ui/i18n --filter @object-ui/app-shell run
type-check`: both Done. VERDICT command-exit 0.
- `dispatch-gates --commands`: 41 families, plus
`check:changeset-fixed`, all exit 0. `--ran`: "41 run, 0 NOT-MEASURED (a
DERIVED zero)".
- Dogfood battery: head 7e70756; VERDICT command-exit 0; Test Files
487 passed, 3 skipped (490); Tests 4128 passed, 68 skipped (4196); no
failures.
</details>
---
_Generated by [Claude
Code](https://claude.ai/code/session_01QSeKYnagJvGbCtNg2PhvgW)_
---------
Co-authored-by: Claude <noreply@anthropic.com>
fix(app-shell)!: Home no longer offers 「Build with AI」 or 「Build an app」
7
+
8
+
Clause-②: yes (narrowing)
9
+
Metadata-protocol: none
10
+
11
+
<!-- adr-0087: not-required (no-migration-prescription) the removed operands are two Home entry points, one welcome sentence and three translation keys of the console's own language packs; no packages/spec schema, registered node type, stored row or ADR-0087 conversion surface names them, and no key, value or default a metadata author can write changes, so there is nothing for objectstack migrate meta to rewrite -->
12
+
13
+
**BREAKING** for a deployment that overrides one of the removed translation keys below: the override no longer applies, because nothing reads the key any more.
14
+
15
+
The home page shows on a phone, and on a desktop as the 「No applications yet」 screen when you have no app. On it:
16
+
17
+
-**「Build with AI」** is gone: the button shown beside the greeting, and in the phone's 「No applications yet」 welcome, when the build agent is deployed.
18
+
-**「Build an app」** is gone: the chip beside the greeting that opened Studio when the build agent is deployed.
19
+
-**The phone welcome makes no AI-building promise any more.** On a phone with no app yet, an administrator on a deployment with the build agent was welcomed with 「Build your business system with AI」 and "Describe your business in one sentence — AI generates …". That welcome now reads 「No applications yet」 with the description other deployments show: set up your first application from the Administration menu, plus the AI-assistant sentence where an ask agent is deployed. Deployments without the build agent keep their welcome unchanged.
20
+
21
+
Everything else stays. 「Start with a template」 is still there, and so is 「New blank app」 where it showed before. 「Ask AI」 shows exactly where it did before.
22
+
23
+
Nothing to do on upgrade, unless your deployment overrides one of the keys below.
24
+
25
+
## Removed translation keys
26
+
27
+
Removed from every language pack of `@object-ui/i18n` (ar, de, en, es, fr, ja, ko, pt-BR, ru, zh-Hans, zh-Hant). Each shipped in 18.6.0.
28
+
29
+
-`home.build.title` (en: "Build an app")
30
+
-`home.buildWithAI` (en: "Build with AI")
31
+
-`home.welcomeAdminDescription` (en: "Describe your business in one sentence — AI generates the objects, screens, APIs and agent tools. Or set things up yourself from the menu on the left.")
: t('home.welcome',{defaultValue: 'Build your business system with AI'})}
829
+
</EmptyTitle>
830
+
<EmptyDescription>
831
+
{askAvailable
832
+
? t('home.welcomeAdminDescriptionNoBuild',{
835
833
defaultValue:
836
-
'Describe your business in one sentence — AI generates the objects, screens, APIs and agent tools. Or set things up yourself from the menu on the left.',
834
+
'Set up your first application from the Administration menu on the left. Once you have data, the AI assistant can help you explore it.',
837
835
})
838
-
: askAvailable
839
-
? t('home.welcomeAdminDescriptionNoBuild',{
840
-
defaultValue:
841
-
'Set up your first application from the Administration menu on the left. Once you have data, the AI assistant can help you explore it.',
842
-
})
843
-
: t('home.welcomeAdminDescriptionNoAi',{
844
-
defaultValue:
845
-
'Set up your first application from the Administration menu on the left.',
846
-
})}
836
+
: t('home.welcomeAdminDescriptionNoAi',{
837
+
defaultValue:
838
+
'Set up your first application from the Administration menu on the left.',
0 commit comments