Repository navigation
feat(app-shell): workbench home — greeting, ask-AI slot, today's three columns, recents, my-apps rail (workbench:home) - #39895
Merged
Conversation
The page the built-in workbench app's Home menu entry mounts, drawn in the app shell from the retired desktop home's sections: greeting and summary, an ask-AI slot, today's three columns (my tasks / awaiting approval / notifications), recents, the empty environment's add-app entries, and from 1280 px a right rail with my apps and add app. The ask-AI slot and the task column are their own modules for #39878 and #39873 to fill. Claude-Session: https://claude.ai/code/session_01Q4EjjPnSQ8vC4cCFntmXL7 Co-authored-by: Claude <noreply@anthropic.com>
This was referenced Dec 6, 2026
Merged
…; main column fills when no rail Claude-Session: https://claude.ai/code/session_01Q4EjjPnSQ8vC4cCFntmXL7 Co-authored-by: Claude <noreply@anthropic.com>
Merged
9 tasks done
Matches the workbench menu order (Home, Approvals, Tasks, Notes) the maintainer asked for in #39896: approvals, then my tasks, then notifications. Claude-Session: https://claude.ai/code/session_01Q4EjjPnSQ8vC4cCFntmXL7 Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q4EjjPnSQ8vC4cCFntmXL7 Co-authored-by: Claude <noreply@anthropic.com>
9 tasks done
From 1280 px the page is one four-track grid: Today's three columns and the 「My apps」 rail each take a track, so the rail is exactly a Today column wide. Side by side, the Today columns stretch to one height of at least a header and three rows, and 「My apps」 is at least that tall, so the first row's tops and bottoms line up whether a column is empty or full. 「Add app」 is its own card, and the rail no longer repeats the doors the empty environment expands in the main column. 「Recently accessed」 appears with its first item instead of an empty strip. Home's activity card and the connect-assistant card take the same card shell as the others. Claude-Session: https://claude.ai/code/session_01Q4EjjPnSQ8vC4cCFntmXL7 Co-authored-by: Claude <noreply@anthropic.com>
Contributor
Author
|
repo:cloud@hotlong · hotlong · session_01Q4EjjQzFqHGjUAXt8kBQhV L1: ACCEPT at head
|
9 tasks done
…omeRecentRows Claude-Session: https://claude.ai/code/session_01Q4EjjPnSQ8vC4cCFntmXL7 Co-authored-by: Claude <noreply@anthropic.com>
Contributor
Author
|
repo:cloud@hotlong · hotlong · session_01Q4EjjQzFqHGjUAXt8kBQhV L1: ACCEPT (delta) at head
|
hotlong
pushed a commit
that referenced
this pull request
Dec 6, 2026
hotlong
pushed a commit
that referenced
this pull request
Dec 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Jack · project thread
Fixes #39883
What changes
The console registers the component
workbench:home: the home page the built-in workbench app's 首页 / Home menu entry mounts ({ type: 'component', componentRef: 'workbench:home' }, declared by #39882). It is drawn inside the app shell, so it keeps the shell's sidebar, header and tokens, and it is assembled from the retired desktop home's sections:HomeGreeting) → ask-AI slot → Today, three columns: 待我审批 / 我的任务 / 通知 — approvals first to match the workbench menu order the maintainer set in feat(workbench): the built-in Workbench app (工作台), served by os dev and os serve #39896; approvals and notifications come from the one shared read the bell uses,useHomeInbox→ 最近使用 (HomeContinue,ui.recent) → on an environment with no product app, the add-app entries expanded (new blank app, template, marketplace; no 「用 AI 搭建」, 首页(手机与「暂无应用」空状态)去掉「用 AI 搭建」和「搭建应用」两个入口 #37227). Builder drafts andHomeActivitystay below the fold, each drawn only for a caller who may read its source.xl), one column below it: 我的应用 (the launcher's apps in the switcher's order, the workbench itself left out, 系统设置 last) + 添加应用 as its own card for viewers who may add apps (useMayAddApp/useAddAppEntries, the sidebar app menu's own gate; not repeated in the rail when the empty environment expands the doors in the main column).@xl:auto-rows-[minmax(10.125rem,auto)],WorkColumnish-full flex-col), and 我的应用 isxl:min-h-[10.125rem], so the first row's four boxes share top and bottom edges whether empty or full. Below 1280 px the rail's two cards sit on the same three tracks under the main column. 最近使用 is drawn only once there is a recent item (no empty strip).HomeActivity(shared with the old Home) now runs rows edge to edge withborder-trules and a 40 px footer row like the other cards; the connect-assistant card getsrounded-lg/px-3via itsclassName.manage_metadatareads why; a member reads "Your administrator hasn't installed any apps yet." / 「管理员还没有安装应用」 as text.Reuse instead of copies:
HomeActionCenter's two columns are split out asHomeApprovalsColumn/HomeNotificationsColumn(withWorkColumn/ColumnBody/WorkRowexported), the greeting moves toHomeGreeting.tsx, and the recents rows touseHomeRecentRows. The retired home (phone + no-apps) renders the same DOM as before; its 43 test files pass unchanged.Where #39873 and #39878 plug in
Each slot is its own module, so filling it does not touch the page:
ui/packages/app-shell/src/console/workbench/WorkbenchAskSlot.tsx(data-workbench-slot="ask-ai"). Today it holds the retired home's 「Ask AI」 button (same gates), opening the drawer throughuseAskAiEntry.ui/packages/app-shell/src/console/workbench/WorkbenchTaskColumn.tsx(data-workbench-slot="tasks", first of the three columns, already in theWorkColumncard). Today it claims no count and links tosys_task'sassigned_to_meview in the current app.WorkbenchAddAppsinWorkbenchAppsRail.tsx(data-workbench-slot="add-apps").WORKBENCH_PACKAGE_ID/WORKBENCH_HOME_COMPONENT_REF/isWorkbenchApplive inconsole/workbench/workbenchApp.tsfor #39872 / #39885 to reuse.Why
Phase 1 MVP of the workbench epic #39871 ("Final design (phase 1)", Home). The app declaration is #39882; this PR does not declare the app (tests use a fixture app with
_packageId: 'com.objectstack.workbench'). No overlap with #39882's files (it touches noui/path).Verification
pnpm --dir ui exec vitest run packages/app-shell/src/console/workbench/ packages/app-shell/src/console/home/— 45 files, 291 tests pass (14 new: recents hidden until the first item, rail not repeating the expanded doors, section order, three columns and per-source gating, task link, rail order without the workbench and Setup last, member/admin empty environment,workbench:homeregistered).pnpm --dir ui exec vitest run packages/i18n/ packages/app-shell/src/__tests__/— 136 files pass (key parity across the 11 packs; zh-Hant regenerated withgen-zh-hant.mjs).@object-ui/app-shelltype-check(src + tests) exit 0; eslint on the changed files 0 errors.check:i18n-keys,check:i18n-drift,check:new-line-citations(0 new) pass.os dev(verify tree = this branch + Workbench MVP: declare the platform built-in app com.objectstack.workbench (menu 首页 / 任务 / 备忘 / 审批) and register it in the framework assembly roots #39882's head2ff9d6a8merged locally, not pushed; Console fromui/source over Vite, proxied to the server), signed in as the seeded admin and as an invited member:Clause-②: no
Metadata-protocol: none
Human Minimum
packages/specholds no runtime logic. (nopackages/specchange)pnpm lintpasses.main, one pull request.packages/spectouched: n/a.content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.Generated by Claude Code
🤖 Generated with Claude Code
https://claude.ai/code/session_01Q4EjjPnSQ8vC4cCFntmXL7