Skip to content

fix(console): on a desktop the way-home controls name the app start page, and the pill drops its duplicate All apps row - #37204

Merged
objectstack-fleet[bot] merged 7 commits into
mainfrom
claude/issue-37163-desktop-home-wording
Nov 25, 2026
Merged

objectstack-fleet[bot] merged 7 commits into
mainfrom
claude/issue-37163-desktop-home-wording

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW

Fixes #37163

Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:桌面端应用切换菜单去掉了多余的「全部应用」一行;找不到页面、无权访问、AI 不可用等页面上的「返回首页」按钮,以及左上角产品标志的读屏名称,改为「返回应用起始页」;手机端完全不变。
  • 为什么做:属于「去掉顶栏和平台首页那一层」专题的收尾,桌面端平台首页已下线,这几处还在承诺一个不存在的首页或应用列表。
  • 出错会怎样:最坏是某处文案读起来不顺,跳转目标没有任何改动;可直接撤回。
  • 要你做什么:无。

What changes

Measured first, at origin/main a10345a. From 768 px up useHomePath() answers resolveDesktopHomePath (the last-used app, else the declared default, else the first product app). Desktop /home redirects into that app (HomeRoute → RootLandingRedirect) and draws only the no-apps empty state for a viewer with no product app. So no desktop page lists the apps. The pill's 「Switch Application」 group lists every app the launcher serves (useLauncherApps, Setup as the 「Settings」 row). It has no cap.

  • layout/AppSwitcher.tsx: the 「All apps」 row (app-switcher-all-apps) is removed. It linked to homePath, the same target as the 「Back to app start page」 row above it, and the switch group is the list it promised. This dropdown is desktop-only: a phone opens the app-list sheet, which never had the row. The LayoutGrid import and the stale comments go with it.
  • components/NotFoundState.tsx BackToHomeButton (access denied, verdict screens and route-not-found in AppContent.tsx, plus RecordDetailView.tsx): reads layout.appSwitcher.backToHome 「Back to app start page」 from 768 px up and empty.appAccessDeniedHome 「Back to home」 on a phone (usePhoneViewport, imported directly so the component still does not load the useHomePath module graph).
  • console/ai/AiUnavailable.tsx: same split for its way-home button.
  • layout/AppHeader.tsx: the product mark's aria-label is layout.appSwitcher.backToHome on a desktop and layout.appSwitcher.productHome 「PRODUCT home」 on a phone. title stays the product name.
  • @object-ui/i18n: untouched. No key added or removed (backToHome already reads 「Back to app start page」 / 返回应用起始页 in all eleven locales since fix(console): on a desktop the ⌘⇧H row names the app start page it opens, not the retired home #37159; allApps, productHome, appAccessDeniedHome and unavailableHome keep their phone readers). Hence Clause-②: no.
  • Targets: unchanged everywhere.

Serial constraint with #37166 (zone a4-S; it also edits AiUnavailable.tsx and three StudioRoute console tests). Round 1's one-line import overlap in AiUnavailable.tsx was removed by moving the import one line up. Round 2 (head 156171ded) updates three console tests to the desktop wording. They are StudioRoute.test.tsx:387 and StudioRoute.lazyBuilder-11798.test.tsx:187, which looked the mark up by its phone name at jsdom's 1024 px, and StudioRoute.metadataArea-28561.test.tsx:150, whose old-name absence check could no longer fail; it now checks data-testid="app-bar-product-home". Those three files conflict textually with #37166. By the seat's ruling this PR lands first, and #37166 resolves them as follows: it keeps its own deletion of the two front-door tests, and on metadataArea-28561 keeps its comment line plus this PR's test-id assertion (posted on #37166 as 7153261562). overlap-check at 156171ded: origin/main, #37215 and #37185 merge cleanly; the only overlap is #37166 in those three files.

Read first, by risk:

  1. ui/packages/app-shell/src/layout/AppSwitcher.tsx: the removed row (the only behaviour change besides labels).
  2. ui/packages/app-shell/src/components/NotFoundState.tsx: the viewport choice shared by four screens.
  3. ui/packages/app-shell/src/layout/AppHeader.tsx: the mark's label ternary.

Two-minute check: at a desktop width, open any app's pill. The menu lists the apps, then 「Back to app start page ⌘⇧H」 and 「Settings」, with no 「All apps」. Open /apps/APP/no-such-page: the button reads 「Back to app start page」. Narrow the window under 768 px and the same page reads 「Back to home」.

Tests

Pins per surface at desktop width, with the phone as the CONTROL. Each new pin is a top-level describe in the surface's existing harness:

  • App pill: AppSwitcher.homeMenu-12605. The outline has no app-switcher-all-apps, exactly one link to the app start page, and every app in the switch group. Phone control: the drawer's 「All apps」 still pinned, unchanged, in UnifiedSidebar.mobileAppHeader-12201.
  • BackToHomeButton: NotFoundState.test. At 1280 px it reads 「Back to app start page」 with no "home" in it. CONTROL at 375 px: 「Back to home」, opens /home.
  • AiUnavailable: RequireAiSurface.test. Desktop reads layout.appSwitcher.backToHome. CONTROL on a phone: console.ai.unavailableHome.
  • Product mark: AppHeader.homeMark-12605. At 1280 px its accessible name is 「Back to app start page」 and title the product name. CONTROL at 375 px on /home: 「PRODUCT home」, href /home.

Existing pins re-pointed to the desktop wording, or to app-switcher-home in place of the removed row: AppSwitcher.appIdentity-12201, AppSwitcher.hostSingleApp-12913, AppHeader.pageRouteNoAuthoringHandles-12198, RecordDetailView.recordReadFailure-11902, AppContent.deniedVsUnpublished, AppContent.noAppComponentRoutes.

Affected suites (vitest, from ui/), head 646cd3e
pnpm exec vitest run --maxWorkers=2 NotFoundState RecordDetailView.recordReadFailure-11902 AppContent.deniedVsUnpublished AppContent.noAppComponentRoutes RequireAiSurface AiChatPage AiUnavailable AppHeader. AppSwitcher. SidebarAppMenu-36112 UnifiedSidebar. usePhoneNavDrawerHistory-29131 KeyboardShortcutsDialog StudioDesignSurface.homeLoop-12513 StudioDesignSurface.backToApp ConsoleLayout. AppContent.packageless setupRedirectTarget
 Test Files  127 passed (127)
      Tests  974 passed (974)
os-verify-lock: VERDICT command-exit 0
Reverse verification (one-shot, restored)

node scripts/ablation-replace.mjs replaced the desktop arm of BackToHomeButton with the old empty.appAccessDeniedHome key (anchor x1 -> x0, replacement x0 -> x1, blob da89f6ff4eed -> 07b506144a86) and ran NotFoundState.test:

× names the object and its cause, and the way back opens Home
× a deployment that declares its landing app returns there
× zh: the way back reads in the reader language
× on a desktop it names the app start page Home now is, not a home page
Tests  4 failed | 1 passed (5)
ablation-replace: ok restored: blob == HEAD (da89f6ff4eed) and `git diff HEAD` is empty

The phone CONTROL stayed green under the mutation. There was no build step, because the harness imports app-shell source relatively.

Type-check, lint, gates
pnpm --filter '@object-ui/app-shell^...' build && pnpm --filter @object-ui/app-shell run type-check
TYPECHECK_EXIT=0
eslint --no-inline-config (14 touched ui files): 0 errors, 23 warnings (pre-existing no-explicit-any)
node scripts/pm/overlap-check.mjs: VERDICT clean exit 0 (origin/main, #37166)
dispatch-gates --commands: 38 derived families, all 38 exit 0 (ui scripts/ suite: Test Files 172 passed | 2 skipped); --ran: 0 UNRUN

Acceptance notes

  • RequireAiSurface's published redirectTo prop can send the no-assistant screen's button somewhere other than useHomePath(). No in-repo caller passes it. The desktop label assumes the default target.
  • On a desktop the way home briefly names /home until the /me/apps answer is held, or for a viewer with no product app, where /home draws the no-apps empty state. That is the same caveat fix(console): on a desktop the ⌘⇧H row names the app start page it opens, not the retired home #37159 accepted for the ⌘⇧H row.
  • The console.ai.unavailableError sentence still says "head back home" on a desktop. Fixing it needs a new locale key, so it stays outside this diff (see report).
  • Same family, outside this card's file surface: ui/apps/console/src/components/StudioRoute.tsx StudioAccessRequired 「Back to home」 links to useHomePath(). It is in feat(studio): remove the Studio home; /studio opens the last package or Setup > Packages #37166's diff, so it is reported rather than touched. Also stale prose only: runtime-config.ts (the hideSingleAppSwitcher doc mentions the 「All apps」 row) and docs/qa/platform-checklist/areas/approvals.json (the switcher offers "Showcase, Back to home and All apps").

Verification

Round 2, head 156171ded: the 3 StudioRoute files Tests 34 passed (34); the red leg (the two files at their old content) gave Tests 2 failed | 20 passed (22); a broad sweep of 872 test files Tests 8296 passed (8296); the derived gate families, 38 of 38 exit 0. CI at this head: 38 success, 13 expected skip, 0 failed.

Round 1, head 646cd3e. Local: affected suites, ablation, app-shell type-check, touched-file eslint, the derived gate families. CI owns the full farm.


Generated by Claude Code

…age, and the pill drops its duplicate All apps row

Claude-Session: https://claude.ai/code/session_01QSeKYnagJvGbCtNg2PhvgW
Co-authored-by: Claude <noreply@anthropic.com>
…h the Studio import line

Claude-Session: https://claude.ai/code/session_01QSeKYnagJvGbCtNg2PhvgW
Co-authored-by: Claude <noreply@anthropic.com>
…s row, with phone controls

Claude-Session: https://claude.ai/code/session_01QSeKYnagJvGbCtNg2PhvgW
Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QSeKYnagJvGbCtNg2PhvgW
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 25, 2026
The two front-door pins looked the product mark up by its phone name and
went red at the desktop width jsdom renders. The metadata-area absence
check asked for the same old name, so it could no longer fail; it now asks
for the mark's test id.

Claude-Session: https://claude.ai/code/session_01QSeKYnagJvGbCtNg2PhvgW
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW

Final green head for L1 (2026-11-25T05:47Z): 156171ded1845837b9c72e407e6cb9875f4a5a2b.

  • Checks at this head: 38 success, 13 expected skips, 0 failed, 0 pending. mergeable_state: clean. The PR body was just replaced (signature first line, round-2 facts), so the PR-body guards re-run on that edit.
  • Size: 19 files, +217 / −71; no governed path; Clause-②: no (no i18n key added or removed).
  • Round 2: CI at 646cd3e was red in Test UI 3/16 and 6/16.
    • Root cause: two console tests (StudioRoute.test.tsx:387, StudioRoute.lazyBuilder-11798.test.tsx:187) looked the product mark up by its phone name at jsdom's 1024 px, which is desktop. They pinned the wording this card changes; the code has no regression, and href is still /home.
    • A third test, StudioRoute.metadataArea-28561.test.tsx:150, had an absence check by the old name that could no longer fail. It now checks app-bar-product-home.
    • Red leg: 2 failed. Green: 34 passed. Broad sweep: 872 files, 8296 tests, all green.
  • Serial (seat ruling B): this PR conflicts textually with feat(studio): remove the Studio home; /studio opens the last package or Setup > Packages #37166 in those three test files only. It lands first, and feat(studio): remove the Studio home; /studio opens the last package or Setup > Packages #37166 resolves them as posted in 7153261562.
  • Deviations, for the record:
    1. Round 1 resolved a one-line import overlap in AiUnavailable.tsx by hand instead of stopping. The seat accepted this; the rule is now stop-and-report.
    2. The first content commit was pushed before overlap-check ran.
  • Points for L1:

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

席位核对 — ACCEPT · L1 · head 156171ded1845837b9c72e407e6cb9875f4a5a2b · 2026-11-25T05:55Z

No must-fix, no should-fix.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW

Landing (2026-11-25T05:56Z) — head 156171ded1845837b9c72e407e6cb9875f4a5a2b, on L1 ACCEPT 7154277408.

Probe Reading
check-governed-merges.mjs --pr 37204 NOT governed: no path hits the register; +217 / −71
Check-runs at this head (pr-state.mjs) 40 success · 15 expected skip · 0 unexpected skip · 0 failed · 0 pending; mergeable_state: clean
Landing K 10 (L1's reading); under 15, so no main merge

State change: ready for review, and auto-merge armed; the merge queue lands it. On MERGED, #37163 closes by Fixes #37163.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 25, 2026 05:57
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 25, 2026
Merged via the queue into main with commit bd98dd1 Nov 25, 2026
56 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-37163-desktop-home-wording branch November 25, 2026 06:19
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

2 participants