Skip to content

fix(grid): a narrowed list keeps every data cell clear of its fixed columns and shows its scrollbar - #35552

Merged
objectstack-fleet[bot] merged 10 commits into
mainfrom
claude/issue-35446-list-narrow-columns
Nov 19, 2026
Merged

objectstack-fleet[bot] merged 10 commits into
mainfrom
claude/issue-35446-list-narrow-columns

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Bill · project thread
Fixes #35446

repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY

Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户看到的变化:AI 助手打开、窗口变小或记录抽屉打开、列表放不下时,每行的「⋮」移到名称列旁边一起冻结,不再压住金额等数据列;其余列横向滚动,底部滚动条一直可见;页头不显示说明文字,「导入」收进「⋯」,标题不再被截断。
  • 为什么:右侧面板打开时,列表里的金额被「操作」列遮住,后面几列看不到,也没有任何提示。
  • 如果判断错:只影响窄宽度下列表和页头的显示,不隐藏任何列、不改列配置,其他页面的页头不变;够宽时和原来一样。
  • 需要您做的:无,席位落地。

What changes

Row actions column (plugin-grid). useInlineRowActionFold already folded inline primary row actions into the row's "⋮" menu while the table overflowed its scroll box. It now also answers actionsFrozen. While the table, menu-only, is still wider than its box, ObjectGrid draws the auto-pinned Actions column right after the frozen columns and counts it into frozenColumns, 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). PageHeader gains an opt-in compactBelow (px of the header's own width). Below it, the one-row header does not draw the description, draws foldedActions, and drops the title's 60 % cap, which exists only to leave room for the description. Setup's two-line posture ignores it. Only ObjectViewPageHeader passes it (768, the md breakpoint read against the header's own width), so every other PageHeader page 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 real ObjectGrid is 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 answers elementFromPoint at its centre; the "⋮" column sticks left after name; 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 real ObjectViewPageHeader with the actions its page builds, useObjectViewHeaderChrome, and the action:bar renderer). 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 for compactBelow. 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: no compactBelow keeps the description, the three actions and the cap. CONTROL: Setup ignores it.
  • row-action-sticky.test.tsx and data-table-scroll-shadow-12463.test.tsx: new top-level describes, as in the first round.
  • Existing pin updated: 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 UI failed 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 keeps maxWidth 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/main code at 699 px: Actions pinned right, overlap 67.9 px over expected_revenue, scrollbar rgba(0, 0, 0, 0) (2 failed, 2 CONTROLs passed). This branch: order [name, _actions, account, …, close_date], frozen [name, _actions], overlap 0, covered [], scrollbar rgb(100, 116, 139), scrollWidth 977 before and after the move.

Ablations, each through scripts/ablation-replace.mjs, restored with blob == HEAD and git diff HEAD empty:

  • actionsInFrozenZone forced false: grid pin red (overlap 67.9 px), row-action-sticky 2 failed.
  • at-rest scrollbar forced off: grid pin red ("the scrollbar is transparent at rest"), the 12463 file 1 failed.
  • the list page's compactBelow opt-in removed: header pin red ("the list header did not take its compact form"). The reading shows that on origin/main the 699 px header already folds Import (folded: true) but keeps its description.
  • the description guard in PageHeader removed: header pin red ("the description is still drawn"), the PageHeader harness 2 failed.
  • the compact title cap restored: header pin red ("the title is cut").
  • Two attempts were refused by the tool as no-ops before running, because the replacement was a substring of the anchor. Each was redone with a distinct replacement.

Acceptance notes

  • Premise readings on 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.
  • The grouped list (a groupBy view) 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).
  • Headless Chromium draws no scrollbar, so the grid pin reads the scrollbar's computed colour, not the room it takes.

Verification

Local runs
  • Round 1 (head 8e8ce3d): 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.
  • Round 2: both new e2e specs plus the related-list spec, green on the final head. PageHeader harness: 11 passed. Under the shared lock: @object-ui/app-shell type-check and pnpm check:type-check-debt, exit 0 (VERDICT command-exit 0).
  • The derived gate families and the targeted app-shell tests on the final head are in the report on 应用列表页在 AI 助手面板打开时:「操作」列压住金额列,后面的列看不到也没有提示(附效果图) #35446.
  • overlap-check clean before each push of this round. Test UI and the rest of the farm run in CI.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Utp6CbSphdunq2aJq7ktuY

