Skip to content

fix(components,app-shell,i18n): element:record_picker and element:number bind data through the node-level dataSource only - #11989

Merged
objectstack-fleet[bot] merged 5 commits into
mainfrom
claude/issue-11880-element-datasource
Oct 8, 2026
Merged

objectstack-fleet[bot] merged 5 commits into
mainfrom
claude/issue-11880-element-datasource

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Part of #11880

Items 2-4 of objectui#11880 for element:record_picker and element:number, as narrowed by the seat's rulings on claim 6062231663. Ruling of record: objectstack-ai/objectstack#11509 comment 6051498447 (A-narrow, objectui first).

What changes

  • Fallbacks dropped (item 2). element:record_picker reads object, filter, sort and limit from the node-level dataSource only. It no longer reads composed?.x ?? props.x. element:number reads its object and filter from the binding only. Its AND-combination with properties.filter is gone, so its filter is the binding's (AND-combined with its view's), lowered by toFilterNodeSafely.
  • No dataSource.object, no query. A number with an aggregate shows its no-object notice. A picker offers no records.
  • Designer (item 3). BlockPropField gains at: 'dataSource', and ObjectSource gains objectFrom: 'dataSource'.
    • element:number's Object picker writes dataSource.object at node level, through PageBlockInspector's node-level patch path, the way visibleWhen is patched.
    • Its measure picker reads the object from there.
    • A stored flat properties.object stays visible under Advanced, which no longer counts a binding-homed field as curated.
    • Existing label keys are reused.
  • Docs (item 4). The element:* paragraph in content/docs/guide/data-source.md states the dataSource-only rule for the two elements.
  • B3, bounded amendment. element.number.noObject now reads "No object named: set dataSource.object." in all ten language packs, and the inline defaultValue in elements.tsx matches. This is a value change only, with no new key. The change made the old sentence ("set object or ...") false.

What is NOT in this PR

  • The element:repeater half is deferred. The seat ruled it out of this PR: at the pin, the spec still declares the repeater's flat object REQUIRED and documents that its node dataSource is not read. Triage rules on that fork. Deferred with it:

    • item 1, the repeater registration in data-list.tsx;
    • the repeater's designer rows;
    • its docs row;
    • its fixtures;
    • the apps/console/src/dev/DevLists.tsx harness.

    Their earlier commits on this branch are reverted by a new commit.

  • Item 5 (object-grid.defaultFilters) is left to objectui#6152 round 10.

  • The flat inputs stay published (seat ruling B1, option B). element:record_picker's object / filter / sort / limit and element:number's object / filter stay in inputs until the spec's v18 retirement ships with the pin bump. Each description now says the key is NOT READ and names the binding member that is, because the old descriptions stated a precedence that is now false. The MEMBER_PINS prose in apps/console/src/__tests__/registry-inputs-spec-parity.test.ts that described the flat precedence is corrected for the same reason. No row, exemption or count there changes.

Verification (HEAD 400f1f352)

  • Union run (repo root, pnpm exec vitest run): every test naming record-picker / elements / data-list / repeater / block-config / PageBlockInspector, every test authoring the three elements, packages/i18n/, column-identity.ratchet and one-authority-per-exported-name-6273. Result: Test Files 186 passed (186), Tests 4642 passed | 13 skipped (4655).
  • Type-check: pnpm --filter @object-ui/components type-check and pnpm --filter @object-ui/app-shell type-check both exit 0, after a turbo build of the app-shell closure.
  • Gate scripts, all exit 0:
    • check-changeset-presence, check-changeset-no-major, check:changeset-claims;
    • check:new-line-citations (0 new);
    • check:control-bytes;
    • check:i18n-keys, check:i18n-drift ("Every changed en value was followed by all nine translation packs"), check:i18n-designer-parity, check:i18n-dead-keys;
    • check:spec-symbols, check:element-data-source-declaration;
    • check:doc-types, check:doc-fences, check:doc-example-ids, check:doc-example-readers, docs:check-links.
  • Lint: eslint on the 31 touched ts/tsx files: 0 errors.
  • Not measured: check:doc-snippets / check:doc-examples (exit 2: their closure is unbuilt; the diff adds no ts/tsx fence and no @example).
  • Ablations at the same HEAD, each through ablation-replace with its restore proven (blob equals HEAD and the diff against HEAD is empty):
    • picker ?? props.object put back: 1 red, 6 green;
    • number ?? props.object put back: 3 red, 22 green;
    • number AND with properties.filter put back: 2 red, 16 green;
    • the number's Object picker without at: 'dataSource': 2 red, 3 green (the repeater control row stays green).

