Skip to content

feat(app-shell): workbench home 「My tasks」 lists the open tasks assigned to me - #39909

Merged
objectstack-fleet[bot] merged 14 commits into
mainfrom
claude/project-thread-83uvs3
Dec 6, 2026
Merged

objectstack-fleet[bot] merged 14 commits into
mainfrom
claude/project-thread-83uvs3

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Jack · project thread

Refs #39873

Built on the workbench home (#39895, #39883, merged): origin/main is merged into this branch, so the diff is this column alone.

What changes

The workbench home's 「My tasks」 column (WorkbenchTaskColumn, the slot #39895 left for it) now lists the open tasks assigned to the signed-in person instead of a single link:

  • Source: the platform's sys_task, read with the assigned_to_me list view's own filter (assignee_id = me, status not done), ordered by due time. The column orders the rows itself as well, dated tasks first, soonest first, so a task with no due time cannot crowd out a dated one on a driver that sorts empty values first.
  • Rows: the first three (MY_WORK_ROWS, as the approvals and notifications columns), each with the due time as relative text in the display locale (「明天」, "in 5 days"); an overdue task reads 「已逾期 · 前天」 / "Overdue · 2 days ago" in the destructive colour. A row opens the task record, 「View all」 opens the assigned_to_me list, both in the app the home is open in.
  • Count: the pill is the read's total, not the rows on show.
  • States: loading until the read answers; "No tasks assigned to you yet" / 「暂无分配给我的任务」 only once it has; a failed read says so (the shared ColumnBody rules). A caller who may not read sys_task is asked nothing and keeps the old single line that opens the list, with no count.
  • Freshness: a sys_task write anywhere in the console (completing, reassigning, the coming quick-add) re-reads the column in place (useDataInvalidation('sys_task')).
  • 3 new keys (workbench.tasks.empty / overdue / untitled) in the 11 packs; zh-Hant regenerated with gen-zh-hant.mjs.

Outside the column file, deliberately small: the home page test's task-column case now asserts the list (it pinned "claims no count"), and one sentence of the home page's module comment that said the column reads nothing.

Not in this PR

Why

Phase 1 MVP of the workbench epic #39871: the home's three today columns cannot ship without 「My tasks」 (card revision 2026-12-06: list only, overdue in red, a row opens the task record).

Verification

  • pnpm --dir ui exec vitest run packages/app-shell/src/console/workbench/ — 3 files, 22 tests pass (new WorkbenchTaskColumn.test.tsx: the assigned_to_me filter, ordering and overdue, the total in the pill, row and View all routes, loading before the empty line, a failed read never reads as empty, no read without the grant, re-read on a sys_task change dropping a completed task).
  • @object-ui/app-shell and @object-ui/i18n type-check (src + tests) exit 0; eslint on the changed files 0 errors.
  • check:i18n-keys, check:i18n-drift, check:i18n-dead-keys, check:i18n, check:i18n-coverage, check:i18n-stale-fill, check:i18n-walk-parity, check:test-source-alias, check:new-line-citations (0 new) pass.
  • Browser check in a running os dev (showcase, verify tree = this branch + feat(workbench): the built-in Workbench app (工作台), served by os dev and os serve #39896's head merged locally, not pushed; Console from ui/ source over Vite, proxied to the server), signed in as the seeded admin with six tasks seeded through the API (overdue, tomorrow, in 5 days, in 12 days, no due time, one done):
    • 1280 px, en and zh-CN: My tasks 5; rows Call back… (overdue, red), Send the renewal quote (tomorrow / 明天), Review Q1 budget draft (in 5 days / 5天后); the done task is not counted.
    • 375 px, en and zh-CN: the same rows in the stacked column, the overdue label fits beside a truncated title.
    • A row opens /apps/com.objectstack.workbench/sys_task/record/…; View all opens /apps/com.objectstack.workbench/sys_task/view/assigned_to_me.
    • After marking the overdue task done the count reads 4 and the next dated task moves up (the undated one stays after the dated ones); with every task done the column reads "No tasks assigned to you yet" / 「暂无分配给我的任务」 on one line and shows no pill. The first, longer empty sentence wrapped past the 40 px notice row in zh, which is why it was shortened.

Overlap: #39908 (the ask-AI box, built on #39895 too) edits WorkbenchHomePage.test.tsx and the same 11 locale packs; a trial merge of the two heads is text-clean. Re-run the workbench tests on the merged tree after whichever lands first.

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_01Q4EjjN5S3W2nBRhkt287wh

claude added 11 commits December 6, 2026 09:57
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>
…igned to me

Shorter empty line so it fits the 40 px notice row in every locale.

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q4EjjN5S3W2nBRhkt287wh
@github-actions github-actions Bot added size/xl documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Dec 6, 2026
…-83uvs3

# Conflicts:
#	ui/packages/app-shell/src/console/workbench/WorkbenchHomePage.tsx
#	ui/packages/app-shell/src/console/workbench/WorkbenchTaskColumn.tsx
#	ui/packages/app-shell/src/console/workbench/__tests__/WorkbenchHomePage.test.tsx
#	ui/packages/i18n/src/locales/ar.ts
#	ui/packages/i18n/src/locales/de.ts
#	ui/packages/i18n/src/locales/en.ts
#	ui/packages/i18n/src/locales/es.ts
#	ui/packages/i18n/src/locales/fr.ts
#	ui/packages/i18n/src/locales/ja.ts
#	ui/packages/i18n/src/locales/ko.ts
#	ui/packages/i18n/src/locales/pt-BR.ts
#	ui/packages/i18n/src/locales/ru.ts
#	ui/packages/i18n/src/locales/zh-Hans.ts
#	ui/packages/i18n/src/locales/zh-Hant.ts
@github-actions github-actions Bot added size/m and removed size/xl labels Dec 6, 2026
@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review December 6, 2026 12:51
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:cloud@hotlong · hotlong · session_01Q4EjjQzFqHGjUAXt8kBQhV

L1: ACCEPT at head 0de46783 · reviewer of record repo:cloud@hotlong · read 2026-12-06T12:52Z.

  • Card. p1 Workbench: an "assigned to me" task column in 我的工作, with quick-add, from the platform's sys_task #39873 (epic Workbench and first-run: every sign-in lands on a platform workbench whose start wizard installs a scenario app; the Starter auto-install retires #39871 phase-1 MVP), list slice: the workbench home's 「My tasks」 column lists the signed-in person's open tasks. Refs #39873: quick-add is the card's second PR.
  • Diff.
    • Reads sys_task with the assigned_to_me view's own filter, and orders dated tasks first, soonest first, so a driver that sorts nulls first changes nothing.
    • Shows the first three rows with relative due text; overdue is red. The pill shows the read's total.
    • Loading, empty and failed states follow the shared ColumnBody rules. A caller without read on sys_task is asked nothing and keeps the single link.
    • Re-reads on any sys_task write (useDataInvalidation). A row opens the record and View all opens the list, both in the current app. Three keys in 11 packs.
  • Declaration. Clause-②: no / Metadata-protocol: none; console-only. No L2 owed.
  • Evidence. 22 workbench tests including the new column file, covering filter, order, overdue, total, routes, loading before empty, failure never empty, no read without grant, and re-read after done. Type-check and eslint are clean; the i18n gates pass. After merging main: 47 files / 303 tests and type-check pass. Browser on os dev with six seeded tasks, 1280 and 375 px, en and zh-CN: count, order, red overdue, routes; marking done re-reads; the all-done state shows the empty line with no pill.
  • Overlap with feat(app-shell): workbench home ask-AI box opens the drawer with the question #39908. Both touch WorkbenchHomePage.test.tsx and the 11 packs; a trial merge is text-clean. Whichever enters the merge queue second is tested on a tree with the first.
  • Landing. Ready with auto-merge.

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/m tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants