Skip to content

feat(app-shell): workbench home — greeting, ask-AI slot, today's three columns, recents, my-apps rail (workbench:home) - #39895

Merged
objectstack-fleet[bot] merged 8 commits into
mainfrom
claude/project-thread-o77spr
Dec 6, 2026
Merged

objectstack-fleet[bot] merged 8 commits into
mainfrom
claude/project-thread-o77spr

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Dec 6, 2026 •

Copy link
Copy Markdown
Contributor

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:

  • Main column, top to bottom: greeting + today summary (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 and HomeActivity stay below the fold, each drawn only for a caller who may read its source.
  • Right rail from 1280 px (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).
  • One grid, one box height (maintainer: "the desktop boxes are uneven"). From 1280 px the page is a four-track grid: Today's three columns and the rail take one track each, so the rail is exactly a Today column wide. Side by side, the Today columns stretch to one height of at least header + 3 rows (@xl:auto-rows-[minmax(10.125rem,auto)], WorkColumn is h-full flex-col), and 我的应用 is xl: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 with border-t rules and a 40 px footer row like the other cards; the connect-assistant card gets rounded-lg/px-3 via its className.
  • Empty environment: an admin who may add apps gets the add-app entries as buttons; an admin without manage_metadata reads why; a member reads "Your administrator hasn't installed any apps yet." / 「管理员还没有安装应用」 as text.
  • First paint reads what the retired home read and nothing more: the task column asks no source yet.

Reuse instead of copies: HomeActionCenter's two columns are split out as HomeApprovalsColumn / HomeNotificationsColumn (with WorkColumn / ColumnBody / WorkRow exported), the greeting moves to HomeGreeting.tsx, and the recents rows to useHomeRecentRows. 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:

WORKBENCH_PACKAGE_ID / WORKBENCH_HOME_COMPONENT_REF / isWorkbenchApp live in console/workbench/workbenchApp.ts for #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 no ui/ 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:home registered).
  • 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 with gen-zh-hant.mjs).
  • @object-ui/app-shell type-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.
  • Browser check in a running 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 head 2ff9d6a8 merged locally, not pushed; Console from ui/ source over Vite, proxied to the server), signed in as the seeded admin and as an invited member:
    • showcase stack, 1280 px, en and zh-CN: greeting + summary ("You have 3 approvals waiting today" / 「今天有 3 项待审批」), Today with My tasks / Awaiting approval (3 rows) / Notifications (1 row) in one row of three, Recently accessed, Activity feed and the connect-assistant card below; right rail My apps = Showcase, Setup (workbench itself not listed) + Add app's three doors; sidebar and header are the shell's, 工作台 menu 首页 / 任务 / 备忘 / 审批.
    • 375 px, en and zh-CN: one column, the three columns stacked, rail after the main column.
    • empty environment (todo stack with its only app inactive): admin gets "No applications yet" with New blank app / Start with a template / App Marketplace as buttons between Recently accessed and Activity feed; the member reads 「管理员还没有安装应用」 / "Your administrator hasn't installed any apps yet." as text, gets no rail (nothing to list, nothing to add) and the main column takes the full width.
    • The ask-AI slot is empty on these stacks because no ask agent is served there (the button's existing gate); with an ask agent it draws 「Ask AI」 (unit-tested).
    • Layout fixes found by the check and pushed: three today columns from a 640 px main column (container query), rail column collapses when the rail draws nothing.
    • After the box-size pass (head 275bee8), showcase stack at 1280 zh, 1600 en and 1100 zh: the first row's four boxes are equal width and height (approvals 3 rows, tasks 1, notifications 1, apps 2 all stretch to one height); Add app is a separate card below My apps; at 1100 the rail's cards sit under the main column on the Today tracks.

Clause-②: no
Metadata-protocol: none

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic. (no packages/spec change)
  • 2. Every name I added uses the casing for its kind.
  • 3. No formatter ran; pnpm lint passes.
  • 4. One issue, one branch off an up-to-date main, one pull request.
  • 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset.
  • 6. packages/spec touched: n/a.
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English.
  • The Before Submitting list in CONTRIBUTING.md is done.

Generated by Claude Code

🤖 Generated with Claude Code

https://claude.ai/code/session_01Q4EjjPnSQ8vC4cCFntmXL7

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>
…; main column fills when no rail

Claude-Session: https://claude.ai/code/session_01Q4EjjPnSQ8vC4cCFntmXL7
Co-authored-by: Claude <noreply@anthropic.com>
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>
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>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:cloud@hotlong · hotlong · session_01Q4EjjQzFqHGjUAXt8kBQhV

L1: ACCEPT at head 275bee85 · reviewer of record repo:cloud@hotlong · read 2026-12-06T11:26Z.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:cloud@hotlong · hotlong · session_01Q4EjjQzFqHGjUAXt8kBQhV

L1: ACCEPT (delta) at head 6d4a3a8f · reviewer of record repo:cloud@hotlong · read 2026-12-06T11:39Z.

  • Delta since 275bee8: one line in openPathObjectReaders-12811.test.ts. The classified reader moved with the recent-rows logic from HomePage.tsx to useHomeRecentRows.ts, so its row key follows; the kind stays byName. This fixes the red Test UI (4/16). Nothing else moves; the ACCEPT of 7456614548 carries over.
  • Landing. Re-armed.

hotlong pushed a commit that referenced this pull request Dec 6, 2026
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Dec 6, 2026
Merged via the queue into main with commit b1df2c9 Dec 6, 2026
60 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-o77spr branch December 6, 2026 12:25
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/xl tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

2 participants