Repository navigation
fix(console): on a desktop the Studio refusal and the AI-unreachable sentence name the app start page - #37340
Conversation
…sentence name the app start page 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>
|
repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW Final green head for L1 and same-head contract review (2026-11-25T19:26Z):
|
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ 席位核对 — ACCEPT · L1 · head
|
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ Contract reviewServed-tier: Face: declaration. The review is owed by the ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentNot owed. The declaration face carries no ④; only the schema, rules and narrowing faces do. No Implemented-by: VERDICT: PASS |
|
repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW Landing (2026-11-25T19:49Z): head
There is no narrowing arm, so no maintainer gate applies. #37249 (with the maintainer) also edits State change: ready for review, and auto-merge armed. On MERGED, #37207 closes by |
⛔ merge queue 构建失败 — 先分诊,再决定要不要重排队列构建 45689095984 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集), 分类: 失败的 job(日志抽取,best effort):
跨 PR 相同签名(24h,按失败测试文件聚合):
历史信号:
分诊清单:
Generated by Claude Code · merge-queue-triage workflow (#4859) |
|
repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW Queue-failure judgement (merge-queue build 45689095984, job Test UI (13/16)): not this PR's change, so I am re-arming once.
Re-enqueuing once. If it fails again on the same assertion, I will treat it as real and send it back for a fix. |
repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW
Fixes #37207
Clause-②: yes (widening) — one new published language-pack key, console.ai.unavailableErrorDesktop, in all eleven packs
Metadata-protocol: none
维护者速读
What changes
Measured first, at
origin/mainfbb62e1 (after #37166 landed):StudioRoute.tsxStudioAccessRequiredreadempty.appAccessDeniedHome「Back to home」, andconsole.ai.unavailableErrorended "or head back home." on every width. This follows #37204's desktop/phone split (usePhoneViewport, under 768 px is a phone).ui/apps/console/src/components/StudioRoute.tsx: the Studio refusal's way-home link readslayout.appSwitcher.backToHome「Back to app start page」 from 768 px up, andempty.appAccessDeniedHome「Back to home」 on a phone.usePhoneViewportcomes from the@object-ui/app-shellbarrel, which already exports it. The link target (useHomePath()) is unchanged.ui/packages/app-shell/src/console/ai/AiUnavailable.tsx: withhasError, the sentence reads the newconsole.ai.unavailableErrorDesktopfrom 768 px up ("Couldn't reach the AI service. It may be temporarily offline — try again, or go back to the app start page."). A phone keepsconsole.ai.unavailableError. It now names the same place as the button under it.@object-ui/i18n:console.ai.unavailableErrorDesktopadded once in each of the 11 packs. Each translation reuses that pack's ownlayout.appSwitcher.backToHomewording for "app start page" (zh-Hans 返回应用起始页). No key removed or renamed.Clause-② measured: leaf keys per pack, base fbb62e1 → head, read by importing each pack file: en 5040→5041, zh-Hans 5040→5041, zh-Hant/ja/ko/de 5034→5035, fr/es/pt-BR 5191→5192, ru 5348→5349, ar 5662→5663. The new key is present in 11 of 11 packs and absent from all 11 at base. Only this one key is added. Props, exports and targets are unchanged.
Read first, by risk:
ui/packages/app-shell/src/console/ai/AiUnavailable.tsx: the nestedphoneternary insidehasError.ui/apps/console/src/components/StudioRoute.tsx: the link label ternary.ui/packages/i18n/src/locales/de.ts(and the other non-en packs): the translated sentence.Two-minute check: at a desktop width, sign in as a user without
studio.accessand open/studio. The button reads 「Back to app start page」. Narrow the window under 768 px and it reads 「Back to home」.Tests
One pin each, at desktop width, with the phone as the CONTROL. Each is a new top-level
describein the surface's existing harness:StudioRoute.test.tsx"/studio refused: the way home names where it goes, by viewport". At 1280 px the link is 「Back to app start page」 and no 「Back to home」 link exists. CONTROL at 375 px: 「Back to home」.RequireAiSurface.test.tsx"the unreachable-service sentence names where its way home goes, by viewport". It rendersAiUnavailablewithhasError. Desktop:console.ai.unavailableErrorDesktop, notconsole.ai.unavailableError. CONTROL on a phone: the reverse.Existing pins moved to the desktop wording, because jsdom's window is 1024 px:
StudioRoute.test.tsxWAY_HOME, andStudioRoute.accessNotice-12035.test.tsxwayHomeIn(now readslayout.appSwitcher.backToHomefrom each pack).Affected suites (vitest, from ui/), head 51f74e6
Ablations (one-shot, restored to the HEAD blob)
Studio refusal. In
StudioRoute.tsx,node scripts/ablation-replace.mjsswapped the desktop arm'slayout.appSwitcher.backToHomeforempty.appAccessDeniedHome(anchor x1 -> x0, blob eb1f53509ede -> 95423fd7baec):The phone CONTROL stayed green.
AI unreachable. In
AiUnavailable.tsx, the swap wasconsole.ai.unavailableErrorDesktop→console.ai.unavailableError(anchor x1 -> x0, blob be8967064c9b -> dada400011a4):Neither ablation needed a build step: both test files import the mutated source directly (console's own file; app-shell by relative path).
Type-check, i18n gates, derived gates
Acceptance notes
RequireAiSurface'sredirectToprop can still send the button somewhere other thanuseHomePath(). fix(console): on a desktop the way-home controls name the app start page, and the pill drops its duplicate All apps row #37204 already accepted this for the button label, and the new sentence takes the same assumption.runtime-config.tshideSingleAppSwitcher,approvals.json,studio-authoring.json:35): none of those files is in this diff, so none is touched.Verification
Local: affected suites, both ablations, type-check of the three touched packages, the ui i18n gates, the derived gate families. CI owns the full farm.
Generated by Claude Code