Skip to content

fix(plugin-list): declare onSortChange/onFilterChange at the types they fire with (objectui#8106) - #8965

Merged
os-steve merged 2 commits into
mainfrom
claude/issue-8106-listview-callback-param-types
Sep 10, 2026
Merged

fix(plugin-list): declare onSortChange/onFilterChange at the types they fire with (objectui#8106)#8965
os-steve merged 2 commits into
mainfrom
claude/issue-8106-listview-callback-param-types

Conversation

@claude

@claude claude Bot commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Fixes #8106

Notation: this body spells generic shapes out in words rather than in their
angle-bracket form, because this repository has measured that GitHub's body
sanitizer deletes tag-shaped fragments even inside backticks.

What changed

ListViewProps.onSortChange and onFilterChange are declared at the types they
actually fire with, instead of any:

  • onSortChange takes an array of SortItem (already exported by
    @object-ui/components, already imported by this file).
  • onFilterChange takes FilterGroup (likewise).

Each carries a doc comment saying why it lands on that type, matching this
interface's own convention — the same convention that gives dataSource?: any
its written justification and gave these two none.

Question 2 was a read, and it was read at the call sites

The card's question 2 (normalized value or raw one?) decides its question 1, and
the two callbacks turned out asymmetric:

  • sort — normalized, but the type does not depend on that. Every emit in
    the component crosses one boundary, emitSortChange (ListView.tsx), and both
    of its legs carry the same element type: the array handed in, and
    filterPlatformSortableSort's return. That helper is generic in the element —
    it takes a readonly array of T and returns an array of T — so it preserves
    whatever it is given. Normalization decides only whether platform-unsortable
    entries are still present (ListView's sort picker persists a platform-refused sort — the in-use exception re-emits it, and filterPlatformSortableSort has only one consumer #6455), not the type. The only other occurrence,
    onSortChange: handleHeaderSort, is a prop handed down to the child grid,
    not this prop being invoked.
  • filters — raw. Its one call site passes the toolbar FilterBuilder's own
    onChange value straight through, beside a setCurrentFilters that is itself
    React state of type FilterGroup. Deliberately not the filter AST
    normalizeFilters / buildEffectiveFilter speak: those run later on the
    query-building path and nothing they produce reaches this callback. The host
    gets the builder's group verbatim, which is what lets it round-trip back in
    through initialFilters.

No new type was minted and no local near-copy written.

Acceptance — the card's own instrument, proved to fail both ways

Assigning each parameter to a number inside the README's "With Callbacks"
block and running pnpm check:doc-snippets. Both runs are single runs carrying
all four probes, so the controls and the targets are measured together:

parameter before after
view (ViewType) TS2322 (README:154) TS2322 (README:154) — control unchanged
search (string) TS2322 (README:155) TS2322 (README:155) — control unchanged
sort no diagnostic TS2322: Type 'SortItem[]' is not assignable to type 'number' (README:156)
filters no diagnostic TS2322: Type 'FilterGroup' is not assignable to type 'number' (README:157)

The before-state was measured on this branch, not quoted from the card. Both
probe runs mutated the README on disk under a trap, proved the mutation by anchor
count (4 markers) and blob hash, and restored by state (git diff HEAD empty,
blob back to 902c058). The README itself is unmodified by this PR.

Consumer sweep — done before the declaration was finalised

Every in-repo file importing ListView from @object-ui/plugin-list was
enumerated, then every package containing one was type-checked:

consumer passes these callbacks? type-check
packages/app-shell/src/views/ObjectView.tsx yes — onSortChange twice, onFilterChange once pass
packages/app-shell/src/views/InterfaceListPage.tsx yes — onSortChange pass
packages/app-shell/src/views/studio-design/StudioDesignSurface.tsx no — renders ListView, passes neither pass
packages/app-shell/src/views/ObjectDataPage.tsx no — carries an explicit comment saying it deliberately has no such hooks pass
packages/plugin-map (one test) no pass
apps/console (one test) no pass

Two corrections to the card's premise, neither of which contradicts the ruling —
both make the sweep smaller: StudioDesignSurface is named by the card as a
consumer that passes these callbacks and does not pass them, and ObjectDataPage
opts out in writing.

The contravariance cost is zero in-repo. Every passing handler annotates its
parameter explicitly ((sort: any) => ...), and an explicitly-any handler stays
assignable to the narrowed signature — contravariance permits it, and the body
keeps its any semantics. No in-repo handler was contextually typed, so none
changed meaning and none needed touching. Out-of-repo hosts that destructure or
index the parameter in ways only any permitted will now get a real error, which
is the point. This is written into the changeset body as instructed.

Pin, proved two ways

Added to ListView.propsResolution.test.ts — the objectui#4528 compile-time pin
file, the natural home — four assertions: an exact-signature pin per callback,
plus the IsAny half per callback that makes a silent re-widening fail loudly
(the same discriminating shape as that file's existing pin 2).

  • GREEN: pnpm --filter @object-ui/plugin-list type-check exit 0.
  • RED: reverting only the two declarations back to any fails all four
    new assertions — TS2344: Type 'false' does not satisfy the constraint 'true'
    at lines 106, 109, 112, 115 — exit 2.
  • Mutation proved on disk before any result was read (narrowed anchor 1 to 0,
    any anchor 0 to 1, blob 8f48a25 to 0435754); restore proved by state
    (blob back to 8f48a25, git diff HEAD empty), never by an exit code. Both
    legs ran from the committed implementation, under a trap with absolute paths.

Source vs dist

The card read packages/plugin-list/dist/ListView.d.ts, a built artifact. Checked
against source: they agreed exactly before the change (source lines 233-237,
dist lines 82-86, identical declarations), so the card's dist read was faithful.
Line numbers had moved, as expected for a card written 2026-09-06; everything was
re-located by anchor. After the change, dist carries the narrowing.

Gates

scripts/pm/dispatch-gates.mjs does not exist in objectui, so gate families
were derived by hand and are declared as such.

That hand-derivation initially omitted the @example-block gate
(check:doc-examples / scripts/check-doc-example-types.mjs), which is why the
failure below reached CI rather than being caught locally. It is in the table now
and runs at exit 0.

gate exit
build closure for check:doc-snippets (35 packages, turbo) 0
pnpm check:doc-snippets (un-mutated; 638 of 638 blocks) 0
pnpm check:doc-examples (89 of 89 ledger rows matched) 0
pnpm check:doc-types 0
pnpm check:control-bytes 0
type-check: @object-ui/plugin-list 0
type-check: @object-ui/app-shell 0
type-check: @object-ui/plugin-map 0
type-check: @object-ui/console 0
vitest run packages/plugin-list/ from repo ROOT (73 files, 895 tests) 0
lint: @object-ui/plugin-list (0 errors; 499 pre-existing warnings) 0
check-changeset-fixed / -no-major / -overwrite / -presence 0 / 0 / 0 / 0
check-governed-queue-guard --test on the changed paths 0 — NOT GOVERNED

Each exit code was redirected to a file and captured before being read, never
through a pipe.

@object-ui/console's type-check first came back non-zero with three
@object-ui/plugin-tree module-resolution errors — that package is outside the
doc-gate build closure and so was simply unbuilt. PREREQUISITE NOT MET, not a
verdict
; after building @object-ui/plugin-tree it passes at exit 0. No
diagnostic in that run mentioned ListView, SortItem or FilterGroup.

Patch round - the ledger row that moved (position axis, not typing)

CI came back red on Doc Snippet Type Check. The cause is positional, not a
defect in the narrowing
: UNGATED_EXAMPLES in
scripts/check-doc-example-types.mjs keys each accepted @example failure by a
string that embeds the line number of the block. The @example on
ListViewHandle was already a known, accepted failure. The declaration change
added lines above it, so the tag moved from line 808 to line 830: the ledger row
matched nothing (stale) and the block re-appeared as undeclared, carrying the same
three diagnostics [2304, 2686] that were already accepted at 808.

Reproduced locally before touching anything - exit 1, UNDECLARED FAILURE at
:830, STALE LEDGER ROW at :808, 89 rows with 88 matched. The block was
re-located by anchor (the @example tag on ListViewHandle), never by
arithmetic and never by trusting the :830 the gate printed; confirmed against the
base, where the same tag sits at 808. Worth noting the file moved 24 net lines
while the block moved 22, so arithmetic would have been wrong.

Only the line number in the key changed. The card, codes and reason of that
row are untouched, no row was added or removed, and the example itself is left
deliberately failing.

Positive control after the fix: exit 0, zero stale rows, zero
undeclared failures, row count unchanged at 89, and the census moved from
"88 of those declared" to "89 of those declared". A base-vs-branch diff of the
extracted key list shows exactly one line differing, and only in its number:

51c51
< packages/plugin-list/src/ListView.tsx:808 ListViewHandle
---
> packages/plugin-list/src/ListView.tsx:830 ListViewHandle

Because the diff now edits a gate script, that script owns suites that were run
too: scripts/__tests__/check-doc-example-types.test.ts and
check-doc-example-shared-reader.test.ts, 80 tests, exit 0. The gate first exited
2 on an unbuilt dist - PREREQUISITE NOT MET, not a green - and was
re-run to a real 0 after building its closure.

This class is a repeat, not a novelty: the same line-number-embedding key bit
objectui#8885 / PR #8895 today. The cross-file citation census cannot see these
keys; only the gate itself catches them.

Changeset

@object-ui/plugin-list: minor — a real changeset, not empty frontmatter;
this is a published package and this moves a published type. The repo forbids
major. The narrowing cost is spelled out in the body as instructed.

Serial constraint, re-derived twice

First derivation (round 1): the claim measured only PR #8959. Re-measured
across all 8 PRs then open, each with a lit control (total changed files), the
reading had aged - PRs #8941 and #7058 each touched packages/plugin-list.

Second derivation (this patch round, before pushing): 12 PRs now open, 4 of
them new. Re-measured against both file surfaces this branch now holds:

origin/main also advanced 2 commits since this branch was cut; neither touched
ListView.tsx nor the ledger, so the base-vs-branch key-list diff above stands.

Out of scope, noted and not filed

The four in-repo handler sites still annotate their parameter (sort: any) /
(filter: any), which now shadows the contextual type this PR provides. Dropping
those annotations would let the real types flow into the bodies. That is
packages/app-shell source, outside this card's declared file surface, and
nothing is wrong today. Successor: whoever next edits ObjectView's persistence
handlers.


Generated by Claude Code

…ey fire with (objectui#8106)

The objectui#4528 sweep named every other prop on `ListViewProps` "at the type
each one actually lands on" and left these two at `any`. `dataSource?: any`
carries its own written justification in the same file; these two carried none.

Each parameter was measured at its emit site, not read off the declaration, and
the two are asymmetric. `sort` crosses one boundary, `emitSortChange`, whose two
legs are the array handed in and `filterPlatformSortableSort`'s return - generic
in the element, so `SortItem[]` either way; normalized-vs-raw does not move the
type here. `filters` is the toolbar `FilterBuilder`'s own `onChange` value passed
straight through, so it is the builder's `FilterGroup`, deliberately not the
later query-path AST that `normalizeFilters` / `buildEffectiveFilter` speak.

Both types were already exported by `@object-ui/components` and already imported
by this file. Pinned in the #4528 props-resolution test, including the `IsAny`
halves that make a future re-widening fail loudly.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MPaVWWMuWeT5LgB1qoXjVB
@github-actions

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 50 chunks) 3484.1 KB 3512.7 KB
Main entry chunk (gzip) 144.2 KB 350 KB
Entry file index-BNy_263s.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) 16.69KB 6.21KB
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) 11.08KB 4.58KB
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) 500.20KB 114.67KB
core (index.js) 7.48KB 2.96KB
create-plugin (index.js) 28.04KB 9.46KB
data-objectstack (index.js) 205.46KB 56.78KB
fields (index.js) 247.15KB 62.32KB
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) 6.57KB 2.76KB
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) 13.52KB 4.88KB
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) 8.39KB 3.10KB
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) 14.81KB 3.63KB
plugin-calendar (index.js) 49.03KB 13.93KB
plugin-charts (index.js) 71.63KB 19.99KB
plugin-chatbot (index.js) 195.32KB 46.51KB
plugin-dashboard (index.js) 132.41KB 34.84KB
plugin-designer (index.js) 215.68KB 44.27KB
plugin-detail (index.js) 253.19KB 65.62KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 136.79KB 34.19KB
plugin-gantt (index.js) 166.65KB 40.91KB
plugin-grid (index.js) 210.86KB 57.28KB
plugin-kanban (index.js) 46.06KB 14.30KB
plugin-list (index.js) 112.54KB 27.65KB
plugin-map (index.js) 20.49KB 6.83KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 43.42KB 11.92KB
plugin-timeline (index.js) 30.10KB 8.74KB
plugin-tree (index.js) 9.55KB 3.32KB
plugin-view (index.js) 84.42KB 20.80KB
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) 83.34KB 27.61KB
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) 6.58KB 2.74KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 5.66KB 2.50KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (kanban-quick-add.js) 3.89KB 1.87KB
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) 14.82KB 4.99KB
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.93KB 1.49KB
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 (strict-authoring-face.js) 14.27KB 5.47KB
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

