Skip to content

Commit 6996fd9

Browse files
committed
chore(spec): regenerate the declaration, docs and strictness-ledger artifacts
`check:generated` proved exactly three stale and `--fix` regenerated only those. The declaration text records the bag as `z.core.$loose`, so the published type states the openness the narrowing kept. Claude-Session: https://claude.ai/code/session_019srGWGCBBCBHqcDoRZpQRh Co-authored-by: Claude <noreply@anthropic.com>
1 parent 0dcc574 commit 6996fd9

3 files changed

Lines changed: 17 additions & 11 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,8 +514,8 @@ Sort field and direction pair
514514
| **defaultFilters** | `any` | optional | Legacy base-filter fallback, read only when `filter` is absent. Prefer `filter` |
515515
| **sort** | `{ field: string; order: Enum<'asc' \| 'desc'> }[]` | optional | Initial row order — the SortItem array form `[{ field, order }, ...]`, the one sort orthography every declared `sort` door on this platform shares; lowered to the wire `$orderby`. The legacy string clause (`name desc`) is refused — see migration `object-block-sort-item-array` |
516516
| **defaultSort** | `never` | optional | [REMOVED] `object-grid` property `defaultSort` was removed in @objectstack/spec 17 (ADR-0049) — it was the legacy second spelling of `sort`: a single `{ field, order }` pair read only when `sort` was absent, so one intent had two spellings and a grid authoring both silently ignored this one. Rename the key to `sort` and wrap the value in an array (`defaultSort: { field, order }` becomes `sort: [{ field, order }]`); the pair itself is unchanged. Run `os migrate meta --from 17` to list the mechanical edits for existing sources; apply them by hand. |
517-
| **pagination** | `any` | optional | Pagination config (`{ pageSize, pageSizeOptions, … }`); its presence enables paging |
518-
| **pageSize** | `number` | optional | Flat page-size shorthand; `pagination.pageSize` wins when both are set |
517+
| **pagination** | `{ pageSize?: integer; pageSizeOptions?: integer[] } & Record<string, any>` | optional | Pagination config (`{ pageSize, pageSizeOptions, … }`); its presence enables paging. `pageSize` and every `pageSizeOptions` entry is a positive integer — the accept set the view arm's `PaginationConfigSchema` already rules; the bag stays open, so other keys pass through unvalidated |
518+
| **pageSize** | `integer` | optional | Flat page-size shorthand, a positive integer; `pagination.pageSize` wins when both are set |
519519
| **showPagination** | `boolean` | optional | Show the pager (read only when `pagination` is absent) |
520520
| **searchableFields** | `string[]` | optional | Fields the toolbar search queries; a non-empty list enables search |
521521
| **showSearch** | `boolean` | optional | Show the search box (read only when `searchableFields` is absent) |

‎docs/audits/2026-07-unknown-key-strictness-ledger.counts.md‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ regenerate.
2121
| Measure | Value |
2222
|---|---|
2323
| Triaged directories | 5 |
24-
| Object sites in them | 449 |
24+
| Object sites in them | 450 |
2525
| Still-open (strip) sites | 126 |
2626
| Files carrying at least one | 22 |
2727

@@ -44,12 +44,12 @@ The `strict` column is the one the campaign schedules against; it counts both th
4444

4545
| Dir | Sites | strict | passthrough | catchall | strip |
4646
|---|---|---|---|---|---|
47-
| `ui/` | 175 | 165 | 3 | 0 | 7 |
47+
| `ui/` | 176 | 165 | 4 | 0 | 7 |
4848
| `data/` | 159 | 76 | 1 | 0 | 82 |
4949
| `automation/` | 68 | 43 | 0 | 1 | 24 |
5050
| `security/` | 20 | 7 | 0 | 0 | 13 |
5151
| `studio/` | 27 | 27 | 0 | 0 | 0 |
52-
| **total** | **449** | **318** | **4** | **1** | **126** |
52+
| **total** | **450** | **318** | **5** | **1** | **126** |
5353

5454
## File-level triage — site counts
5555

@@ -66,7 +66,7 @@ classify and is not listed (it becomes reportable the day it grows its first sit
6666
| `app.zod.ts` | 18 |
6767
| `bulk-action.zod.ts` | 3 |
6868
| `chart.zod.ts` | 8 |
69-
| `component.zod.ts` | 46 |
69+
| `component.zod.ts` | 47 |
7070
| `dashboard.zod.ts` | 11 |
7171
| `dataset.zod.ts` | 4 |
7272
| `i18n.zod.ts` | 1 |
@@ -76,7 +76,7 @@ classify and is not listed (it becomes reportable the day it grows its first sit
7676
| `sharing.zod.ts` | 1 |
7777
| `view.zod.ts` | 61 |
7878
| `widget.zod.ts` | 1 |
79-
| **total** | **175** |
79+
| **total** | **176** |
8080

8181
### `data/` — sites
8282

@@ -155,15 +155,15 @@ over it is here.
155155

156156
### `ui/` — open
157157

158-
**7 strip of 175**, in 4 file(s).
158+
**7 strip of 176**, in 4 file(s).
159159

160160
| File | Strip | Sites |
161161
|---|---|---|
162162
| `action-params.zod.ts` | 1 | 1 |
163163
| `app.zod.ts` | 1 | 18 |
164164
| `view.zod.ts` | 4 | 61 |
165165
| `widget.zod.ts` | 1 | 1 |
166-
| **total** | **7** | **175** |
166+
| **total** | **7** | **176** |
167167

168168
| Bucket | Sites |
169169
|---|---|

‎packages/spec/api-surface-declarations/ui.txt‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4470,7 +4470,10 @@ declare const ComponentPropsMap: {
44704470
}>;
44714471
}, z.core.$strip>>>;
44724472
defaultSort: z.ZodOptional<z.ZodNever>;
4473-
pagination: z.ZodOptional<z.ZodUnknown>;
4473+
pagination: z.ZodOptional<z.ZodObject<{
4474+
pageSize: z.ZodOptional<z.ZodNumber>;
4475+
pageSizeOptions: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
4476+
}, z.core.$loose>>;
44744477
pageSize: z.ZodOptional<z.ZodNumber>;
44754478
showPagination: z.ZodOptional<z.ZodBoolean>;
44764479
searchableFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -11094,7 +11097,10 @@ declare const ObjectGridPropsSchema: z.ZodObject<{
1109411097
}>;
1109511098
}, z.core.$strip>>>;
1109611099
defaultSort: z.ZodOptional<z.ZodNever>;
11097-
pagination: z.ZodOptional<z.ZodUnknown>;
11100+
pagination: z.ZodOptional<z.ZodObject<{
11101+
pageSize: z.ZodOptional<z.ZodNumber>;
11102+
pageSizeOptions: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
11103+
}, z.core.$loose>>;
1109811104
pageSize: z.ZodOptional<z.ZodNumber>;
1109911105
showPagination: z.ZodOptional<z.ZodBoolean>;
1110011106
searchableFields: z.ZodOptional<z.ZodArray<z.ZodString>>;

0 commit comments

Comments
 (0)