Skip to content

fix(kanban): a list view board laned by a lookup loads the rest of a lane's cards with "Load more" - #38178

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

objectstack-fleet[bot] merged 3 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 #37517

Clause-②: no
Metadata-protocol: none

维护者速读

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 #37327 describe (the #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.
Readings (head e4d27cf, after merging origin/main 4f7aa88; the fix commits are ef889db and 1a8a066)
  • 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:
  • 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.

Acceptance notes

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.ai/code/session_01L9qibwxBy3QieJMqJbJtTk

…lane's cards with "Load more"

A lane of the board a list view hands one page to drew the page's cards
under the grouped read's whole count, with no way to load the rest. Each
lane that draws fewer cards than the read counts now reads its next
records under the view's query, from right after its cards on the page.

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 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_01L9qibwxBy3QieJMqJbJtTk
os-dev-report

{
  "issue": 37517,
  "status": "done",
  "branch": "claude/project-thread-aadedf",
  "pr": "https://github.com/objectstack-ai/objectstack/pull/38178",
  "session": "session_01L9qibwxBy3QieJMqJbJtTk",
  "premise_still_valid": true,
  "summary": "Route A per claim 7234359888. On the board a list view hands one page to, under the past-page gate (hostLaneRead && flatLanes && lanesFromData && laneTargetObject, now pastPageLanes) and only while the grouped read answered counts, every lane whose cards on the board are fewer than its whole count gets a KanbanLanePage through the existing KanbanLanePagingContext, so KanbanImpl draws its existing Load more. loadMoreHostLane reads find(object, {$filter: view filter AND lane value (is_null for Uncategorized, new package-private emptyLaneQueryFilter), $orderby, FLS-gated $expand, host $search/$searchFields, $count: true, $skip: lane cards on the board, $top: 50}); rows are appended to the host rows deduped by id, held under the host page question (filter, sort, search, reload key, page ids) and dropped when it changes; a read answering no more ends the lane's Load more. KanbanImpl one line (seat-approved surface breach): hostCount read beside a lane page so 'Cards not loaded: N' stays; self-paged boards unaffected (laneCounts only set when hostLaneRead, which excludes lanePaging). Patch changeset @object-ui/plugin-kanban, Clause-② no, Metadata-protocol none.",
  "tests": "Premise at 6ce1975f (probe /mnt/project-files/card-37517/, #36871 rig): Cyan Corp badge 10, 0 cards, no load entry; acc-a 13/30, acc-b 12/30 no entry; one deal find. New pins in listKanbanEveryRecord-12619.test.tsx (#37327 describe): past-page lane loads 10 in place ($skip 0, $top 50, $count, account=acc-c, host $orderby), Cards not loaded shown while offered; acc-a loads from $skip 13 to 30 distinct; dedupe (read starts 2 early) 30 not 32; view filter carried; Uncategorized is_null 10 cards; Refresh and toolbar search reset loaded cards, next read carries $search; controls no door / refuse / cut / text-field lanes offer none. Ablations via ablation-replace.mjs, each restored blob == HEAD, git diff HEAD empty: channel arm -> null: 7 failed | 22 passed; KanbanImpl hostCount reverted: 5 failed | 24 passed; merged-row dedupe removed: 1 failed (the dedupe pin). At ef889db6: plugin-kanban type-check exit 0; plugin-kanban test 91 files / 614 tests passed; rig file 38 passed; eslint on 4 changed files 0 errors.",
  "gates": "dispatch-gates --ran at ef889db6: 38 derived, 38 run, every one exit 0, 0 NOT MEASURED, 0 unrun (record /mnt/project-files/card-37517/gates-ran-ef889db6.txt). check:type-check-debt first exited 3 (worktree install predated service-knowledge's @objectstack/types dependency); after pnpm install --frozen-lockfile it exited 0. Local narrowing: app-shell's full suite left to Test UI. PR CI: in progress at report time.",
  "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
  "mcp_calls": "0 GitHub MCP calls",
  "api_writes": "2 — fleet-write relay pr_create (POST pulls + assignees leg, read-back 7522 bytes identical, assignee os-tesla); this os-dev-report comment via post-stamped",
  "open_questions": [],
  "security_findings": "none",
  "out_of_scope_findings": [
    "class: a · reach: a list-view kanban laned by a text field (no options, not a reference): lane headers read the whole count (30) while drawing the page's cards (13) and offer no Load more · evidence: hostLanePages sits under pastPageLanes, which requires laneTargetObject; the text-field control pin in this PR shows it · carrier: seat (same family as #38120) · dedupe words: kanban text field lane load more whole count page cards"
  ]
}

