Skip to content

feat(console): list page frame — 44px page bar, 40px view bar, denser grid, per-column totals - #35615

Merged
objectstack-fleet[bot] merged 18 commits into
mainfrom
claude/project-thread-lj1d6f
Nov 19, 2026
Merged

objectstack-fleet[bot] merged 18 commits into
mainfrom
claude/project-thread-lj1d6f

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Bill · project thread

Fixes #35548

repo:objectstack#5 · os-bill · session_01Utp6Cb8qTxAVaE2QKwquQU

Clause-②: no
Metadata-protocol: none

What changes

The object list page's frame, card 1 of the list-page epic #35547:

  • Page bar, 44px (PageHeader list posture). The object's icon and name are on the left. ⋮ and 「+ 新建」 are on the right. The object description, Import and Favorite live in ⋮ at every width (objectViewPageHeader.tsx).
  • View bar, 40px. It is ListView's toolbar row for every view type, kanban included. The view switcher is one trigger on the left that reads type icon → name → count → caret. On the right sit 「筛选」「排序」「选项」 as 13px text triggers, then search. ListView's toolbarLeading may now be a function of { recordCount, layout }. The Console's switcher reads the count through ListRecordCountContext. A small store keeps the switcher from re-rendering ListView.
  • Condition row. A data-slot="list-condition-row" row sits under the view bar. It is empty:hidden, so it takes zero height until 列表筛选重做:点「筛选」出可搜索的字段清单,按字段类型选值,条件以标签留在视图栏下 #35549/列表排序重做:与筛选共用字段清单,点一个字段即生效,排序以标签留在视图栏下 #35550 fill it.
  • Grid. The header is 32px and default rows are 33px. Header, cells and bar buttons use 13px type. Row lines are faint, there is no rule after the first column, and the frozen-column shadow shows only after horizontal scroll. Bar buttons are 24–28px, and the row ⋮ trigger is 24px. Lookup values are drawn as chips. Money and number columns are right-aligned with tabular digits, including a formula with returnType: 'currency' (alignsAsNumber). Select labels are desaturated.
  • Totals. Per-column totals are the table's own last row, so each figure sits under its column (right edges measured equal to the header cells). The row is led by 「计数 N」 and has no doubled colon. The separate footer line ListView used to join is gone.

The count beside the view name comes back after #34603 took it away. The maintainer's words were 「记录数显示在下拉左侧」.

summaryRow: a host-only runtime slot

DataTableSchema.summaryRow?: { lead?, cells } (types/src/data-display.ts) is filled by ObjectGrid and drawn by data-table. Like rowGroups, the zod face refuses it by name (handlerKeyRefusal), so it is not authorable metadata. It is pinned in data-table-declared-keys-6882.test.ts and in the zod-mirror-parity KnownDrift ledger (now 51 entries / 90 keys). Nothing in packages/spec, the server or REST changes.

Deviations from the card

  1. Export stays in the 「选项」 popover footer, not in the page bar's ⋮. Export acts on the view on screen: its filters, sort, visible columns and format permissions, all of which ListView owns. The page bar's ⋮ is object-level and lives in app-shell. Moving export there would mean lifting ListView's export state into the page, outside this card's surface. The 「选项」 panel itself is 列表「选项」重做:菜单化(视图名、布局、字段、分组、行高),字段可搜索、拖动排序、点眼睛隐藏 #35551's. The description is in ⋮ on the wide face (with Import and Favorite), as the card asks.
  2. The view's own description (not the object's) becomes the switcher trigger's tooltip on every face. It replaces the info icon the grid face used to draw.
  3. ObjectView.tsx gets a third hand-over line (titleSwitcher into the header chrome), so a refused view still draws its switcher in a 40px bar and the reader can leave it. The area approved this line.
  4. Below sm: the count is hidden on the switcher, and 「筛选」「排序」「选项」 stay icons. Phones are out of scope, so the phone bar is unchanged.
  5. The row ⋮ trigger is h-6 so a row measures 33px. 列表取消「操作」列:选中后在页面栏换操作、右键菜单;默认滚动加载、记录数在视图名旁 #35554 replaces that column.
  6. The condition row is reserved only. Its contents belong to 列表筛选重做:点「筛选」出可搜索的字段清单,按字段类型选值,条件以标签留在视图栏下 #35549/列表排序重做:与筛选共用字段清单,点一个字段即生效,排序以标签留在视图栏下 #35550.
  7. fix(grid): a narrowed list keeps every data cell clear of its fixed columns and shows its scrollbar #35552's full-page CONTROL (ui/e2e/list-header-narrow-35446.spec.ts) is migrated. At 1440px the bar is still not compact and not folded, and the description and Import now open from ⋮.

