You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
kanban: card footer with comment and attachment counts and time in column #36423
Follow-up from #36370 (PR #36411, kanban gets its own view settings). The card asked for a toggle for the card footer icons. The seat left it out of #36411 because nothing can fill it yet. Filed by the seat. Parent: #36370.
What happens
A kanban card has no footer that shows how many comments or attachments a record has, or how long it has been in its column. The data for it is not there: the board reads no per-card comment or attachment count, and no record carries a time it entered its current stage.
To do
Measure where a per-card comment and attachment count can come from in one query for the whole board (no read per card).
Measure whether a stage-entered time exists (field history or the activity stream) or must be stored.
Then add the footer and its view setting, as one change with its reader.
Acceptance
A board with the setting on shows the counts and the time in column on every card, from a single read for the board; with it off, nothing is read.
Grade
p2 · area:ux · domain:ui. A missing feature the card named, not a defect.
Triage: lands in domain:ui (kanban card) · pm:queue; rationale: area:ux · Feature · a kanban card footer showing comment and attachment counts and time in column → p2 as filed · size S.
Claim: PM loop round 1 (area ux-B), in two stages per the seat's route (2026-11-24 00:55Z, seat thread): stage 1 measures both items (the card's To-do 1 and 2) and returns readings and a build plan to the seat before item 2 is built; item 1 (comment and attachment counts) may be built in the same stage only if it separates cleanly from item 2, otherwise both wait for the readings
Session: session_01WGufzhoBbwh8URjwQHde8v
Account: os-support-ai
Branch: claude/issue-36423-kanban-card-footer
Worktree: objectstack-issue-36423
Domain: domain:ui
Seat: repo:objectstack#3
Area: ux-B
File surface: stage 1 is read-only measurement (no files). The build stage, declared now and re-declared with the readings: ui/packages/plugin-kanban/src/** (card footer, board read), the kanban view-settings UI in ui/packages/plugin-list/src/**, packages/spec/src/ui/view.zod.ts (KanbanConfig: the footer's view setting), the data read that serves per-board counts if one is needed (measured first), tests, changesets
Container & model: M, mode:subagent, model: default (dispatch-gates --tier at f46ce5b4a: "no path-derived mandate"), effort: high
Clause-②: yes
Metadata-protocol: added
Responsibility: n/a — not a defect card
Thread-read: 7078672233
Premise: holds
Serial constraints cleared: PR #36520's branch (this area, card #36520, in development) also edits ui/packages/plugin-kanban/src/ObjectKanban.tsx and packages/spec/src/ui/view.zod.ts (kanban summary). This card's build stage starts from main after #36520 lands, or runs overlap-check.mjs and queues behind it on a real overlap. PR #36811 (#36395) touches no file on this surface
Pre-claim lane: domain:ui card that also adds a kanban view setting to packages/spec/src/ui/view.zod.ts (KanbanConfig), so Clause-②: yes and Metadata-protocol: added are declared for the build stage. It stays in this lane under the lane-keep rule (seat's area order); the build PR owes an L2 contract review, run by L1-a. The dev re-measures both lines in the stage-1 readings
Pre-claim deps: parent #36370 closed; PR #36411 merged. No Blocked-by:
Prior rulings read: none on the card's thread besides triage 7078672233. Seat route 2026-11-24 00:55Z (seat thread): measure item 2 (time in column) and bring the readings before building it; item 1 may be built meanwhile as a separate Refs change if it separates cleanly. On f46ce5b, git grep finds no stage-entered time (stage_entered, stageEnteredAt, time_in_stage: 0 hits) and no board-wide comment or attachment count read. No conflict
Stage-1 readings · 2026-11-24T04:17Z · area ux-B (claim 7121750501). Read-only on origin/main f46ce5b, static source reads, no live probe; nothing written.
Item 1 — comment and attachment counts: buildable with no new backend.
Comments live in sys_comment (packages/plugins/plugin-audit/src/objects/sys-comment.object.ts): pair object_name + record_id, index on both; replies by parent_id, is_resolved. Attachments live in sys_attachment (packages/platform-objects/src/audit/sys-attachment.object.ts): parent_object + parent_id, only on objects with enable.files: true.
One grouped read per counted object over the board's loaded ids goes through the existing door (POST /data/:object/query → engine.aggregate, packages/metadata-protocol/src/protocol-data-crud.ts; UI DataSource.queryGroupHeaders). That is two reads (comments, attachments), not one: a literal "single read for the board" would need a new combined route, which is not recommended.
Reader permissions apply to the aggregate (per source): READ_OPS includes aggregate in plugin-audit/src/comment-access-hooks.ts and service-storage/src/attachment-access-hooks.ts.
No existing reader counts across many records. The record page counts unresolved threads for one record on the client (RecordDetailView.tsxunresolvedThreadCount).
Item 2 — time in column: no platform source exists.
No stage-entered column. sys_activity stamps changed_fields but is reaped after 14 days (sys-activity.object.tsretention.maxAge: '14d') and refuses grouping on changed_fields for readers with any withheld field. sys_audit_log holds JSON snapshots that cannot be SQL-grouped. HotCRM keeps an app-level stage_entry_date on crm_opportunity.
Options: (a) derive from sys_activity: exact only under 14 days, nothing for activities: false, refused for readers with withheld fields, S–M. (b) A platform stage_entered_at system column tied to the object's stageField (ADR-0085): engine stamp, read-only, approximate backfill, L, its own card, with an L2 review and likely an ADR note. (b′) A view key naming an author-maintained date field: cheap, but lets an author name a field nobody maintains. (c) Defer time in column out of this card.
Dev recommendation: (c) now, (b) as its own needs-decision card.
View setting. Precedent: showFieldLabels / hideEmptyFields in KanbanConfigSchema (#36411). Proposed shape: cardFooter: { comments?: boolean, attachments?: boolean } (an object, so a later time-in-column member is additive). Declarations for the build: Clause-②: yes (widening), Metadata-protocol: added, with a Skills-docs: line owed.
Overlap with #36520 (branch in development): no hand-written conflict on the planned item-1 hunks. The generated content/docs/references/ui/view.mdx and the strictness-ledger counts collide, which regeneration after merge resolves. Planned order: build item 1 from main after #36520 lands.
Size: item 1 M with item 2 deferred. Routing questions (item 2 route, comment-count meaning, acceptance wording) are with the seat.
Maintainer ruling · item 2 (time in column) · 2026-11-24T04:40Z
Asked on a decision card, with four options: defer it to a separate needs-decision card; a view key naming an author date field; a platform stage-entered timestamp; derive it from sys_activity. The options were reviewed independently first. The maintainer answered, verbatim: 「不需要这个功能」.
Ruling: item 2 (time in column) is dropped from this card. No follow-up card is filed for it. This card's acceptance is item 1 alone (the comment and attachment counts in the card footer), with the seat routes from ux-B's readings 7121884710:
Release · 2026-11-24T08:55Z · area ux-B: this card goes back to pm:queue, and the ux-B claim (7121750501) ends. Reason: maintainer priority ruling (2026-11-24T08:53Z, relayed by the seat): ux capacity goes to the Studio epic #36890 and area:ux p1 cards, and this card is p2. No code was written and no branch exists for it.
What the next holder inherits:
Stage-1 readings: comment 7121884710, read-only on f46ce5b4a. Comments live in sys_comment (object_name + record_id, indexed) and attachments in sys_attachment (parent_object + parent_id, only with enable.files). There is one grouped read per counted object through the existing door (POST /data/:object/query → engine.aggregate, UI queryGroupHeaders), and reader permissions apply (aggregate is in both access hooks' READ_OPS).
Item 2 (time in column) is dropped. Maintainer ruling 7122246952, verbatim 「不需要这个功能」. No follow-up.
Acceptance is "one grouped read per counted object over the loaded cards, never one per card".
The proposed view key is cardFooter: { comments?, attachments? } in KanbanConfigSchema, following the precedent of showFieldLabels / hideEmptyFields. It needs no time-in-column member unless L2 wants the object shape.
Activity
objectstack-fleet commentedon Nov 22, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in
domain:ui(kanban card) ·pm:queue; rationale: area:ux · Feature · a kanban card footer showing comment and attachment counts and time in column → p2 as filed · size S.feat(kanban): the board's own view settings, lane header create and m…
objectstack-fleet commentedon Nov 24, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzhoBbwh8URjwQHde8v
Claim: PM loop round 1 (area ux-B), in two stages per the seat's route (2026-11-24 00:55Z, seat thread): stage 1 measures both items (the card's To-do 1 and 2) and returns readings and a build plan to the seat before item 2 is built; item 1 (comment and attachment counts) may be built in the same stage only if it separates cleanly from item 2, otherwise both wait for the readings
Session:
session_01WGufzhoBbwh8URjwQHde8vAccount:
os-support-aiBranch:
claude/issue-36423-kanban-card-footerWorktree:
objectstack-issue-36423Domain:
domain:uiSeat:
repo:objectstack#3Area: ux-B
File surface: stage 1 is read-only measurement (no files). The build stage, declared now and re-declared with the readings:
ui/packages/plugin-kanban/src/**(card footer, board read), the kanban view-settings UI inui/packages/plugin-list/src/**,packages/spec/src/ui/view.zod.ts(KanbanConfig: the footer's view setting), the data read that serves per-board counts if one is needed (measured first), tests, changesetsContainer & model:
M,mode:subagent,model: default (dispatch-gates --tier at f46ce5b4a: "no path-derived mandate"),effort: highClause-②: yes
Metadata-protocol: added
Responsibility: n/a — not a defect card
Thread-read: 7078672233
Premise: holds
Serial constraints cleared: PR #36520's branch (this area, card #36520, in development) also edits
ui/packages/plugin-kanban/src/ObjectKanban.tsxandpackages/spec/src/ui/view.zod.ts(kanbansummary). This card's build stage starts from main after #36520 lands, or runsoverlap-check.mjsand queues behind it on a real overlap. PR #36811 (#36395) touches no file on this surfacePre-claim lane:
domain:uicard that also adds a kanban view setting topackages/spec/src/ui/view.zod.ts(KanbanConfig), soClause-②: yesandMetadata-protocol: addedare declared for the build stage. It stays in this lane under the lane-keep rule (seat's area order); the build PR owes an L2 contract review, run by L1-a. The dev re-measures both lines in the stage-1 readingsPre-claim deps: parent #36370 closed; PR #36411 merged. No
Blocked-by:Prior rulings read: none on the card's thread besides triage 7078672233. Seat route 2026-11-24 00:55Z (seat thread): measure item 2 (time in column) and bring the readings before building it; item 1 may be built meanwhile as a separate
Refschange if it separates cleanly. On f46ce5b, git grep finds no stage-entered time (stage_entered,stageEnteredAt,time_in_stage: 0 hits) and no board-wide comment or attachment count read. No conflictobjectstack-fleet commentedon Nov 24, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzhoBbwh8URjwQHde8v
Stage-1 readings · 2026-11-24T04:17Z · area ux-B (claim 7121750501). Read-only on origin/main f46ce5b, static source reads, no live probe; nothing written.
Item 1 — comment and attachment counts: buildable with no new backend.
sys_comment(packages/plugins/plugin-audit/src/objects/sys-comment.object.ts): pairobject_name+record_id, index on both; replies byparent_id,is_resolved. Attachments live insys_attachment(packages/platform-objects/src/audit/sys-attachment.object.ts):parent_object+parent_id, only on objects withenable.files: true.POST /data/:object/query→engine.aggregate,packages/metadata-protocol/src/protocol-data-crud.ts; UIDataSource.queryGroupHeaders). That is two reads (comments, attachments), not one: a literal "single read for the board" would need a new combined route, which is not recommended.READ_OPSincludesaggregateinplugin-audit/src/comment-access-hooks.tsandservice-storage/src/attachment-access-hooks.ts.RecordDetailView.tsxunresolvedThreadCount).Item 2 — time in column: no platform source exists.
sys_activitystampschanged_fieldsbut is reaped after 14 days (sys-activity.object.tsretention.maxAge: '14d') and refuses grouping onchanged_fieldsfor readers with any withheld field.sys_audit_logholds JSON snapshots that cannot be SQL-grouped. HotCRM keeps an app-levelstage_entry_dateoncrm_opportunity.sys_activity: exact only under 14 days, nothing foractivities: false, refused for readers with withheld fields, S–M. (b) A platformstage_entered_atsystem column tied to the object'sstageField(ADR-0085): engine stamp, read-only, approximate backfill, L, its own card, with an L2 review and likely an ADR note. (b′) A view key naming an author-maintained date field: cheap, but lets an author name a field nobody maintains. (c) Defer time in column out of this card.View setting. Precedent:
showFieldLabels/hideEmptyFieldsinKanbanConfigSchema(#36411). Proposed shape:cardFooter: { comments?: boolean, attachments?: boolean }(an object, so a later time-in-column member is additive). Declarations for the build:Clause-②: yes (widening),Metadata-protocol: added, with aSkills-docs:line owed.Overlap with #36520 (branch in development): no hand-written conflict on the planned item-1 hunks. The generated
content/docs/references/ui/view.mdxand the strictness-ledger counts collide, which regeneration after merge resolves. Planned order: build item 1 from main after #36520 lands.Size: item 1 M with item 2 deferred. Routing questions (item 2 route, comment-count meaning, acceptance wording) are with the seat.
objectstack-fleet commentedon Nov 24, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzi4PechTRCTBrfxV8W
Maintainer ruling · item 2 (time in column) · 2026-11-24T04:40Z
Asked on a decision card, with four options: defer it to a separate needs-decision card; a view key naming an author date field; a platform stage-entered timestamp; derive it from sys_activity. The options were reviewed independently first. The maintainer answered, verbatim: 「不需要这个功能」.
Ruling: item 2 (time in column) is dropped from this card. No follow-up card is filed for it. This card's acceptance is item 1 alone (the comment and attachment counts in the card footer), with the seat routes from ux-B's readings 7121884710:
cardFooter: { comments?, attachments? }, proposed) is judged by the contract L2.objectstack-fleet commentedon Nov 24, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzhoBbwh8URjwQHde8v
Release · 2026-11-24T08:55Z · area ux-B: this card goes back to
pm:queue, and the ux-B claim (7121750501) ends. Reason: maintainer priority ruling (2026-11-24T08:53Z, relayed by the seat): ux capacity goes to the Studio epic #36890 and area:ux p1 cards, and this card is p2. No code was written and no branch exists for it.What the next holder inherits:
f46ce5b4a. Comments live insys_comment(object_name+record_id, indexed) and attachments insys_attachment(parent_object+parent_id, only withenable.files). There is one grouped read per counted object through the existing door (POST /data/:object/query→engine.aggregate, UIqueryGroupHeaders), and reader permissions apply (aggregateis in both access hooks'READ_OPS).plugin-detail.cardFooter: { comments?, attachments? }inKanbanConfigSchema, following the precedent ofshowFieldLabels/hideEmptyFields. It needs no time-in-column member unless L2 wants the object shape.Clause-②: yes (widening),Metadata-protocol: added, an L2 contract review owed, and aSkills-docs:line naming skills: objectstack-ui list-views does not teach the new board settings (summary, showFieldLabels, hideEmptyFields) #36422 or a new card.Fixes #36423.KanbanImpl.tsxis also touched by 看板泳道按查找(lookup)字段分组时,泳道标题显示 "[object Object]" #36841 (in flight with ux-B), 看板泳道统计的字段选择器:最小值/最大值只列数字字段,没列日期字段(校验规则已允许) #36880 and 列表里的看板:泳道按查找字段或分组决定时只拿一页数据,泳道「合计」只加这一页,却没有「仅已加载」标记 #36871, so take them in that order.