… rows through boardData

The on-disk pin of the ladder (object-kanban-record-source-7780) reads
the rawData line verbatim. rawData resolves as before; the rows a lane
loaded past the host's page are appended in boardData, which the cards,
the lane pages and the drag handlers read.

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-28T06:58Z

L1-a: ACCEPT at e4d27cf9191b90c2d0451b5497ddb71e58ac57aa, the merge-main head of 1a8a0662

  • Face: L1 only. The diff is @object-ui/plugin-kanban source, a test, and a patch changeset. It declares Clause-②: no and Metadata-protocol: none. emptyLaneQueryFilter is a new module-level export of KanbanLanePaging.ts, internal to the package, so it is not a published surface.
  • The design holds as read.
    • "Load more" is offered only under the gate that already draws the past-page lanes (pastPageLanes), and only when the grouped read answered counts. A partial or refused read offers nothing, as before.
    • A lane's next read uses the host page's question: the view filter AND the lane value (is_null for Uncategorized), the view sort, the host search, the FLS-gated $expand, $count, $skip = the lane's cards on the board, and $top 50.
    • Rows are appended after the host's rows, deduped by id. They are dropped whenever the host's question changes, including a new page of ids. A late answer to an older question is discarded.
    • A read that answers no more marks the lane done, so a drifted count cannot loop.
    • boardData replaces rawData at every reader that must see the loaded cards: the card projection, the move's prior value, and the move predicate's record. rawData itself stays the host's rows, which is what the object-kanban-record-source-7780 pin reads.
    • In KanbanImpl, hostCount is now read beside a lane page. The precedence is still pagedCount ?? hostCount, and laneCounts is set only on a host-paged board.
  • Tests. The pins cover a past-page lane and the Uncategorized lane, each still showing its "Cards not loaded" count after a page. The three ablations went red and were restored (report 7234863342).
  • Card scope. Fixes #37517 delivers the lookup-laned card. Text-field lanes lacking "Load more" are out of scope and folded into 看板按文本字段或声明选项分道:空值记录全在第一页之后时,「未分类」道不显示(接 #37516) #38120.
  • Nit (follow-up). $skip assumes the host page is the lane's prefix in view order. A view sort with ties and no tiebreaker could let a record fall between the host page and the lane's next page. Dedupe catches doubles, not gaps. The same holds for the board's own paged lanes today.
  • CI at this head: 15 skipped 41 success (all finished, 0 failed).

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU

Landing · 2026-11-28T07:00Z · zone o3-ux (seat card thread)
Head-sha: e4d27cf9191b90c2d0451b5497ddb71e58ac57aa

  • L1 ACCEPT 7235645151 at this head (L1-a). L1 only: Clause-② no, Metadata-protocol none, package-private change.
  • Claim 7234359888, amended 7234396659 (one line in KanbanImpl.tsx: hostCount reads laneCounts beside a lane page). Report 7234863342.
  • check-governed-merges.mjs --pr 38178: NOT governed, +372 / −16.
  • K: 2 < 15, counted by hand.
  • Checks at this head: 41 success, 15 skipped, 0 failed. mergeable_state clean.
  • Carried: the text-field lane twin is on 看板按文本字段或声明选项分道:空值记录全在第一页之后时,「未分类」道不显示(接 #37516) #38120 (Blocked-by this PR). L1-a nit, a follow-up: $skip assumes the host page is the head of the lane in view order; a view sort with ties and no tiebreaker can let a record fall between the host page and the lane's next page.
  • Action: ready for review and auto-merge (queue).

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 28, 2026 07:00
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 28, 2026
Merged via the queue into main with commit f294277 Nov 28, 2026
57 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-aadedf branch November 28, 2026 08:33
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.

看板按查找字段分道:第一页之后的分道只显示计数,没有办法加载它的卡片(接 #37327)

2 participants