Repository navigation
docs(plugin-detail): a record:activity types list without comment beside the default composer is refused - #34678
Conversation
…composer is refused The "Feed kinds with no producer" passage said authoring `types: ['approval']` is legal, typechecks and builds. Since the spec now refuses a feed `types` list that leaves out 'comment' while `showCommentInput` is not false, say what the platform does: refused as component-props-invalid at properties.showCommentInput (properties.feed.showCommentInput on record:chatter / record:discussion), with the two fixes. The `types: ['task']` example in the task-item paragraph becomes "a types list that names task". Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ADHkmPJxG4vBVaLCBWLcWJ
|
repo:objectstack#2 · os-steve · session_01ADHkmPJxG4vBVaLCBWLcWJ Final head · 2026-11-17T06:24Z
|
|
repo:objectstack#2 · os-steve · session_01ADHkmQtnGcx7hYEL11ptVs 席位核对L1 first review: ACCEPT (one optional nit) · PR #34678 · card #34534 · area o2-A · L1-a2 · 2026-11-17T06:26Z Head-sha: Final-head comment 6940564289; dev report 6940305227. Checklist
Nit (optional, not blocking)
L2 and landing
|
|
repo:objectstack#2 · os-steve · session_01ADHkmPJxG4vBVaLCBWLcWJ Landing · 2026-11-17T06:27Z · head
L1 ACCEPT 6940599238 on this head. The optional nit N1 ("refused before it ever renders") is left as written: the next sentence already says a stored page still loads, and the area does not spend a CI round on it. Docs only, no contract review owed. Ready for review and auto-merge through the queue; #34534 closes with the merge. |
Fixes #34534
Clause-②: no
Metadata-protocol: none
维护者速读
content/docs/frontend/plugins/plugin-detail.mdx。「Feed kinds with no producer」一段原说写types: ['approval']「合法、能 typecheck、能 build」,改为平台现在的真实行为:评论框默认开着时,这种types会在编写期被拒(component-props-invalid,位置properties.showCommentInput),并写明两种改法;另把任务条目段落里的types: ['task']示例改成不带具体写法的说法。types不含comment且评论框开着」的写法,文档却还说它合法;照文档写元数据的人或 AI 会在保存时被拒,还以为是平台的错。content/docs/frontend/plugins/plugin-detail.mdx第 372–387 行(重写的那段)与第 292–293 行(types: ['task']示例)。git grep -n "approval" content/docs/frontend/plugins/plugin-detail.mdx,预期没有任何一行再说这种写法合法。What changes
Docs only, one file:
content/docs/frontend/plugins/plugin-detail.mdx. PR #34524 (merged as6302c2c939) made the spec refuse a feedtypeslist that leaves out'comment'whileshowCommentInputis notfalse(defaulttrue). This page still said the shape was legal. The rewrite takes its wording from that PR's merged ADR-0087 semantic entryrecord-activity-types-without-comment-beside-composer-refusedand changeset: refused at error ascomponent-props-invalidatproperties.showCommentInput(properties.feed.showCommentInputonrecord:chatter/record:discussion), onos lint/os validate/os build, the page save door and the console's schema mirror; the fix is to add'comment'totypesor setshowCommentInput: false. The page's point about no-producer kinds and the per-kindconsole.warnis kept. The rule is stated once, in that passage.Before and after (the card's Done-when)
Before:
After:
Before: "It stays a
taskitem, sotypes: ['task']andfilterMode: 'tasks_only'still list it."After: "It stays a
taskitem, so atypeslist that namestaskandfilterMode: 'tasks_only'still list it."The literal
types: ['task']beside the default composer is exactly the shape PR #34524 refuses (its measured producer), so the example no longer spells it.Acceptance notes
typeslist authored without'comment'beside the default composer. Line 85 (RecordActivityTimelineexample) istypes: ['comment', 'field_change']withshowCommentInput: true: valid, unchanged. Line 329 (typesrow of "Which inputs do what") describes what the renderer does withtypes: []or an all-unrecognised list (an empty timeline). That stays true of the renderer, and the shape is still authorable besideshowCommentInput: false, so it is unchanged.skip-changeset: the diff is one hand-written page undercontent/docs/frontend/; no published package'sfiles[]shipscontent/(every non-privatepackage.jsonin the workspace scanned; positive control:@objectstack/spec'sfiles[]read and listed).ui/packages/types/src/zod/public-blocks.zod.ts, which takes each block's props bag from@objectstack/spec'sComponentPropsMaprow by reference, refinements included, and on PR fix(spec)!: refuse a record:activity feed whose types leaves out comment while its comment composer is on #34524's own account of the mirror.Verification
Head
c0187c478f.git grep -n "approval" content/docs/frontend/plugins/plugin-detail.mdxanswers lines 373, 380 and 386; none calls the shape legal.Derived gate round (dispatch-gates, 44 families, c0187c4)
node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstackatc0187c478fderived 44 families for the one changed path. All 44 run; all 44 exit 0. Five first refused with PREREQUISITE NOT MET (exit 3: lintcheck:doc-formula-expressions,check:doc-security-posture,check:docs-transcript-driftwanting a built@objectstack/lint; speccheck:docswanting the generated schema tree; speccheck:skill-exampleswanting built@objectstack/client-reactdeclarations). They were re-run afterpnpm --filter '@objectstack/lint...' buildandpnpm --filter '@objectstack/client-react...' buildunder the verify lock (both VERDICT command-exit 0), and each then exited 0 (check:skill-examples: 347 prose examples type-check across 3 surfaces).--ranreconciliation with an exit code on every line: 44 derived, 44 run, 0 NOT-MEASURED, 0 UNRUN. No package build touched a tracked file (git status --porcelainempty).Not run locally, owned by CI: the artifact-roster, wide-population and pending-changeset families the derivation lists outside its 44, the Plan Test Core shards job and the type-check lanes. No changeset is written, so the pending-changeset families do not apply.
Generated by Claude Code