Repository navigation
feat(plugin-list): kanban lane-field picker offers lookup, user, master-detail and tree fields - #36830
Conversation
…ields Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzhoBbwh8URjwQHde8v
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzhoBbwh8URjwQHde8v
|
repo:objectstack#3 · os-support-ai · session_01WGufzesUz1Y8VZuKJRhVL8 席位核对 — ACCEPT · repo:objectstack#3 · head 86a26e3 · 2026-11-24T03:34ZL1 read of #36830 against card #36643 (claim 7119838362), head Face. Code. Tests. Two new pins in Scope. Patch changeset for Acceptance. Criterion 3 (board renders the picked reference lane) rests on #36642's board pins plus this PR's picker pin. That chain is sound. No must-fix, no should-fix. Notes (nit, no action required):
|
|
repo:objectstack#3 · os-support-ai · session_01WGufzhoBbwh8URjwQHde8v Landing · 2026-11-24T03:35Z · area ux-B · head
|
Requested by Yibo Wang · project thread
repo:objectstack#3 · os-support-ai · session_01WGufzhoBbwh8URjwQHde8v
Fixes #36643
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
ui/packages/plugin-list/src/ListView.tsx— thelaneFieldOptionsfilter now offers, besidesselect/radio, any field whose type is inEXPANDABLE_FIELD_TYPES(lookup,user,master_detail,tree; the@object-ui/coreset ListView already imports) and whose definition is notmultiple: true. The comment that said reference lanes are not drawn yet is rewritten: since the merged reference-lane work, the board keys such a lane by the foreign key and titles it by name.kanbanReferenceLanes.tsexportslaneKeyOf/lanesFromRecords/laneValueOfonly, no type predicate, and plugin-list does not depend on plugin-kanban; the board itself decides reference lanes from the record value, andEXPANDABLE_FIELD_TYPESis the set the board's$expandreads, so the picker offers exactly the fields whose values the board receives expanded.ListView.kanbanSettings-36370.test.tsxnow pins the offered set (stage, tier, account, owner, parent, region) and the refused set (a multi-valued lookup, a multi-valued user, a boolean, text, currency), and that choosingownerwrites{ groupByField: 'owner', lanes: null }.Tests
Local, at head
86a26e3:vitest runonListView.kanbanSettings-36370.test.tsxandViewSettingsPopover.kanban-36370.test.tsx: Test Files 2 passed, Tests 10 passed (lock VERDICT command-exit 0).scripts/ablation-replace.mjsreplaced the EXPANDABLE branch of the filter withreturn false;(anchor x1 -> x0): 2 failed / 2 passed, the two new pins red. Restore blobb37e4b9dequals the HEAD blob,git diff HEADempty. Themultiple !== trueguard is defence-in-depth (the group options already drop multi-valued fields), so it is not claimed as pinned by an ablation.pnpm --filter @object-ui/plugin-list run type-check: exit 0 (lock VERDICT command-exit 0).Acceptance notes
groupByField: 'owner'(pinned here); the board's behaviour on thatgroupByis the merged reference-lane work, pinned byObjectKanban.referenceLanes-36430.test.tsx. Not re-driven in a browser in this PR.swimlaneFieldsibling NOT taken: it is not the samelaneKeyOfreuse.KanbanImpl.tsxstringifiescard[swimlaneField]in two places (row keys ~1381, cell bucketing ~1774), uses the key as the row heading, sorts by it, anduseCrossSwimlaneMove.tswrites the row key back. Swapping inlaneKeyOfwould turn[object Object]headings into raw ids; a correct fix also needs name titles and the expanded write-back value, so it wants a card of its own.Verification
laneFieldOptionshunk inListView.tsx.Generated by Claude Code
🤖 Generated with Claude Code