Skip to content

fix(kanban): a list view board laned by a lookup draws its Uncategorized lane when every empty-lookup record sits past the first page - #38112

Merged
objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/project-thread-aadedf
Nov 28, 2026
Merged

objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/project-thread-aadedf

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

repo:objectstack#3 · os-tesla · session_01L9qibwxBy3QieJMqJbJtTk

Requested by Tesla · project thread

Fixes #37516

Clause-②: yes (widening) — @object-ui/plugin-kanban bucketCardsIntoColumns (exported from the package entry) gains the optional sixth parameter keepUncolumned, default false
Metadata-protocol: none

维护者速读

  • 列表视图里按查找字段分道的看板,如果查找字段为空的记录全都排在第一页之后,以前看板上根本没有「未分类」这一道;现在这一道画在最后,带整道计数和「未加载的卡片」提示。
  • 接在「看板按查找字段分道时计数整道、补画第一页之后的分道」那一轮之后,替用查找字段分组看板的用户找回这部分记录的入口。
  • 只多画一道,不改任何数据和配置;数据源不支持分组读、或分组读被拒绝或截断时,照旧不画,可以直接撤回。
  • 无

What changes

  • ui/packages/plugin-kanban/src/index.tsx: bucketCardsIntoColumns takes an optional keepUncolumned (default false). When it is true the trailing KANBAN_UNCOLUMNED_ID lane is drawn even when no card of the page lands in it; the page's uncategorized cards, if any, still go into that one lane. Every other caller passes nothing and keeps today's behaviour.
  • ui/packages/plugin-kanban/src/KanbanBoardCore.tsx: a keepUncolumned prop, passed through to bucketCardsIntoColumns (a prop, not a schema key, for the reason laneCounts is one).
  • ui/packages/plugin-kanban/src/ObjectKanban.tsx: keepUncolumned is true under the gate the lanes past the page already take (hostLaneRead && flatLanes && lanesFromData && laneTargetObject) when the lane read counts records under KANBAN_UNCOLUMNED_ID (hostLaneCounts[KANBAN_UNCOLUMNED_ID] > 0). A partial (hasMore) or refused read answers no counts, so no lane is drawn from it. The extraLaneIds docblock now says how the empty group is drawn.
  • patch changeset for @object-ui/plugin-kanban.

Tests

Readings (fix head 3700f53, base origin/main f72f335; 916e7a8 changes only the changeset declaration)
  • Premise at 815e882, before the fix (probe on the same rig, kept at /mnt/project-files/card-37516/ in the project, not in this PR): the grouped read answered [{account:'acc-a',count:30},{account:'acc-b',count:30},{account:null,count:10}] and the board's lane groups were acc-a, acc-b only. Control (two null deals on the page): Uncategorized drawn, badge 12, 2 cards.
  • Ablation on the committed fix through scripts/ablation-replace.mjs: keepUncolumned={keepUncolumned} → keepUncolumned={false} in ObjectKanban.tsx; vitest run …listKanbanEveryRecord-12619.test.tsx -t Uncategorized: Tests 1 failed | 4 passed | 22 skipped (27), the failure being the new past-page pin, every control green. Restore: blob == HEAD, git diff HEAD empty.
  • At 3700f53 (after merging origin/main): pnpm --filter @object-ui/plugin-kanban type-check exit 0; pnpm --filter @object-ui/plugin-kanban test: Test Files 91 passed (91), Tests 614 passed (614); the rig file: Tests 27 passed (27).
  • Derived local gates: see Acceptance notes.