Tests migrated / retired

  • New: ui/e2e/list-frame-geometry-35548.spec.ts (7 fixture tests: bar heights 44/40, condition row 0, thead 32, rows 33, first row ≤168px, buttons 24–28px, 13px type, switcher order, each total's right edge on its column, no :: in zh/en). Each of 4 ablations turns it red. plugin-list/src/__tests__/ListView.viewBarLeading-35548.test.tsx (3 tests).
  • Retired: ListView.footerOneRow-12528. It now pins that ListView hands no onColumnSummaryChange and that the count row holds the count alone.
  • Migrated, app-shell views: chartViewTabs-13114, favoritesEntry-12427, headerFold-12705, importPredicates, labelLessViewTab-12774, listActionsReadGate-12109, listPersonalized-28950, listTitlePlural-11696, managedEnvironmentUsers-13330, objectBoundActions-7234, objectListTitle-27950 (ruling B retired: the page bar names the object, the view bar names the view), refreshInPlace-10035, servedViewLabel-11295, starredView-27594, titleViewSwitcher-27594, userListState-12418, viewRefusal-12112, viewWriteRefusal-11583.
  • Migrated, plugin-grid: column-features, footerSummaryHost-12528, footerSummaryScope-12081, footerSummaryFieldScale-33542, gridFixedCurrency-10354, useColumnSummary.fieldOnlyHints-11588 (the totals are read from the cell under each column), rowHeightOffSpecBoundary (the compact arm is h-8).
  • Migrated, components: data-table-noop-edit-11816 (the header label is 13px on both the data and the Actions column).
  • Migrated, plugin-list: fieldListRead-11984, harness, toolbarIconButtons-12695, toolbarAccessibleNames-12500 and toolbarRows-27520 (from sm up, Filter shows its label).
  • Migrated, types: data-table-declared-keys-6882, zod-mirror-parity.
  • Migrated, e2e: list-toolbar-view-name-phone, list-header-narrow-35446.

Checklist items edited

records-forms.list-view-capabilities goes to revision 10. It gains a new list-frame variant, step 6 now points at the 「选项」 popover, and it gains step 11 plus an acceptance clause for the frame geometry, which name the automated pins. History is dated 2026-11-19, ref #35548.

Verification (local, targeted)

  • Vitest over the affected set: 402 files, 5,946 passed, 13 skipped.
  • Fixture e2e: 29 passed.
  • Type-check passes for types, i18n, fields, components, plugin-grid, plugin-list and app-shell.
  • Derived gates (dispatch-gates --commands, 49 commands): 47 passed on the first run. The other two passed after fixes: ui/scripts vitest (a doc block of ListViewHandle had been split from its interface) and check:test-source-alias (the edited ObjectView tests now import @objectstack/lint at module top). check:platform-checklist passes. overlap-check is clean against origin/main and the open PR heads.
  • CI is green on 0b42c70 (50 check runs succeeded). The first head was red in 7 UI shards because of 7 pins the local affected set had missed. Those pins are migrated above.
  • Live check on the showcase CRM 商机 list at 1280×800 zh-CN: page bar 44, view bar 40, thead 32, first row top 164 with height 33, all text 13px. Each total's right edge equals its header cell's right edge (787/947/1074).

🤖 Generated with Claude Code

https://claude.ai/code/session_01Utp6CaSbGkUBKAq6TqjQqh

@github-actions github-actions Bot added size/xl 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
…ow cells, 33px compact row, named Filter trigger, 13px header label)
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6Cb8qTxAVaE2QKwquQU

