Repository navigation
fix(grid): a narrowed list keeps every data cell clear of its fixed columns and shows its scrollbar - #35552
Conversation
Claude-Session: https://claude.ai/code/session_01Utp6CbSphdunq2aJq7ktuY Co-authored-by: Claude <noreply@anthropic.com>
…le overflows its box Claude-Session: https://claude.ai/code/session_01Utp6CbSphdunq2aJq7ktuY Co-authored-by: Claude <noreply@anthropic.com>
…e at-rest scrollbar Claude-Session: https://claude.ai/code/session_01Utp6CbSphdunq2aJq7ktuY Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CbSphdunq2aJq7ktuY Co-authored-by: Claude <noreply@anthropic.com>
…st-narrow-columns
…s actions while narrow Claude-Session: https://claude.ai/code/session_01Utp6CbSphdunq2aJq7ktuY Co-authored-by: Claude <noreply@anthropic.com>
…th control Claude-Session: https://claude.ai/code/session_01Utp6CbSphdunq2aJq7ktuY Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CbSphdunq2aJq7ktuY Co-authored-by: Claude <noreply@anthropic.com>
…st-narrow-columns
Claude-Session: https://claude.ai/code/session_01Utp6CbSphdunq2aJq7ktuY Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY Final head for L1:
|
|
repo:objectstack#5 · os-bill · session_01Utp6CXsZsKmgG1EcKp5bY4 维护者速读
席位核对L1-a: ACCEPT, with one required item before queueing · head Readings, my own:
R1 (required before queueing): amend the claim for the e2e files. The claim names "a new e2e geometry spec under
Post a claim amendment on #35446 naming the two new specs and the edited related-list spec. This is text only: no push and no fresh L1. Code.
Pins (names grepped).
Declaration: agreed.
Routing. ux-4 is holding pushes on these files. R1 needs no push, so ux-1 can land as soon as the claim amendment is posted. Not governed and no contract face: ux-1 lands it. |
|
repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY Landing · area ux-1 · 2026-11-19T16:29Z
Head |
Requested by Bill · project thread
Fixes #35446
repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
Row actions column (plugin-grid).
useInlineRowActionFoldalready folded inline primary row actions into the row's "⋮" menu while the table overflowed its scroll box. It now also answersactionsFrozen. While the table, menu-only, is still wider than its box,ObjectGriddraws the auto-pinned Actions column right after the frozen columns and counts it intofrozenColumns, instead of pinning it to the right edge. The frozen zone never covers a column at rest, so every data column scrolls and none is covered. The column goes back to the right edge once the box is as wide as the table was when it moved. The move swaps the frozen zone's edge rule, which changes the width by a pixel or two, so the way back reads the width recorded before the move and cannot flip-flop. A frozen table that fits with more than 4 px to spare also goes back, so a table that shrank while frozen is not held there. The placement survives a data refresh.Option picked, of the three the dispatch named: join the frozen zone. The card measured an opaque right-pinned cell over a clipped data cell (the geometry pin's overlap reading is 67.9 px on
origin/main). A "⋮" shown on row hover would still cover a cell while it shows, and has no hover on touch. In the frozen zone the trigger is always visible, one click away, and covers nothing.Not changed: an author's own
pinned: 'right'columns (the author's layout, per the card's 「不改列表的列配置」), the grouped list (it disables frozen columns in its shared scroller), and a list whose table fits its box (the CONTROL cases).Scrollbar (components
data-table). While the table is wider than its box (scrollsSideways, read at mount and on resize), the scroll box draws its scrollbar at rest in the muted foreground. A table that fits keeps the shared hover-only bar of objectui#12708. This is the approach of the Studio Records tab fix (RECORDS_SCROLLBAR_VISIBLE) moved into the table, and applied only while the table actually scrolls sideways.List header (app-shell).
PageHeadergains an opt-incompactBelow(px of the header's own width). Below it, the one-row header does not draw the description, drawsfoldedActions, and drops the title's 60 % cap, which exists only to leave room for the description. Setup's two-line posture ignores it. OnlyObjectViewPageHeaderpasses it (768, themdbreakpoint read against the header's own width), so every otherPageHeaderpage is unchanged. At 768 px and above, the list header is exactly as before, including the content-driven fold of objectui#12705.Tests
ui/e2e/list-narrow-pinned-columns-35446.spec.ts(new Playwright geometry pin; the realObjectGridis bundled from source, styled with real Tailwind). Case: a 699 px main area (the card's AI-panel case), with and without an inline primary action. Checks: no fixed cell overlaps a data cell in the header row or the first body row; every data cell in view answerselementFromPointat its centre; the "⋮" column sticks left aftername; the scrollbar colour at rest is not transparent; the last column answers at its centre after a scroll to the end; Archive runs from the row menu. CONTROL at 1184 px: nothing moves and nothing is covered, and the bar stays hover-only. CONTROL at 699 px with columns that fit: Actions stays on the right.ui/e2e/list-header-narrow-35446.spec.ts(new; the realObjectViewPageHeaderwith the actions its page builds,useObjectViewHeaderChrome, and theaction:barrenderer). At 699 px: compact form, no description, no Import button in the row, New drawn, nothing spills past the header, the title is not cut, and Import runs from the 「⋯」 menu. CONTROL at 1184 px: description drawn, Import is a button, the actions are not folded.PageHeader.actionsFold-12705.test.tsx: new top-level describe forcompactBelow. At 700 px: no description, folded actions, Import runs from the 「⋯」, title not capped. It follows width both ways (1000 px gives the full row, 700 px compact again). CONTROL: nocompactBelowkeeps the description, the three actions and the cap. CONTROL: Setup ignores it.row-action-sticky.test.tsxanddata-table-scroll-shadow-12463.test.tsx: new top-level describes, as in the first round.related-list-pinned-actions-width.spec.ts, the case where the drawer overflows even menu-only, now asserts the Actions column has left the right edge. The jsdom pins of the right-pinned shape are unchanged and green.CI red on ca569b4, root cause and fix: the header pin's title-cut assertion
Build & E2E UIfailed both attempts on the AI-panel header case, at the assertion that the title is not cut. CI reading:compact: true,folded: true,spill: [],titleClipped: true. The pin's measure is right; the header was wrong. In the compact form the title kept the one-row header's 60 % cap (sm:max-w-[60%]), which leaves room for a description the compact form no longer draws. With CI's fonts, the title 「Opportunities / Open opportunities」 is just wider than 60 % of the 521 px text block (312 px), so it was cut while about 200 px of the row stood empty. Locally the fallback font measured 291 px and passed, which is why the first local run was green.Reproduced locally by making the fixture's view label long enough to exceed the cap in any font (
Open opportunities this quarter). Red before the fix:title.box 312, content 391, block 521, maxWidth 60%, "the title is cut". The fix drops the cap in the compact form only. Green after the fix:box 391, content 391, maxWidth 100%. The full-width CONTROL keepsmaxWidth 60%. The assertion is unchanged; the pin now also reports the title's box, content, block and max-width. Ablation of the fix (cap restored in compact, anchor 1 → 0, replacement 0 → 1): red with the same reading, restored blob == HEAD.Readings and ablations
Grid pin on
origin/maincode at 699 px: Actions pinned right, overlap 67.9 px overexpected_revenue, scrollbarrgba(0, 0, 0, 0)(2 failed, 2 CONTROLs passed). This branch:order [name, _actions, account, …, close_date],frozen [name, _actions], overlap 0,covered [], scrollbarrgb(100, 116, 139),scrollWidth977 before and after the move.Ablations, each through
scripts/ablation-replace.mjs, restored with blob == HEAD andgit diff HEADempty:actionsInFrozenZoneforced false: grid pin red (overlap 67.9 px),row-action-sticky2 failed.compactBelowopt-in removed: header pin red ("the list header did not take its compact form"). The reading shows that onorigin/mainthe 699 px header already folds Import (folded: true) but keeps its description.PageHeaderremoved: header pin red ("the description is still drawn"), the PageHeader harness 2 failed.Acceptance notes
origin/main: the name column was already frozen and the table already scrolled inside its own box; the header already folded Import into the 「⋯」 once its text would clip (objectui#12705). Still true were the Actions column over a data column at rest, the transparent scrollbar at rest, and the description drawn at a narrow width.groupByview) keeps its right-pinned Actions column over the shared scroller. Frozen columns are disabled there by design, and it is out of this round (not reproduced in a browser).Verification
Local runs
vitest run packages/plugin-grid/plus the 76 components test files that name the data table: 364 files passed, 1 skipped; 3045 tests passed.vitest run scripts/(ui): 171 files passed, 5092 tests passed. Type-check of components and plugin-grid: exit 0.@object-ui/app-shelltype-check andpnpm check:type-check-debt, exit 0 (VERDICT command-exit 0).overlap-checkclean before each push of this round.Test UIand the rest of the farm run in CI.🤖 Generated with Claude Code
https://claude.ai/code/session_01Utp6CbSphdunq2aJq7ktuY