Skip to content

Commit e01b8be

Browse files
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

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
'@object-ui/plugin-list': patch
4+
'@object-ui/plugin-grid': patch
5+
'@object-ui/components': patch
6+
'@object-ui/types': patch
7+
'@object-ui/fields': patch
8+
'@object-ui/i18n': patch
9+
---
10+
11+
feat(console): the list page's frame — a 44px page bar, a 40px view bar, a denser grid and per-column totals in the grid's own last row
12+
13+
Clause-②: no
14+
Metadata-protocol: none
15+
16+
The object list page is redrawn around two bars and a denser grid (objectstack#35548, the first card of the list-page epic):
17+
18+
- **Page bar, 44px.** The object's icon in one colour and its name on the left; ⋮ and 「+ 新建」 on the right. The object's description, Import and Favorite moved into ⋮.
19+
- **View bar, 40px.** The view switcher is one trigger on the left, reading the view type's icon, the view name, the record count and a caret (the count beside the name returns, after objectstack#34603 removed it). 「筛选」「排序」「选项」 are text buttons on the right beside the search icon, and open the same panels as before; below `sm` they stay icons. The kanban and every other view type draw the same two bars. An empty condition row under the bar takes no height.
20+
- **Grid.** A 32px header and 33px default rows, 13px on the header, the cells and the bar buttons, faint row lines, no rule after the first column, and the frozen-column shadow only once the grid scrolls sideways. The row ⋮ trigger is 24px so it fits the row. Lookup values read as small chips, money and number columns (a money formula with `returnType: 'currency'` among them) align right with tabular digits, and select labels keep their colour at lower saturation.
21+
- **Totals.** Column summaries are drawn as the table's own last row, each figure under its column (so they line up at any width and are never covered by pinned columns), led by 「计数 N」; the separate footer line and its doubled colon are gone.
22+
23+
`DataTableSchema` gains one host-only runtime slot, `summaryRow` (`{ lead?, cells }`), which `ObjectGrid` fills; like `rowGroups`, the zod face refuses it by name, so it is not authorable. New locale keys: `list.options`, `grid.summary.countLead`.

‎docs/qa/platform-checklist/areas/records-forms.json‎

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@
615615
"title": "List-view capability matrix: filter, search, sort, pagination, saved views, inline edit, export, visualization switcher, bulk/row actions, conditional formatting",
616616
"since": "v15",
617617
"status": "active",
618-
"revision": 9,
618+
"revision": 10,
619619
"priority": "P1",
620620
"surface": "browser",
621621
"personas": [
@@ -641,7 +641,8 @@
641641
"visualization-switcher",
642642
"bulk-actions",
643643
"row-actions",
644-
"conditional-formatting"
644+
"conditional-formatting",
645+
"list-frame"
645646
],
646647
"steps": [
647648
"open /_console/apps/com.example.showcase/showcase_task and screenshot the default All Tasks grid",
@@ -650,10 +651,11 @@
650651
"open the tabular saved view (sort [{field: 'estimate_hours', order: 'desc'}] — the array form: #17053 retired the bare string clause 'estimate_hours desc' platform-wide, so the objectui#2601 string-crash fixture no longer exists on stock); confirm it renders and the request carries the sort as sort=-estimate_hours",
651652
"page a list past page 1. No stock list holds more rows than the 50-row page (the largest seeded task and contact lists are under it), so stage one first: POST /api/v1/data/showcase_inquiry/createMany with a bare JSON array of 55 rows (name + email + message each — showcase_inquiry requires `message` too, and a name + email body answers 400 \"Message is required\", QA run #24616), then page the Inquiries list; capture `top`/`skip` on every data request; confirm no unpaged full fetch",
652653
"in the grid saved view (inlineEdit: true), edit one cell in place; save; capture the PATCH; re-read the row via API",
653-
"on in_progress, with the export grant from fixtures.requires[3] bound, open the toolbar's Display popover — Export sits in its footer ('Export as CSV / XLSX / JSON'), not as a separate toolbar button — and export each declared format (csv, xlsx, json); capture the requests and files. Without the grant the Export entries are absent and the route answers 403 EXPORT_NOT_PERMITTED — the opt-in working as designed, not a fail of the export variant",
654+
"on in_progress, with the export grant from fixtures.requires[3] bound, open the view bar's Options (选项) popover — the Display popover, a text trigger since objectstack#35548 — Export sits in its footer ('Export as CSV / XLSX / JSON'), not as a separate toolbar button — and export each declared format (csv, xlsx, json); capture the requests and files. Without the grant the Export entries are absent and the route answers 403 EXPORT_NOT_PERMITTED — the opt-in working as designed, not a fail of the export variant",
654655
"open the visualization switcher on All Tasks; enumerate the offered types; switch through each",
655656
"on bulk_actions, select rows that are NOT done and run showcase_mark_done (per-record) — its visible gate, has(record.done) && record.done != true, judges each selected row, so a done row in the selection drops Mark Done from the bulk bar, or, over a mixed selection, the confirm reports the done rows not eligible and skipped (QA run #27438); either way the dispatch count stops matching the selection — and showcase_recalc_selection (aggregate — ONE dispatch: an api-type action, which the console sends through the action door, POST /api/v1/actions/showcase_task/showcase_recalc_selection with body {params:{_selectedIds:[…]}}; the server forwards those params flat to the action's own target /api/v1/apps/showcase/recalc in-process, buildApiActionRequest in packages/runtime/src/action-execution.ts, so the browser's network log shows the door request and no /recalc request); on legacy_row_actions confirm both named row actions resolve to live menu entries",
656-
"on Field Zoo, confirm the conditionalFormatting row highlight applies to Specimen — Full (f_lookup set) and not Specimen — Minimal"
657+
"on Field Zoo, confirm the conditionalFormatting row highlight applies to Specimen — Full (f_lookup set) and not Specimen — Minimal",
658+
"at 1280×800 on a zh-CN session, read the list frame on All Tasks, then on its kanban view: a 44px page bar with the object's icon and name on the left and ⋮ (description, import, favorite) and 「+ 新建」 on the right; a 40px view bar with ONE switcher trigger reading type icon → view name → record count → caret on the left and 「筛选」「排序」「选项」 plus the search icon on the right; no condition row height while no condition is set; on the grid a 32px header and 33px rows at 13px; and, on a view whose columns declare a `summary`, each total under its own column with 「计数 N」 leftmost and no doubled colon. The kanban view draws the same two bars (objectstack#35548; the count beside the view name returns, after objectstack#34603 removed it)"
657659
],
658660
"acceptance": [
659661
{
@@ -715,6 +717,12 @@
715717
"oracle": "dom",
716718
"verify": "after screenshot, open a row menu on the legacy_row_actions view; click each entry and confirm it dispatches (objectui#2960 contract)",
717719
"evidence": "menu screenshot + dispatch traces"
720+
},
721+
{
722+
"clause": "the list frame holds its geometry: page bar 44, view bar 40, header 32, rows 33, 13px on the header, the cells and the bar buttons, the first data row top at or above 168px under the 48px shell bar, the switcher read type icon → name → count → caret, every column total's right edge on its column's (±1px), no doubled colon in the summary row, and the kanban view under the same two bars",
723+
"oracle": "dom",
724+
"verify": "read getBoundingClientRect and the computed font size of each part at 1280×800 zh-CN (the geometry and order halves are pinned by ui/e2e/list-frame-geometry-35548.spec.ts over the real class strings; the kanban half by ui/packages/plugin-list/src/__tests__/ListView.viewBarLeading-35548.test.tsx); the summary half needs a view whose columns declare `summary`, which task.view.ts does not, so stage one in the showcase's customization pair as negative[0] does",
725+
"evidence": "light and dark screenshots of the grid and the kanban, plus the measured heights"
718726
}
719727
],
720728
"negative": [
@@ -792,6 +800,12 @@
792800
"date": "2026-11-04",
793801
"change": "steps[8], acceptance[8] (clause and verify), negative[0] and negative[1] corrected from QA run #29890 (W5-FAIL, at 589049b0; the re-point wave 4 parked until #29173 landed). The aggregate showcase_recalc_selection is sent through the action door, POST /api/v1/actions/showcase_task/showcase_recalc_selection with {params:{_selectedIds}}, since #27611, and the server forwards the params flat to /api/v1/apps/showcase/recalc in-process (buildApiActionRequest). negative[0]'s package-less overlay of showcase_task.done is refused 403 NOT_OVERRIDABLE since ADR-0146 D11, so the stage goes into com.example.showcase.custom through the ensure door; negative[1] says how to stage a tabs userFilter view. Read at base f68b47ca",
794802
"ref": "#29906"
803+
},
804+
{
805+
"revision": 10,
806+
"date": "2026-11-19",
807+
"change": "list-frame variant, steps[10] and its acceptance clause added, and steps[6] re-pointed: the list page's frame was redrawn (objectstack#35548, epic #35547). The toolbar's icon-only Display trigger is now the view bar's 「选项」 (Options) text trigger beside 「筛选」 and 「排序」, the view switcher carries the type icon and record count (the count objectstack#34603 had taken away), and the column totals moved into the grid's own last row. No earlier clause changed",
808+
"ref": "#35548"
795809
}
796810
]
797811
},

0 commit comments

Comments
 (0)