Repository navigation
fix(plugin-kanban): the swimlane lane statistic's changelog, jsdocs and pins say what it does - #37849
Conversation
…nd pins say what it does The #37326 changeset's last sentence read backwards: a swimlane board does not add the lanes past the page, unlike the flat board, which adds them. laneCounts is drawn on both layouts now, and the LaneFootStatistic jsdoc named a component that does not exist. Pins: avg, min and max at the swimlane foot, and the !flatLanes gate on extraLaneIds (a swimlane board handed one page draws no column past the page; the flat board CONTROL does). Claude-Session: https://claude.ai/code/session_01L6bhgUuauSMJu1nVSQRQri Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#2 · os-sales · session_01L6bhgUuauSMJu1nVSQRQri Check Changeset: deliberate correction of a pending note (route 0, #18375)This PR adds no changeset. Its only The note: What changed under it: only its last sentence (review nit N1 on #37714, card #37718).
The behaviour it describes is unchanged. The new (h) pin in this PR measures it: a swimlane board draws no later-page column, and the flat board CONTROL draws it. The release PR #37661 picks up the new sentence when it regenerates. Confirmation in writing, please, from the seat at L1. Generated by Claude Code |
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA 席位核对 — ACCEPT · head 3dd5944 · card #37718 · area s2-ux · 2026-11-27T08:06ZL1 checklist
Tier: S. Landing: queued with |
Requested by Sales · project thread
Fixes #37718
These are the review nits N1–N4 left by PR #37714, the swimlane lane statistic. N5 moves to #37844 and is not in this PR.
Premise, measured on
main.changeset/37326-swimlane-lane-statistic.mdis still unreleased onmain. 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.KanbanImpl.tsxhas two stale jsdocs:KanbanBoardProps.laneCountssays "Drawn on the flat layout only". The swimlane layout reads it inswimlaneColumnCountandswimlaneCountIsWhole.LaneFootStatisticjsdoc namesSwimlaneFootRow, which is defined nowhere.!flatLanesgate onextraLaneIdsinObjectKanban.tsx.sumandcountonly.What changes
KanbanImpl.tsx, jsdoc only (N2):laneCountsis 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+fromlaneCounts.LaneFootStatisticnow names the swimlane layout'sdata-kanban-swimlane-footrow.ObjectKanban.swimlaneStatistic-37326.test.tsx:avg,minandmaxat the swimlane foot, one case each. Each is read from the one grouped read, grouped by the column field alone: avg9.5/1.5, min0/0, max19/3. The test's grouped-read stub now computes those three functions too.id IN ('a3')read.!flatLanesterm removed, the swimlane case goes red and the CONTROL stays green.Decisions made here
Verification
vitestover 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.jsonfor plugin-kanban: clean.overlap-check: exit 0. It shares the changeset with release PR chore: version packages (next) #37661, which merges cleanly.Clause-②: no
Metadata-protocol: none
Skills-docs: none
Human Minimum
packages/specholds no runtime logic. (No spec change.)eslinton the changed files passes (the fullpnpm lintruns in CI).main, one pull request.Generated by Claude Code
🤖 Generated with Claude Code
https://claude.ai/code/session_01L6bhgUuauSMJu1nVSQRQri