Skip to content

fix(data-objectstack): lower an array analytics filter through parseFilterAST before the wire (#7752) - #7754

Merged
os-zhuang merged 2 commits into
mainfrom
claude/issue-7752-aggregate-where-lowering
Sep 5, 2026
Merged

os-zhuang merged 2 commits into
mainfrom
claude/issue-7752-aggregate-where-lowering

Conversation

@os-zhuang

Copy link
Copy Markdown
Contributor

Fixes #7752

Executes the maintainer ruling recorded on objectstack-ai/objectstack#15828 (2026-09-05, verbatim 「15828 按前端缺陷处理」): the protocol is right and this adapter was wrong. No @objectstack/spec change, and no widening of AnalyticsQuerySchema.where — that direction is objectstack#5158's rejected option A.

What was broken

aggregate()'s analytics branch built payload.where = translateFilterArray(params.filter) for an array filter. translateFilterArray only normalises rule objects into AST tuples; the result is still a FilterArray. Per @objectstack/spec data/filter.zod.ts, the FilterArray docblock (objectstack#5158 ruling C, verbatim):

A FilterArray is not a storage shape and not a protocol shape. It is lowered to a FilterCondition at the single sink parseFilterAST (@objectstack/spec/data) the moment it arrives, and only the lowered FilterCondition travels any further. where on a query is a FilterCondition and stays one … no driver, no transport, no stored row — ever has to understand two filter dialects.

The declared doors where an array may arrive are React block props, FilterBuilder, and the REST $filter query string. A POST body is transport, so POST /analytics/query parses the body with AnalyticsQueryRequestSchema (where: FilterConditionSchema) before any normalisation and answered 400 Invalid AnalyticsQuery body: where: … to every array shape. An element:number (array-only since objectstack#12039) or an object-metric with an array filter therefore rendered into its error state on any deployment served through the runtime route, and the only surviving authoring form was the MongoDB-style record — the exact form #6206 ruling B retired.

The branch's own comment showed the misreading: it named lowerAnalyticsWhere (@objectstack/service-analytics, objectstack#5334) as the wire's door. That is the in-process door, one hop later, and it is the function #6302's gate measured. The comment is rewritten to name the route hop.

The change

packages/data-objectstack/src/index.ts, analytics branch only:

  • parseFilterAST is imported beside the isFilterAST this file already imported from @objectstack/spec/data, and a new lowerAnalyticsFilterForWire does the lowering: a non-array filter passes through (it is already a FilterCondition), and any other array is normalised by the same translateFilterArray the find() path runs, then lowered by the sink.
  • Empty case pinned: parseFilterAST([]) is undefined, so an empty authored filter posts no where key at all — the same reading the in-process door gives [] ("[] is no filter", objectstack#5334). It used to post a literal [].
  • Refusal, never a drop: an array the sink cannot lower — an infix join [condA, 'or', condB] above all — throws a new UnlowerableAnalyticsFilterError carrying the same INVALID_FILTER / 400 envelope MalformedFilterError and UnloweredAggregateWhereError carry, so isMalformedFilterError() recognises it. Neither of those two classes' meaning is widened: this one covers only the analytics branch's authoring input. The alternative was worse than a 400 — parseFilterAST answers undefined for such an array, and undefined here would post a body with no where, i.e. an aggregate over every row returned as a confident number under a filtered question. The sink's own throw (a truncated tuple such as ['stage','='], which isFilterAST accepts) is re-dressed in the same envelope with its message kept.
  • The lowering runs before the analytics try. Raised inside it, a refusal would be handed to classifyAnalyticsFailure, come back unknown, and be answered by the client-side fallback — which re-reads the same rows through find() and hands the caller plausible numbers. MalformedFilterError reaches the caller directly now too; before, it only survived because aggregateViaFind happened to re-throw it.

Untouched, deliberately: translateFilterArray's body, find()'s $filter query string (a declared door), the spec-shape branch and UnloweredAggregateWhereError (#6825, ruling 2026-08-30 option A), the record producer path, and every governed surface.

Tests

aggregate-filter-lowering.test.ts re-pointed, and the route-hop pin both triage comments on objectstack#15828 asked for is added. Two properties, not one:

  1. The posted where is parseFilterAST's own output for the same filter, never a hand-written literal — so this file cannot drift away from the contract it pins. The cross-path block now asserts aggregate()'s where equals parseFilterAST applied to the AST find() puts on filter=: the two doors differ by that lowering and by nothing else.
  2. The whole posted payload passes AnalyticsQueryRequestSchema.safeParse — the route's own gate, run on the real body — for a comparison tuple, a rule array, an and group, a bare list, both record forms, the empty array, and no filter at all. A negative control in the same block asserts the array this branch used to post is refused by that schema, so the accept rows cannot pass against a gate that accepts anything.

Plus: the infix join is refused before any request (the analytics body list is empty and no /data/… fallback call happens either), and aggregate-spec-shape-where.test.ts's one row that pinned the old analytics value is re-pointed the same way — that file's own refusal is unaffected.

Gates (exit codes captured by redirect, verdict lines quoted)

Command Exit Verdict line
pnpm exec vitest run packages/data-objectstack/ 0 Test Files 56 passed (56) · Tests 748 passed (748)
pnpm exec vitest run packages/data-objectstack/ packages/plugin-charts/ packages/plugin-dashboard/ packages/components/ packages/core/ 0 Test Files 544 passed (544) · Tests 6649 passed (6649)
pnpm --filter @object-ui/data-objectstack type-check 0 tsc --noEmit, no diagnostics
pnpm --filter @object-ui/data-objectstack lint 0 ✖ 427 problems (0 errors, 427 warnings) — warnings all pre-existing no-explicit-any
node scripts/check-changeset-presence.mjs 0 ✅ 3 source file(s) of 1 released package(s) changed, and this change declares 1 changeset(s)
node scripts/check-changeset-no-major.mjs 0 ✅ No changeset declares a major bump.
pnpm check:control-bytes 0 ✅ check-control-bytes: OK (scanned 6315 tracked text file(s))
pnpm check:spec-symbols 0 ✅ spec member citations: no comment cites a key its spec symbol does not declare.
pnpm check:phantom-deps 0 ✅ Every in-scope import is declared by the package that publishes it.
pnpm check:vi-mock-specifiers 0 ✅ check-vi-mock-specifiers: OK
pnpm check:self-import / check:unreferenced-sources 0 OK

The second row covers every in-repo aggregate() caller's package (plugin-charts ObjectChart, plugin-dashboard ObjectMetricWidget, components elements.tsx, core ValueDataSource). The two heavy runs went through this container's shared verify lock.

pnpm check:readme-exports exits 1 in this worktree with the population COLLAPSED — packagesRead: found 4, floor is 25: it needs every package built, and its own workflow builds first. Declared, not silently skipped — with @object-ui/data-objectstack built it reports zero findings for this package, and the change only adds an export (UnlowerableAnalyticsFilterError, confirmed present in dist/index.d.ts), which cannot make a README name stop resolving. The repo-wide run belongs to CI.

Reverse verification

Run on the committed tree (00acc4a9), mutation proven on disk before the run and the restore proven after:

HEAD blob:        78acecd0406c629f65102b714c3386e3c7f5bef6
before mutation:  78acecd0406c629f65102b714c3386e3c7f5bef6
anchors BEFORE:   parseFilterAST(ast) call: 1 · ABLATED marker: 0
anchors AFTER:    parseFilterAST(ast) call: 0 · ABLATED marker: 1
after mutation:   c8d20a3bb258d5c823a99acfb691d7964a982121
ABLATED_TEST_EXIT=1        Tests  17 failed | 14 passed (31)
after restore:    78acecd0406c629f65102b714c3386e3c7f5bef6
diff-vs-HEAD:     []

With lowered = ast in place of lowered = parseFilterAST(ast), the four AnalyticsQueryRequestSchema accept rows go red (expected false to be true) alongside the value assertions, and the truncated-tuple refusal stops firing — the new pin can fail, and it fails at the hop it exists to measure. The mutation was a source-level edit read directly by vitest (the tests import ./index, not the package's dist/), so no rebuild leg applies. The script carried a trap … EXIT INT TERM restoring from HEAD by absolute path; restoration is proven by blob equality plus an empty git diff HEAD, not by an exit code.

Changeset

.changeset/7752-analytics-where-lowering.md, @object-ui/data-objectstack patch, written for a user.


Generated by Claude Code

…ilterAST before the wire

`aggregate()`'s analytics branch posted `translateFilterArray(params.filter)`
as `payload.where` — filter AST, which is still a `FilterArray`. A
`FilterArray` is input-only sugar: `@objectstack/spec` lowers it to a
`FilterCondition` at the single sink `parseFilterAST` the moment it arrives,
and only the lowered condition travels further (objectstack#5158 ruling C).
`POST /analytics/query` parses its body with `AnalyticsQueryRequestSchema`
before any normalisation, and that `where` is `FilterConditionSchema`, so
every array shape answered `400 Invalid AnalyticsQuery body: where: ...`.

The branch's comment named `lowerAnalyticsWhere` as the wire's door. That is
the in-process door (objectstack#5334) and sits one hop later, which is why
objectui#6302's gate measured a function the route never reaches.

Lower with `parseFilterAST` before the payload is built:

- an empty array posts no `where` at all (`parseFilterAST([])` is `undefined`,
  and the in-process door reads `[]` the same way);
- a record filter passes through — it is already a `FilterCondition`;
- an array the sink cannot lower (an infix join) is refused with a new
  `UnlowerableAnalyticsFilterError` carrying the `INVALID_FILTER` / 400
  envelope its two siblings carry, rather than posted or dropped into an
  unfiltered aggregate.

The lowering runs before the analytics `try`, so a refusal reaches the caller
as itself instead of being classified as an unknown analytics failure and
answered by the client-side fallback with plausible numbers.

Tests re-pointed to `parseFilterAST`'s own output rather than literals, plus
the route-hop pin nobody had on either side: the posted payload is parsed with
`AnalyticsQueryRequestSchema` itself.

Fixes objectui#7752. Refs objectstack#15828, objectstack#5158, objectui#6302.

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

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 50 chunks) 3186.8 KB 3191.4 KB
Main entry chunk (gzip) 143.2 KB 350 KB
Entry file index-BMyBbtld.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) 510.63KB 116.21KB
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.98KB 10.98KB
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.75KB 3.80KB
plugin-calendar (index.js) 47.87KB 13.31KB
plugin-charts (index.js) 70.92KB 19.75KB
plugin-chatbot (index.js) 196.37KB 46.41KB
plugin-dashboard (index.js) 132.87KB 34.68KB
plugin-designer (index.js) 212.86KB 43.19KB
plugin-detail (index.js) 250.55KB 64.06KB
plugin-editor (index.js) 2.46KB 1.10KB
plugin-form (index.js) 132.87KB 32.66KB
plugin-gantt (index.js) 167.26KB 41.00KB
plugin-grid (index.js) 209.29KB 56.78KB
plugin-kanban (index.js) 52.71KB 14.55KB
plugin-list (index.js) 113.28KB 27.59KB
plugin-map (index.js) 20.44KB 6.78KB
plugin-markdown (index.js) 13.93KB 4.81KB
plugin-report (index.js) 43.59KB 11.97KB
plugin-timeline (index.js) 30.84KB 8.85KB
plugin-tree (index.js) 9.20KB 3.19KB
plugin-view (index.js) 85.24KB 20.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.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

The PR adds `UnlowerableAnalyticsFilterError` to `@object-ui/data-objectstack`'s
published surface (present in `dist/index.d.ts`). An additive public export is a
minor under semver and under this repo's precedent for new exports, not a patch.
Text unchanged; only the frontmatter bump moves.

Refs objectui#7752, PR objectui#7754.

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

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 50 chunks) 3186.8 KB 3191.4 KB
Main entry chunk (gzip) 143.2 KB 350 KB
Entry file index-BMyBbtld.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) 510.63KB 116.21KB
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.98KB 10.98KB
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.75KB 3.80KB
plugin-calendar (index.js) 47.87KB 13.31KB
plugin-charts (index.js) 70.92KB 19.75KB
plugin-chatbot (index.js) 196.37KB 46.41KB
plugin-dashboard (index.js) 132.87KB 34.68KB
plugin-designer (index.js) 212.86KB 43.19KB
plugin-detail (index.js) 250.55KB 64.06KB
plugin-editor (index.js) 2.46KB 1.10KB
plugin-form (index.js) 132.87KB 32.66KB
plugin-gantt (index.js) 167.26KB 41.00KB
plugin-grid (index.js) 209.29KB 56.78KB
plugin-kanban (index.js) 52.71KB 14.55KB
plugin-list (index.js) 113.28KB 27.59KB
plugin-map (index.js) 20.44KB 6.78KB
plugin-markdown (index.js) 13.93KB 4.81KB
plugin-report (index.js) 43.59KB 11.97KB
plugin-timeline (index.js) 30.84KB 8.85KB
plugin-tree (index.js) 9.20KB 3.19KB
plugin-view (index.js) 85.24KB 20.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.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

@os-zhuang
os-zhuang marked this pull request as ready for review September 5, 2026 15:42
@os-zhuang
os-zhuang added this pull request to the merge queue Sep 5, 2026
Merged via the queue into main with commit 53ded82 Sep 5, 2026
34 checks passed
@os-zhuang
os-zhuang deleted the claude/issue-7752-aggregate-where-lowering branch September 5, 2026 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

2 participants