Skip to content

docs(api): spell the object-view example's default list view at the node level - #7991

Merged
baozhoutao merged 1 commit into
mainfrom
claude/issue-7923-schema-reference-default-list-view
Sep 6, 2026
Merged

docs(api): spell the object-view example's default list view at the node level#7991
baozhoutao merged 1 commit into
mainfrom
claude/issue-7923-schema-reference-default-list-view

Conversation

@claude

@claude claude Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Fixes #7923

content/docs/api/schema-reference.md's ObjectViewSchema example authored an
entry-level key that nothing declares and nothing reads, so the view it labelled
"default" never opened first — twenty rows above the same page's property table
that documents the correct key.

Before / after

     "my-deals": {
-      "label": "My Deals",
       "filter": [["owner", "=", "${currentUser.id}"]],
-      "default": true
+      "label": "My Deals"
     }
   },
+  "defaultListView": "my-deals",
   "table": {

Why the two remaining members are reordered rather than left alone: the
sibling pin packages/types/src/__tests__/object-view-unmirrored-keys-7779.test.ts:529
holds the filter line verbatim including its trailing comma

expect(readRepo('content/docs/api/schema-reference.md')).toContain('"filter": [["owner", "=", "${currentUser.id}"]],');

— so deleting "default": true while filter stayed last would have dropped that
comma and reddened a pin held by draft PR #7969. filter therefore keeps a member
after it. No content was invented to fill the slot.

Premises, re-measured on origin/main e97e8e8

# Premise Verdict
A1 NamedListView (packages/types/src/objectql.ts:1983) declares no default; ObjectView.tsx:701 reads schema.defaultListView holds — control member label present; renderer line quoted below
A2 The page's own property table already documents defaultListView holdscontent/docs/api/schema-reference.md:885
A3 No other doc authors an entry-level default holdsgit grep -n '"default": true' -- content/docs returns exactly this one hit; the twelve default: true hits are all (default: true) prose in property comments, a different shape
A4 The page is on check:doc-snippets' scan surface holds — not one of the 22 UNGATED_DOCS entries; but TS_FENCE_LANGUAGES = {ts, tsx, typescript}, and this example is a ```json fence, so it is collected and never compiled (#5250). That is exactly the hole the fixture pin fills
packages/plugin-view/src/ObjectView.tsx:701:    if (schema.defaultListView && namedListViews?.[schema.defaultListView]) {
packages/plugin-view/src/ObjectView.tsx:702:      return schema.defaultListView;

The pin, and why it is a fixture pin and not a type annotation

packages/types/src/__tests__/schema-reference-named-list-view-keys-7923.test.ts
parses both sides off disk on every run — the shape #7925 points at
(packages/plugin-calendar/src/readme-calendar-view-schema.test.ts): the
declaration's own top-level members are brace-matched out of the interface source
(brace matching, not a line regex, because NamedListView carries JSDoc blocks and
four nested object members that a regex would miscount), and the example is located
by its ### ObjectViewSchema heading and parsed as JSON. Restating the member list
in the test would reproduce the original defect one layer up.

An annotation on the example would catch nothing. BaseSchema closes with
[key: string]: any (#7927), so every invented key type-checks through the index
signature — #7927 measured it directly (probe P5: renaming titleField to
titleFieldd inside an annotated block left check:doc-snippets at exit 0). The
annotation checks a key's type and never its name. What makes a name-level
comparison possible here at all is that NamedListView is a standalone interface
that does not extend BaseSchema, so its declared members are a genuinely closed
list.

The pin asserts four things: a live control (the declaration parsed to >30 members
including the required label, and the doc parsed to exactly the two named views),
the predicate itself (every authored listViews key is declared), the node-level
defaultListView naming a key that exists, and a positive control that runs on
every invocation
— it plants default into the parsed object and asserts the
same predicate function returns ['default'], so the harness cannot go quietly
green. That control opens by asserting NamedListView does not declare default,
which is the tripwire if that ever changes.

The pin imports only vitest and node builtins and reads files off disk, so it
needs no build
.

Reverse verification (post-commit, trap-protected, restore proven by blob hash)

Each leg mutated the committed doc, proved the mutation actually landed (on-disk
hash ≠ the HEAD blob hash 87e58fa…, so no leg was a silent no-op), ran the pin,
then restored with git checkout HEAD -- ABSOLUTE_PATH and proved the restore by
hash equality and an empty git diff HEAD.

Leg Mutation Predicted Observed
A put "default": true back into my-deals RED naming default RED, exit 1 — authors no key NamedListView does not declareexpected [ 'default' ] to deeply equal []
B delete the node-level "defaultListView" line RED on the presence assertion RED, exit 1 — must spell \defaultListView` … expected 'undefined' to be 'string'`
C rename the anchor heading (the example "moves") LOUD failure, never a vacuous pass RED, exit 1 — Error: "### ObjectViewSchema" heading not found … the example moved, Tests no tests
unmutated tree GREEN GREEN, exit 0 — Test Files 1 passed (1), Tests 4 passed (4)

The positive control was among the 3 passing tests in every red leg, so it is
demonstrably executed rather than merely present.

Gates

Gate Verdict line
object-view-unmirrored-keys-7779.test.ts (the sibling pin on the filter line) exit 0 — green in the 10-file reader run below, and again at final HEAD: Test Files 2 passed (2), Tests 94 passed (94)
pnpm check:doc-snippets exit 0 — Semantic phase: 495 of 495 block(s) judged, 0 failed. (after its own scoped --build-filter build, 34 tasks, exit 0; the first run's exit 2 was "I could not run", not a verdict)
pnpm check:doc-fences exit 0 — every TypeScript block in 227 document(s) is fenced ts/tsx/typescript
node scripts/check-doc-links.mjs exit 0 — Links are valid across 17 scan roots.
pnpm check:doc-types exit 0 — Every documented component type is registered.
pnpm check:control-bytes exit 0 — scanned 6430 tracked text file(s); skipped 85 binary
node scripts/check-changeset-presence.mjs exit 0 — see the deviation below
pnpm changeset:check exit 0 — No changeset declares a major bump.
check-governed-queue-guard --test (all 3 paths) exit 0 — NOT GOVERNED — 3 path(s) checked against 5 governed surface(s)
pnpm --filter @object-ui/types type-check exit 0; tsc -p tsconfig.test.json --listFiles shows the new test IS in the program, so this is a measurement of it and not around it
pnpm --filter @object-ui/types lint exit 0 — 273 problems (0 errors, 273 warnings), all pre-existing; the new file contributes 0 errors, 0 warnings (--format json, 1 file)
pnpm exec vitest run packages/types/ exit 0 — Test Files 131 passed (131), Tests 2418 passed (2418)
pnpm check:doc-example-readers exit 0
node scripts/check-doc-expression-carriage.mjs exit 0 (report-only gate)
pnpm check:docs-route-closure exit 0

Readers of the pagegit grep -l 'schema-reference.md' -- scripts/ packages/ .github/ content/ returns 16 sites; every test among them was run together and passed: Test Files 10 passed (10), Tests 354 passed (354) (object-view-unmirrored-keys-7779, component-docs-retired-handler-keys-7340, kanban-plugin-dialect-authoritative-7664, object-grid-title-mirrored, tree-view-data-retired-6951, zod-mirror-parity, table-column-contract, check-doc-component-types, check-doc-links, plus the new pin).

Lint narrowing — type-aware linting is not enabled in eslint.config.js (no
project / projectService), and markdown is not in eslint's file population, so
this diff cannot move the verdict on any file it does not contain; the whole
@object-ui/types package was linted anyway.

Deviation from the dispatch

The dispatch predicted check-changeset-presence would owe nothing ("docs + test
only — expect none owed"). It owes one. The gate reads any file under a
released package's src/, tests included:

1 source file(s) of 1 released package(s) changed, and this change adds no changeset@object-ui/types / packages/types/src/__tests__/schema-reference-named-list-view-keys-7923.test.ts

Answered the way the gate itself names as the legitimate pass in this repo — an
empty-frontmatter .changeset/*.md declaring that nothing releases (⛔ not the
skip-changeset label, which this repo does not honour):

Every one of them has an EMPTY frontmatter — declared as releasing nothing, which is the explicit exemption and a complete answer to this gate.

⛔ The filter dialect is untouched, deliberately

Line 863's "filter": [["owner", "=", "${currentUser.id}"]], is byte-identical
to origin/main. Triage split this card in two and ruled the dialect half
(the ObjectQL tuple form here versus the { field, operator, value } objects
packages/plugin-view/README.md and content/docs/plugins/plugin-view.mdx teach)
out of scope until which spelling mergeFilterNodes actually runs is measured
NamedListView.filter is an untyped array, so both are declared-legal and guessing
would risk making a correct page wrong. That is #2890's half. It was not measured
here. The new pin cannot and does not adjudicate it: it compares key names
against the declaration, and filter is a declared member under either dialect.

🤖 Generated with Claude Code

https://claude.ai/code/session_01MM7kaS4dPpYHV5BsMyu4tQ


Generated by Claude Code

…ode level

`content/docs/api/schema-reference.md`'s `ObjectViewSchema` example authored
`listViews["my-deals"].default: true`. `NamedListView` declares no `default`
member, and `ObjectView.tsx` picks the opening view from the NODE-level
`schema.defaultListView` (falling back to the first key) — nothing reads an
entry-level flag. `BaseSchema` is passthrough, so the example validated green
while the view it labelled "default" never opened first, twenty rows above the
same page's property table that documents `defaultListView` correctly.

The example now spells `"defaultListView": "my-deals"` on the node and drops the
undeclared key. `my-deals`' two remaining members are reordered so the filter
line keeps its trailing comma: `object-view-unmirrored-keys-7779.test.ts` holds
that line verbatim, comma included, and that file is held by another PR.

A new fixture pin, `schema-reference-named-list-view-keys-7923.test.ts`, holds
the example's `listViews` keys to `NamedListView`'s declared members, both sides
parsed off disk. A type annotation would catch nothing here: `BaseSchema` closes
with `[key: string]: any`, and the fence is JSON so no snippet gate compiles it.

The example's filter DIALECT is deliberately untouched — which spelling
`mergeFilterNodes` runs is unmeasured, and that is objectui#2890's half.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MM7kaS4dPpYHV5BsMyu4tQ
@github-actions

github-actions Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 50 chunks) 3186.0 KB 3191.4 KB
Main entry chunk (gzip) 143.5 KB 350 KB
Entry file index-BO0uFEv5.js
Status PASS

The eager closure is every chunk the entry reaches through static imports — what the browser fetches and parses before the app renders. The entry chunk on its own is a small fraction of it.


📦 Bundle Size Report

Package Size Gzipped
app-shell (consoleActionDispatch.js) 0.20KB 0.19KB
app-shell (index.js) 15.67KB 5.75KB
app-shell (runtime-config.js) 20.68KB 7.36KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 10.06KB 3.86KB
auth (ActiveOrganizationStorage.js) 25.05KB 9.16KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 2.07KB 1.00KB
auth (AuthProvider.js) 40.18KB 10.59KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 18.15KB 5.39KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.65KB 2.22KB
auth (SocialSignInButtons.js) 9.61KB 3.89KB
auth (UserMenu.js) 3.41KB 1.23KB
auth (auth-gate-events.js) 1.29KB 0.66KB
auth (authStyles.js) 5.04KB 1.72KB
auth (createAuthClient.js) 40.21KB 10.80KB
auth (createAuthenticatedFetch.js) 8.46KB 3.43KB
auth (index.js) 3.19KB 1.44KB
auth (invitation-status.js) 1.22KB 0.70KB
auth (org-roles.js) 6.66KB 2.78KB
auth (phone-identifier.js) 1.11KB 0.66KB
auth (types.js) 0.59KB 0.35KB
auth (useAuth.js) 5.30KB 1.02KB
auth (useWorkspaceAdminStatus.js) 5.13KB 2.35KB
collaboration (CommentThread.js) 26.08KB 7.56KB
collaboration (LiveCursors.js) 3.17KB 1.27KB
collaboration (PresenceAvatars.js) 6.49KB 2.64KB
collaboration (PresenceProvider.js) 2.79KB 1.13KB
collaboration (index.js) 1.68KB 0.73KB
collaboration (useCollaborationTranslation.js) 6.05KB 2.52KB
collaboration (useCommentSearch.js) 1.98KB 0.88KB
collaboration (useConflictResolution.js) 7.75KB 1.86KB
collaboration (useMentionNotifications.js) 1.81KB 0.68KB
collaboration (usePresence.js) 6.33KB 1.84KB
collaboration (useRealtimeSubscription.js) 7.91KB 2.01KB
components (index.js) 497.06KB 113.79KB
core (index.js) 6.96KB 2.79KB
create-plugin (index.js) 10.08KB 3.26KB
data-objectstack (index.js) 182.08KB 50.62KB
fields (index.js) 242.44KB 61.25KB
i18n (LocalizationContext.js) 1.76KB 0.96KB
i18n (builtinAggregateLabels.js) 0.86KB 0.49KB
i18n (currency.js) 1.22KB 0.64KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 4.28KB 1.75KB
i18n (index.js) 3.65KB 1.47KB
i18n (pickLocalized.js) 7.62KB 3.26KB
i18n (provider.js) 26.89KB 9.04KB
i18n (useDisplayLocale.js) 2.85KB 1.45KB
i18n (useObjectLabel.js) 34.34KB 9.17KB
i18n (useSafeTranslation.js) 5.60KB 2.33KB
layout (index.js) 38.84KB 10.94KB
mobile (MobileProvider.js) 0.92KB 0.49KB
mobile (ResponsiveContainer.js) 0.94KB 0.38KB
mobile (breakpoints.js) 1.51KB 0.70KB
mobile (createOfflineDataSource.js) 5.61KB 1.75KB
mobile (index.js) 1.99KB 0.87KB
mobile (offlineQueue.js) 3.91KB 1.35KB
mobile (pwa.js) 0.97KB 0.49KB
mobile (serviceWorker.js) 1.48KB 0.62KB
mobile (serviceWorkerSource.js) 3.41KB 1.48KB
mobile (useBreakpoint.js) 1.54KB 0.65KB
mobile (useGesture.js) 6.96KB 1.98KB
mobile (useOfflineSync.js) 1.99KB 0.72KB
mobile (usePullToRefresh.js) 2.53KB 0.85KB
mobile (useResponsive.js) 0.72KB 0.42KB
mobile (useSpecGesture.js) 4.39KB 1.66KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 11.71KB 4.29KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.24KB 2.16KB
permissions (discardProofCache.js) 1.04KB 0.55KB
permissions (evaluator.js) 5.12KB 1.74KB
permissions (index.js) 0.93KB 0.41KB
permissions (store.js) 0.91KB 0.42KB
permissions (useFieldPermissions.js) 1.28KB 0.53KB
permissions (usePermissions.js) 4.83KB 2.27KB
plugin-ai (index.js) 15.16KB 3.68KB
plugin-calendar (index.js) 47.35KB 13.21KB
plugin-charts (index.js) 70.31KB 19.62KB
plugin-chatbot (index.js) 193.53KB 46.05KB
plugin-dashboard (index.js) 131.41KB 34.43KB
plugin-designer (index.js) 211.51KB 43.01KB
plugin-detail (index.js) 247.59KB 63.48KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 131.01KB 32.32KB
plugin-gantt (index.js) 167.16KB 40.99KB
plugin-grid (index.js) 208.56KB 56.63KB
plugin-kanban (index.js) 52.30KB 14.49KB
plugin-list (index.js) 113.24KB 27.66KB
plugin-map (index.js) 20.35KB 6.77KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 43.42KB 11.92KB
plugin-timeline (index.js) 29.95KB 8.67KB
plugin-tree (index.js) 9.16KB 3.18KB
plugin-view (index.js) 84.33KB 20.75KB
providers (DataSourceProvider.js) 0.75KB 0.39KB
providers (MetadataProvider.js) 1.37KB 0.59KB
providers (ThemeProvider.js) 1.90KB 0.85KB
providers (UploadProvider.js) 11.66KB 3.50KB
providers (index.js) 0.45KB 0.23KB
providers (types.js) 0.01KB 0.04KB
react-runtime (index.js) 5.62KB 2.34KB
react (LazyPluginLoader.js) 4.47KB 1.63KB
react (SchemaRenderer.js) 81.07KB 26.86KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.63KB 2.18KB
react (schema-input.js) 2.32KB 1.24KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (codegen.js) 5.41KB 2.34KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 4.93KB 2.24KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (parse.js) 20.57KB 5.88KB
sdui-parser (provenance.js) 3.66KB 1.82KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 10.35KB 3.60KB
types (ai.js) 0.20KB 0.17KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 2.87KB 1.00KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (complex.js) 2.74KB 1.41KB
types (crud.js) 0.20KB 0.18KB
types (dashboard-filter-alias.js) 6.23KB 2.74KB
types (data-display.js) 3.75KB 1.85KB
types (data-protocol.js) 0.20KB 0.19KB
types (data.js) 0.20KB 0.18KB
types (designer.js) 1.85KB 0.85KB
types (disclosure.js) 0.20KB 0.18KB
types (error-code.js) 1.54KB 0.88KB
types (expression.js) 0.20KB 0.18KB
types (feedback.js) 0.20KB 0.18KB
types (field-types.js) 0.20KB 0.18KB
types (form.js) 0.20KB 0.18KB
types (http-inflight.js) 8.87KB 3.73KB
types (http-retry.js) 4.32KB 2.02KB
types (icon-key-migration.js) 4.26KB 1.63KB
types (index.js) 4.74KB 2.25KB
types (layout.js) 0.20KB 0.18KB
types (managed-by.js) 0.19KB 0.18KB
types (mobile.js) 4.73KB 2.28KB
types (navigation.js) 0.20KB 0.18KB
types (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (permissions.js) 0.20KB 0.18KB
types (plugin-scope.js) 0.20KB 0.18KB
types (record-components.js) 0.20KB 0.19KB
types (record-semantics.js) 1.28KB 0.67KB
types (registry.js) 0.20KB 0.18KB
types (reports.js) 0.20KB 0.18KB
types (select-option.js) 0.20KB 0.19KB
types (spec-report.js) 5.05KB 1.93KB
types (spec-ui-namespace.js) 0.20KB 0.19KB
types (system-fields.js) 3.33KB 1.54KB
types (theme.js) 6.28KB 2.87KB
types (ui-action.js) 8.11KB 3.32KB
types (views.js) 0.20KB 0.18KB
types (widget.js) 0.20KB 0.18KB

Size Limits

  • ✅ Core packages should be < 50KB gzipped
  • ✅ Component packages should be < 100KB gzipped
  • ⚠️ Plugin packages should be < 150KB gzipped

Copy link
Copy Markdown
Contributor

Standing down on Live E2E (informational) — red on the base branch too, not this PR's. domain:devx @ objectui execution seat, PM session session_01MM7kaS4dPpYHV5BsMyu4tQ, R45, 2026-09-06T07:22Z. Same signature as main's scheduled run 34017174769 (job 101442890465): the published backend boots without its auth core (objectstack#16186); consumer-side anchor #7990. This diff is one doc example, one test file and an empty-frontmatter changeset — no backend pin, no e2e/ path. No fix to port, no re-run spent. Every other check on c7936621d is green (28 success, 3 skipped). Flipping to ready; arming after the post-flip guard completes (ACCEPT 5557665611 on #7923).


Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs(api): schema-reference.md's object-view example authors listViews.NAME.default: true, a key NamedListView never declared and ObjectView never reads

2 participants