Repository navigation
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
Conversation
…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>
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 L1-a: REWORK at
|
…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>
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 Contract reviewServed-tier: ① Derived judgments
② Semver levelpatch for ③ Boundary flags
Implemented-by: VERDICT: PASS |
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 L1-a: ACCEPT at
|
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 Contract reviewServed-tier: ① Derived judgments
② Semver levelpatch for ③ Boundary flags
Implemented-by: VERDICT: PASS |
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 L1-a: ACCEPT at
|
|
repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU Landing · 2026-11-28T03:53Z · zone
|
repo:objectstack#3 · os-tesla · session_01L9qibwxBy3QieJMqJbJtTk
Requested by Tesla · project thread
Fixes #37516
Clause-②: yes (widening) —
@object-ui/plugin-kanbanbucketCardsIntoColumns(exported from the package entry) gains the optional sixth parameterkeepUncolumned, defaultfalseMetadata-protocol: none
维护者速读
What changes
ui/packages/plugin-kanban/src/index.tsx:bucketCardsIntoColumnstakes an optionalkeepUncolumned(defaultfalse). When it is true the trailingKANBAN_UNCOLUMNED_IDlane 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: akeepUncolumnedprop, passed through tobucketCardsIntoColumns(a prop, not a schema key, for the reasonlaneCountsis one).ui/packages/plugin-kanban/src/ObjectKanban.tsx:keepUncolumnedis true under the gate the lanes past the page already take (hostLaneRead && flatLanes && lanesFromData && laneTargetObject) when the lane read counts records underKANBAN_UNCOLUMNED_ID(hostLaneCounts[KANBAN_UNCOLUMNED_ID] > 0). A partial (hasMore) or refused read answers no counts, so no lane is drawn from it. TheextraLaneIdsdocblock now says how the empty group is drawn.patchchangeset for@object-ui/plugin-kanban.Tests
ui/packages/app-shell/src/__tests__/listKanbanEveryRecord-12619.test.tsx, inside the List view kanban over a lookup lane: lane count and summarizeField total cover only the loaded page #37327 describe (the 列表里的看板:泳道按查找字段或分组决定时只拿一页数据,泳道「合计」只加这一页,却没有「仅已加载」标记 #36871 rig), deals 60–69 with a null account, all past the first page of 25:Uncategorizedlast (afteracc-a,acc-b), badge10, zero cards, andCards not loaded: 10;Uncategorizedis drawn once as before, badge12, its 2 cards;Uncategorizedlane (the page counts read13+).ui/packages/plugin-kanban/src/index.bucket.test.ts, new describe: kept with no uncategorized card ⇒ an empty trailing lane titled as passed; kept with one ⇒ one lane holding it; not kept ⇒ no lane.Readings (fix head 3700f53, base origin/main f72f335; 916e7a8 changes only the changeset declaration)
/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 wereacc-a,acc-bonly. Control (two null deals on the page):Uncategorizeddrawn, badge 12, 2 cards.scripts/ablation-replace.mjs:keepUncolumned={keepUncolumned}→keepUncolumned={false}inObjectKanban.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 HEADempty.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 27 passed (27).Acceptance notes
Uncategorizedlane); per the claim, the seat files it.Uncategorizedlane 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".@object-ui/app-shell's full suite is left toTest UI; only the rig file this PR edits was run locally.dispatch-gates --ranreconciles 38 derived, 38 run, every one exit 0, 0 NOT MEASURED, 0 unrun. One earlier full run ofpnpm --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):
ui/packages/plugin-kanban/src/ObjectKanban.tsx: thekeepUncolumnedgate besideextraLaneIds.ui/packages/plugin-kanban/src/index.tsx: thekeepUncolumnedarm at the end ofbucketCardsIntoColumns.listKanbanEveryRecord-12619.test.tsx.Two-minute check: from
ui/,pnpm exec vitest run packages/app-shell/src/__tests__/listKanbanEveryRecord-12619.test.tsx -t Uncategorizedshows 5 passing; setkeepUncolumned={false}inObjectKanban.tsxand the past-page pin fails.Generated by Claude Code