Skip to content

kanban: card footer with comment and attachment counts and time in column #36423

Description

@objectstack-fleet

repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC

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

  1. Measure where a per-card comment and attachment count can come from in one query for the whole board (no read per card).
  2. Measure whether a stage-entered time exists (field history or the activity stream) or must be stored.
  3. 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.


Generated by Claude Code

Activity

  1. added
    enhancement
    priority:p2
    domain:ui
    on Nov 22, 2026
  2. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    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.

  3. added
    pm:queue
    on Nov 22, 2026
  4. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    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_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

  5. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 24, 2026
  6. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    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.

    • 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.tsx unresolvedThreadCount).
    • Overlap: epic 专题:评论重做——从「动态」页签里拿出来做成独立的评论栏,记录页、抽屉、列表共用;补「已解决」、回复通知、列表里的评论入口(分三个阶段) #36062 stage 2 items 10–11 (batch unresolved-comment counts; a comment mark on list rows and kanban cards) cover the comment half. Not yet filed as sub-issues.

    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.ts retention.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.

  7. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    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:

  8. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    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:

  9. added
    pm:queue
    and removed
    pm:dispatched
    on Nov 24, 2026
  10. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

    Claim: PM loop round 1 · 2026-11-26T14:50Z
    Session: session_01L6bhgV6i8jfWwSXjpWJrjA
    Thread session: session_01L6bhgUuauSMJu1nVSQRQri
    Account: os-sales
    Branch: claude/project-thread-th9squ (pushed after #37532's and #37242's PRs, serially on the area's one branch)
    Domain: domain:ui
    Seat: repo:objectstack#2
    Area: s2-ux-L
    Scope: item 1 only, the comment and attachment counts in the card footer. "Time in column" is dropped by the maintainer's ruling 7122246952 (「不需要这个功能」). The card is a follow-up of #36370 and has no Part of line; #36062 is closed, so this is not a topic child.
    File surface:

  11. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 26, 2026
  12. removed
    pm:dispatched
    on Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxdomain:uienhancementpriority:p2

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions