Skip to content

Commit d07ece7

Browse files
feat(plugin-list, plugin-audit): the audit log loads as it scrolls and stops counting the ledger (#39365)
<!-- claude-projects-attribution: {"github_login":"os-bill"} --> _Requested by **Bill** · [project thread](https://claude.ai/code/project/chan_016iMXWSZDzqWRWvWzdNo8wg?thread=cmsg_016iMXWSZDzqWRWvWzdNo8wgJxHiXh4o1DDshASi6deAwZ)_ Fixes #39270 Ruling-ref: 7381289655 (ruling C; analysis 7378111006) · Claim: 7381451680 · Thread session: `session_01Utp6CZT8FUBCNmB1htsrbB` ## What changes - **List view rule, every object** (`ui/packages/plugin-list/src/ListView.tsx`): an ungrouped grid that loads as it scrolls (no declared `pagination`) and whose view declares `showRecordCount: false` sends the declined total (`$count: false`, wire `count=false`). It pages on `hasMoreRows` = "the last window came back full", which already existed for a missing total (objectstack#35554). On that path `onTotalChange` is not called (its `(total: number) => void` signature is unchanged); the list calls the new optional host prop `onTotalDeclined()` once per settled load instead, so a host drops a count an earlier view gave it and never reads the loaded rows as one (L2 7387302017 M3). Controls kept per the ruling's execution parameters: a view that hides its count but keeps a numbered pager still asks for the total; a grouped grid, the compact posture (its header prints the total) and the capped posture (excluded from scroll-loading) still ask. - **No surface prints the loaded rows as a count** (L2 7385481231 M1, M2): - Grid footer (`ui/packages/plugin-grid/src/ObjectGrid.tsx`, `objectGridSummaries.ts`): when the host loads window by window, says there is more, and hands no count larger than the rows loaded, the summary row prints no 「Count N」 lead, asks no whole-set aggregate (that query scans the set the list declined to count; per the zone's steer), and labels each declared figure as over the rows on screen (`Sum (this page)`, the existing page label). Once the last window is in, the loaded rows are the set and the footer reads as before. - Record stepper (`ui/packages/app-shell/src/views/objectViewRecordNavigation.ts`, `recordDrawerStack.tsx`, `ObjectDataPage.tsx`, wired through `ObjectView.tsx` and `objectViewListRenderer.tsx`): `onTotalDeclined` sets the list's total to `null`, which marks the drawer's root level and the record page's `from` state `totalUnknown`; both then draw ↑ ↓ through the loaded rows with no 「N / M」 counter. A stale total from a counted view is cleared. `ListViewBlock` is unchanged: it spreads host props, so a host's `onTotalDeclined` reaches the list, and the page tab's badge gets no number. The dashboard drill (`DrillRecordList.tsx`) drops its total on `onTotalDeclined`. - `ui/packages/plugin-list/README.md` (shipped): the `onTotalChange` section now teaches the declined case and `onTotalDeclined` (L2 S2). - **Ledger views** (`packages/plugins/plugin-audit/src/objects/sys-audit-log.object.ts`): all six `sys_audit_log` list views declare `showRecordCount: false` and drop `pagination`. `all_events` now loads in windows of the default page size instead of 100. - **Standalone audit page** (`ui/apps/console/src/pages/system/AuditLogPage.tsx`): it already paged on the row past its window and never read `total`; it now sends `count=false`. - **Spec description** (`packages/spec/src/ui/view.zod.ts`): `showRecordCount` says what `false` now does, and names the lists that still ask for the total (numbered pager, grouped grid, a page region's compact or capped form; L2 S1); reference docs regenerated (`gen:docs`). The view metadata form's hint (`view.metadata-form.ts`) is the same text, as its pin requires, with the `en` metadata-forms bundle regenerated (`check-i18n-bundles --write`). - **Component reference**: the plugin-list registry's `showRecordCount` input description (`ui/packages/plugin-list/src/index.tsx`) says the same; `sdui.manifest.json`, its record and `content/docs/ui/components/plugins.mdx` are regenerated from it. - No wire key, view key, ledger field, index or migration is added. ## Why Opening Setup → Audit log ran a `count(*)` over the whole filtered ledger beside every 50-row window: 3.5 s on the maintainer's 202k-row deployment, 1.7 s cold on 200k rows in the dev's measurement (report 7377789707), with every other request stalled on SQLite. The window itself is 2–4 ms. The ruling chose to stop asking for the total rather than make the count cheaper. ## Premise check (ruling premises 4 and 8), at main 850d240 - Scroll-loading without a total: `hasMoreRows` falls back to `dataLimitReached` when `serverTotal` is null; the adapter routes `$count: false` to the raw GET with `count=false`; the server door omits `total` and skips the count (`protocol-data-crud.ts`, pinned by `protocol.count-opt-out.test.ts`). - Cross-page select-all: the selection bar offers "all N matching" only when `totalMatching > pageSize`; on the scroll-loading arm with no total both are the rows in hand, so the offer is not drawn (no false "all N"). The ledger views declare no selection. - Compact embedding: the compact posture draws one window and prints the total in its header, so it keeps asking (declining there would print a window size or show a silent window). ## Verification - New `ui/packages/plugin-list/src/__tests__/ListView.declinedTotal-39270.test.tsx` (6 cases): every window asks `$count: false` and no count runs; rows past the first window are reached (50 → 100 → 120, then `hasMoreRows` false); no count bar, no figure beside the view name, `onTotalDeclined` called and `onTotalChange` never; the counted control never calls `onTotalDeclined`; controls (numbered pager, shown count, compact) still ask. - `ui/packages/plugin-grid/src/__tests__/footerSummaryScope-12081.test.tsx` (+2 cases): two windows loaded with more to come print no count lead, label the sum `(this page)` and ask no aggregate; control: all rows in, the lead counts them and the sum is plain. Ablated (`hostCountIsWindow` off), the first fails. - `objectViewRecordNavigation.listRows-27524.test.tsx` (+1 case): a counted list that then declines drops its total, and the origin carries `totalUnknown`. - New `ui/packages/app-shell/src/views/__tests__/recordStepper.totalUnknown-39270.test.tsx` (7 cases): `listOriginOf` marks `totalUnknown` (ungrouped only); the record page and the drawer root step with no counter; counted controls keep 「2 / 50」 and 「2 of 3」. Ablated, 2 fail. - New `ui/apps/console/src/pages/system/AuditLogPage.declinedTotal-39270.test.tsx`: every ledger read sends `count=false`, and Next reaches the 51st row. - New `packages/plugins/plugin-audit/src/objects/sys-audit-log-views-uncounted.test.ts`: every declared view is a grid with `showRecordCount: false` and no `pagination`. - Ablation: with the `totalDeclined` rule and the page's `count=false` reverted, 4 of the new UI cases fail; restored, all pass. - `vitest run packages/plugin-list/ apps/console/src/pages/system/`: 244 files, 2436 tests passed. plugin-audit: the new pin + `sys-audit-log-default-view.integration.test.ts` pass. `@objectstack/spec check:generated` after `gen:docs`: the one stale artifact regenerated. - Real-stack check (browser, showcase boot): screenshots in a comment below. Clause-②: yes (widening) — one new optional host prop, `onTotalDeclined?: () => void`, on `@object-ui/plugin-list`'s `ListView` (`ListViewProps`); `onTotalChange` keeps its `(total: number) => void` signature; nothing removed or narrowed Metadata-protocol: semantic Skills-docs: none — no `skills/**` or `ui/skills/**` text names `showRecordCount` (grep at 850d240); the component reference row is regenerated here. ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. - [x] 2. Every name I added uses the casing for its kind. - [x] 3. No formatter ran; `pnpm lint` passes. - [x] 4. One issue, one branch off an up-to-date `main`, one pull request. - [x] 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. - [x] 6. `packages/spec` touched: its generated artifacts are regenerated and committed. - [x] 7. No hand edits to `content/docs/references/`, `packages/*/CHANGELOG.md` or `content/docs/releases/`. - [x] 8. Title, body and comments are in English. - [x] The *Before Submitting* list in CONTRIBUTING.md is done. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01Utp6CZT8FUBCNmB1htsrbB <!-- signed: repo:objectstack@os-bill · os-bill · session_01Utp6CZT8FUBCNmB1htsrbB --> --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent f00ab66 commit d07ece7

29 files changed

Lines changed: 674 additions & 46 deletions
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
'@objectstack/spec': minor
3+
'@objectstack/plugin-audit': minor
4+
'@objectstack/platform-objects': minor
5+
'@object-ui/plugin-list': minor
6+
'@object-ui/console': minor
7+
'@object-ui/plugin-grid': minor
8+
'@object-ui/app-shell': minor
9+
'@object-ui/plugin-dashboard': minor
10+
---
11+
12+
feat(plugin-list, plugin-audit): a scroll-loading list view that hides its record count no longer asks for the total, and the audit log opens without counting the ledger
13+
14+
Clause-②: yes (widening) — one new optional host prop, `onTotalDeclined?: () => void`, on `@object-ui/plugin-list`'s `ListView` (`ListViewProps`); `onTotalChange` keeps its `(total: number) => void` signature; nothing removed or narrowed
15+
Metadata-protocol: semantic
16+
17+
`showRecordCount: false` now also stops the count where nothing on screen reads it. An ungrouped grid view with no declared `pagination` loads as it scrolls; when that view also declares `showRecordCount: false`, the list view sends the declined total (`count=false`). The server then skips the `count(*)` it otherwise runs over the whole filtered table beside every window, and the list pages on "the last window came back full". On a large table the list opens at the speed of one window of rows.
18+
19+
- A view that hides its count but keeps a numbered pager (declares `pagination`) still asks for the total, which its pager needs.
20+
- A grouped grid, and a list shown in a page region's compact or capped posture, still ask for it.
21+
- On the declined path no surface prints the rows loaded so far as a record count:
22+
- the grid footer's summary row prints no 「Count N」, asks the server for no whole-set figure (that query would scan the set the list declined to count), and labels each declared figure (sum, average, …) as over the rows on screen, `Sum (this page)`; once the last window is in, the loaded rows are the set and the footer reads as before;
23+
- `ListView` never calls `onTotalChange` on the declined path; it calls the new optional `onTotalDeclined()` once per settled load instead, so a host drops a count an earlier view gave it (a page tab's badge gets no number);
24+
- the record drawer and the record page a declined list opens step ↑ ↓ through the loaded rows with no 「N / M」 counter (the page's `from` state carries `totalUnknown: true` in place of a total).
25+
26+
`sys_audit_log`: every declared list view (`recent`, `writes_only`, `auth_events`, `record_views`, `config_changes`, `all_events`) declares `showRecordCount: false` and no longer declares `pagination`. Setup → Audit log loads as it scrolls, with no "N records" figure and no page numbers; `all_events` loads in windows of the default page size instead of 100. Opening the audit log no longer reads every ledger row for a total (measured at 1.7 s cold on 200k rows on SQLite, with every other request stalled meanwhile; the window itself is a few milliseconds).
27+
28+
The standalone audit page (`/system/audit-log`) pages on the row past its window and never read the total; it now declines it too.
29+
30+
To get the old behaviour on your own view, keep `showRecordCount` unset (or `true`), or declare `pagination`.

‎content/docs/references/data/object.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ const result = ApiMethod.parse(data);
462462
| **appearance** | `{ showDescription?: boolean; allowedVisualizations?: Enum<'grid' \| 'kanban' \| 'gallery' \| 'calendar' \| 'timeline' \| 'gantt' \| 'map' \| …>[] }` | optional | Appearance and visualization configuration |
463463
| **tabs** | `never` | optional | [REMOVED] `view.list.tabs` was removed in @objectstack/spec 17.5.0 (ADR-0049 enforce-or-remove) — no renderer ever mounted a tab bar for it, so authoring it drew nothing: the tab strip above an object's records is the saved-view switcher (ViewTabBar), which renders one tab per named list view and never read this key. Delete the key, and move each tab you want to a named list view under the object's `listViews` instead: the tab's `name` becomes the entry's key, its `label` the entry's `label`, and its `filter` rules join the view's own `filter` on that entry (copy the view's `columns` too); a tab whose `view` already named a list view needs nothing more. Every `listViews` entry renders as a tab in the switcher. Run `os migrate meta --from 17` to list the mechanical edits for existing sources; `--write` applies the ones it can prove, and you apply the rest by hand. |
464464
| **addRecord** | `{ enabled: boolean; position?: Enum<'top' \| 'bottom' \| 'both'> }` | optional | Add record entry point configuration |
465-
| **showRecordCount** | `boolean` | optional | Show record count at the bottom of the list |
465+
| **showRecordCount** | `boolean` | optional | Show the record count (default true). `false` hides it. On an ungrouped grid view that declares no `pagination` (it loads as it scrolls), `false` also stops the list asking for the total: no count query runs, so a large table opens at the speed of one window of rows. Everywhere else the list still asks for the total: a view that keeps a numbered pager (the pager needs it), a grouped grid, and a list shown in a page region's compact or capped form. |
466466
| **allowPrinting** | `boolean` | optional | Allow users to print the view |
467467
| **emptyState** | `{ title?: string \| Record<string, string>; message?: string \| Record<string, string>; icon?: string; link?: object }` | optional | Empty state configuration when no records found |
468468
| **aria** | `{ ariaLabel?: string \| Record<string, string>; ariaDescribedBy?: string; role?: string }` | optional | ARIA accessibility attributes for the list view |

‎content/docs/references/ui/view.mdx‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1058,7 +1058,7 @@ Map view configuration
10581058
| **appearance** | `{ showDescription?: boolean; allowedVisualizations?: Enum<'grid' \| 'kanban' \| 'gallery' \| 'calendar' \| 'timeline' \| 'gantt' \| 'map' \| …>[] }` | optional | Appearance and visualization configuration |
10591059
| **tabs** | `never` | optional | [REMOVED] `view.list.tabs` was removed in @objectstack/spec 17.5.0 (ADR-0049 enforce-or-remove) — no renderer ever mounted a tab bar for it, so authoring it drew nothing: the tab strip above an object's records is the saved-view switcher (ViewTabBar), which renders one tab per named list view and never read this key. Delete the key, and move each tab you want to a named list view under the object's `listViews` instead: the tab's `name` becomes the entry's key, its `label` the entry's `label`, and its `filter` rules join the view's own `filter` on that entry (copy the view's `columns` too); a tab whose `view` already named a list view needs nothing more. Every `listViews` entry renders as a tab in the switcher. Run `os migrate meta --from 17` to list the mechanical edits for existing sources; `--write` applies the ones it can prove, and you apply the rest by hand. |
10601060
| **addRecord** | `{ enabled: boolean; position?: Enum<'top' \| 'bottom' \| 'both'> }` | optional | Add record entry point configuration |
1061-
| **showRecordCount** | `boolean` | optional | Show record count at the bottom of the list |
1061+
| **showRecordCount** | `boolean` | optional | Show the record count (default true). `false` hides it. On an ungrouped grid view that declares no `pagination` (it loads as it scrolls), `false` also stops the list asking for the total: no count query runs, so a large table opens at the speed of one window of rows. Everywhere else the list still asks for the total: a view that keeps a numbered pager (the pager needs it), a grouped grid, and a list shown in a page region's compact or capped form. |
10621062
| **allowPrinting** | `boolean` | optional | Allow users to print the view |
10631063
| **emptyState** | `{ title?: string \| Record<string, string>; message?: string \| Record<string, string>; icon?: string; link?: object }` | optional | Empty state configuration when no records found |
10641064
| **aria** | `{ ariaLabel?: string \| Record<string, string>; ariaDescribedBy?: string; role?: string }` | optional | ARIA accessibility attributes for the list view |
@@ -1536,7 +1536,7 @@ One column of a metadata type list
15361536
| **appearance** | `{ showDescription?: boolean; allowedVisualizations?: Enum<'grid' \| 'kanban' \| 'gallery' \| 'calendar' \| 'timeline' \| 'gantt' \| 'map' \| …>[] }` | optional | Appearance and visualization configuration |
15371537
| **tabs** | `never` | optional | [REMOVED] `view.list.tabs` was removed in @objectstack/spec 17.5.0 (ADR-0049 enforce-or-remove) — no renderer ever mounted a tab bar for it, so authoring it drew nothing: the tab strip above an object's records is the saved-view switcher (ViewTabBar), which renders one tab per named list view and never read this key. Delete the key, and move each tab you want to a named list view under the object's `listViews` instead: the tab's `name` becomes the entry's key, its `label` the entry's `label`, and its `filter` rules join the view's own `filter` on that entry (copy the view's `columns` too); a tab whose `view` already named a list view needs nothing more. Every `listViews` entry renders as a tab in the switcher. Run `os migrate meta --from 17` to list the mechanical edits for existing sources; `--write` applies the ones it can prove, and you apply the rest by hand. |
15381538
| **addRecord** | `{ enabled: boolean; position?: Enum<'top' \| 'bottom' \| 'both'> }` | optional | Add record entry point configuration |
1539-
| **showRecordCount** | `boolean` | optional | Show record count at the bottom of the list |
1539+
| **showRecordCount** | `boolean` | optional | Show the record count (default true). `false` hides it. On an ungrouped grid view that declares no `pagination` (it loads as it scrolls), `false` also stops the list asking for the total: no count query runs, so a large table opens at the speed of one window of rows. Everywhere else the list still asks for the total: a view that keeps a numbered pager (the pager needs it), a grouped grid, and a list shown in a page region's compact or capped form. |
15401540
| **allowPrinting** | `boolean` | optional | Allow users to print the view |
15411541
| **emptyState** | `{ title?: string \| Record<string, string>; message?: string \| Record<string, string>; icon?: string; link?: object }` | optional | Empty state configuration when no records found |
15421542
| **aria** | `{ ariaLabel?: string \| Record<string, string>; ariaDescribedBy?: string; role?: string }` | optional | ARIA accessibility attributes for the list view |
@@ -2144,7 +2144,7 @@ Tab configuration for multi-tab view interface
21442144
| **appearance** | `{ showDescription?: boolean; allowedVisualizations?: Enum<'grid' \| 'kanban' \| 'gallery' \| 'calendar' \| 'timeline' \| 'gantt' \| 'map' \| …>[] }` | optional | Appearance and visualization configuration |
21452145
| **tabs** | `never` | optional | [REMOVED] `view.list.tabs` was removed in @objectstack/spec 17.5.0 (ADR-0049 enforce-or-remove) — no renderer ever mounted a tab bar for it, so authoring it drew nothing: the tab strip above an object's records is the saved-view switcher (ViewTabBar), which renders one tab per named list view and never read this key. Delete the key, and move each tab you want to a named list view under the object's `listViews` instead: the tab's `name` becomes the entry's key, its `label` the entry's `label`, and its `filter` rules join the view's own `filter` on that entry (copy the view's `columns` too); a tab whose `view` already named a list view needs nothing more. Every `listViews` entry renders as a tab in the switcher. Run `os migrate meta --from 17` to list the mechanical edits for existing sources; `--write` applies the ones it can prove, and you apply the rest by hand. |
21462146
| **addRecord** | `{ enabled: boolean; position?: Enum<'top' \| 'bottom' \| 'both'> }` | optional | Add record entry point configuration |
2147-
| **showRecordCount** | `boolean` | optional | Show record count at the bottom of the list |
2147+
| **showRecordCount** | `boolean` | optional | Show the record count (default true). `false` hides it. On an ungrouped grid view that declares no `pagination` (it loads as it scrolls), `false` also stops the list asking for the total: no count query runs, so a large table opens at the speed of one window of rows. Everywhere else the list still asks for the total: a view that keeps a numbered pager (the pager needs it), a grouped grid, and a list shown in a page region's compact or capped form. |
21482148
| **allowPrinting** | `boolean` | optional | Allow users to print the view |
21492149
| **emptyState** | `{ title?: string \| Record<string, string>; message?: string \| Record<string, string>; icon?: string; link?: object }` | optional | Empty state configuration when no records found |
21502150
| **aria** | `{ ariaLabel?: string \| Record<string, string>; ariaDescribedBy?: string; role?: string }` | optional | ARIA accessibility attributes for the list view |
@@ -2196,7 +2196,7 @@ Tab configuration for multi-tab view interface
21962196
| **appearance** | `{ showDescription?: boolean; allowedVisualizations?: Enum<'grid' \| 'kanban' \| 'gallery' \| 'calendar' \| 'timeline' \| 'gantt' \| 'map' \| …>[] }` | optional | Appearance and visualization configuration |
21972197
| **tabs** | `never` | optional | [REMOVED] `view.list.tabs` was removed in @objectstack/spec 17.5.0 (ADR-0049 enforce-or-remove) — no renderer ever mounted a tab bar for it, so authoring it drew nothing: the tab strip above an object's records is the saved-view switcher (ViewTabBar), which renders one tab per named list view and never read this key. Delete the key, and move each tab you want to a named list view under the object's `listViews` instead: the tab's `name` becomes the entry's key, its `label` the entry's `label`, and its `filter` rules join the view's own `filter` on that entry (copy the view's `columns` too); a tab whose `view` already named a list view needs nothing more. Every `listViews` entry renders as a tab in the switcher. Run `os migrate meta --from 17` to list the mechanical edits for existing sources; `--write` applies the ones it can prove, and you apply the rest by hand. |
21982198
| **addRecord** | `{ enabled: boolean; position?: Enum<'top' \| 'bottom' \| 'both'> }` | optional | Add record entry point configuration |
2199-
| **showRecordCount** | `boolean` | optional | Show record count at the bottom of the list |
2199+
| **showRecordCount** | `boolean` | optional | Show the record count (default true). `false` hides it. On an ungrouped grid view that declares no `pagination` (it loads as it scrolls), `false` also stops the list asking for the total: no count query runs, so a large table opens at the speed of one window of rows. Everywhere else the list still asks for the total: a view that keeps a numbered pager (the pager needs it), a grouped grid, and a list shown in a page region's compact or capped form. |
22002200
| **allowPrinting** | `boolean` | optional | Allow users to print the view |
22012201
| **emptyState** | `{ title?: string \| Record<string, string>; message?: string \| Record<string, string>; icon?: string; link?: object }` | optional | Empty state configuration when no records found |
22022202
| **aria** | `{ ariaLabel?: string \| Record<string, string>; ariaDescribedBy?: string; role?: string }` | optional | ARIA accessibility attributes for the list view |
@@ -2466,7 +2466,7 @@ This schema accepts one of the following structures:
24662466
| **appearance** | `{ showDescription?: boolean; allowedVisualizations?: Enum<'grid' \| 'kanban' \| 'gallery' \| 'calendar' \| 'timeline' \| 'gantt' \| 'map' \| …>[] }` | optional | Appearance and visualization configuration |
24672467
| **tabs** | `never` | optional | [REMOVED] `view.list.tabs` was removed in @objectstack/spec 17.5.0 (ADR-0049 enforce-or-remove) — no renderer ever mounted a tab bar for it, so authoring it drew nothing: the tab strip above an object's records is the saved-view switcher (ViewTabBar), which renders one tab per named list view and never read this key. Delete the key, and move each tab you want to a named list view under the object's `listViews` instead: the tab's `name` becomes the entry's key, its `label` the entry's `label`, and its `filter` rules join the view's own `filter` on that entry (copy the view's `columns` too); a tab whose `view` already named a list view needs nothing more. Every `listViews` entry renders as a tab in the switcher. Run `os migrate meta --from 17` to list the mechanical edits for existing sources; `--write` applies the ones it can prove, and you apply the rest by hand. |
24682468
| **addRecord** | `{ enabled: boolean; position?: Enum<'top' \| 'bottom' \| 'both'> }` | optional | Add record entry point configuration |
2469-
| **showRecordCount** | `boolean` | optional | Show record count at the bottom of the list |
2469+
| **showRecordCount** | `boolean` | optional | Show the record count (default true). `false` hides it. On an ungrouped grid view that declares no `pagination` (it loads as it scrolls), `false` also stops the list asking for the total: no count query runs, so a large table opens at the speed of one window of rows. Everywhere else the list still asks for the total: a view that keeps a numbered pager (the pager needs it), a grouped grid, and a list shown in a page region's compact or capped form. |
24702470
| **allowPrinting** | `boolean` | optional | Allow users to print the view |
24712471
| **emptyState** | `{ title?: string \| Record<string, string>; message?: string \| Record<string, string>; icon?: string; link?: object }` | optional | Empty state configuration when no records found |
24722472
| **aria** | `{ ariaLabel?: string \| Record<string, string>; ariaDescribedBy?: string; role?: string }` | optional | ARIA accessibility attributes for the list view |
@@ -2584,7 +2584,7 @@ This schema accepts one of the following structures:
25842584
| **appearance** | `{ showDescription?: boolean; allowedVisualizations?: Enum<'grid' \| 'kanban' \| 'gallery' \| 'calendar' \| 'timeline' \| 'gantt' \| 'map' \| …>[] }` | optional | Appearance and visualization configuration |
25852585
| **tabs** | `never` | optional | [REMOVED] `view.list.tabs` was removed in @objectstack/spec 17.5.0 (ADR-0049 enforce-or-remove) — no renderer ever mounted a tab bar for it, so authoring it drew nothing: the tab strip above an object's records is the saved-view switcher (ViewTabBar), which renders one tab per named list view and never read this key. Delete the key, and move each tab you want to a named list view under the object's `listViews` instead: the tab's `name` becomes the entry's key, its `label` the entry's `label`, and its `filter` rules join the view's own `filter` on that entry (copy the view's `columns` too); a tab whose `view` already named a list view needs nothing more. Every `listViews` entry renders as a tab in the switcher. Run `os migrate meta --from 17` to list the mechanical edits for existing sources; `--write` applies the ones it can prove, and you apply the rest by hand. |
25862586
| **addRecord** | `{ enabled: boolean; position?: Enum<'top' \| 'bottom' \| 'both'> }` | optional | Add record entry point configuration |
2587-
| **showRecordCount** | `boolean` | optional | Show record count at the bottom of the list |
2587+
| **showRecordCount** | `boolean` | optional | Show the record count (default true). `false` hides it. On an ungrouped grid view that declares no `pagination` (it loads as it scrolls), `false` also stops the list asking for the total: no count query runs, so a large table opens at the speed of one window of rows. Everywhere else the list still asks for the total: a view that keeps a numbered pager (the pager needs it), a grouped grid, and a list shown in a page region's compact or capped form. |
25882588
| **allowPrinting** | `boolean` | optional | Allow users to print the view |
25892589
| **emptyState** | `{ title?: string \| Record<string, string>; message?: string \| Record<string, string>; icon?: string; link?: object }` | optional | Empty state configuration when no records found |
25902590
| **aria** | `{ ariaLabel?: string \| Record<string, string>; ariaDescribedBy?: string; role?: string }` | optional | ARIA accessibility attributes for the list view |

0 commit comments

Comments
 (0)