Skip to content

fix(plugin-kanban): the swimlane lane statistic's changelog, jsdocs and pins say what it does - #37849

Merged
objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/project-thread-th9squ
Nov 27, 2026
Merged

objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/project-thread-th9squ

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

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

  • 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 (chore: version packages (next) #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

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 chore: version packages (next) #37661, which merges cleanly.

Clause-②: no
Metadata-protocol: none
Skills-docs: none

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic. (No spec change.)
  • 2. Every name I added uses the casing for its kind.
  • 3. No formatter ran; eslint on the changed files passes (the full pnpm lint runs in CI).
  • 4. One issue, one branch off an up-to-date main, one pull request.

Generated by Claude Code

🤖 Generated with Claude Code

https://claude.ai/code/session_01L6bhgUuauSMJu1nVSQRQri

…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>
@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 27, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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 .changeset row is M: git diff --name-status 1f97fce35b HEAD -- '.changeset/*.md' gives M .changeset/37326-swimlane-lane-statistic.md and no A row. It corrects #37714's pending release note, which is still unreleased on main. It releases nothing of its own: the KanbanImpl.tsx change is jsdoc only, and the rest is a test file. So no skip-changeset label is applied, and Check Changeset stays red by design.

The note: .changeset/37326-swimlane-lane-statistic.md (@object-ui/plugin-kanban, patch), written for #37326 by PR #37714.

What changed under it: only its last sentence (review nit N1 on #37714, card #37718).

  • Before: "A swimlane board does not add the lanes that exist only past the page, as the flat board does."
  • After: "A swimlane board does not add the lanes that exist only past the page, unlike the flat board, which adds them."

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

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

席位核对 — ACCEPT · head 3dd5944 · card #37718 · area s2-ux · 2026-11-27T08:06Z

L1 checklist

  • Shape and checks. l1-face.mjs --pr 37849 flags one item, all-checks: 38 success, 13 expected skips, and the one failure is Check Changeset, red by design on the DELIBERATE CORRECTION below. Lint & Repo Gates and the type check pass. Test UI 4/16 went red once on the known StudioRoute.metadataArea-28561 flake in the console, outside this diff, and passed on its one rerun.
  • No contract face. record-recognisers.mjs --brief-template on the file list exits 1 (ui/packages/plugin-kanban/** and .changeset/** only), so this record is the review of record at TIER_DEFAULT. check-governed-merges.mjs: not governed, 113 changed lines.
  • DELIBERATE CORRECTION of fix(plugin-kanban): a kanban drawn in swimlanes shows the lane statistic the view settings offer #37714's unreleased note, confirmed sentence by sentence. The diff changes release text, jsdoc comments and one test file, and adds no changeset (declared in 7212240436). The one note touched is .changeset/37326-swimlane-lane-statistic.md (@object-ui/plugin-kanban, patch), and only its last sentence:
    • Before: "A swimlane board does not add the lanes that exist only past the page, as the flat board does."
    • After: "A swimlane board does not add the lanes that exist only past the page, unlike the flat board, which adds them."
    • The seat confirms it: the after sentence is true of main (the !flatLanes gate on extraLaneIds) and is pinned by this PR's (h) case and its flat-board CONTROL. The note keeps its name, frontmatter and level, and is still pending.
  • The card, item by item.
    • N1: the sentence above.
    • N2: the laneCounts jsdoc now says both layouts and what decides +; the LaneFootStatistic jsdoc names the data-kanban-swimlane-foot row instead of a component that does not exist.
    • N3: the (h) pin. A swimlane board handed one page draws only the page's columns and asks no title read for a later lane; the flat board CONTROL draws the later lane titled by its account. The thread reports that removing the gate turns the swimlane case red while the CONTROL stays green.
    • N4: (g) avg, min and max, one case each, from the one grouped read. The fixture's group-header stub now computes min, max and avg instead of summing every non-count aggregate.
    • N5: moved to Kanban swimlanes: row counts and per-cell figures are page floors on a windowed board; read them whole with one grouped query #37844. Fixes #37718 is right.
  • Declarations. Clause-②: no, Metadata-protocol: none. Nothing ships but the corrected sentence.

Tier: S. Landing: queued with Check Changeset red as the DELIBERATE CORRECTION allows.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 27, 2026 08:06
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 27, 2026
Merged via the queue into main with commit 51cfa9a Nov 27, 2026
80 of 83 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-th9squ branch November 27, 2026 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/m tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

review follow-ups of PR #37714: swimlane kanban changelog line reads backwards; stale jsdocs; unpinned later-page gate and aggregates

2 participants