Repository navigation
Commit e01b8be
feat(console): list page frame — 44px page bar, 40px view bar, denser grid, per-column totals (#35615)
<!-- claude-projects-attribution: {"github_login":"os-bill"} -->
_Requested by **Bill** · [project
thread](https://claude.ai/code/project/chan_016iMXWSZDzqWRWvWzdNo8wg?thread=cmsg_016iMXWSZDzqWRWvWzdNo8wgEV9LRY8FfTWS7J6T3MwsSL)_
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. **#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.com/claude-code)
https://claude.ai/code/session_01Utp6CaSbGkUBKAq6TqjQqh
<!-- signed: repo:objectstack#5 · os-bill ·
session_01Utp6Cb8qTxAVaE2QKwquQU -->
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 34fe96f commit e01b8be
69 files changed
Lines changed: 1498 additions & 480 deletions
File tree
- .changeset
- docs/qa/platform-checklist/areas
- ui
- e2e
- packages
- app-shell/src
- layout
- views
- components/src
- __tests__
- renderers/complex
- fields/src
- i18n/src/locales
- plugin-grid/src
- __tests__
- components
- plugin-list/src
- __tests__
- components
- types/src
- __tests__
- zod
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
615 | 615 | | |
616 | 616 | | |
617 | 617 | | |
618 | | - | |
| 618 | + | |
619 | 619 | | |
620 | 620 | | |
621 | 621 | | |
| |||
641 | 641 | | |
642 | 642 | | |
643 | 643 | | |
644 | | - | |
| 644 | + | |
| 645 | + | |
645 | 646 | | |
646 | 647 | | |
647 | 648 | | |
| |||
650 | 651 | | |
651 | 652 | | |
652 | 653 | | |
653 | | - | |
| 654 | + | |
654 | 655 | | |
655 | 656 | | |
656 | | - | |
| 657 | + | |
| 658 | + | |
657 | 659 | | |
658 | 660 | | |
659 | 661 | | |
| |||
715 | 717 | | |
716 | 718 | | |
717 | 719 | | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
718 | 726 | | |
719 | 727 | | |
720 | 728 | | |
| |||
792 | 800 | | |
793 | 801 | | |
794 | 802 | | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
795 | 809 | | |
796 | 810 | | |
797 | 811 | | |
| |||
0 commit comments