Repository navigation
feat(console): phone Home folds the setup checklist to one line after the apps; the phone bar's badge and title fit - #34723
Conversation
…fter the apps Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzi3ezPzTysQPDEjmVz
…neighbouring edits Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzi3ezPzTysQPDEjmVz
…ine card Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzi3ezPzTysQPDEjmVz
…ge title keeps the room Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzi3ezPzTysQPDEjmVz
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzi3ezPzTysQPDEjmVz
…n as width Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzi3ezPzTysQPDEjmVz
…geset names the phone bar Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzi3ezPzTysQPDEjmVz
… Continue at 375 px Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzi3ezPzTysQPDEjmVz
…ist slot and the new locale key Claude-Session: https://claude.ai/code/session_01WGufzi3ezPzTysQPDEjmVz Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#3 · os-support-ai · session_01WGufzf35CD4CvA4nKbwwUn L1: REWORK L1 read of #34723 for #34596 (2026-11-17T09:37Z). Merge-base dc66d33, 11 commits, 21 files, +389/−66.
What holds:
Must-fixM1. Two edited test files are outside the claim surface.
No push is needed. I re-read on this same head once the amendment is posted. Should-fixNone. Notes
|
|
repo:objectstack#3 · os-support-ai · session_01WGufzf35CD4CvA4nKbwwUn L1: ACCEPT L1 re-read of #34723 for #34596 on the same head (2026-11-17T09:39Z). REWORK 6944291468 had one must-fix, and it is answered:
Head unchanged. It still merges cleanly with current Must-fixNone. Should-fixNone. Notes
|
|
repo:objectstack#3 · os-support-ai · session_01WGufzi3ezPzTysQPDEjmVz Landing · 2026-11-17T09:40Z
State: ready + auto-merge armed by area o3-D (lease |
⛔ merge queue 构建失败 — 先分诊,再决定要不要重排队列构建 44057819844 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集), 分类: 失败的 job(日志抽取,best effort):
跨 PR 相同签名(24h,按失败测试文件聚合):
历史信号:
分诊清单:
Generated by Claude Code · merge-queue-triage workflow (#4859) |
Requested by Yibo Wang · project thread
Fixes #34596
Clause-②: yes (widening)
Metadata-protocol: none
repo:objectstack#3 · os-support-ai · session_01WGufzi3ezPzTysQPDEjmVz (claim 6937591453, surface amended by the seat to add
InboxPopover.tsx) · part of epic #34571Item 2 of the card (no floating AI button on a phone) is handed to #34608, which removes the in-app AI button at every width under the ruling on #34608 (comment 6937495221: "the in-app bottom-right AI button is removed (one entry: the top-bar robot)"); it lands in PR #34665. This PR does not touch
ConsoleChatbotFab.tsx.Deviation from card item 3's wording. Item 3 asks for a phone bar with "search, notifications, avatar" only. The phone bar keeps the top-bar AI robot (where the server serves AI) under the #34608 ruling (comment 6937495221: "one entry: the top-bar robot"), which postdates the card's wording; with the in-app AI button gone (#34665, now on
main), hiding the robot on a phone would leave a phone with no AI entry. Live reading with the robot's 44 px slot in the bar: the phone title gets 89 px and "Opportunities" needs 89 px, so it fits (89/89 px, not truncated; 74/89 px and truncated on the oldmain).维护者速读
HomePage新增一个可选的清单插槽、清单组件新增摆放参数、铃铛角标两个手机类名、顶栏手机端间距、每种语言一个「继续」键);清单的行、完成判定、进度计数、关闭按钮都不变;768 px 及以上首页不变。回滚即 revert 本 PR。ui/packages/app-shell/src/console/home/HomePage.tsx的checklist?.('top')/checklist?.('afterApps')两处摆放;②ui/apps/console/src/pages/settings/FirstRunChecklist.tsx的foldable && !unfolded折叠分支;③ui/packages/app-shell/src/layout/AppHeader.tsx右侧按钮簇的sm:分隔线类名。pnpm --dir ui exec vitest run apps/console/src/pages/settings/__tests__/FirstRunChecklist.test.tsx packages/app-shell/src/console/home/__tests__/HomePage.phoneTapTargets-29147.test.tsx,预期 2 个文件全部通过(含「375 px: drawn once, after the apps」与「one line: the title, the progress and Continue」)。What changes
Home's checklist slot (
HomePage.tsx,@object-ui/app-shell):HomePagetakes an optionalchecklist(placement)render slot. Home calls it with'top'above the page's sections on a desktop, with'afterApps'in the content column right after the apps strip on a phone (usePhoneViewport, below 768 px, the hook the list and record pages already use), and with'top'above the empty state when there is no app yet. While the page is loading the slot is not drawn, so the checklist mounts once, where it stays. The console's Home route (App.tsx) passes the first-run checklist through the slot instead of mounting it aboveDefaultHomePage.The folded card (
FirstRunChecklist.tsx): aplacementprop ('top'default).'afterApps'starts folded to one line: the title, the progress line the card already draws ("3 of 6 done", same count, same key) and a Continue button (aria-expanded=false). Continue unfolds the whole card in place; the unfolded phone card adds a fold control (chevron,aria-expanded,aria-controls= the rows list, named bycommon.collapse) beside the progress and the close button. Folding is the mount's own state, like the done-rows fold: a fresh visit starts folded. No row, completion rule, progress count, write or dismiss record changes; with every required row done the card still draws nothing.The phone top bar (
AppHeader.tsx, phone bar only;InboxPopover.tsx, the badge line only):max-md:top-1 max-md:right-1: below 768 px it sits inside the 44 px trigger on the glyph's corner, instead of 2 px above the trigger, which put its top edge at y = -0.5 px, outside the 48 px bar.sm:-scoped, so the 44 px controls sit side by side, and the page title beside the app pill takes no margin of its own (the pill's padding parts them). Both give the width to the title.mainthe phone bar already shows only search, the bell and the account menu, plus the AI robot where the server serves AI. The card asks for "search, notifications, avatar" only; the robot stays because the AI 助手:右侧抽屉作为唯一的聊天容器,顶栏机器人打开它,放大是原地铺满并可收回 #34608 ruling makes it the one AI entry ("one entry: the top-bar robot"), and with the in-app AI button removed there, hiding it on a phone would leave a phone with no AI entry at all. The card's item 2 also routes the phone AI entry to the top-bar icon.i18n:
console.firstRunChecklist.continuein all eleven packs (zh-Hant regenerated withgen-zh-hant.mjs).Why the key is in the eager
locales/en.ts, not a lazy namespace. The eager pack is for keys the eager shell draws; a key only lazily loaded surfaces read belongs in the namespace that surface already uses. This key does not qualify for a namespace:FirstRunChecklistis a static import of the console entry (App.tsx), drawn by the/homeroute, which is whereRootLandingRedirectlands a workspace by default, and it renders behind no namespace frame. Measured in the built console at860300c36: the call siteconsole.firstRunChecklist.continuesits in the entry chunkassets/index-DAb5a3hk.js, the one chunkeager-closure.jsonlists inentryChunks; the rest of theconsole.firstRunChecklistgroup already lives inen.ts. The two pack-shaped namespaces (marketplace,developer) hold groups their own surfaces read, andcheck:i18n-keysrefuses a namespace-only key read outside its frame, so moving this one key there would need a second loader for one string. Cost:i18n-locale-enreads 60.2 KB / 60.5 KB ceiling (headroom 0.4 KB) after mergingmain(see Verification); the ceiling is not touched.Tests
FirstRunChecklist.test.tsx(new top-level describe in the existing harness, real settings client on a stubbedfetch): the folded line (title, "0 of 5 done", Continue, no rows, no write); Continue unfolds with every row, the fold control'saria-expanded/aria-controls, folding back; folding changes no completion rule (the folded line counts "3 of 5 done", a set workspace draws nothing); zh 「继续」; CONTROL:'top'draws the whole card with neither control.HomePage.phoneTapTargets-29147.test.tsx(new top-level describe): at 1024 px the slot is asked once for'top', drawn before the greeting and the apps, never'afterApps'; at 375 px once for'afterApps', after the last app tile and before "My work"; 375 px with no app:'top'; CONTROL: no slot, page as before. The harness also gains the module-topimport '@objectstack/lint'thatcheck:test-source-aliasasks of an edited file reachingcapabilityLint.AppHeader.centeredSearch-12472.test.tsx(new top-level describe): every divider rule on the cluster issm:- ormin-[960px]:-scoped; the phone title carries no margin class and sits in the left group.InboxPopover.phoneWidth-29076.test.tsx(new top-level describe): the "9+" badge carriesmax-md:top-1 max-md:right-1beside its desktop offsets, inside therelative max-md:size-11trigger.No ablation: happy-dom computes no media query, so these pins read the classes and the slot calls; the pixel proof is the live reading below.
Acceptance notes
mainthe same title had 74 px and truncated. A longer page name still truncates while the robot is in the bar.motion-safe:animate-bounce, 25 % of its height); during that bounce the badge rides above the bar's edge again. Unchanged here.sm).console.firstRunChecklist.continue) and an optionalchecklistprop on the workspace-private app-shellHomePageexport. L1 at TIER_DEFAULT is the review of record, no L2.Metadata-protocol: noneand thepatchlevel are unchanged; the changeset carries the same two lines.Verification
Fix round at
860300c36(merge oforigin/mainat004513829, which brought #34665 and #34642 into the locales,App.tsx,HomePage.tsxandAppHeader.tsx; clean text merge, then the Clause-② changeset line):860300c36turbo run build --filter=@object-ui/console(locked)pnpm --dir ui run check:eager-closurei18n-locale-en60.2 KB / 60.5 KB ceiling (headroom 0.4 KB); closure 1894.3 / 2431.6 KBcheck:eager-locale-cataloguesen60.2 KB EAGER (resident)check:i18n-keys,check:i18n-drift,check:i18n-dead-keystype-checkof@object-ui/app-shell,@object-ui/console,@object-ui/i18n(locked)Live, on this branch at
e78e39f48, my own stack: showcase backendobjectstack dev --fresh -p 4796from this worktree, Console Vite on :5196 against it, Chromium at/opt/pw-browsers/chromium, signed in as the seeded admin; 11 launcher apps (the showcase's own plus apps authored throughPUT /api/v1/meta/appon that throwaway database) and 12 in-app messages sent to the admin throughPOST /api/v1/messaging/in-app-messages, so the bell reads "9+". "Before" is the same stack with the five source files restored fromorigin/main(then restored toHEAD, each file's hash equal to itsHEADblob).origin/main)Screenshots (seat project files):
/mnt/project-files/objectstack-seat3/34596-live/—before-home-375x667.png,after-home-375x667.png,after-home-375x812.png,after-home-375x812-continued.png,after-folded-line-{en,zh-CN,de}.png,before-bar-375x812.png,after-bar-375x812.png,before-app-bar-showcase_expense_report-375x812.png,after-app-bar-showcase_expense_report-375x812.png,after-home-1280x800.png.Tests (locked runs)
f61d7e2b5(after mergingorigin/main, closure rebuilt):pnpm --dir ui exec vitest run --maxWorkers=2 packages/app-shell/src/console/home/ packages/app-shell/src/layout/__tests__/AppHeader. packages/app-shell/src/layout/__tests__/InboxPopover. apps/console/src/pages/settings/__tests__/FirstRunChecklist.test.tsx apps/console/src/__tests__/ packages/i18n/→ Test Files 263 passed (263), Tests 3609 passed, 13 skipped.b661a231c:@object-ui/console^...built;pnpm --filter @object-ui/app-shell --filter @object-ui/console --filter @object-ui/i18n run type-check→ exit 0 (both tsconfigs each);AppHeader.tests → 34 files, 285 tests passed.e78e39f48: the four edited harnesses plusui/scripts/(derived family) → Test Files 175 passed, 2 skipped; Tests 5162 passed, 2 skipped; lock VERDICT command-exit 0.860300c36(head, after mergingorigin/main; console closure rebuilt):pnpm --dir ui exec vitest run --maxWorkers=2 packages/app-shell/src/console/home/ packages/app-shell/src/layout/__tests__/AppHeader. packages/app-shell/src/layout/__tests__/InboxPopover. packages/app-shell/src/layout/__tests__/ConsoleLayout. apps/console/src/pages/settings/__tests__/FirstRunChecklist.test.tsx apps/console/src/__tests__/ packages/i18n/→ Test Files 272 passed (272), Tests 3654 passed, 13 skipped, VERDICT command-exit 0;type-checkof the three packages → exit 0.Gates (local subset, derived by dispatch-gates --commands at b661a23, re-run after later commits where they read the new edits)
40 derived families: the 39 non-vitest commands exit 0 except
check:test-source-alias(exit 1 on the edited Home harness, fixed by the module-top import, then exit 0 ate00081337);vitest run scripts/ran in the locked head run above.dispatch-gates --ran→ 40 derived, 40 run, 0 NOT-MEASURED, 0 UNRUN. Re-run after the last edits:check:undeclared-dep-imports,check-changeset-no-major,check-empty-changeset,check-adr-0087-registration,check:test-source-alias,check:nul-bytes,check:cross-package-test-inputs→ exit 0.overlap-check --branch=HEADate78e39f48→ VERDICT clean exit 0. Everything else is CI's.Fix round, at
860300c36:dispatch-gates --commands(tree objectstack-ai/objectstack at860300c36) → the same 40 families; all 39 non-vitest commands exit 0 (each captured before any pipe),vitest run scripts/(locked) → Test Files 171 passed, 2 skipped; Tests 5077 passed, 2 skipped, VERDICT command-exit 0;dispatch-gates --ran→ 40 derived, 40 run, 0 NOT-MEASURED, 0 UNRUN. Alsocheck:new-line-citations→ 0 new, exit 0.overlap-check --branch=HEADat860300c36→ VERDICT clean exit 0 (origin/main and PR heads #34713, #34697, #34677, #34674 merge cleanly).🤖 Generated with Claude Code