…ed line (objectui#8106)

`UNGATED_EXAMPLES` keys each accepted `@example` failure by a string that embeds
the block's LINE NUMBER. The narrowing in the previous commit added lines above
`ListViewHandle`'s doc comment, moving its `@example` tag from line 808 to line
830, so the ledger row matched no block (stale) and the block itself read as an
undeclared failure - the same three diagnostics, [2304, 2686], that were already
accepted at 808.

Only the key's line number changes. The row's `card`, `codes` and `reason` are
untouched, no row is added or removed, and the example itself is deliberately
left failing. The block was re-located BY ANCHOR - the `@example` tag on
`ListViewHandle` - and confirmed against the base, where the same tag sits at
808.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MPaVWWMuWeT5LgB1qoXjVB
@github-actions

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 50 chunks) 3484.1 KB 3512.7 KB
Main entry chunk (gzip) 144.2 KB 350 KB
Entry file index-BNy_263s.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) 16.69KB 6.21KB
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) 11.08KB 4.58KB
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) 500.20KB 114.67KB
core (index.js) 7.48KB 2.96KB
create-plugin (index.js) 28.04KB 9.46KB
data-objectstack (index.js) 205.46KB 56.78KB
fields (index.js) 247.15KB 62.32KB
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) 6.57KB 2.76KB
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) 13.52KB 4.88KB
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) 8.39KB 3.10KB
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) 14.81KB 3.63KB
plugin-calendar (index.js) 49.03KB 13.93KB
plugin-charts (index.js) 71.63KB 19.99KB
plugin-chatbot (index.js) 195.32KB 46.51KB
plugin-dashboard (index.js) 132.41KB 34.84KB
plugin-designer (index.js) 215.68KB 44.27KB
plugin-detail (index.js) 253.19KB 65.62KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 136.79KB 34.19KB
plugin-gantt (index.js) 166.65KB 40.91KB
plugin-grid (index.js) 210.86KB 57.28KB
plugin-kanban (index.js) 46.06KB 14.30KB
plugin-list (index.js) 112.54KB 27.65KB
plugin-map (index.js) 20.49KB 6.83KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 43.42KB 11.92KB
plugin-timeline (index.js) 30.10KB 8.74KB
plugin-tree (index.js) 9.55KB 3.32KB
plugin-view (index.js) 84.42KB 20.80KB
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) 83.34KB 27.61KB
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) 6.58KB 2.74KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 5.66KB 2.50KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (kanban-quick-add.js) 3.89KB 1.87KB
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) 14.82KB 4.99KB
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.93KB 1.49KB
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 (strict-authoring-face.js) 14.27KB 5.47KB
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

