Skip to content

fix(list): one 16px left edge on the list page, a 40px selection column at any width, no row numbers - #35706

Merged
objectstack-fleet[bot] merged 6 commits into
mainfrom
claude/project-thread-pmy7f9
Nov 20, 2026
Merged

objectstack-fleet[bot] merged 6 commits into
mainfrom
claude/project-thread-pmy7f9

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Bill · project thread
Fixes #35663

repo:objectstack#5 · os-bill · session_01Utp6Cb8qTxAVaE2QKwquQU

Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:列表页左边对齐成一条线:页面栏图标、视图栏图标、表头和每行的勾选框、页脚条数都离左边 16;勾选列在列多要横向滚动时不再被挤到贴边,宽度始终一样;表格不再显示行号,勾选框不用悬停就看得见。
  • 为什么做:属于列表页重做这一大项,解决维护者指出的「左侧一列没有对齐、左边距太小」和「行号没必要、勾选框应始终显示」。
  • 出错会怎样:只改列表和各处表格的左侧排版与行号显示,不动数据和权限;关联列表、设计器里的表格也一并不再显示行号;「选项」里的行号开关和「已个性化」里的行号一项一起去掉;有问题可以直接撤回。
  • 要你做什么:无

What changes

  • The selection column is 40px at any width (data-table.tsx, LEADING_CELL_WIDTH). Every cell of the leading column (header, rows, summary row, the row-number-only cell) carries w-[1%] min-w-10 instead of w-10. Under the table's automatic layout a plain w-10 let the column shrink to its content once the columns overflowed (16px, the checkbox flush against the page), and on a table narrower than its box it took a share of the spare width (93.9px measured). min-w-10 holds the floor; the 1% width makes it a percentage column, which auto layout sizes to its minimum and does not widen while a fixed or auto column can take the spare width (the same 1% the fitContent columns use).
  • The checkbox sits 16px in (LEADING_CELL_INSET = 'pl-4 pr-2'): 16 + 16 box + 8 gap = 40.
  • The checkbox is shown at rest. The hover swap (opacity-0 until hover / focus / coarse pointer / any selection) now applies only when a host opts into row numbers; without them every row's checkbox is visible.
  • ObjectGrid draws no row numbers unless its host asks (hostShowRowNumbers ?? false, was ?? true). Hosts whose grids lose their numbers with this: the related lists (plugin-detail RelatedList), the designers' grids (plugin-designer ObjectManager, FieldDesigner), plugin-view's ObjectView grid and any page block of type object-grid. None is kept on as an opt-in: after this PR no host passes the prop. data-table's showRowNumbers stays as an opt-in for other hosts (it is a declared DataTableSchema key in @object-ui/types).
  • The view bar's ends (listToolbarRow.ts, TOOLBAR_ROW): from sm up, pl-2.5 pr-2 instead of px-4. Every item in the bar is a padded control, so the switcher's 6px-padded icon lands on 16, and the last text trigger's 8px-padded label ends 16 in, where the page bar's 「新建」 ends. Below sm the row is unchanged.
  • The list page stops passing row numbers, and the 行号 switch goes (round 2, after feat(console): the list's Options as a menu, and a view dropdown that creates views in place #35646 merged). ListView drops its session-only row-number state, the defaultRowNumbers host prop and the 'rowNumbers' personalization part; the console host's defaultRowNumbers={!inSetup} line goes (objectViewListRenderer.tsx); the switch leaves the Options menu's More level (ViewSettingsPopover.tsx, which now draws More only for how records open and Edit inline); the 「已个性化」 marker drops its entry (ListPersonalizedMarker.tsx); list.rowNumbers and console.objectView.personalizedParts.rowNumbers leave all 11 packs. Premise correction recorded on the claim: no stored personal row-number setting exists (it was session-only React state), so "刷新后也不显示" needs no migration.
  • The docs sentence on the marker (content/docs/ui/views.mdx, claim amendment 3): it no longer lists row numbers among what the marker names.
  • A column diagnostic that became false (columnSpellingDiagnostics.ts, claim amendment 2): a grid whose authored columns all fail to resolve "renders NO data columns", no longer "renders its row-number column and NO data columns".

Tests

New:

  • ui/e2e/list-left-edge-35663.spec.ts (Playwright). Real ObjectGrid + data-table + app-shell PageHeader (list posture), bundled by Vite from source, the view bar from listToolbarRow.ts's own constants, the switcher's and the footer's classes read from their sources, real theme Tailwind. Cases: 1280 wide list (overflows), 1280 narrow list (fits), the wide list scrolled to the far right and back, and 375.

Migrated (the grid no longer has a # column by default):

  • plugin-grid: columnDeclaredSpellingOnly, columnSpellingDiagnosticRender, columnSpellingDiagnostics, gridColumnMembers-8071, gridDependentValues-7165, lookupPickerKeys-7154, relationalMetaCopySet-7166 (header lists lose #; data-cell indexes lose the +1), rowColorTint-12375 (two sticky cells, not three; the leading cell's tint stays pinned in data-table-row-tint-sticky-12375), rowHeightOffSpecBoundary (opts into showRowNumbers so the table-level cell copy stays observable on the row-number cell), serverSearch (see Acceptance notes).
  • components: data-table-leadingCell-12423, the "blank until hover" case reversed to "shown at rest".
  • plugin-list (the switch is gone): ListView.displayPopover-12423 (More carries Edit inline only; the "Row numbers is on by default" case becomes "the list hands the grid no row numbers, and no level offers a Row numbers switch"), ListView.harness (the displayMenuClose control flips Edit inline instead), ListView.restoreViewDefaults-28948, ListView.toolbarIconButtons-12695, ListView.personalization-28950 (each used the switch as "a Display setting outside the stored preference"; now Edit inline, reported as inlineEdit), ViewSettingsPopover.optionsMenu-35551 (More is offered through Edit inline), ListViewBlock.compactRegion-12703 (the full list is "the grid was mounted", no longer "with row numbers").
  • plugin-list, also: ListView.permissions (with Edit inline withheld and no drawer to choose, the menu now draws no More row at all; the two withheld cases assert that, each beside its control that opens More and finds the switch), htmlTierColumnSpellings-6598 and htmlTierListViewDefaultColumns-6598 (the authored headers no longer start with #).
  • app-shell: ObjectView.setupListChrome-12606, the control becomes "the same list under another app draws no # column either"; rowClickModifierPayloadForward-9462 (RED 2 opts its grid into showRowNumbers, since the hover "open record" button lives in the row-number cell; red on CI at e5c9c4e).

Retired: ListView.harness › ListView.setupChrome-12606 CONTROL ("without the prop the grid numbers its rows"); its prop is gone. The describe keeps one case: no list hands the grid row numbers, and Display still draws.

Acceptance notes

docs/qa/platform-checklist items edited:

  • records-forms.list-view-capabilities (rev 11 → 12): steps[11] and an acceptance clause for the left edge, the 40px selection column under a sideways scroll, no row numbers and the checkbox at rest, and ≥12 at 375. No earlier clause changed.

Readings (the e2e harness, main area 1024 wide beside a 256 sidebar at 1280; x from the main area's left):

page icon view icon select-all row checkboxes footer selection column row numbers checkbox at rest
main, wide (overflows) 16 22 0 0 16 16 12 opacity 0
main, narrow (fits) 16 22 38.9 38.9 16 93.9 12 opacity 0
this PR, wide 16 16 16 16 16 40 0 opacity 1
this PR, narrow 16 16 16 16 16 40 0 opacity 1
  • Scrolled to the far right and back: 40 / left 0 both legs (main: 16); no gap between frozen cells (0). First column's header text and cell text both at 52.
  • Right edges: page bar 「新建」 box 16 in; view bar's last label 16 in (main: 24).
  • 375: page icon 16, view icon 14, card content 21, footer 16 (unchanged from main; below 768 the grid draws cards).
  • The main-branch readings reproduce the card's live readings (0 / 22 / 16 / 28 on the wide list).

Found on the way, not filed:

  • serverSearch.test.tsx "reports the real match total" was green because the second row's NUMBER put a "2" in the text; a one-page grid draws no pager, so no total is on screen. Re-pointed to the rows on screen. class: none (a test read, no product defect).
  • A non-selectable grid with a row click drew a hover 「打开 ›」 button inside its row-number cell (data-table.tsx, row-expand-button). With row numbers off by default, that button is drawn only where a host opts into row numbers; clicking the row still opens the record, and a Cmd/Ctrl-click on the row still forwards its modifiers (rowClickModifierPayloadForward-9462 RED 1). carrier: none (follows from the card's "no row numbers").
  • The chart view's own view bar copy (objectViewListRenderer.tsx ~355, sm:px-4) keeps the switcher icon at 22 there; it is outside this card's surface. carrier: none.

Screenshots (before / after, 1280 wide, narrow, scrolled, 375): objectstack-seat5/area-ux/ux-4/list2/card-35663/ in the project files.

Verification

Read first, by risk:

  1. ui/packages/components/src/renderers/complex/data-table.tsx: LEADING_CELL_WIDTH / LEADING_CELL_INSET on every leading cell, and the visibility arm now gated on showRowNumbers.
  2. ui/packages/plugin-grid/src/ObjectGrid.tsx: the ?? false default.
  3. ui/packages/plugin-list/src/ListView.tsx and components/ViewSettingsPopover.tsx: the row-number state, prop and part gone; hasMore without the switch.
  4. ui/packages/plugin-list/src/listToolbarRow.ts: TOOLBAR_ROW's sm: padding.

Two-minute check: open any wide list (e.g. Contacts) at 1280 and scroll it sideways; the checkbox column keeps its width, 16px from the left, in line with the page bar icon. Open 「选项」 › 更多: no 行号 switch.

Local readings
  • Geometry spec: 4 passed at this head. On origin/main sources: 3 of 4 red (wide, narrow, scroll), 375 green.
  • Ablations (each through scripts/ablation-replace.mjs, restored to the HEAD blob, git diff HEAD empty):
    • LEADING_CELL_WIDTH → 'w-10': 3 red ("the selection column is 32 wide", "93.9 wide", "32 wide after scrolling").
    • TOOLBAR_ROW sm:pl-2.5 sm:pr-2 → sm:px-4: 2 red ("view-bar icon starts at 22, not 16").
    • LEADING_CELL_INSET → 'px-3': 3 red ("select-all box starts at 12, not 16").
    • visibility arm showRowNumbers && !selectionActive → !selectionActive: 2 e2e red ("a row checkbox is hidden until hover") and data-table-leadingCell-12423 red (1 of 6).
  • Vitest, round 1 (e5c9c4e): components complex renderers + the selection tests, plugin-grid, plugin-list, plugin-detail, plugin-view, plugin-designer, GridField, RecordPickerDialog.layout-11903, app-shell ObjectView*, views/__tests__, rowTable-31856, RecordDetailView.topBar-27524: 1213 files, 11183 passed, 18 skipped. CI at e5c9c4e then found one more pin, rowClickModifierPayloadForward-9462 (migrated above).
  • Vitest, round 2 (after merging origin/main at 238661f): plugin-list whole, app-shell views/ObjectView* + views/__tests__, i18n: 476 files, 5559 passed, 5 failed in 3 files, all migrated above (ListView.permissions, both htmlTier*-6598); those 3 files plus rowClickModifierPayloadForward-9462, renderer-copy-locale-25916, ObjectView.setupListChrome-12606 and ObjectView.listPersonalized-28950 re-ran green (7 files, 53 passed). A wider local run (all of app-shell, console, plugin-detail, plugin-view) did not finish inside the box's hour, so the full suite is CI's 16 shards at this head.
  • Type-check: components, plugin-grid (round 1), plugin-list, app-shell, i18n (round 2) type-check exit 0; ui type-check:e2e exit 0 (round 1).
  • i18n: check:i18n-keys, check:i18n-drift, check:i18n-dead-keys exit 0.
  • Derived gates (dispatch-gates.mjs --commands): 74 derived at the round-2 tree, 74 run, each exit 0; --ran reconciliation: 74 run, 0 NOT-MEASURED, 0 UNRUN.
  • overlap-check --branch=HEAD --pr=35643,35691,35708: clean against origin/main and each (shared files with feat(record-page): dense field rows, one-line activity and file-row attachments #35708: the 11 locale packs, merges cleanly).

🤖 Generated with Claude Code

https://claude.ai/code/session_01Utp6CXPqjy7g6EGFoAkYrr

…no row numbers by default

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CXPqjy7g6EGFoAkYrr
… cell; the column diagnostic no longer names a row-number column

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CXPqjy7g6EGFoAkYrr
…ptions menu lands; checklist item and changeset

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CXPqjy7g6EGFoAkYrr
@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 20, 2026
os-sales pushed a commit that referenced this pull request Nov 20, 2026
The list page stops passing row numbers to the grid: ListView drops its
session-only row-number state, the `defaultRowNumbers` host prop and the
'rowNumbers' personalization part, and the console host's
`defaultRowNumbers={!inSetup}` line goes. The 行号 switch leaves the
Options menu's More level, the 已个性化 marker drops its entry, and
`list.rowNumbers` / `console.objectView.personalizedParts.rowNumbers`
leave all 11 packs. The views doc no longer lists row numbers among
what the marker names (claim amendment 3).

Tests that used the switch as "a Display setting outside the stored
preference" now use Edit inline; the 9462 hover-button pin opts its
grid into row numbers, where that button lives.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CXPqjy7g6EGFoAkYrr
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6Cb8qTxAVaE2QKwquQU

Final head · area ux-4 · 2026-11-20T03:40Z

Reading Value
Head 829219f7d3979a8d7a200540aec6bc4bd5615326
CI 56 success, 12 skipped, 0 failed or pending (16/16 Test UI shards, Build & E2E UI, Live E2E)
check-governed-merges --pr 35706 not governed, 998 lines
K (merge base..origin/main) 12 (< 15)
Surface every non-test file is in claim 7024890880 + amendments 1–3

os-dev-report: 7029606489 on #35663. Round 2 ran after #35646 merged (the 行号 switch removed once, in this PR). Deviations in the PR body, including the side effect that a non-selectable grid with a row click loses its hover 「打开 >」 button unless the host opts into row numbers (row click still opens the record). Sent to L1-a.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CXsZsKmgG1EcKp5bY4

维护者速读

  • 列表页左侧对齐到同一条 16px 线:页头图标、视图栏图标、表头和每行的勾选框、底部计数都从同一位置开始。
  • 不再显示行号,勾选框一直显示;勾选列在任何宽度、横向滚动后都固定 40px,不再被挤到贴边。
  • 「选项」里的「行号」开关和「已个性化」里的行号一项都去掉了;没有任何保存下来的行号设置需要迁移。
  • 副作用:不可勾选、但可点击打开的表格,悬停时原本在行号格里的「打开 ›」按钮不再出现;点击整行和 Cmd/Ctrl 点击照样打开记录。
  • 席位意见:通过。分区自己合并;合并前把更新说明补全(写明去掉的开发者参数怎么改、悬停「打开」按钮不再出现),另把图表视图栏左边距未对齐建一张后续卡。

席位核对

ACCEPT · head 829219f7d3 · Fixes #35663 (epic #35547, p1, maintainer verbatim 11-20) · K=12 · merge-tree vs origin/main clean · governed 0/46 · +761/−237, 46 files · CI 56 success, 12 skipped, 0 pending · 2026-11-20T03:44Z

Routing: no packages/spec face, Clause-②: no, not governed, under 3000 lines → the area lands it after R1.

Checked:

  • data-table.tsx: one LEADING_CELL_WIDTH = 'w-[1%] min-w-10' on all five leading-cell sites (header select-all, header row-number, body select cell, body row-number cell, the add-row footer cell), so the column floor is 40px and auto layout never hands it spare width; LEADING_CELL_INSET = 'pl-4 pr-2' only on the no-row-number arm (16 + 16 + 8). The opacity swap is now gated showRowNumbers && !selectionActive, so without row numbers the checkbox is always visible; with a host opt-in the old hover/focus/coarse-pointer swap is unchanged. The ablations in the report (w-10 → 32/93.9px, px-3 → 12px, ungated swap → hidden until hover) cover each lever.
  • ObjectGrid.tsx: hostShowRowNumbers ?? false. ListView no longer forwards showRowNumbers; the data-table schema key showRowNumbers (ui/packages/types data-display) stays as the opt-in.
  • ListView.tsx: only defaultRowNumbers, the session state, the deviation/reset arms, the rowNumbers part and the popover props leave; the ⛔ 筛选/排序 regions are untouched. ViewSettingsPopover.tsx: the switch and its two props only; hasMore follows. listToolbarRow.ts: sm:pl-2.5 sm:pr-2.
  • Readers: list.rowNumbers, personalizedParts.rowNumbers, defaultRowNumbers have no reader left outside CHANGELOG history at the head. No stored setting existed (amendment 1 premise correction: session-only state), so 「刷新后也不显示」 holds with nothing to migrate.
  • Surface: every file is inside claim 7024890880 + amendments 1–3 (app-shell renderer line and marker in amendment 1, diagnostic text in 2, views.mdx in 3; the migrated tests are "their tests").
  • Overlap: merge-tree clean against feat(record-page): dense field rows, one-line activity and file-row attachments #35708 (open); feat(plugin-list): Filter and Sort open the shared field list, and conditions show as chips under the view bar #35643/feat(spec, ui): master_detail children are overview body tables by default #35691/fix(core): a signed-in request reads its session once with the rate limiter armed or a gate active on REST #35703 have closed.

Required before landing:

  • R1 (changeset text, push + CI, no fresh L1). (a) ListViewProps.defaultRowNumbers and the 'rowNumbers' member of the exported ListPersonalizationPart are removed from a published package's exports; AGENTS.md §changesets: a removed export carries its FROM → TO and one-line fix in the body. Add it, e.g. "<ListView defaultRowNumbers={…}> → delete the prop; row numbers are off by default, and a grid host opts in with showRowNumbers." If pnpm check:adr-0087-registration counts this as breaking, add its disposition marker too. (b) The hover 「打开 ›」 (row-expand-button) on a non-selectable grid with a row click is gone unless a host opts into row numbers. That is in the PR body only; it is a visible behaviour change on every such grid, so put one sentence in the changeset (row click and Cmd/Ctrl-click still open).
  • R2 (follow-up card, nested under 列表页左侧一条线对齐:勾选列在列多时被压到 16 宽并贴住屏幕左边;页面栏、视图栏、表格、页脚的左起点各不相同 #35663). The chart view's own view-bar copy (objectViewListRenderer.tsx ~355, sm:px-4) keeps the switcher icon at 22px, so the 16px line breaks when a user switches the list to chart. Reported as out-of-scope by the thread; it is the card's own baseline on a sibling view, so it gets a card rather than a note.

Nits (no action required):

  • inSetup stays in useObjectViewListRenderer's destructure and memo deps with no reader; fold its removal into R2's card.
  • ObjectView.setupListChrome-12606 keeps its title "drops the # column" while every list now does; the CONTROL case was rewritten to assert 0, fine as a pin.

… button

L1 R1: the changeset now gives the FROM -> TO fix for the removed
`ListViewProps.defaultRowNumbers` and the 'rowNumbers' member of
`ListPersonalizationPart`, and says a non-selectable grid's hover Open
button shows only where a host opts into row numbers (row click and
Cmd/Ctrl-click still open). check:adr-0087-registration counts no
declared-breaking changeset.

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

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6Cb8qTxAVaE2QKwquQU

Landing · area ux-4 · 2026-11-20T04:09Z

Reading Value
check-governed-merges --pr 35706 not governed, 1,004 lines → ordinary queue landing
K (merge base..origin/main) 13 (< 15)
CI on head da8bec6632 54 success, 10 skipped, 0 failed or pending; mergeable clean

Head da8bec663228f590ccf0995688ada92e44715ccd: L1-a ACCEPT 7029715490 on 829219f7d3; the only change since is R1, the changeset text (.changeset/35663-list-left-edge.md: FROM → TO for the removed ListViewProps.defaultRowNumbers and the 'rowNumbers' personalization part, plus the hover 「打开 >」 note). No code changed, so no fresh L1 is needed. check:adr-0087-registration exits 0, so there is no breaking marker. R2 is filed as #35729, nested under #35663. Ready + auto-merge now. #35663 closes on merge.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 20, 2026 04:10
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 20, 2026
Merged via the queue into main with commit 598a34d Nov 20, 2026
65 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-pmy7f9 branch November 20, 2026 04:31
os-sales pushed a commit that referenced this pull request Nov 20, 2026
Resolves the ListView conflicts with #35706 by keeping both sides: no row
numbers and no Row numbers switch (#35706), no inline-edit mode and no Edit
inline switch (this branch). With both switches gone, a list with no
record-open choice draws no More level, so the tests main moved onto the
Edit inline switch now use the row colour and the row height.

Claude-Session: https://claude.ai/code/session_01L6bhgTC8kn7AdeMpMmyhJG
Co-authored-by: Claude <noreply@anthropic.com>
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

2 participants