Repository navigation
fix(console): on a desktop the way-home controls name the app start page, and the pill drops its duplicate All apps row - #37204
Conversation
…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>
Claude-Session: https://claude.ai/code/session_01QSeKYnagJvGbCtNg2PhvgW Co-authored-by: Claude <noreply@anthropic.com>
…sktop-home-wording
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>
|
repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW Final green head for L1 (2026-11-25T05:47Z):
|
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ 席位核对 — ACCEPT · L1 · head
|
|
repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW Landing (2026-11-25T05:56Z) — head
State change: ready for review, and auto-merge armed; the merge queue lands it. On MERGED, #37163 closes by
|
repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW
Fixes #37163
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
Measured first, at
origin/maina10345a. From 768 px upuseHomePath()answersresolveDesktopHomePath(the last-used app, else the declared default, else the first product app). Desktop/homeredirects 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 tohomePath, 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. TheLayoutGridimport and the stale comments go with it.components/NotFoundState.tsxBackToHomeButton(access denied, verdict screens and route-not-found inAppContent.tsx, plusRecordDetailView.tsx): readslayout.appSwitcher.backToHome「Back to app start page」 from 768 px up andempty.appAccessDeniedHome「Back to home」 on a phone (usePhoneViewport, imported directly so the component still does not load theuseHomePathmodule graph).console/ai/AiUnavailable.tsx: same split for its way-home button.layout/AppHeader.tsx: the product mark'saria-labelislayout.appSwitcher.backToHomeon a desktop andlayout.appSwitcher.productHome「PRODUCT home」 on a phone.titlestays the product name.@object-ui/i18n: untouched. No key added or removed (backToHomealready 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,appAccessDeniedHomeandunavailableHomekeep their phone readers). HenceClause-②: no.Serial constraint with #37166 (zone a4-S; it also edits
AiUnavailable.tsxand three StudioRoute console tests). Round 1's one-line import overlap inAiUnavailable.tsxwas removed by moving the import one line up. Round 2 (head156171ded) updates three console tests to the desktop wording. They areStudioRoute.test.tsx:387andStudioRoute.lazyBuilder-11798.test.tsx:187, which looked the mark up by its phone name at jsdom's 1024 px, andStudioRoute.metadataArea-28561.test.tsx:150, whose old-name absence check could no longer fail; it now checksdata-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 onmetadataArea-28561keeps its comment line plus this PR's test-id assertion (posted on #37166 as 7153261562).overlap-checkat156171ded:origin/main, #37215 and #37185 merge cleanly; the only overlap is #37166 in those three files.Read first, by risk:
ui/packages/app-shell/src/layout/AppSwitcher.tsx: the removed row (the only behaviour change besides labels).ui/packages/app-shell/src/components/NotFoundState.tsx: the viewport choice shared by four screens.ui/packages/app-shell/src/layout/AppHeader.tsx: the mark'slabelternary.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
describein the surface's existing harness:AppSwitcher.homeMenu-12605. The outline has noapp-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, inUnifiedSidebar.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 readslayout.appSwitcher.backToHome. CONTROL on a phone:console.ai.unavailableHome.AppHeader.homeMark-12605. At 1280 px its accessible name is 「Back to app start page」 andtitlethe product name. CONTROL at 375 px on/home: 「PRODUCT home」, href/home.Existing pins re-pointed to the desktop wording, or to
app-switcher-homein 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
Reverse verification (one-shot, restored)
node scripts/ablation-replace.mjsreplaced the desktop arm ofBackToHomeButtonwith the oldempty.appAccessDeniedHomekey (anchor x1 -> x0, replacement x0 -> x1, blob da89f6ff4eed -> 07b506144a86) and ranNotFoundState.test: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
Acceptance notes
RequireAiSurface's publishedredirectToprop can send the no-assistant screen's button somewhere other thanuseHomePath(). No in-repo caller passes it. The desktop label assumes the default target./homeuntil the/me/appsanswer is held, or for a viewer with no product app, where/homedraws 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.console.ai.unavailableErrorsentence still says "head back home" on a desktop. Fixing it needs a new locale key, so it stays outside this diff (see report).ui/apps/console/src/components/StudioRoute.tsxStudioAccessRequired「Back to home」 links touseHomePath(). 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(thehideSingleAppSwitcherdoc mentions the 「All apps」 row) anddocs/qa/platform-checklist/areas/approvals.json(the switcher offers "Showcase, Back to home and All apps").Verification
Round 2, head
156171ded: the 3 StudioRoute filesTests 34 passed (34); the red leg (the two files at their old content) gaveTests 2 failed | 20 passed (22); a broad sweep of 872 test filesTests 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