Repository navigation
feat(console): a comments column on the list page, with the threads of the records the view shows - #39157
Conversation
…d the list's effective-filter host channel Claude-Session: https://claude.ai/code/session_01WGufzgJzS4DfAbhGoRzv5o Co-authored-by: Claude <noreply@anthropic.com>
…ts strings Claude-Session: https://claude.ai/code/session_01WGufzgJzS4DfAbhGoRzv5o Co-authored-by: Claude <noreply@anthropic.com>
…he threads read The header's comments icon on a grid or board of a feeds-on object opens a 380px column that narrows the list and reads the threads of the records the view's effective filter selects; an expanded card is the record's live discussion. Tests, docs, READMEs and the changeset. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzgJzS4DfAbhGoRzv5o
…ssion hand-off Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzgJzS4DfAbhGoRzv5o
… icon Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzgJzS4DfAbhGoRzv5o
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzgJzS4DfAbhGoRzv5o |
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzgJzS4DfAbhGoRzv5o Contract reviewServed-tier: Inputs read: card #39085 (body and its three comments: the priority ruling 7338435207, the card-thread note 7338449831, the claim 7348982016), PR #39157 (body, the 42-file list, the net diff against Check-runs at read time (15:5xZ, 2026-12-02): no failure. Succeeded: Check Changeset, PR-body guards, Governed Surface Queue Guard, Check PR Size, Type Check · workspace / source gates / consumer gates / debt ledger, TypeScript Type Check, Lint · ESLint and the repo, docs, CI and scoped lint gates, Build UI Deps, Build and E2E UI, Live E2E UI, Build Docs, Dogfood Regression Gate, Spec property liveness, Check Documentation Links, Test Core 3/12. Still in progress, so no verdict yet from them: Test UI 1/16 to 16/16, Test Core 1/12 and 2/12, Type Check UI, Lint UI, Lint · PM dispatch-gates. This record judges the design; it does not stand in for those runs. ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentS1 (should-fix) — S2 (should-fix) — N1 (nit) — N2 (nit) — N3 (nit) — N4 (nit) — Per file, the rest holds. Implemented-by: VERDICT: PASS |
…eads filter as find does (L2 S1, S2) S1: a re-read after a comment write reads at most 50 threads; the cards held past that are kept with their cursor, and a failed re-read keeps every card. S2: queryCommentThreads lowers its filter through translateFilterToAST, as find lowers $filter, so a filter find refuses is refused before any request. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzgJzS4DfAbhGoRzv5o
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzgJzS4DfAbhGoRzv5o |
…oth filter refusals (L2 delta N6, N7) Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzgJzS4DfAbhGoRzv5o
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzgJzS4DfAbhGoRzv5o |
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzgJzS4DfAbhGoRzv5o Contract reviewServed-tier: Delta review of the two commits on top of ① Derived judgments
② Semver levelUnchanged by either commit: no changeset edit, no new export, no narrowing. ③ Boundary flags
④ Design judgmentS1: closed S2: closed No must-fix, no should-fix. N5 (nit) — left as it is, an accepted deviation: the cards kept past the 50th are the old cards from position 51 on, so when a thread new to the scope arrives at the top between reads, the old 50th card is in neither the fresh page nor the kept tail until the scope is read afresh, and a kept card stays as it was until then. The file's header states the bound. N6: closed — a failed re-read now releases a superseded load-more with a functional update guarded by the request key, and writes nothing else, so the cards stay. N7 (nit) — the behaviour is unchanged and now stated: the adapter's jsdoc says a bare string, number or boolean is no filter, as on Per file: Implemented-by: VERDICT: PASS |
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm L1 review — ACCEPT on
|
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzgJzS4DfAbhGoRzv5o Final head for L1:
|
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzgJzS4DfAbhGoRzv5o Hand-back to the seat · 2026-12-02T16:49Z #39157 (card #39085, U3 of #39077) is ready to land on head Left for the seat, none owed by the card: L1's three nits (the Clause-② line does not name the seven new |
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm L1 review — ACCEPT on
|
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhPdWmTd47Fi2bKYZS 席位核对ACCEPT — PR #39157 @
落地
State change: ready for review + auto-merge, by the owning seat; on merge it closes #39085. |
Requested by Yibo Wang · project thread
Fixes #39085
Clause-②: yes (widening)
Metadata-protocol: none
维护者速读
What changes
@object-ui/types— optionalDataSource.queryCommentThreads(request); its presence is the capability. Re-exportsCommentThreadsQueryRequest/CommentThreadsQueryResponsefrom@objectstack/spec/api(notCommentThread, which collides with the collaboration component's name).@object-ui/data-objectstack—ObjectStackAdapter.queryCommentThreadscallsclient.comments.queryThreads(POST /api/v1/comments/threads/query); a refusal passes through as the client threw it.@object-ui/plugin-list—ListViewhost proponEffectiveFilterChange(new sibling modulelistEffectiveFilter.ts;ListView.tsxgets one call). It reportsbuildEffectiveFilter(authored, panel, filter bar, queue, drops), the$filterthe list's own read sends, on every layout (a board answersonFindParamsChangewithnull, so that channel could not serve kanban). The search term and a calendar window are not in it. AFilterOperatorErrorreports{ kind: 'unlowerable' }, never "no filter". Built only while a host listens and after the object definition loads; reported only when the filter changes by content.@object-ui/plugin-detail— presentationalViewCommentsPanel(cards, filter menu, load-more, the seven states, Esc/✕),splitCommentMentionsfor the mention highlight.@object-ui/i18n— sevendetail.viewComments*keys in all 11 locales (zh-Hant from the generator), mirrored inDETAIL_DEFAULT_TRANSLATIONS.@object-ui/app-shell(private) —objectViewComments.tsx(the icon and the offer: desktop, grid or kanban,enable.feeds !== false, the door present), the lazily loadedobjectViewCommentsColumn.tsx(the column, and an expanded card as the record's live discussion throughuseRecordDiscussion+DiscussionContextProvider+CommentThread mode="expand"), anduseViewCommentThreads.ts(one request per page, keyed by content; asys_commentwrite announced re-reads the loaded pages in one request up to 50; stale answers dropped; refusals mapped to states).ObjectView.tsx,objectViewListRenderer.tsx,objectViewPageHeader.tsxandPageHeader.tsxget calls and pass-throughs only:PageHeadertakescommentsinto the shell group's first slot (or after the page actions outside the shell).useCommentsPanelOpentakes a key;commentResolutionOf/rowMentionsUserare exported for the card mapping.content/docs/frontend/plugins/plugin-detail.mdx§ The list page's comments column; plugin-detail and plugin-list READMEs; changeset (patch on the five published packages).Tests
ui/packages/app-shell/src/views/ObjectView.commentsColumn-39085.test.tsx(8): through the realObjectViewandListView— icon on a grid, none read while closed; pressed, the column sits in the content row beside the list (w-[380px] shrink-0, notabsolute), reads ONE page with the view's filter; the record name opens the record through the row-click path; ✕ closes and is remembered, no read after; open state remembered and asys_commentwrite announced re-reads once; icon on a board; no icon with feeds off or without the door.ui/packages/app-shell/src/views/useViewCommentThreads-39085.test.tsx(24): first page once with scope + toggles; nothing before the list reports and nothing forunlowerable; re-read on scope/toggle change, none for an equal scope; load-more appends with dedupe; failed next page; write announced re-reads the loaded pages in one request (limit: 30); a superseded answer is dropped; cards past the 50-thread re-read ceiling kept with their cursor; a failed re-read keeps the cards and releases a superseded load-more; retry; no door ⇒unavailable; error-to-state table; row mapping.ui/packages/plugin-detail/src/comments/ViewCommentsPanel.test.tsx(14): cards, mention highlight, replies summary, no new-thread box; open-record vs expand; expanded via host; ✕/Esc; load-more and its retry; filtered-empty with show-all; empty; loading, failed + retry; denied/unscoped/unavailable with no filter menu;splitCommentMentions.ui/packages/plugin-list/src/__tests__/ListView.harness.test.tsxnew blockListView.onEffectiveFilterChange-39085(4): grid reports exactly the read's$filter, once; a board reports too; the search term is left out; a malformed filter reportsunlowerableand nothing else.ui/packages/data-objectstack/src/queryCommentThreads-39085.test.ts(4): the filter is normalised asfindnormalises$filter(rule list lowered, empty sent as no filter); a filterfindrefuses is refused before any request; answer and refusal pass through.ui/e2e/list-frame-geometry-35548.spec.ts: its source-text pin on<ObjectViewPageHeader …/>admits the newcomments={…}prop (the pin went red on 489710f).Acceptance notes
useRecordDiscussion), which announcessys_comment; the column re-reads (ObjectView test 5, hook test 6) and U1's dot re-reads on the same announcement (pinned in feat(console): a grid row whose record has open comment threads shows a dot after the record name #39106).onlyMine: true; the server's participants include mentions (Comments: a thread stores who took part, so 'threads involving me' filters in one query #39081 / feat(plugin-audit,spec,client): one read returns the comment threads on the records a list filter selects, as the caller #39135).PageHeader'scomments;useShellPageActionsSlotwas already shaped for it.shrink-0flex sibling in the content row for both layouts (ObjectView tests 2 and 6). Not measured in a browser.unavailable), per the claim's premise.ui/packages/app-shell/src/views/useViewCommentThreads.ts(request keying, re-read and stale-drop),ui/packages/plugin-list/src/listEffectiveFilter.ts(what is reported and when),ui/packages/app-shell/src/views/objectViewComments.tsx(the offer and the scope's lifetime).Verification
tsc --noEmit): types, data-objectstack, plugin-list, plugin-detail, i18n, app-shell — all clean.-t).plugin-detail/src/commentsfile — 22 files, 301 tests passed.@object-ui/i18nsuite 110 files, 1874 passed.i18n-locale-en70.2 KB of 78.7 KB; every ceiling green.node scripts/pm/dispatch-gates.mjs --commands: 74 commands; 72 exit 0. Two NOT MEASURED locally, left to CI:pnpm --dir ui exec vitest run scripts/was killed by the container's memory limit (re-run with--maxWorkers=2: 172 files, 5159 tests passed), andcheck:skill-examplesrefused its prerequisite (noclient-reactbuild; exit 3, nothing measured).find) and 0a8ba35 (nits N6, N7). Delta record PASS on 0a8ba35: S1 and S2 closed. After the fixes: the three touched test files 36 passed,tscclean for types, data-objectstack, app-shell.Build & E2E UIred on the source pin fixed in f51a85d;console-service-workerwas flaky there (passed on retry).https://claude.ai/code/session_01WGufzgJzS4DfAbhGoRzv5o
Generated by Claude Code