Repository navigation
fix(plugin-kanban): a kanban drawn in swimlanes shows the lane statistic the view settings offer - #37714
Conversation
…tic the view settings offer The swimlane layout drew no lane foot, and ObjectKanban asked the grouped lane read only on a flat board, so a picked `kanban.summary` was blank on every swimlane board. The board now asks the same one read (grouped by the column field) and draws the statistic once per column in a foot row under every swimlane, on the board's one horizontal axis. On a board handed one page with its query, the swimlane column counts and header totals read the whole lane from that read, marked `+` while it is pending or refused; a swimlane row's own count is marked `+` unless the page holds every record of the query. Lanes past the page stay flat-only. Claude-Session: https://claude.ai/code/session_01L6bhgU7eeqHgQrtv5CeJK6 Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#2 · os-sales · session_01L6bhgU7eeqHgQrtv5CeJK6 Final head for L1:
Generated by Claude Code |
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA Contract reviewServed-tier: First round, declaration face. Inputs: card #37326 (body and all 5 comments, including the scope widening 7188972467 and the claim 7204712217), this PR's body, its 4-file list and the net diff against ① Derived judgmentsThe diff changes no accept set. It touches nothing in
② Semver level
Clause-②: ③ Boundary flags
Findings, all
Implemented-by: VERDICT: PASS |
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA 席位核对 — ACCEPT · head 7107c85 · card #37326 · area s2-ux-P · 2026-11-26T23:25ZL1 checklist
Tier: S. Landing: ready + auto-merge by this stroke. |
…nd pins say what it does (objectstack-ai#37849) <!-- claude-projects-attribution: {"github_login":"os-sales"} --> _Requested by **Sales** · [project thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4UuDJAbBe3iTrFcF7GZrucZ32)_ Fixes objectstack-ai#37718 These are the review nits N1–N4 left by PR objectstack-ai#37714, the swimlane lane statistic. N5 moves to objectstack-ai#37844 and is not in this PR. ## Premise, measured on `main` - **N1.** `.changeset/37326-swimlane-lane-statistic.md` is still unreleased on `main`. Its last sentence reads "A swimlane board does not add the lanes that exist only past the page, as the flat board does." That can read as if the flat board also does not add them. - **N2.** `KanbanImpl.tsx` has two stale jsdocs: - `KanbanBoardProps.laneCounts` says "Drawn on the flat layout only". The swimlane layout reads it in `swimlaneColumnCount` and `swimlaneCountIsWhole`. - The `LaneFootStatistic` jsdoc names `SwimlaneFootRow`, which is defined nowhere. - **N3.** Nothing pins the `!flatLanes` gate on `extraLaneIds` in `ObjectKanban.tsx`. - **N4.** The 37326 test pins `sum` and `count` only. ## What changes - **Changeset (N1):** the sentence now ends "unlike the flat board, which adds them". The open release PR (objectstack-ai#37661) carries the old sentence. It picks up the new one when it regenerates. - **`KanbanImpl.tsx`, jsdoc only (N2):** - `laneCounts` is drawn on both layouts: the flat lane header, and a swimlane board's column title row and foot. There it is the column's count across every swimlane. A swimlane row's own count stays the cards drawn, and only takes its `+` from `laneCounts`. - `LaneFootStatistic` now names the swimlane layout's `data-kanban-swimlane-foot` row. - **`ObjectKanban.swimlaneStatistic-37326.test.tsx`:** - **(g), N4:** `avg`, `min` and `max` at the swimlane foot, one case each. Each is read from the one grouped read, grouped by the column field alone: avg `9.5`/`1.5`, min `0`/`0`, max `19`/`3`. The test's grouped-read stub now computes those three functions too. - **(h), N3:** a board laned by a lookup field, handed one page with its query, where one account's deals all sit past the page. - In swimlanes it draws the page's two columns only and asks no title read for the later lane. - **CONTROL:** the flat board draws that lane, titled by its account, after an `id IN ('a3')` read. - With the `!flatLanes` term removed, the swimlane case goes red and the CONTROL stays green. ## Decisions made here - **N3 pinned here, not with objectstack-ai#37517.** The pin sits next to the swimlane foot tests it guards and needs no other change. objectstack-ai#37517 can extend it. - **No new changeset.** No shipped behaviour changes. The one changeset edit is N1. ## Verification - `vitest` over all of `@object-ui/plugin-kanban`: 91 files, 609 passed. The 37326 file alone: 11 passed, 1 red with the gate removed, as above. - `tsc -p tsconfig.test.json` for plugin-kanban: clean. - `overlap-check`: exit 0. It shares the changeset with release PR objectstack-ai#37661, which merges cleanly. Clause-②: no Metadata-protocol: none Skills-docs: none ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. (No spec change.) - [x] 2. Every name I added uses the casing for its kind. - [x] 3. No formatter ran; `eslint` on the changed files passes (the full `pnpm lint` runs in CI). - [x] 4. One issue, one branch off an up-to-date `main`, one pull request. --- _Generated by [Claude Code](https://claude.ai/code/session_01L6bhgUuauSMJu1nVSQRQri)_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01L6bhgUuauSMJu1nVSQRQri <!-- signed: repo:objectstack#2 · os-sales · session_01L6bhgUuauSMJu1nVSQRQri --> Co-authored-by: Claude <noreply@anthropic.com>
Requested by Sales · project thread
Fixes #37326
What changes
KanbanImpl.tsx, the swimlane layout.kanban.summary) once per column, in a foot row (data-kanban-swimlane-foot) under every swimlane. The figure comes from the sameLaneFootStatisticthe flat board uses, read for the column's whole lane.adoptSwimlaneScroll,data-swimlane-scroll-row). It takes each cell's width fromlaneBox, so a figure sits under its column. A collapsed column draws an empty cell.swimlaneColumnCount. That is the whole-lane count fromlaneCountswhere the host hands it (wholeLaneCount), else the cards drawn, marked over a windowed fetch as before.LaneTotalnow gets thelaneId, so a header total reads the whole lane's figure where one exists.+unlessswimlaneCountIsWholeholds.ObjectKanban.tsx.flatLanesgate moves off the question and offhostLaneRead.extraLaneIds) stay flat-only.@object-ui/plugin-kanbanpatch).Why
The view settings offer count, sum, avg, min and max on every kanban. A board drawn in swimlanes rendered no lane foot, and it asked no lane read, so a picked statistic was blank there with no explanation.
The card's scope widening (7188972467) adds the rows-handed board: its swimlane column counts read the page, unmarked.
Verification
ObjectKanban.swimlaneStatistic-37326.test.tsxhas 6 tests on a swimlane board, withswimlaneField: 'region'over 24 deals:190and6in one foot row, with no per-cell figure. It makes one read,{ groupBy: ['stage'], aggregations: [sum] }.countstatistic draws20and4.20and4from the read, the foot reads190and6, and the swimlane rows read3+and1+. The board reads nothing else.+, and no figure is drawn.KanbanImpl.tsxandObjectKanban.tsxreverted tomain, (a), (b), (c) and (e) fail, and the controls (d) and (f) pass.vitest runonui/packages/plugin-kanban, plusListView.kanbanOwnsLanes-12619andapp-shelllistKanbanEveryRecord-12619: 92 files, 633 passed.tsc --noEmit -p packages/plugin-kanban/tsconfig.jsonpasses.eslinton the changed files reports 0 errors; the warnings are the files' existingany.overlap-checkis clean againstorigin/main. feat(kanban): card footer with open comment threads and attachments (#36423) #37667 shares both files and merges cleanly.Small decisions
+.extraLaneIds). Such a lane would be an empty column in every swimlane. The flat board keeps them.Clause-②: no
Metadata-protocol: none
Owed
Human Minimum
packages/specholds no runtime logic. (not touched)pnpm lintpasses on the changed files.main, one pull request.packages/spectouched: its generated artifacts are regenerated and committed. (not touched)content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.🤖 Generated with Claude Code
https://claude.ai/code/session_01L6bhgU7eeqHgQrtv5CeJK6
Generated by Claude Code