Repository navigation
fix(list): one 16px left edge on the list page, a 40px selection column at any width, no row numbers - #35706
Conversation
…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
Claude-Session: https://claude.ai/code/session_01L6bhgTC8kn7AdeMpMmyhJG Co-authored-by: Claude <noreply@anthropic.com>
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
|
repo:objectstack#5 · os-bill · session_01Utp6Cb8qTxAVaE2QKwquQU Final head · area ux-4 · 2026-11-20T03:40Z
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. |
|
repo:objectstack#5 · os-bill · session_01Utp6CXsZsKmgG1EcKp5bY4 维护者速读
席位核对ACCEPT · head Routing: no Checked:
Required before landing:
Nits (no action required):
|
… 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
|
repo:objectstack#5 · os-bill · session_01Utp6Cb8qTxAVaE2QKwquQU Landing · area ux-4 · 2026-11-20T04:09Z
Head |
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>
Requested by Bill · project thread
Fixes #35663
repo:objectstack#5 · os-bill · session_01Utp6Cb8qTxAVaE2QKwquQU
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
data-table.tsx,LEADING_CELL_WIDTH). Every cell of the leading column (header, rows, summary row, the row-number-only cell) carriesw-[1%] min-w-10instead ofw-10. Under the table's automatic layout a plainw-10let 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-10holds 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 same1%thefitContentcolumns use).LEADING_CELL_INSET = 'pl-4 pr-2'): 16 + 16 box + 8 gap = 40.opacity-0until hover / focus / coarse pointer / any selection) now applies only when a host opts into row numbers; without them every row's checkbox is visible.ObjectGriddraws no row numbers unless its host asks (hostShowRowNumbers ?? false, was?? true). Hosts whose grids lose their numbers with this: the related lists (plugin-detailRelatedList), the designers' grids (plugin-designerObjectManager,FieldDesigner),plugin-view'sObjectViewgrid and any page block of typeobject-grid. None is kept on as an opt-in: after this PR no host passes the prop.data-table'sshowRowNumbersstays as an opt-in for other hosts (it is a declaredDataTableSchemakey in@object-ui/types).listToolbarRow.ts,TOOLBAR_ROW): fromsmup,pl-2.5 pr-2instead ofpx-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. Belowsmthe row is unchanged.ListViewdrops its session-only row-number state, thedefaultRowNumbershost prop and the'rowNumbers'personalization part; the console host'sdefaultRowNumbers={!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.rowNumbersandconsole.objectView.personalizedParts.rowNumbersleave 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.content/docs/ui/views.mdx, claim amendment 3): it no longer lists row numbers among what the marker names.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). RealObjectGrid+data-table+ app-shellPageHeader(list posture), bundled by Vite from source, the view bar fromlistToolbarRow.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 indata-table-row-tint-sticky-12375),rowHeightOffSpecBoundary(opts intoshowRowNumbersso 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 asinlineEdit),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-6598andhtmlTierListViewDefaultColumns-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 intoshowRowNumbers, since the hover "open record" button lives in the row-number cell; red on CI at e5c9c4e).Retired:
ListView.harness›ListView.setupChrome-12606CONTROL ("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):
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).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-9462RED 1). carrier: none (follows from the card's "no row numbers").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:
ui/packages/components/src/renderers/complex/data-table.tsx:LEADING_CELL_WIDTH/LEADING_CELL_INSETon every leading cell, and the visibility arm now gated onshowRowNumbers.ui/packages/plugin-grid/src/ObjectGrid.tsx: the?? falsedefault.ui/packages/plugin-list/src/ListView.tsxandcomponents/ViewSettingsPopover.tsx: the row-number state, prop and part gone;hasMorewithout the switch.ui/packages/plugin-list/src/listToolbarRow.ts:TOOLBAR_ROW'ssm: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
origin/mainsources: 3 of 4 red (wide, narrow, scroll), 375 green.scripts/ablation-replace.mjs, restored to the HEAD blob,git diff HEADempty):LEADING_CELL_WIDTH→'w-10': 3 red ("the selection column is 32 wide", "93.9 wide", "32 wide after scrolling").TOOLBAR_ROWsm: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").showRowNumbers && !selectionActive→!selectionActive: 2 e2e red ("a row checkbox is hidden until hover") anddata-table-leadingCell-12423red (1 of 6).componentscomplex renderers + the selection tests,plugin-grid,plugin-list,plugin-detail,plugin-view,plugin-designer,GridField,RecordPickerDialog.layout-11903, app-shellObjectView*,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).plugin-listwhole, app-shellviews/ObjectView*+views/__tests__,i18n: 476 files, 5559 passed, 5 failed in 3 files, all migrated above (ListView.permissions, bothhtmlTier*-6598); those 3 files plusrowClickModifierPayloadForward-9462,renderer-copy-locale-25916,ObjectView.setupListChrome-12606andObjectView.listPersonalized-28950re-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.components,plugin-grid(round 1),plugin-list,app-shell,i18n(round 2)type-checkexit 0;uitype-check:e2eexit 0 (round 1).check:i18n-keys,check:i18n-drift,check:i18n-dead-keysexit 0.dispatch-gates.mjs --commands): 74 derived at the round-2 tree, 74 run, each exit 0;--ranreconciliation: 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