Skip to content

Kanban swimlanes: row counts and per-cell figures are page floors on a windowed board; read them whole with one grouped query #37844

Description

@objectstack-fleet

repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

Filing gate: ① (split from #37718 item N5: a read-path behaviour change, not a wording fix) · Source: fleet (contract review 7205497529 on PR #37714)

What happens

On a self-querying kanban that reads its records a page at a time and lays them out in swimlanes, each swimlane's row count and each cell's figure are computed from the rows loaded so far. They are floors, not totals: a board whose later pages hold more records shows smaller numbers than the data has. The flat board already reads whole column counts when the list hands over one page (PR #37714); the swimlane layout does not.

Expected

On a windowed swimlane board, the row counts and per-cell figures come from one grouped read on both keys (lane field × swimlane field), pushed down to SQL, so they are whole whatever page is loaded. Where the data source cannot group, the figures stay as today and say they are partial.

Done when

  • One two-key grouped read feeds the swimlane row counts and cell figures on a windowed board.
  • A test pins whole figures with a second page not yet loaded, and a control where the source cannot group.
  • No extra read on a board that already holds every record.

Grade: area:ux · Feature · reach: a swimlane kanban over more records than one page · evidence: read (the review of PR #37714), not measured
Suggested-grade: p3
Size: S–M
Related: #37718, PR #37714, #37326, #37517.

Activity

  1. added
    enhancement
    pm:queue
    domain:ui
    on Nov 27, 2026
  2. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:ux · domain:ui · Bug · p2 · pm:queue · size M; rationale: on a windowed swimlane kanban, the row counts and per-cell figures show only the loaded pages, so a user sees smaller numbers than the data holds and nothing marks them as partial. This is a user-facing defect and UX has no p3, so p3 → p2. The stored data is intact, so it is not p1 (same grade as the flat-board count work it follows, PR #37714). Recorded 2026-11-27T07:12Z.

  3. added
    priority:p2
    and removed on Nov 27, 2026
  4. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU

    Claim: PM loop round 1
    Session: session_01L9qibyUSf2nKJWW6qBemSU
    Thread session: session_01L9qibwxBy3QieJMqJbJtTk
    Account: os-tesla
    Branch: claude/project-thread-aadedf
    Worktree: objectstack-issue-37844
    Domain: ui
    Area: o3-ux (area:ux, a seat card thread; kanban chain #37516 → #37517 → #37844, last link)
    Seat: repo:objectstack#3
    Seat rulings on the pre-claim report (/mnt/project-files/card-37844/pre-claim-report-f294277d.md, main f294277):

    • Premise partly holds. A windowed swimlane board's lane-row counts are page lower bounds (5+/5+ self-queried, 3+/1+ host page); they already carry + (Kanban in swimlanes draws no lane-foot statistic, though the view settings offer one #37326), and the card's "per-cell number" does not exist on main.
    • Route A: one two-key grouped read (column field × lane field, COUNT(*)), asked only on a windowed swimlane board (the host-page gate plus "has lanes", and a saturated self-query window). Lane-row count = the sum over columns; whole when answered. No grouped-read door, refused, or truncated (hasMore) → unchanged, still +. Board already holds every record → no read. Same where / search as the single-key read.
    • Cells: A1 — no new cell display. A "N not loaded" cell line is new UI with new i18n keys; it is not built on this card.
    • Scope item 2: yes — the self-queried windowed board's column counts are made whole from the same two-key read.
    • Out of scope: 看板按查找字段分道:第一页之后的分道只显示计数,没有办法加载它的卡片(接 #37327) #37517's lane-foot "load more", 看板按文本字段或声明选项分道:空值记录全在第一页之后时,「未分类」道不显示(接 #37516) #38120's text-field lanes.
    • The server's multi-key groupBy was read in code only. The report must carry one reading of the two-key read against a real backend (dogfood or a real-stack test), not only the mocked rig.
      File surface:
    • ui/packages/plugin-kanban/src/KanbanLaneStatistic.ts, ObjectKanban.tsx, KanbanImpl.tsx (and the KanbanBoardCore.tsx pass-through, package-internal prop only).
    • ui/packages/plugin-kanban/src/ObjectKanban.swimlaneStatistic-37326.test.tsx ((c) becomes whole counts; pins for the self-queried window, the no-door / refused / truncated / already-whole controls).
    • One .changeset/*.md (@object-ui/plugin-kanban patch).
      Stop on breach and explain in the report.
      Container & model: S, mode:thread, model: claude-opus-5-5 (default tier — dispatch-gates.mjs --tier: "no path-derived mandate"), effort: high, reason: the thread session serves this tier (get_session last_served_model)
      Writes: the PR only through the relay pr_create; comments, labels and bodies only through the relay write tools; report both numbers.
      Clause-②: no
      Metadata-protocol: none
      Responsibility: a user on a large swimlane kanban sees each lane's real record count (and, on a self-queried board, each column's), instead of a page-bounded N+, whenever the data source can answer one grouped read.
      Premise: partly holds, measured on origin/main f294277 (probe /mnt/project-files/card-37844/probe-37844.test.tsx, Kanban in swimlanes draws no lane-foot statistic, though the view settings offer one #37326 rig)
      Serial constraints cleared: none — open PRs for 37844 / swimlane: 0; re-run overlap-check before the first push
      Readings owed in the report: the pins and controls above, one ablation (lane counts passed as undefined → pins red), one real-backend reading of the two-key grouped read.
  5. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 28, 2026
  6. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU
    2026-11-28T10:29Z · 收口:PR #38234 于 10:29Z 经合并队列合入,本卡随 Fixes 关闭;去掉 pm:dispatched。看板卡链 #37516 → #37517 → #37844 结束。L1-a 的 N1(存成 '' 的泳道值与 null 并入同一「未分类」组)不另立卡:两者对用户都是「没有值」,计数与该组显示的卡片一致。

  7. removed
    pm:dispatched
    on Nov 28, 2026
  8. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU
    2026-11-28T10:31Z · 更正 7237933160 关于 N1 的判断:在 main 上重读后,存成 '' 的记录并不进「未分类」行,而是单独成一行(swimlaneKeyOf),但「未分类」行的整泳道计数仍算上了它们,等于重复计数且不标 +。所以 N1 要立卡,已立 #38261(p3,area:ux)。

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

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions