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
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
…lane's cards with "Load more" (objectstack-ai#38178)

repo:objectstack#3 · os-tesla · session_01L9qibwxBy3QieJMqJbJtTk

<!-- claude-projects-attribution: {"github_login":"os-tesla"} -->
_Requested by **Tesla** · [project
thread](https://claude.ai/code/project/chan_01AXsQkLFKRdQCqQ3RTr6Jao?thread=cmsg_01AXsQkLFKRdQCqQ3RTr6JaoEynsd5XL1JYxPkwhkywADp)_

Fixes objectstack-ai#37517

Clause-②: no
Metadata-protocol: none

## 维护者速读
- 列表视图里按查找字段分道的看板,道头计数是整道的(比如 30),道里却只有第一页上的那几张卡(13 张),第一页之后的道和「未分类」道更是
0 张卡,没有任何办法看到其余记录;现在每个「已画卡数少于整道计数」的道底都有「加载更多」,就地读出该道后面的记录。
- 接在 objectstack-ai#37327(整道计数、补画越页分道)和 objectstack-ai#38112(越页「未分类」道)之后,补上这些道缺的加载入口。
-
只多一次按道读取,读法与列表那一页同源(同一筛选、排序、搜索),不改数据和配置;数据源不支持分组读、或分组读被拒绝或截断时不出现按钮,与现在一致,可以直接撤回。
- 无

## What changes
- `ui/packages/plugin-kanban/src/ObjectKanban.tsx`: `rawData` resolves
through the same ladder as before; `boardData` is `rawData` followed, on
the board handed one page, by the rows its lanes loaded past it, and the
cards, the lane pages and the drag handlers read it. On that board a
list view hands one page to, under the gate the lanes past the page
already take (`hostLaneRead && flatLanes && lanesFromData &&
laneTargetObject`, now named `pastPageLanes`) and only while the grouped
read answered counts, every lane whose cards on the board are fewer than
its count gets a lane page through the existing
`KanbanLanePagingContext`, so `KanbanImpl` draws its existing "Load
more". `loadMoreHostLane` reads `find(object, { $filter: view filter AND
lane value, $orderby, $expand (FLS-gated as the board's own query),
$search/$searchFields (the host's), $count: true, $skip: <lane's cards
on the board>, $top: 50 })`; the "Uncategorized" lane reads `laneField
is_null`. The rows are appended after the host's rows in `boardData`
(deduped by id), held under the question the host's page answers
(filter, sort, search, reload key, the page's ids), and dropped when it
changes. A read that answers no more records ends the lane's "Load
more". A self-paged board (`lanePaging`) keeps its own channel.
- `ui/packages/plugin-kanban/src/KanbanImpl.tsx` (one line): `hostCount`
is read beside a lane page too, so a lane none of whose records is on
the board still says "Cards not loaded: N" while it offers "Load more".
No behaviour change on a self-paged board: `laneCounts` is set only when
`hostLaneRead`, which requires that the host sent no `lanePaging`, and a
board pages its own lanes only when it did, so the two paths never meet
and a self-paged lane reads `null` there as before.
- `ui/packages/plugin-kanban/src/KanbanLanePaging.ts`: package-private
`emptyLaneQueryFilter` (the view's filter AND `laneField is_null`). Not
exported from the package entry.
- `patch` changeset for `@object-ui/plugin-kanban`.

## Tests

`ui/packages/app-shell/src/__tests__/listKanbanEveryRecord-12619.test.tsx`,
inside the objectstack-ai#37327 describe (the objectstack-ai#36871 rig: 70 deals, page 25; acc-a 30
with 13 on the page, acc-b 30 with 12, acc-c "Cyan Corp" 10 all past the
page):
- past-page lane: "Load more" offered while "Cards not loaded: 10" still
shows; one click draws its 10 cards in place, the button goes, the other
lanes keep their page's cards (35 in all); the read is `$skip: 0, $top:
50, $count: true`, `account = acc-c`, the host page's `$orderby`;
- first-page short lane: acc-a loads from `$skip: 13` to 30 distinct
cards; acc-b keeps its 12 and its button;
- dedupe: a source whose lane read starts two records early draws 30
distinct cards, not 32;
- under the view's filter (`amount > 9`): `$skip: 13`, filter carried,
25 cards;
- "Uncategorized" past the page: `account is_null`, 10 cards;
- reset: after a load, the toolbar Refresh drops the loaded cards and
the lane offers them again; a toolbar search does the same and the next
read carries `$search`;
- CONTROL: no grouped door, a refused read and a cut read offer no "Load
more" and send no lane read; a board laned by a text field offers none.

<details><summary>Readings (head e4d27cf, after merging origin/main
4f7aa88; the fix commits are ef889db and 1a8a066)</summary>

- Premise at 6ce1975, before the fix (probe on the same rig, kept in
the project at `/mnt/project-files/card-37517/`, not in this PR): `Cyan
Corp` badge 10, 0 cards, no `[data-kanban-load-more]`; acc-a 13 of 30
and acc-b 12 of 30 with no load entry either; one deal `find` in all.
- Ablations on the committed fix at 1a8a066 (same counts at ef889db)
through `scripts/ablation-replace.mjs`, each `vitest run
…listKanbanEveryRecord-12619.test.tsx -t 37327`, each restored to blob
== HEAD with `git diff HEAD` empty:
- channel `{ pages: hostLanePages, loadMore: loadMoreHostLane }` →
`null`: `Tests 7 failed | 22 passed`, the 7 new load pins, every control
green;
- `KanbanImpl` `hostCount` back to `pagedCount ? null :
wholeLaneCount(…)`: `Tests 5 failed | 24 passed`, the "Cards not loaded"
pins of objectstack-ai#37327 / objectstack-ai#37516 and the load pins that read it;
- id dedupe on the merged rows removed: `Tests 1 failed`, the dedupe
pin.
- At 1a8a066: `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 38 passed (38)`;
every other test file that reads `ObjectKanban.tsx`, `KanbanImpl.tsx` or
`KanbanLanePaging.ts` off disk (18 files outside the package, the
record-source ladder pin `object-kanban-record-source-7780.test.ts`
among them): `Tests 604 passed (604)`.
- CI on ef889db: `Test UI (1/16)` failed on that ladder pin, which
reads the `rawData` line verbatim; 1a8a066 keeps the line and moves the
appended rows to `boardData`. CI on 1a8a066: every check green.
- e4d27cf merges origin/main (18 commits behind; none touches
`plugin-kanban`, `plugin-list` or `core`): `plugin-kanban` type-check
exit 0; the rig file and the ladder pin `Tests 55 passed (55)`. CI on
e4d27cf: every check green (52 check runs, none failed).
- eslint on the four changed files: 0 errors.
- Derived local gates: see Acceptance notes.
</details>

## Acceptance notes
- Scope is the claim's: every lane on a lookup-laned list-view board
whose drawn cards are fewer than its whole count, the past-page lanes
and the objectstack-ai#38112 "Uncategorized" lane included. Boards laned by declared
options already page their lanes; text-field lanes are objectstack-ai#38120; swimlane
boards are objectstack-ai#37844.
- `$skip` = the lane's cards on the board is right because the list
hands its kanban the first page of the view's query (it pages only its
grid: `paginate` is `currentView === 'grid'`), so a lane's cards on it
are that lane's first records in the same order. The id dedupe covers
ties in that order.
- In the rig the source does not expand lookups, so once Cyan Corp's
cards load, the lane is titled by its key `acc-c`, as the page's lanes
are; under a backend that expands, both are titled by the account's
name.
- File surface: `KanbanImpl.tsx` was outside the claimed surface; the
seat agreed to the one-line change before the PR.
- 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 ef889db (1a8a066 changes only
`ObjectKanban.tsx`, so the derived set is the same): `dispatch-gates
--ran` reconciles 38 derived, 38 run, every one exit 0, 0 NOT MEASURED,
0 unrun. `check:type-check-debt` first exited 3 (prerequisite not met:
this worktree's install predated a workspace dependency of
`service-knowledge`); after `pnpm install --frozen-lockfile` it exited
0.

## Verification
Read first (by risk):
1. `ui/packages/plugin-kanban/src/ObjectKanban.tsx`: `hostLanePages`,
`loadMoreHostLane` and `lanePagingChannel` beside `keepUncolumned`;
`boardData` below `rawData`.
2. `ui/packages/plugin-kanban/src/KanbanImpl.tsx`: the `hostCount` line.
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
37327` shows 29 passing; set the `hostLanePages` arm of
`lanePagingChannel` in `ObjectKanban.tsx` to `null` and the 7 load pins
fail.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01L9qibwxBy3QieJMqJbJtTk

---------

Co-authored-by: Claude <noreply@anthropic.com>
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