Repository navigation
fix(kanban): lanes on a lookup or user field key by the foreign key and are titled by the record's name (#36430) - #36642
Merged
Conversation
Claude-Session: https://claude.ai/code/session_01JQwxba2NAjVpDLao1M9SYN Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JQwxba2NAjVpDLao1M9SYN Co-authored-by: Claude <noreply@anthropic.com>
…#36430) Claude-Session: https://claude.ai/code/session_01JQwxba2NAjVpDLao1M9SYN Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JQwxba2NAjVpDLao1M9SYN Co-authored-by: Claude <noreply@anthropic.com>
Contributor
|
repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj 维护者速读看板按负责人、客户这类"关联字段"分组时,原来每张卡都自成一列、列名全是乱码;现在一个负责人一列,列名是他的名字,把卡拖到别的列就会改负责人。 席位核对 — ACCEPT (L1) · repo:objectstack#1 · head
|
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.
Requested by Warren · project thread
Card thread for #36430, dispatched by seat repo:objectstack#1 · session_01JQwxba2NAjVpDLao1M9SYN
Fixes #36430 (items 1–3; item 4 is open, see below)
维护者速读
What changes
ui/packages/plugin-kanbanonly.ObjectKanban#effectiveColumns' data-derived branch built lanes fromString(record[groupBy]). The board fetches with$expand, so a reference value is the referenced record and every lane was"[object Object]". NewkanbanReferenceLanes.ts:lanesFromRecordsmakes one lane per distinct key — the expanded record'sid(_id), else the stored value — titled through core'sreferencedRecordTitle(the field'sdisplayField, then the target object'snameField, then the shared ladder), else the key. When the lane field declaresreference, the board reads that object's definition (useSettledSchema, cached) so its declared name field titles the lane. A record with no value names no lane (it was already bucketed to "Uncategorized"; before, a data-derived board also drew an empty lane titlednull).bucketCardsIntoColumnskeys a record bylaneKeyOf(value), so expanded references land in their lane, including declaredcolumnskeyed by foreign key. Lane paging already filters each lane's query on the lane id (the key), unchanged.laneValueOf) instead of the bare key, so the card keeps naming its new owner; the failure rollback restores the expanded value it held.Item 4 (lane-field picker) is not in this diff. It lives in
ui/packages/plugin-list/src/ListView.tsx(laneFieldOptionsfilter); the seat widened the surface, and the edit is waiting on the maintainer's go-ahead in the thread.Why
A board grouped by owner is a common grouping and was unusable (#36430, graded p1).
Verification
Head
02acbeab, treeobjectstack-ai/objectstack@02acbeab:ObjectKanban.referenceLanes-36430.test.tsx(4 rows: owner lanes titled by name with the right cards; lookup lane titled by the target'snameField; a drop writes{ owner_id: 'u2' }and the card stays in Bob's lane; declared FK-keyed lanes take expanded values) and two rows inindex.bucket.test.ts.ObjectKanban.tsxandindex.tsxrestored fromorigin/mainand the tests kept, 5 of the new rows fail (all 4 board rows and the FK bucketing row); with the fix, all pass.vitest run packages/plugin-kanban/ond8058107(the later head only adds changeset lines): 84 files, 552 tests passed.overlap-check.mjs: clean againstorigin/maind7411fa3and 0 open PR heads.type-checkfor plugin-kanban (the@object-ui/*dependency declarations are not built in this container; every error printed was a missing-module / implicit-any cascade, none on the new code's logic).Type Check UIin CI is the verdict.Clause-②: no
Metadata-protocol: none
Acceptance notes
Fixes #36430covering items 1–3:ListView.tsxlaneFieldOptions), item 4 of kanban: a board grouped by a lookup or user field draws [object Object] lanes holding every card #36430;swimlaneField) on a reference field, which still stringifies the value inKanbanImpl's swimlane bucketing (same defect class, the other axis).[object Object],…lanes; the picker change for item 4 leaves multi-valued references out.Human Minimum
packages/specholds no runtime logic.pnpm lintpasses (CI).main, one pull request.packages/spectouched: n/a.content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.🤖 Generated with Claude Code
https://claude.ai/code/session_01JQwxba2NAjVpDLao1M9SYN