You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Lookup picker in a dialog: dropdown opens into too little space below (last option clipped mid-row) and truncates the account name that tells contacts apart #34362
In an action dialog with a lookup field, the lookup picker's dropdown opens downward and is squeezed into the space left between the field and the bottom of the dialog/viewport.
Seen on HotCRM, zh-CN UI: the meeting dialog's 联系人参会人 (contact attendees) lookup, near the bottom of the dialog.
What I saw:
Only about 4½ options fit. The last visible option ("Marcus Reed") is cut in half: its name shows, its subtitle row (email, account) is hidden. A first-time user reads this as a rendering bug, not as "scroll for more". The list is scrollable, so no data is lost.
Each option's subtitle truncates both secondary fields at once: 邮箱: emily.d@starkmed.example.c… · 所属客户: Stark Medi…, Wayne Enterpri…, Acme Corpor…. The account name is what tells two same-named contacts apart, and it is the part cut off.
What I expected:
When the space below the field cannot show a reasonable number of options, the popover flips upward (or the dialog body scrolls so the popover gets its space), as Radix/floating-ui collision handling does. An option row is never shown half-clipped at the popover's edge without a visible scroll cue.
The secondary fields get room to be told apart: e.g. wrap the subtitle onto its own line per field, keep the account name ahead of the email, or show the full value on hover/title.
Steps
pnpm dev in objectstack-ai/hotcrm (18.5.0), sign in with a user whose language is zh-CN.
Open an action dialog that ends in a contact lookup, e.g. schedule a meeting from an account/opportunity, and open the 联系人参会人 picker with the window at a normal laptop height (~800px).
Observe the dropdown: ~4½ rows visible, the last row clipped mid-item, the email and account subtitle both truncated.
Triage: first touch → domain:ui · p2 · 2026-11-16T09:45Z
⛔ Not a claim.
In an action dialog, the lookup picker opens downward into whatever space is left. The last option is cut mid-row, and both subtitle fields truncate, including the account name that tells same-named contacts apart. Seen on HotCRM zh-CN. A first-time user reads it as broken and may pick the wrong contact. No data is lost (the list scrolls), so p2. Expected fix: collision-aware placement (flip upward or give the popover room) and a subtitle that keeps the distinguishing field.
Claim: PM loop round 3 · 2026-11-16T10:17Z
Session: session_01ADHkmSg4bMFcuXXpNikRnL (card thread, dev) · seat session_01ADHkmSzhXR4yUAgwq1bQRi
Account: os-steve (the seat's linked user as GET /user answers it; the card's assignee)
Branch: claude/project-thread-vne3eb
Worktree: objectstack-issue-34362
Domain: domain:ui
Seat: domain:ui#2
File surface: ui/packages/fields/src/widgets/LookupField.tsx (popover, option list and option row/preview line only) and its tests; ui/packages/components/src/ui/popover.tsx only if the measured cause lives there; root .changeset/; packages/** read-only (stop on breach; explain in the report)
Container & model: cloud seat container, mode:thread, model: default judgement tier (dispatch-gates --tier: "no path-derived mandate: the surface hits none of the 4 declared glob(s)"), effort: medium
Clause-②: no
Metadata-protocol: none
Responsibility: dev measures why the picker does not flip in a dialog, bounds the list to the available height with no half-clipped row, keeps the subtitle readable within objectui#13123's rules, pins and ablates; seat reviews, records and lands
Thread-read: 6912964791
Premise: holds
Serial constraints cleared: PR #34253 (same seat, #34197) also edits LookupField.tsx, in the lookupFilters region only; this card stays in the popover/list region and merges main after #34253 lands, before its own landing
{
"issue": 34362,
"status": "done",
"branch": "claude/project-thread-vne3eb",
"pr": "https://github.com/objectstack-ai/objectstack/pull/34381",
"session": "session_01ADHkmSg4bMFcuXXpNikRnL",
"premise_still_valid": true,
"summary": "Measured in Chromium (real LookupField in the real Dialog, action-dialog classes, 1280x800): Radix already flips the portaled popover to the side with more room inside a dialog; the '4.5 rows, last cut mid-row' is the list's fixed max-h-64 (256px over 56px rows => 32/56 of row 5 shown, no scroll cue), and on a short viewport (480px) the popover ran 49px off-screen because the list ignored --radix-popover-content-available-height. Fix in LookupField only (popover.tsx untouched): popover is flex-col with max-h bound to the available height, search row shrink-0, list min-h-0 max-h-64 takes the rest; edge fades (above/below) whenever options continue past the list's box, plus scroll-py-6 for keyboard scroll; option preview wraps onto at most 2 rows (fitPreviewLine hides trailing columns past 2 rows or on width overflow, drops the separator of a row-opening column, writes the full text as title on a cut text value). #13123 rules kept; subtitle order untouched.",
"tests": "head c3c5b8cc: LookupField.previewBadges-13123.test.tsx 17/17 passed; vitest run packages/fields/ --maxWorkers=2 => Test Files 306 passed 1 skipped, Tests 4633 passed 7 skipped; @object-ui/fields type-check (tsc --noEmit && tsc -p tsconfig.test.json) exit 0; eslint on both files exit 0 (0 errors); check:new-line-citations 0 new. Ablations via scripts/ablation-replace.mjs (ui tests resolve src, no dist leg), each restored to HEAD blob 010d418f431b: A1 popover max-h var, A2 list min-h-0, A3 below cue, A4 row cap, A5 separator hide, A6 title, A7 flex-wrap => each turns its pin red (1-2 failed). Browser probe (one-off, not committed) before/after readings in the PR body.",
"gates": "local: dispatch-gates --commands on c3c5b8cc => 38 commands, all exit 0 (record /mnt/project-files/ui-seat2/34362-gates-ran.txt); --ran: 38 derived, 38 run, 0 NOT-MEASURED, 0 UNRUN. CI families: in_progress at report time (not waited on).",
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
"mcp_calls": "5 — all reads: issue_read get x1, issue_read get_comments x2, pull_request_read get x2 (#34369 for body layout, #34381 read-back)",
"api_writes": "2 — pr_create via fleet-write relay (PR #34381, assignees os-steve, no labels); this os-dev-report comment via post-stamped.mjs. Plus git push (not REST).",
"open_questions": [
{
"question": "With a two-row preview an option is 74px, so the unchanged 16rem list cap shows ~3.5 options where ~4.5 showed before. Grow the cap?",
"options": [
"A keep max-h-64 (the fade marks the cut; popover stays compact and flips less)",
"B raise to max-h-80 (~4.3 two-row options; popover ~370px, flips/clamps more often)"
],
"recommendation": "A, because the card's complaint was the unmarked half row and the cut account name, both fixed; a larger cap is a density choice with no measured pull."
}
],
"security_findings": "none",
"out_of_scope_findings": [
"none — carrier: none"
],
"files_changed": [
"ui/packages/fields/src/widgets/LookupField.tsx",
"ui/packages/fields/src/widgets/LookupField.previewBadges-13123.test.tsx",
".changeset/34362-lookup-picker-room.md"
],
"line_budget": "n/a — no governed or skills surface; +296/-37 over 3 files",
"deviations": [
"Forced test edit, named in the PR body: the 13123 layout model now wraps segments onto rows; its 280px and 180px expectations and the resize sequence moved with it.",
"Serial: main not merged after #34253 (not landed at report time); seat merges/asks before landing."
]
}
Activity
objectstack-fleet commentedon Nov 16, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Path: none
Triage: first touch →
domain:ui· p2 · 2026-11-16T09:45Z⛔ Not a claim.
In an action dialog, the lookup picker opens downward into whatever space is left. The last option is cut mid-row, and both subtitle fields truncate, including the account name that tells same-named contacts apart. Seen on HotCRM zh-CN. A first-time user reads it as broken and may pick the wrong contact. No data is lost (the list scrolls), so p2. Expected fix: collision-aware placement (flip upward or give the popover room) and a subtitle that keeps the distinguishing field.
objectstack-fleet commentedon Nov 16, 2026
domain:ui#2 · os-steve · session_01ADHkmSzhXR4yUAgwq1bQRi
Claim: PM loop round 3 · 2026-11-16T10:17Z
Session:
session_01ADHkmSg4bMFcuXXpNikRnL(card thread, dev) · seatsession_01ADHkmSzhXR4yUAgwq1bQRiAccount:
os-steve(the seat's linked user asGET /useranswers it; the card's assignee)Branch:
claude/project-thread-vne3ebWorktree:
objectstack-issue-34362Domain:
domain:uiSeat:
domain:ui#2File surface:
ui/packages/fields/src/widgets/LookupField.tsx(popover, option list and option row/preview line only) and its tests;ui/packages/components/src/ui/popover.tsxonly if the measured cause lives there; root.changeset/;packages/**read-only (stop on breach; explain in the report)Container & model:
cloud seat container,mode:thread,model: default judgement tier (dispatch-gates --tier: "no path-derived mandate: the surface hits none of the 4 declared glob(s)"),effort: mediumClause-②: no
Metadata-protocol: none
Responsibility: dev measures why the picker does not flip in a dialog, bounds the list to the available height with no half-clipped row, keeps the subtitle readable within objectui#13123's rules, pins and ablates; seat reviews, records and lands
Thread-read: 6912964791
Premise: holds
Serial constraints cleared: PR #34253 (same seat, #34197) also edits LookupField.tsx, in the lookupFilters region only; this card stays in the popover/list region and merges main after #34253 lands, before its own landing
objectstack-fleet commentedon Nov 16, 2026
domain:ui#2 · os-steve · session_01ADHkmSg4bMFcuXXpNikRnL
os-dev-report
{ "issue": 34362, "status": "done", "branch": "claude/project-thread-vne3eb", "pr": "https://github.com/objectstack-ai/objectstack/pull/34381", "session": "session_01ADHkmSg4bMFcuXXpNikRnL", "premise_still_valid": true, "summary": "Measured in Chromium (real LookupField in the real Dialog, action-dialog classes, 1280x800): Radix already flips the portaled popover to the side with more room inside a dialog; the '4.5 rows, last cut mid-row' is the list's fixed max-h-64 (256px over 56px rows => 32/56 of row 5 shown, no scroll cue), and on a short viewport (480px) the popover ran 49px off-screen because the list ignored --radix-popover-content-available-height. Fix in LookupField only (popover.tsx untouched): popover is flex-col with max-h bound to the available height, search row shrink-0, list min-h-0 max-h-64 takes the rest; edge fades (above/below) whenever options continue past the list's box, plus scroll-py-6 for keyboard scroll; option preview wraps onto at most 2 rows (fitPreviewLine hides trailing columns past 2 rows or on width overflow, drops the separator of a row-opening column, writes the full text as title on a cut text value). #13123 rules kept; subtitle order untouched.", "tests": "head c3c5b8cc: LookupField.previewBadges-13123.test.tsx 17/17 passed; vitest run packages/fields/ --maxWorkers=2 => Test Files 306 passed 1 skipped, Tests 4633 passed 7 skipped; @object-ui/fields type-check (tsc --noEmit && tsc -p tsconfig.test.json) exit 0; eslint on both files exit 0 (0 errors); check:new-line-citations 0 new. Ablations via scripts/ablation-replace.mjs (ui tests resolve src, no dist leg), each restored to HEAD blob 010d418f431b: A1 popover max-h var, A2 list min-h-0, A3 below cue, A4 row cap, A5 separator hide, A6 title, A7 flex-wrap => each turns its pin red (1-2 failed). Browser probe (one-off, not committed) before/after readings in the PR body.", "gates": "local: dispatch-gates --commands on c3c5b8cc => 38 commands, all exit 0 (record /mnt/project-files/ui-seat2/34362-gates-ran.txt); --ran: 38 derived, 38 run, 0 NOT-MEASURED, 0 UNRUN. CI families: in_progress at report time (not waited on).", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "5 — all reads: issue_read get x1, issue_read get_comments x2, pull_request_read get x2 (#34369 for body layout, #34381 read-back)", "api_writes": "2 — pr_create via fleet-write relay (PR #34381, assignees os-steve, no labels); this os-dev-report comment via post-stamped.mjs. Plus git push (not REST).", "open_questions": [ { "question": "With a two-row preview an option is 74px, so the unchanged 16rem list cap shows ~3.5 options where ~4.5 showed before. Grow the cap?", "options": [ "A keep max-h-64 (the fade marks the cut; popover stays compact and flips less)", "B raise to max-h-80 (~4.3 two-row options; popover ~370px, flips/clamps more often)" ], "recommendation": "A, because the card's complaint was the unmarked half row and the cut account name, both fixed; a larger cap is a density choice with no measured pull." } ], "security_findings": "none", "out_of_scope_findings": [ "none — carrier: none" ], "files_changed": [ "ui/packages/fields/src/widgets/LookupField.tsx", "ui/packages/fields/src/widgets/LookupField.previewBadges-13123.test.tsx", ".changeset/34362-lookup-picker-room.md" ], "line_budget": "n/a — no governed or skills surface; +296/-37 over 3 files", "deviations": [ "Forced test edit, named in the PR body: the 13123 layout model now wraps segments onto rows; its 280px and 180px expectations and the resize sequence moved with it.", "Serial: main not merged after #34253 (not landed at report time); seat merges/asks before landing." ] }Stamped 2026-11-16T11:02Z.
objectstack-fleet commentedon Nov 16, 2026
domain:ui#2 · os-steve · session_01ADHkmSzhXR4yUAgwq1bQRi
席位核对 ACCEPT 已发在 PR #34381(head 3e202af),已转 ready 并开启自动合并 · 2026-11-16T21:58Z
objectstack-fleet commentedon Nov 16, 2026
domain:ui#2 · os-steve · session_01ADHkmSzhXR4yUAgwq1bQRi
Landed · 2026-11-16T23:00Z
bdd51769onmain(Fixes #34362)State:
pm:dispatchedremoved, assignee cleared.