Acceptance notes

  • Scope is the card's: lookup-laned boards only, the gate List view kanban over a lookup lane: lane count and summarizeField total cover only the loaded page #37327 drew past-page lanes under. A board laned by a text field or by declared options has the same defect (records with an empty or unmatched lane value, all past the page, get no Uncategorized lane); per the claim, the seat files it.
  • The new Uncategorized lane past the page shows its whole count and "Cards not loaded", with no way to load its cards yet. That is 看板按查找字段分道:第一页之后的分道只显示计数,没有办法加载它的卡片(接 #37327) #37517 (a past-page lane offers no way to see its cards); its fix covers this lane too, whose read condition is "lane field is empty".
  • Local narrowing: @object-ui/app-shell's full suite is left to Test UI; only the rig file this PR edits was run locally.
  • Derived local gate set at 3700f53: dispatch-gates --ran reconciles 38 derived, 38 run, every one exit 0, 0 NOT MEASURED, 0 unrun. One earlier full run of pnpm --dir ui exec vitest run scripts/ timed out a single test (check-i18n-call-site-keys, 20 s on the shared box while a build ran beside it); that file passed alone (152/152) and the whole family passed on the final head.

Verification

Read first (by risk):

  1. ui/packages/plugin-kanban/src/ObjectKanban.tsx: the keepUncolumned gate beside extraLaneIds.
  2. ui/packages/plugin-kanban/src/index.tsx: the keepUncolumned arm at the end of bucketCardsIntoColumns.
  3. The new pins in listKanbanEveryRecord-12619.test.tsx.

Two-minute check: from ui/, pnpm exec vitest run packages/app-shell/src/__tests__/listKanbanEveryRecord-12619.test.tsx -t Uncategorized shows 5 passing; set keepUncolumned={false} in ObjectKanban.tsx and the past-page pin fails.


Generated by Claude Code

…read's count

A list view board laned by a lookup draws lanes past the page from the
grouped lane read, but the trailing Uncategorized lane was drawn only by
the cards it held, so it vanished when every record with an empty lookup
sat past the first page. bucketCardsIntoColumns takes keepUncolumned;
ObjectKanban sets it from the read's uncolumned count under the gate the
past-page lanes take.

Claude-Session: https://claude.ai/code/session_01L9qibwxBy3QieJMqJbJtTk
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 28, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1
2026-11-28T02:56Z

L1-a: REWORK at 3700f53df1f0c9598e53f4a565134371b4d3a651: one declaration fix. The code is right.

  • Declaration. bucketCardsIntoColumns is exported from ui/packages/plugin-kanban/src/index.tsx, the package's . entry (dist/index.d.ts), and this diff gives it a new optional sixth parameter, keepUncolumned. The Clause-② test is whether the change widens the accept set or the public surface (execution-duties.md). A new optional argument on a published export does, the same way the ToastHandler description member did on fix(runtime): a declarative update action answers the validation warnings its write raised, and the console toast shows them #38076. So both the PR body and the changeset should read Clause-②: yes (widening), naming the export, with Metadata-protocol: none kept. That declaration owes a TIER_DEFAULT contract review, which I will run in this thread on the fix head. KanbanBoardCoreProps.keepUncolumned is not public, because KanbanBoardCore is imported, not re-exported.
  • The code holds. keepUncolumned is gated exactly as the lanes past the page are: hostLaneRead && flatLanes && lanesFromData && laneTargetObject, and an Uncategorized count above 0. A partial or refused read answers hostLaneCounts null and draws nothing. Text-field and declared-option boards are untouched, as the changeset says. bucketCardsIntoColumns pushes one trailing lane with the page's uncategorized cards whether kept or not, and the bucket tests pin that, plus the no-card lane and a not-kept control. The ablation (keepUncolumned forced false) reds only the new pin.
  • Out of scope, and right to keep that way: the same defect class on text and declared-option boards (a new card), and the Uncategorized lane that won't open (看板按查找字段分道:第一页之后的分道只显示计数,没有办法加载它的卡片(接 #37327) #37517).
  • Face otherwise clean (l1-face.mjs, 13 items). CI at this head: 39 success, 13 skipped, 0 failed. SQL push-down: not applicable.

…ameter as a widening

bucketCardsIntoColumns is exported from the plugin-kanban entry, so its
new optional keepUncolumned parameter widens the public surface.

Claude-Session: https://claude.ai/code/session_01L9qibwxBy3QieJMqJbJtTk
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1
2026-11-28T03:18Z

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 916e7a838bcfb4e94c06641639817b87a83783dc
Local-runs: none

① Derived judgments

  • Face: declaration only. No packages/spec/src/** file and no governed path. The PR body and the changeset now carry Clause-②: yes (widening) · Metadata-protocol: none, so this review is owed at TIER_DEFAULT. The fix head changes only the changeset's declaration line against the reviewed 3700f53d; the code is byte-identical.
  • The widening is what the declaration names. bucketCardsIntoColumns, exported from @object-ui/plugin-kanban's . entry, gains an optional sixth parameter keepUncolumned = false. A caller that passes five arguments gets exactly the old behaviour: the trailing lane is pushed only when it holds a card, and the not-kept control pins that. Kept, it still pushes one trailing lane with the page's uncategorized cards, never two, which the bucket tests pin as well. KanbanBoardCoreProps.keepUncolumned is internal, because KanbanBoardCore is imported, not re-exported.
  • The host gate matches the lanes past the page: hostLaneRead && flatLanes && lanesFromData && laneTargetObject, and an Uncategorized count above 0. A partial or refused read answers hostLaneCounts null and draws nothing, so the lane can never appear from a count the board did not read. Text-field and declared-option boards are untouched, as the changeset says, and their twin defect is 看板按文本字段或声明选项分道:空值记录全在第一页之后时,「未分类」道不显示(接 #37516) #38120.
  • Card 看板按查找字段分道:空值记录全在第一页之后时,「未分类」道不显示(接 #37327) #37516: an "Uncategorized" lane whose records all sit past the first page is now drawn last, with its whole count and the "Cards not loaded" line. The list-kanban rig pins it, and the ablation (keepUncolumned forced false) reds only the new pin.

② Semver level

patch for @object-ui/plugin-kanban: one optional parameter with a default that keeps every existing call's result, so nothing is refused or narrowed. Metadata-protocol: none holds, because nothing an author writes changes.

③ Boundary flags

Implemented-by: claude/project-thread-aadedf
Reviewed-by: session_01L9qibwSEecrzDjKjbk24r1

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1
2026-11-28T03:18Z

L1-a: ACCEPT at 916e7a838bcfb4e94c06641639817b87a83783dc (after REWORK 7232700815)

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1
2026-11-28T03:52Z

Contract review

Served-tier: TIER_DEFAULT
Head-sha: c701eea51e67c54d34a9fbfc67a9c98c939a64ce
Local-runs: none

① Derived judgments

  • This is a merge-main head over the PASS head 916e7a83 (record 7232971792). The net diff against main is byte-identical: git diff 32dc5d8d c701eea5 and git diff f72f3353 916e7a83 give the same git patch-id --stable (61ed5770…), across 6 files, +119/−4.
  • Main changed nothing under ui/packages/plugin-kanban/src between the two bases. What it brought that touches this package is the Version Packages bump of plugin-kanban and spec (CHANGELOG and version only), so bucketCardsIntoColumns, KanbanBoardCore and ObjectKanban read as before. Every judgment of 7232971792 carries over as written: the keepUncolumned widening, the host gate, and the tests and ablation.
  • The changeset .changeset/37516-kanban-uncategorized-past-page.md is still unconsumed, with Clause-②: yes (widening) · Metadata-protocol: none.

② Semver level

patch for @object-ui/plugin-kanban, unchanged.

③ Boundary flags

Implemented-by: claude/project-thread-aadedf
Reviewed-by: session_01L9qibwSEecrzDjKjbk24r1

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1
2026-11-28T03:52Z

L1-a: ACCEPT at c701eea51e67c54d34a9fbfc67a9c98c939a64ce, the merge-main head after ACCEPT 7232982659 at 916e7a83

  • I measured the net diff against main: it is byte-identical, with the same patch-id across 6 files. Main changed nothing under plugin-kanban/src. This head's own TIER_DEFAULT record is above, PASS.
  • CI at this head: 39 success, 13 skipped, 0 failed. mergeable_state is clean.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU

Landing · 2026-11-28T03:53Z · zone o3-ux (seat card thread)
Head-sha: c701eea51e67c54d34a9fbfc67a9c98c939a64ce

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 28, 2026 03:54
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 28, 2026
Merged via the queue into main with commit 6ce1975 Nov 28, 2026
53 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-aadedf branch November 28, 2026 04:51
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 tests 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.

看板按查找字段分道:空值记录全在第一页之后时,「未分类」道不显示(接 #37327)

2 participants