Acceptance notes

  • A docblock in packages/react (ElementDataSourceNoObjectPanel) says its wording is element:number's notice with the property as a hole. After B3 that is approximate, because the number's sentence no longer has an "X or" part. It is a comment, not published text, and the file is off this PR's surface.
  • check-changeset-presence counts four released packages: components, app-shell, i18n, and console via a test fixture. It passes with the one changeset, which declares components, app-shell and i18n.

Clause-②: no


Generated by Claude Code

claude added 5 commits October 8, 2026 15:07
…evel dataSource only

element:repeater reads its query (object, filter, sort, limit) from the
dataSource binding, gate-wrapped like element:number; element:record_picker
and element:number drop their flat-key fallbacks and the number's AND with
properties.filter; the Studio designer writes dataSource.object (and the
repeater's dataSource.limit) at node level, and its field pickers read the
object from there. Docs and changeset follow.

Part of objectui#11880 (items 1-4).

Claude-Session: https://claude.ai/code/session_01MgfduSkFrfM3eorB3UGfAU
Co-authored-by: Claude <noreply@anthropic.com>
…ures onto the binding

New pins: the repeater's dataSource members (data-list.elementDataSource-11880)
and the designer's node-level binding writes
(PageBlockInspector.elementDataSource-11880). The record_picker / number pins
that asserted the flat-key fallbacks are inverted; fixtures that authored
properties.object / filter / sort / limit on the three elements now author
dataSource. The block-config schema-parity census judges a control homed in
the binding against ElementDataSourceSchema.

Part of objectui#11880 (items 1-4).

Claude-Session: https://claude.ai/code/session_01MgfduSkFrfM3eorB3UGfAU
Co-authored-by: Claude <noreply@anthropic.com>
… leaves untouched

Part of objectui#11880.

Claude-Session: https://claude.ai/code/session_01MgfduSkFrfM3eorB3UGfAU
Co-authored-by: Claude <noreply@anthropic.com>
…r the seat rulings; defer element:repeater

Seat rulings on objectui#11880 (claim 6062231663):

- The repeater is deferred to triage: the spec at the pin still declares its
  flat object REQUIRED and documents that the node dataSource is not read
  there. data-list.tsx, the repeater's designer rows, its docs row and
  example, and its fixtures are restored to the base; the designer, docs and
  fixture changes are narrowed to element:number and element:record_picker.
- B1, option B: element:record_picker's object / filter / sort / limit and
  element:number's object / filter stay published until the spec's v18
  retirement; each description now says the key is not read and names the
  binding member that is, and the member-pin prose that described the flat
  precedence is corrected.
- B3, option A: element.number.noObject in the ten language packs, and its
  inline defaultValue, name only dataSource.object (value change, no new key).

Part of objectui#11880.

Claude-Session: https://claude.ai/code/session_01MgfduSkFrfM3eorB3UGfAU
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 337 chunks) 3311.2 KB 3312.0 KB
Main entry chunk (gzip) 71.4 KB 350 KB
Entry file index-CChHZ3yG.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) 18.33KB 6.73KB
app-shell (runtime-config.js) 22.59KB 7.89KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 10.11KB 3.87KB
auth (ActiveOrganizationStorage.js) 27.95KB 10.04KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 2.07KB 1.00KB
auth (AuthProvider.js) 40.22KB 10.61KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 18.15KB 5.40KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.72KB 2.24KB
auth (SocialSignInButtons.js) 9.70KB 3.93KB
auth (UserMenu.js) 3.39KB 1.21KB
auth (auth-gate-events.js) 1.29KB 0.66KB
auth (authStyles.js) 5.04KB 1.72KB
auth (createAuthClient.js) 41.19KB 11.12KB
auth (createAuthenticatedFetch.js) 8.54KB 3.46KB
auth (index.js) 3.63KB 1.64KB
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) 27.11KB 7.97KB
collaboration (LiveCursors.js) 3.17KB 1.27KB
collaboration (PresenceAvatars.js) 6.28KB 2.60KB
collaboration (PresenceProvider.js) 2.79KB 1.13KB
collaboration (index.js) 1.68KB 0.73KB
collaboration (useCollaborationTranslation.js) 6.50KB 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) 587.07KB 141.28KB
core (index.js) 10.00KB 3.96KB
create-plugin (index.js) 27.94KB 9.51KB
data-objectstack (index.js) 240.39KB 67.09KB
fields (index.js) 268.74KB 68.04KB
i18n (LocalizationContext.js) 2.92KB 1.42KB
i18n (builtinAggregateLabels.js) 0.86KB 0.49KB
i18n (currency.js) 2.59KB 1.22KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 8.87KB 3.64KB
i18n (index.js) 5.52KB 2.39KB
i18n (pickLocalized.js) 9.86KB 3.95KB
i18n (provider.js) 39.35KB 12.88KB
i18n (translateFn.js) 0.20KB 0.18KB
i18n (useDisplayLocale.js) 3.52KB 1.76KB
i18n (useObjectLabel.js) 36.87KB 9.88KB
i18n (useSafeTranslation.js) 7.14KB 2.92KB
layout (index.js) 41.50KB 11.82KB
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) 6.62KB 2.45KB
mobile (useResponsive.js) 0.72KB 0.42KB
mobile (useSpecGesture.js) 5.52KB 2.10KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 13.86KB 5.00KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.52KB 2.26KB
permissions (discardProofCache.js) 1.04KB 0.55KB
permissions (evaluator.js) 8.33KB 3.07KB
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) 16.04KB 3.92KB
plugin-calendar (index.js) 53.43KB 15.54KB
plugin-charts (index.js) 84.71KB 23.25KB
plugin-chatbot (index.js) 199.63KB 47.46KB
plugin-dashboard (index.js) 144.20KB 38.95KB
plugin-designer (index.js) 231.46KB 48.87KB
plugin-detail (index.js) 248.57KB 65.47KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 177.11KB 45.88KB
plugin-gantt (index.js) 179.17KB 45.07KB
plugin-grid (index.js) 248.22KB 68.84KB
plugin-kanban (index.js) 52.22KB 16.38KB
plugin-list (index.js) 117.72KB 29.41KB
plugin-map (index.js) 27.24KB 9.03KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 44.12KB 12.29KB
plugin-timeline (index.js) 39.10KB 11.81KB
plugin-tree (index.js) 15.07KB 5.33KB
plugin-view (index.js) 91.09KB 22.94KB
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.81KB 3.58KB
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) 120.63KB 39.56KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.50KB 2.06KB
react (schema-input.js) 4.31KB 2.07KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (body-dialect.js) 4.50KB 1.99KB
sdui-parser (codegen.js) 9.45KB 3.76KB
sdui-parser (dashboard-widget-options.js) 3.07KB 1.30KB
sdui-parser (index.js) 7.30KB 3.12KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (parse.js) 25.28KB 7.80KB
sdui-parser (provenance.js) 3.84KB 1.90KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 23.87KB 7.83KB
types (ai.js) 4.39KB 2.17KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 4.12KB 1.61KB
types (authoring-nodes.js) 0.20KB 0.19KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (cloud.js) 0.20KB 0.18KB
types (complex.js) 4.44KB 2.07KB
types (crud.js) 0.20KB 0.18KB
types (dashboard-filter-alias.js) 6.23KB 2.74KB
types (dashboard-widget-layout.js) 2.06KB 0.96KB
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) 1.13KB 0.65KB
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) 5.78KB 2.70KB
types (layout.js) 0.20KB 0.18KB
types (managed-by.js) 0.19KB 0.18KB
types (mobile.js) 5.00KB 2.39KB
types (navigation.js) 0.20KB 0.18KB
types (node-slots.js) 7.18KB 2.34KB
types (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (permissions.js) 2.52KB 1.31KB
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) 4.99KB 1.96KB
types (spec-ui-namespace.js) 0.20KB 0.19KB
types (strict-authoring-face.js) 19.93KB 7.25KB
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

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.

2 participants