Repository navigation
fix(plugin-detail): a record:activity whose types leaves out comment offers no comment composer - #34388
Conversation
…offers no comment composer A types allow-list without 'comment' filters every comment out of the block, the ones posted on it included. The block now offers no composer and no Comments-only filter there, and tells the author why once in development, naming both fixes. Claude-Session: https://claude.ai/code/session_01ADHkmQL9UYenrqC6NTLq3h Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ADHkmQL9UYenrqC6NTLq3h Co-authored-by: Claude <noreply@anthropic.com>
…ser pins Claude-Session: https://claude.ai/code/session_01ADHkmQL9UYenrqC6NTLq3h Co-authored-by: Claude <noreply@anthropic.com>
|
domain:ui#2 · os-steve · session_01ADHkmSzhXR4yUAgwq1bQRi 维护者速读
席位意见平台不再提供一个发出去就看不见的输入框,并在开发态把原因说清楚。契约层面的收紧放在 spec 车道。同意落地。 席位核对 — ACCEPT · domain:ui#2 · head a61c736 · 2026-11-16T21:31Z |
⛔ merge queue 构建失败 — 先分诊,再决定要不要重排队列构建 43961102540 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集), 分类: 失败的 job(日志抽取,best effort):
跨 PR 相同签名(24h,按失败测试文件聚合):
历史信号:
分诊清单:
Generated by Claude Code · merge-queue-triage workflow (#4859) |
|
domain:ui#2 · os-steve · session_01ADHkmSzhXR4yUAgwq1bQRi Merge-queue triage: re-queue once · head a61c736 · 2026-11-16T21:52Z The queue build failed on
Re-queued once on the same head. If it fails again without #34429 in the group, the seat triages it as this PR's. |
Requested by Steve · project thread
Fixes #34371
Clause-②: no
Metadata-protocol: none
维护者速读
record:activity)的types不含comment时,不再显示评论输入框和「仅评论」筛选项;开发环境下对每个块提示一次原因和两种改法。types: ['task'],评论被这个白名单过滤掉,但输入框照常显示,用户发的评论保存了却永远看不到。types写了且不含comment的活动块;没写types或含comment的块完全不变。回滚即 revert 本 PR。ui/packages/plugin-detail/src/renderers/record-activity.tsx(新增commentsShown判定与告警);ui/packages/plugin-detail/src/RecordActivityTimeline.tsx(新 prop 收掉输入框与「仅评论」);ui/packages/plugin-detail/src/renderers/recordActivityFeed.ts(判定与告警文案)。pnpm --dir ui exec vitest run packages/plugin-detail/src/renderers/__tests__/record-activity.test.tsx,预期 27 个全过,其中 5 个是本卡新增。What changes
Measured drop point. The comments are not lost by the host. Reproduced through
RecordDetailViewrendering an authored record page (realpage:tabsopened on its Activity tab, realrecord:activity) with HotCRMlead_detail'slead_activityproperties verbatim (types: ['task'],limit: 20,showCompleted: true, objectstack-ai/hotcrm main07d5d9f). The host readssys_commentandsys_activityand builds the comment items withtype: 'comment'; the block then runs them throughapplyFeedConfig(recordActivityFeed.ts), whosetypesallow-list step (kept = kept.filter((i) => allowed.has(i.type))) drops everycomment, because'comment'is not in['task']. That is what the spec declares (RecordActivityProps.types: "Feed item kinds to show (default: all)"). The defect is that the same block still offered the composer (showCommentInputdefaults totrue) and the Comments only option, so a posted comment was stored and then filtered out of view.Ruling. Seat ruling 6915056720 on the dev report 6915007777 picked option C for this card: refusing the contradiction at authoring is spec-lane card #34383, and the producer fix (
'comment'added tolead_activity'stypes) is carried to hotcrm. Option B (makingtypesskip comments) was declined.This PR (option C,
Metadata-protocol: none).recordActivityFeed.ts:feedTypesAdmitComments(types, block)answers whether the authoredtypescan show a comment, through the samenormalizeFeedTypesreadingapplyFeedConfigfilters by, so the answer and the rows cannot disagree.warnWithheldCommentComposernames the block (and its nodeid), itstypesand both fixes, once per block andtypes(thewarnOncechannel the file's other diagnostics use).record-activity.tsx: computescommentsShownand hands it to the timeline; where the composer would otherwise have been offered (showCommentInputnotfalse), it warns from an effect, in development only (the package'sisDevBuildspelling).RecordActivityTimeline.tsx: one optional prop,commentsShown(defaulttrue).falsewithholds the composer and thecomments_onlyfilter option; an authoredfilterMode: 'comments_only'then reads asallunder the existing "a filter the dropdown does not offer filters nothing" rule.RecordChatterPanelpasses nothing and is unchanged.A block with no
types, or atypesthat includes'comment', renders exactly as before.Tests
New top-level
describein the block's existing harness,renderers/__tests__/record-activity.test.tsx(real renderer, real timeline, a hostDiscussionContextwith anonAddComment):types: ['task']) draws no composer and no Comments Only option (and the comment is not shown);types: ['task', 'comment']: the composer and the option stay, the comment shows, no warning;types: the same;typesand both fixes;showCommentInput: falseis told nothing.No forced test edits: no existing test changed.
Pin run and ablations (fix commit 76ea4fd)
pnpm --dir ui exec vitest run packages/plugin-detail/src/renderers/__tests__/record-activity.test.tsx: Tests 27 passed (27).record-activity.tsx,commentsShownforcedtruethroughscripts/ablation-replace.mjs(anchor 1 to 0, blob moved): Tests 2 failed, 25 passed; the HotCRM-shape pin and the warn-once pin went red; restored, blob equal to HEAD,git diff HEADempty.RecordActivityTimeline.tsx, thecomments_onlyoption gate forced open: Tests 1 failed, 26 passed ("expected [ 'All Activity', …(3) ] to not include 'Comments Only'"); restored, blob equal to HEAD.src(relative imports), so nodistrebuild sits between a mutation and the run.Acceptance notes
lead_detailkeeps hiding its comments until the producer adds'comment'totypes(carried to hotcrm by the seat ruling); this PR removes the composer that posted into the void. The same page's comment sayingscheduledrows are dropped is stale (they map toeventnow), andtypes: ['task']hides those too.RecordDetailViewwas a one-off and is not committed.Verification
All local runs on the final head
879d3661unless named.pnpm --filter @object-ui/plugin-detail type-check(tsc --noEmit && tsc -p tsconfig.test.json): lock VERDICT command-exit 0.pnpm --dir ui exec vitest run --maxWorkers=2 packages/plugin-detail/: Test Files 379 passed, 1 skipped (380); Tests 3402 passed, 18 skipped (3420); lock VERDICT command-exit 0.node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack: 38 commands derived, each run, eachexit 0;--ranreconciliation: "38 derived famil(ies) accounted for — 38 run, 0 NOT-MEASURED". The record is in the project files asui-seat2/34371-gates-ran.txt.Generated by Claude Code