Repository navigation
fix(components): an editable list's lookup column is wide enough for its record picker - #34693
Merged
objectstack-fleet[bot] merged 4 commits intoNov 17, 2026
Merged
Conversation
…icker width An editable data-table sized a lookup column from the short names its cells draw, so the record picker opened in it was a few dozen px wide and every option was cut. The auto-sized width of a foreignKey column whose cells edit is now floored at LOOKUP_COLUMN_MIN_WIDTH (168px), the width GridField already gives its lookup columns; an explicit width stays exact. Claude-Session: https://claude.ai/code/session_01WGufziunkXbDT7wUWqfmWz Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufziunkXbDT7wUWqfmWz Co-authored-by: Claude <noreply@anthropic.com>
…eset The floor value stays private to data-table (no new public export), and the TableColumn.foreignKey docs say what an editable table does with the flag. Claude-Session: https://claude.ai/code/session_01WGufziunkXbDT7wUWqfmWz Co-authored-by: Claude <noreply@anthropic.com>
37 tasks
Contributor
Author
|
repo:objectstack#3 · os-support-ai · session_01WGufzhshTXCAmv9KJXRZkB 席位核对 · L1 (seat 3, L1-a) · 2026-11-17T07:11ZL1: ACCEPT Item 2 is traced to the real producer, measured live, and fixed in the smallest place that covers it. The seat's Q1 = A ruling (an explicit width stays exact) holds. The claim's corrected premise and amended surface name all four files. No must-fix and no should-fix. Must-fixNone. Should-fixNone. Readings that hold
Notes
|
Contributor
Author
|
repo:objectstack#3 · os-support-ai · session_01WGufziunkXbDT7wUWqfmWz Landing · area o3-C · head ba312fd
State: ready + auto-merge now; on MERGED, #34601 closes via |
objectstack-fleet
Bot
deleted the
claude/issue-34601-lookup-column-width
branch
November 17, 2026 07:58
This was referenced Nov 17, 2026
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 Yibo Wang · project thread
Fixes #34601
Clause-②: no
Metadata-protocol: none
File surface amended: ui/packages/components/src/renderers/complex/data-table.tsx, ui/packages/components/src/renderers/complex/tests/data-table-lookup-picker-floor-34601.test.tsx, ui/packages/types/src/data-display.ts (doc comment only) — per claim 6940933031 (item 2, branch
claude/issue-34601-lookup-column-width).维护者速读
ui/packages/components/src/renderers/complex/data-table.tsx里autoSizedWidths的pickerFloor;其次是新测试文件。What changes
data-tablesizes a column with no explicitwidthfrom what its cells draw, with an 80px floor. In an editable table, a foreign-key column (theforeignKeyflagObjectGridalready stamps on lookup, master-detail, tree and user columns) opens the record picker as its cell editor. Sized from the short names it draws, the picker's trigger got a few dozen pixels.editable, the column carriesforeignKey: trueand the column itself is noteditable: false, the auto-sized width is floored at 168px, the widthGridFieldgives its lookup columns (MIN_WIDTH_BY_TYPE.lookup). The value is a private constant indata-table.tsx:@object-ui/componentscannot import@object-ui/fields, and adding a public export for it would widen a published surface.width(the view's pin, or the user's persisted resize) is drawn as written, so the seat's ruling that a pinned width stays exact holds here too.GridFieldis not touched.TableColumn.foreignKeydoc comment in@object-ui/typesnow says what an editable table does with the flag.@object-ui/componentsand@object-ui/types.Live measurement (item 2: where the narrow lookup column comes from)
Showcase app, own backend (
objectstack dev --fresh) plus the Console Vite dev server from this tree, Chromium. hotcrmddcd6e60(read-only clone):crm_quote_line_itemdeclares noinlineEdit, so quote lines are a related-list card on the quote page (a read-onlydata-table, no picker). The record picker in a line table is reached two ways, and both were measured:GridField, DOMdiv[data-testid=line-items] > table), showcase Invoice "Edit", Product column: unpinned, stylewidth: 168px, laid out 205px at 1280 and 209px at 375. Not the source.data-table, DOMdiv[data-testid=console-route] > div[data-testid=record-list-host] > div[data-table-scroll-box] > table, columndata-auto-width-key="product"), showcase Invoice Lines, Product column. This is the source:main. With fix(fields): lookup picker is wide enough to read an option and stays inside the viewport #34658'sLookupField.tsxchange applied locally on top of this branch (not committed, restored to HEAD afterwards,git diff HEADempty), the popover read 288px at 1024 (right edge 872) and 288px at 820 (right edge 820, inside the viewport). Both items together meet the card's acceptance; this PR alone fixes the column.Tests
ui/packages/components/src/renderers/complex/__tests__/data-table-lookup-picker-floor-34601.test.tsx(data-table has no shared harness file; each card has its own): an editable foreign-key column drawing "Widget A" is 168px, not 112px. Controls: read-only table, noforeignKeyflag, and a column witheditable: falseall stay 112px. A wide name (320px) and an explicitwidth: 90are left as they are. happy-dom has no layout, so this is the arithmetic path. The pixels are the live reading above.scripts/ablation-replace.mjs(the test imports../data-tableand@object-ui/typesresolves to source through the vitest alias, so there is no dist leg): replacing the floor expression with(width)turned the first test red (expected '112px' to be '168px', 1 failed / 2 passed), and the file was restored to the HEAD blobf19704007c07withgit diff HEADempty.Acceptance notes
groupedColumnWidthsinObjectGrid.tsx), so an editable grouped list keeps a narrow lookup column. That file belongs to another in-flight card in this container and is outside this PR's surface. Not measured live.Verification
Local gates on head bb217f9
pnpm --dir ui exec vitest run --maxWorkers=2 packages/components/src/renderers/complex/__tests__/ packages/components/src/__tests__/data-table.dateOnlyZone-10183.test.tsx: lock VERDICT command-exit 0, Test Files 38 passed, 1 skipped (39), Tests 248 passed, 7 skipped (255).pnpm --workspace-concurrency=2 --filter '@object-ui/components^...' build: VERDICT command-exit 0.pnpm --filter @object-ui/components --filter @object-ui/types run type-check: VERDICT command-exit 0. The new test file is in components'tsconfig.test.jsonprogram (--listFilesOnlycount 1).node scripts/pm/dispatch-gates.mjs --commands: 38 commands, every one exit 0, includingpnpm --dir ui exec vitest run scripts/(5077 passed, 2 skipped) andpnpm check:nul-bytes.pnpm check:type-check-debtfirst returned exit 3 (queue-timeout on the shared lock, NOT MEASURED) and was re-run under the lock with its kept slot: exit 0.dispatch-gates --ran: "38 derived, 38 run, 0 NOT-MEASURED, 0 UNRUN" (a derived zero, all 38 with exit codes).pnpm check:changeset-fixed: exit 0.pnpm --dir ui run check:new-line-citations: exit 0, 0 new citations.node scripts/pm/overlap-check.mjs --branch=claude/issue-34601-lookup-column-width: exit 0 before every push.signed: repo:objectstack#3 · os-support-ai · session_01WGufziunkXbDT7wUWqfmWz
Generated by Claude Code