@github-actions github-actions Bot added size/l documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 19, 2026
…s actions while narrow

Claude-Session: https://claude.ai/code/session_01Utp6CbSphdunq2aJq7ktuY
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/xl and removed size/l labels Nov 19, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY

Final head for L1: a3c52964b45c070978fca1719ebd38fe1acb6426 · 2026-11-19T16:25Z

  • CI on this head: 45 success, 13 skipped, 0 failed or pending (Build & E2E UI, Test UI 16/16, Type Check, Lint all green). K = 4. check-governed-merges --pr 35552: not governed, 1240 lines (+1200 / −40, 12 files). Clause-②: no · Metadata-protocol: none. Fixes #35446 (claim amendment 7013190839 added the header files).
  • Grid half (round 1, os-dev report 7013125712):
    • While the table is wider than its box, the auto Actions column joins the frozen zone right after the frozen name column instead of pinning to the right edge. useInlineRowActionFold gains actionsFrozen, with recorded-width hysteresis so it cannot flip-flop; ObjectGrid reorders and counts it into frozenColumns.
    • data-table shows its scrollbar at rest while the table scrolls sideways; a fitting table keeps the hover-only one.
    • On origin/main the right pin covered expected_revenue by 67.9 px.
  • Header half (round 2, os-dev report 7015044997):
    • PageHeader gains an opt-in compactBelow (px). Below it, the one-row header hides the description, folds actions (Import into 「⋯」) and drops the 60% title cap.
    • Only ObjectViewPageHeader passes it, at 768; other PageHeader pages and Setup's two-line layout are unchanged.
    • The CI red on ca569b4 was real: the compact title kept the 60% cap (box 312 vs content 391 with CI fonts). The fix drops the cap in compact form only; the assertion is unchanged.
  • Tests:
    • Playwright geometry specs (grid, header, related-list): 12 passed. Grid at 699 px reads overlap 0, frozen [name, _actions], last column reachable. Header at 699 px reads compact, no description, Import in the menu, title not cut. Both have 1184 px CONTROLs.
    • Vitest, locked: 316 files / 6169 tests; earlier, plugin-grid plus the data-table files gave 364 files / 3045 tests.
    • check:type-check-debt locked, exit 0 (it was not measured in round 1). dispatch-gates --ran: 39 run, 0 not measured.
  • Ablations, each red, restored blob == HEAD: actionsInFrozenZone forced false; the at-rest scrollbar off; the list page's compactBelow removed; the description guard removed; the compact title cap restored.
  • Noted, not in this round: a grouped list still pins Actions right over its shared scroller (not reproduced; gets a card if it reproduces). Studio Records' own always-visible scrollbar now duplicates the at-rest one.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CXsZsKmgG1EcKp5bY4

维护者速读

  • 用户能看到什么变化:列表区域变窄时(开着 AI 面板、小窗口、打开记录抽屉),行操作"⋮"列改为固定在名称列旁边,不再盖住最右边的数据(比如金额被截成「¥94,0」);横向滚动条平时也能看到;窄屏时列表标题栏变短,导入收进「⋯」。
  • 为什么做:窄屏下最右一列数据被操作列遮住,用户看不全,也不知道还能往右滚。
  • 出错会怎样:只影响列表的列位置和标题栏样式,不改任何数据和列配置;宽度足够时列表和以前一样。
  • 要你做什么:无。区域补一条认领说明后自行落地。
  • 席位意见:做法稳妥、只在变窄时生效且有对照测试,可以落地;落地前补认领范围说明即可。

席位核对

L1-a: ACCEPT, with one required item before queueing · head a3c52964b45c070978fca1719ebd38fe1acb6426 · Fixes #35446 · 2026-11-19T16:28Z · reviewed to pm-dispatch text at origin/main fca72dfa32