@os-steve
os-steve marked this pull request as ready for review September 10, 2026 11:53
@os-steve
os-steve added this pull request to the merge queue Sep 10, 2026
Merged via the queue into main with commit fb82877 Sep 10, 2026
35 checks passed
@os-steve
os-steve deleted the claude/issue-8106-listview-callback-param-types branch September 10, 2026 12:10
baozhoutao pushed a commit that referenced this pull request Sep 10, 2026
One conflict, one line, in `scripts/check-doc-example-types.mjs`.

`fb828773d` (objectui#8106, PR #8965) had to RE-DERIVE a line-keyed
`UNGATED_EXAMPLES` row — `ListView.tsx:808` to `:830` — because its own diff
moved lines above an `@example` block it never touched. That is the third
instance of this defect in a day, and it landed while clause 3 was abolishing
the key shape that causes it.

Resolved onto the new key scheme, ⛔ not by picking a side: the row is now
`packages/plugin-list/src/ListView.tsx ListViewHandle #1`, and the line number
that had to be re-derived is simply gone. Re-derived against the MERGED tree
rather than carried: that symbol has exactly one `@example` block in that file,
at line 830, so its ordinal is 1.

Verified on the merged tree: 124 blocks, 124 unique generated keys, 89 ledger
rows, 0 rows naming no block; and against `origin/main` `fb828773d` itself,
89 rows before, 89 after, 89 of 89 carrying an unchanged card / codes / reason
under the derived key map, 0 unmapped.

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FhBNJcLRZLe8M87VcUgpKr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

2 participants