Final head for L1: 0b42c70c8187660049244a462e73937ec5fdf773 · 2026-11-19T18:32Z

  • CI on this head: 52 success, 13 skipped, 0 failed or pending; mergeable clean. K = 7. check-governed-merges --pr 35615: not governed, 1,978 lines (+1,498 / −480, 69 files). Clause-②: no · Metadata-protocol: none. Fixes #35548.
  • The change (card thread report: card-35548/final-report.md; claim 7013831044 + amendments 7013990817, 7014100319, 7016246316 with the slot map): page bar 44 + view bar 40 (switcher = type icon · name · count · caret; 筛选 / 排序 / 选项 text triggers + search icon), empty condition row of zero height, header 32 / rows 33 / 13px throughout, faint row lines, no first-column rule, lookup chips, right-aligned tabular numbers, per-column totals drawn as a row of the grid's own table with 「计数 N」 lead (no double colon). Kanban draws the same two bars.
  • Type surface: one host-only runtime slot DataTableSchema.summaryRow (ui/packages/types/src/data-display.ts), refused by name in the zod face like rowGroups / renderCellEditor, pinned in data-table-declared-keys-6882. Not authorable, not packages/spec. Seat L2 look owed on this slot.
  • Tests: new ui/e2e/list-frame-geometry-35548.spec.ts (7, ablations A–D each red) and ListView.viewBarLeading-35548 (3); ListView.footerOneRow-12528 retired into a no-summary-host pin; 18 app-shell, 3 plugin-grid, 3 plugin-list, 2 types and 2 e2e migrated in round 1, plus 7 stale pins caught by CI round 1 (55a069b). Vitest 402 files / 5,946 tests; type-check clean in 7 packages; dispatch-gates 49 commands green. Checklist records-forms.list-view-capabilities rev 10.
  • Deviations (in the PR body): Export stays in the 「选项」 footer; view description becomes the switcher tooltip; a refused view keeps its switcher bar (third ObjectView.tsx line); below sm the count hides and triggers stay icons; row ⋮ h-6 (removed by 列表取消「操作」列:选中后在页面栏换操作、右键菜单;默认滚动加载、记录数在视图名旁 #35554 next); count beside the view name restored on the maintainer's word 「记录数显示在下拉左侧」 over 列表:去掉视图切换器旁边的记录数 #34603.
  • A4: HotCRM not reachable from the thread container; measured on the showcase CRM 商机 at 1280×800 zh-CN (first row top 164, totals' right edges equal their th's).

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CXsZsKmgG1EcKp5bY4

维护者速读

  • 用户能看到什么变化:对象列表页重画成两条栏:上面一条是对象名和"新建",下面一条是视图切换(图标·视图名·记录数)和"筛选/排序/选项";表格更紧凑(表头 32、行高 33、统一 13 号字),合计改成表格最后一行、每个数字对齐在自己那一列下。
  • 为什么做:这是列表页重做的第一张卡,按你给的效果图统一列表框架,其余几张卡在此基础上接着做。
  • 出错会怎样:只影响列表页的样子和位置,不改数据、权限和视图配置;导出、说明、收藏等功能只是挪了位置。
  • 要你做什么:无。席位看一下新加的表格合计接口后,由区域落地。
  • 席位意见:改动大但每处都有测试和几何对照,可以落地;新加的合计接口是否算对外契约请席位确认。

席位核对

L1-a: ACCEPT · head 0b42c70c8187660049244a462e73937ec5fdf773 · Fixes #35548 · 2026-11-19T18:34Z · reviewed to pm-dispatch text at origin/main fca72dfa32

Readings, my own.

  • check-governed-merges --pr 35615: 0 of 69 paths governed. +1498/−480 is under the human-merge threshold.
  • merge-tree against main: clean. K=7.
  • CI: 52 success / 13 skipped / 0 failed.

Claim. 7013831044, 15:36Z. It is p1, queued by seat 5 on the maintainer's call. It has three amendments: 7013990817 (plugin-list, objectViewListRenderer, the ObjectView.tsx hand-over), 7014100319 (the Options trigger, the types slot) and 7016246316 (the final file list plus the slot map).

  • Every one of the 69 paths is in that final list, including the two existing e2e specs and the 18 migrated ObjectView.* pins.
  • ObjectView.tsx changes only the title-switcher hand-over: pageHeaderShown / useViewTabsFit are dropped, phoneTitle leads the view bar at every width, titleSwitcher goes to the list renderer, and the page header loses its switcher props. That matches the final list and the PR body's "third line" deviation.

Code, the parts with behaviour.

  • data-table.
    • summaryRow is drawn as a <tfoot> row, sticky at the bottom of the scroll box. Each column's figure sits in that column's cell, frozen cells stay sticky-left at their measured offsets, and right-pinned cells stay sticky-right.
    • The lead shares the first cell with that column's figure when there is one.
    • The frozen-edge shadow appears only once scrollLeft > 0, through a passive scroll listener cleaned up on unmount.
    • Right-aligned cells get tabular-nums.
  • ObjectGrid.
    • It fills summaryRow (lead 「计数 N」 from the server total when known, else the rows; cells from the existing summaries labels) only when it draws the summaries itself (!onColumnSummaryChange).
    • It removes the old footer div, which carried the doubled colon.
    • It passes summaryRow: undefined on the path that must not inherit it.
    • Density is applied through one class string (OBJECT_GRID_TABLE_DENSITY): header 32, faint row lines, lookup chips, select saturation, compact rows h-8.
  • The view bar and page bar (ListView, listToolbarRow, objectViewPageHeader, objectViewTitleSwitcher). The switcher (icon · name · count · caret) leads the view bar. 筛选/排序/选项 are text buttons from sm up and icons below it. Description, Import and Favorite move into ⋮. The empty condition row takes zero height (empty:hidden).

Pins (names grepped, counts from the final-head note 7018304198).

  • list-frame-geometry-35548.spec.ts: 7 cells, with ablations A–D each red.
  • ListView.viewBarLeading-35548: 3 cells.
  • footerOneRow-12528: retired into a no-summary-host pin.
  • data-table-declared-keys-6882 pins the summaryRow refusal.
  • The migrated pins are listed in the note.
  • Vitest: 402 files / 5,946 tests. Type-check is clean in 7 packages.
  • A4 was measured on the showcase CRM at 1280×800 zh-CN, because HotCRM is not reachable from the container: each total's right edge equals its column header's.

Deviations named in the body, agreed.

For the seat's L2 look: DataTableSchema.summaryRow. @object-ui/types' zod DataTableSchema sits on BaseSchema's .passthrough(). So before this PR an authored summaryRow key was kept unexamined, and nothing read it. It is now refused by name (handlerKeyRefusal(..., 'runtime-slot')), exactly as rowGroups was.

I read it as Clause-② no, for three reasons:

  • the key arrives in the declared type together with its refusal (the d635555 precedent);
  • no reader ever consumed an authored value, so no document that did something now does something else;
  • it is not packages/spec.

The seat decides whether a passthrough-kept key that becomes refused needs the (narrowing) arm on this package's zod face. If it does, the PR needs a changeset line, not code.

Declaration: agreed, subject to that look. Clause-②: no / Metadata-protocol: none. There are two new locale keys (list.options, grid.summary.countLead) across all 11 packs. Changeset sentences checked against the diff: the page bar 44, the view bar 40 and its triggers, kanban drawing the same bars, the grid metrics and cell presentation, totals as the table's last row led by 「计数 N」 with no doubled colon, and the summaryRow slot refused by name.

Routing. Not governed. After the seat's L2 look at the slot, ux-4 lands it.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6Cb8qTxAVaE2QKwquQU

Landing · area ux-4 · 2026-11-19T18:34Z

Reading Value
check-governed-merges --pr 35615 not governed, 1,978 lines → ordinary queue landing
K (merge base..origin/main, first-parent) 7 (< 15)
CI on head 0b42c70c81 52 success, 13 skipped, 0 failed or pending; mergeable clean

Head 0b42c70c8187660049244a462e73937ec5fdf773: L1-a ACCEPT 7018345565. Seat look on the DataTableSchema.summaryRow runtime slot: clear, no L2 record owed (Clause-② no; ui/packages/types only). Ready + auto-merge now. #35548 closes on merge.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 19, 2026 18:35
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 19, 2026
Merged via the queue into main with commit e01b8be Nov 19, 2026
66 checks passed
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.

列表框架:页面栏 + 视图栏两条、表头 32 / 行高 33、统一 13 号字、合计与列对齐(图 36)

2 participants