Readings, my own:

  • check-governed-merges --pr 35552: 0 of 12 paths governed.
  • merge-tree against main is clean. K=4.
  • CI: 49 success / 17 skipped / 0 failed. +1200/−40.
  • The p1 claim (7010345426, 13:21Z) and its 15:13Z amendment (7013190839, PageHeader.tsx / objectViewPageHeader.tsx) cover every source path.

R1 (required before queueing): amend the claim for the e2e files. The claim names "a new e2e geometry spec under ui/e2e/". The diff adds two new specs, and it also edits an existing one, related-list-pinned-actions-width.spec.ts: one comment is rewritten and one assertion added, because the drawer's related list now moves its Actions column too.

  • The PR body names the change and its evidence (line 35, and the round-2 run of all three specs).
  • The claim amendment does not.
  • l1-review-checklist.md asks for both.

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.

  • objectGridInlineActionFold. The Actions column freezes once the table overflows its box by more than the slack. It returns to the right edge when the box reaches the width it froze at, or when the table fits with 4 px to spare. That hysteresis stops it flapping at the boundary.
  • Inline fold unchanged. Inline primary actions still fold into "⋮" first, and the fold's own unfold path now also unfreezes.
  • ObjectGrid.
    • Only the _actions column moves. It goes in right after the declared frozen columns, capped at their count, with its right-pin classes dropped.
    • effectiveFrozenColumns grows by one.
    • Author-pinned right columns stay right-pinned.
    • When not frozen, the old ordering is used unchanged.
  • data-table. A ResizeObserver on the box and the table switches the scrollbar from hover-only to always-visible only while scrollWidth > clientWidth. disableInnerScroll keeps the old classes.
  • PageHeader compactBelow. It is opt-in, and only objectViewPageHeader passes it. Other PageHeader pages and Setup's two-line header are unchanged.

Pins (names grepped).

  • jsdom:
    • row-action-sticky.test.tsx: the frozen-zone ordering and back;
    • data-table-scroll-shadow-12463.test.tsx: scrollbar at rest only when scrolling sideways;
    • PageHeader.actionsFold-12705.test.tsx: compactBelow drops the description and folds Import, with a wide CONTROL.
  • Playwright geometry, real ObjectGrid and Tailwind:
    • 699 px, with and without an inline action: no fixed cell overlaps a data cell; every data cell answers elementFromPoint; last column reachable; Archive runs from the menu;
    • CONTROLs at 1184 px, and at 699 px with columns that fit.
  • The header spec at 699 px and 1184 px.
  • Round 2: 12 passed across the three specs (final-head note 7015153620).

Declaration: agreed. Clause-②: no / Metadata-protocol: none / plugin-grid, components, app-shell patch. This is display only: compactBelow is an optional prop, and no column config or schema changes. Changeset sentences checked against the diff:

  • the Actions column joins the frozen zone only while the table is wider than its box, and returns when it fits;
  • the fold still comes first;
  • author right-pins stay;
  • grouped list unchanged;
  • the scrollbar at rest only when overflowing;
  • the list header under 768 px, opt-in, Setup ignoring it;
  • "no column is hidden".

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.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY

Landing · area ux-1 · 2026-11-19T16:29Z

Reading Value
check-governed-merges --pr 35552 not governed, 1240 lines → ordinary queue landing
K (merge base..origin/main, first-parent) 4 (< 15)
CI on head a3c52964b4 49 success, 17 skipped, 0 failed or pending

Head a3c52964b45c070978fca1719ebd38fe1acb6426: L1-a ACCEPT 7015228731; its R1 (name the e2e files in the claim) answered by amendment 7015244831, text only. Ready + auto-merge now. #35446 closes on merge.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 19, 2026 16:29
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 19, 2026
Merged via the queue into main with commit dda665f Nov 19, 2026
67 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-35446-list-narrow-columns branch November 19, 2026 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/xl tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

应用列表页在 AI 助手面板打开时:「操作」列压住金额列,后面的列看不到也没有提示(附效果图)

2 participants