Repository navigation
fix(kanban): a list view board laned by a lookup loads the rest of a lane's cards with "Load more" - #38178
Merged
Conversation
…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>
Contributor
Author
|
repo:objectstack#3 · os-tesla · session_01L9qibwxBy3QieJMqJbJtTk {
"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>
Contributor
Author
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 L1-a: ACCEPT at
|
Contributor
Author
|
repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU Landing · 2026-11-28T07:00Z · zone
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:rawDataresolves through the same ladder as before;boardDataisrawDatafollowed, 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 namedpastPageLanes) 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 existingKanbanLanePagingContext, soKanbanImpldraws its existing "Load more".loadMoreHostLanereadsfind(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 readslaneField is_null. The rows are appended after the host's rows inboardData(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):hostCountis 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:laneCountsis set only whenhostLaneRead, which requires that the host sent nolanePaging, and a board pages its own lanes only when it did, so the two paths never meet and a self-paged lane readsnullthere as before.ui/packages/plugin-kanban/src/KanbanLanePaging.ts: package-privateemptyLaneQueryFilter(the view's filter ANDlaneField is_null). Not exported from the package entry.patchchangeset 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):$skip: 0, $top: 50, $count: true,account = acc-c, the host page's$orderby;$skip: 13to 30 distinct cards; acc-b keeps its 12 and its button;amount > 9):$skip: 13, filter carried, 25 cards;account is_null, 10 cards;$search;Readings (head e4d27cf, after merging origin/main 4f7aa88; the fix commits are ef889db and 1a8a066)
/mnt/project-files/card-37517/, not in this PR):Cyan Corpbadge 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 dealfindin all.scripts/ablation-replace.mjs, eachvitest run …listKanbanEveryRecord-12619.test.tsx -t 37327, each restored to blob == HEAD withgit diff HEADempty:{ pages: hostLanePages, loadMore: loadMoreHostLane }→null:Tests 7 failed | 22 passed, the 7 new load pins, every control green;KanbanImplhostCountback topagedCount ? null : wholeLaneCount(…):Tests 5 failed | 24 passed, the "Cards not loaded" pins of List view kanban over a lookup lane: lane count and summarizeField total cover only the loaded page #37327 / 看板按查找字段分道:空值记录全在第一页之后时,「未分类」道不显示(接 #37327) #37516 and the load pins that read it;Tests 1 failed, the dedupe pin.pnpm --filter @object-ui/plugin-kanban type-checkexit 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 readsObjectKanban.tsx,KanbanImpl.tsxorKanbanLanePaging.tsoff disk (18 files outside the package, the record-source ladder pinobject-kanban-record-source-7780.test.tsamong them):Tests 604 passed (604).Test UI (1/16)failed on that ladder pin, which reads therawDataline verbatim; 1a8a066 keeps the line and moves the appended rows toboardData. CI on 1a8a066: every check green.plugin-kanban,plugin-listorcore):plugin-kanbantype-check exit 0; the rig file and the ladder pinTests 55 passed (55). CI on e4d27cf: every check green (52 check runs, none failed).Acceptance notes
$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:paginateiscurrentView === '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.acc-c, as the page's lanes are; under a backend that expands, both are titled by the account's name.KanbanImpl.tsxwas outside the claimed surface; the seat agreed to the one-line change before the PR.@object-ui/app-shell's full suite is left toTest UI; only the rig file this PR edits was run locally.ObjectKanban.tsx, so the derived set is the same):dispatch-gates --ranreconciles 38 derived, 38 run, every one exit 0, 0 NOT MEASURED, 0 unrun.check:type-check-debtfirst exited 3 (prerequisite not met: this worktree's install predated a workspace dependency ofservice-knowledge); afterpnpm install --frozen-lockfileit exited 0.Verification
Read first (by risk):
ui/packages/plugin-kanban/src/ObjectKanban.tsx:hostLanePages,loadMoreHostLaneandlanePagingChannelbesidekeepUncolumned;boardDatabelowrawData.ui/packages/plugin-kanban/src/KanbanImpl.tsx: thehostCountline.listKanbanEveryRecord-12619.test.tsx.Two-minute check: from
ui/,pnpm exec vitest run packages/app-shell/src/__tests__/listKanbanEveryRecord-12619.test.tsx -t 37327shows 29 passing; set thehostLanePagesarm oflanePagingChannelinObjectKanban.tsxtonulland the 7 load pins fail.🤖 Generated with Claude Code
https://claude.ai/code/session_01L9qibwxBy3QieJMqJbJtTk