Skip to content

fix(app-shell): a blank dataset Field box writes no field key; a field-less dimension holds Save (objectui#11402) - #11408

Merged
objectstack-fleet[bot] merged 6 commits into
mainfrom
claude/issue-11402-dataset-blank-field
Oct 2, 2026
Merged

objectstack-fleet[bot] merged 6 commits into
mainfrom
claude/issue-11402-dataset-blank-field

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Fixes #11402
Clause-②: no

What changed

DatasetDefaultInspector no longer writes field: '' for a dataset row whose Field box is blank.

  • New rows carry no field key. "Add dimension" seeds { name: '', type: 'string' } and "Add measure" seeds { name: '', aggregate: 'sum' }. Neither writes an id default or any other field on the author's behalf.
  • A blank Field value removes the key. Both Field combos write through writeRowField, which rebuilds the row without field when the value is blank. It does not store '' or field: undefined, so the held draft and the saved body agree. A count measure with no field saves the one spelling the spec has for count(*): the key is absent.
  • A dimension with a blank Field box is held as incomplete. The inspector reports each dimension whose field is absent or blank on its onBlockingIssuesChange channel. That count includes a stored field: ''. The host already reads this channel for the default-inspector family (objectui#4527, objectui#6900): it holds the Save button, the autosave timer and the shortcut until a field is picked. While the box is blank, that row's Field label also shows the designer's required marker (RequiredMarker, objectui#10948). A complete row shows the plain label. Measures are not held: a measure's field is optional, and whether its aggregate may go without one is the spec's verdict at save.

Rulings → where each lands (triage 5941542449)

Ruling Where
New rows are seeded without a field key. the two onAdd seeds; pins seeds a new measure row …, seeds a new dimension row …
A measure with a blank Field box writes no field. writeRowField via pickMeasureField; pin ⭐ a measure added and saved with a blank Field box carries no field, and the saved dataset parses under DatasetSchema
A dimension with a blank Field box shows as incomplete and is not saved with ''. the blocking count plus the state-bound marker; pins under a blank-Field dimension is held as incomplete
⛔ No id default. the seeds; the dimension seed pin uses toStrictEqual

Which "incomplete" mechanism this reuses, and why it is licensed here

I measured what this inspector family has for "incomplete": the onBlockingIssuesChange Save gate, the static RequiredMarker, and the host's live Zod pass. The Zod pass does not exist for dataset: clientValidation.ts registers no loader for it. Nothing new was invented. The hold reuses the Save gate, and the marker reuses RequiredMarker.

A reviewer should weigh one point. The host's note above blockingReport in ResourceEditPage describes this channel as carrying faults the server does not catch, and it keeps schema verdicts advisory. The reason is that a client gate stricter than the server would wedge Save on a body the server accepts.

  • A field-less dimension. The installed spec (@objectstack/spec 17.5.0, DatasetDimensionSchema.field is a required string) refuses it as well. So the hold is never stricter than the spec. A new pin, the hold is never stricter than the spec …, asserts DatasetSchema refuses that dimension at dimensions.0.field and accepts it once a field is picked. It goes red if the key ever turns optional.
  • A stored field: ''. This is the one row the hold refuses that 17.5.0 accepts. The ruling covers it ("not saved with ''"), and the Field box on screen repairs it, so it cannot wedge.
  • Without the hold, dropping the '' seed alone would send every freshly added dimension to the server without a field. Autosave would then draw a 422 on every "Add dimension" until a field is picked. This is inferred, not measured against a live server: DatasetDimensionSchema.field is required on 17.5.0, and dataset has no client validator.

Inherited vs re-run (this run resumed a killed one)

  • Inherited: 93f85530 (the pin) and 200e91d8 (the fix). I did not take either on trust.
  • Re-run, red first: with the inspector put back to its 7728c67c bytes and the pin file unchanged, 8 tests failed and 1 passed (9 total) at 44fa23cf. Each failure is on the asserted fact: the seeds carry field: '', the held row has a field key, nothing is reported on the blocking channel, and writeRowField is absent. The one pass is the spec control, which asserts the spec rather than the inspector. The restore used git checkout HEAD -- PATH. I proved it by comparing hashes: the file's blob equals the HEAD blob 725de67b, and git diff HEAD is empty.
  • Found and repaired with new commits (objectui forbids force-push):
    • 93c6598c: the inherited pin did not compile under tsc -p tsconfig.test.json, the second leg of the package's type-check. A field-less literal passed to writeRowField read as a weak type and drew TS2353. The rows are now typed.
    • 44fa23cf: the inherited fix put the marker on every dimension's Field label. That changed the label text on complete rows and turned inspectorStrings.i18n-10696's lit control red, because it finds the Field combo by the label's exact text. The marker now renders only while the box is blank. That is also closer to the ruling's "shows as incomplete" than a static "required" mark on complete rows.
    • e98eb867: the spec-control pin described above.
  • New here: the changeset (c5648ec6).

Tests and gates — all read at 44fa23cf

Node v22.22.2 from /opt/nvm (the container's v22.22.0 is refused by the engine-strict install).

  • pnpm --filter @object-ui/app-shell type-check && pnpm --filter @object-ui/app-shell build exited 0. Both tsc legs echoed, and the build printed ✓ dist completeness: 1 package(s) complete. tsc -p tsconfig.test.json --listFiles lists the pin file. I built the dependency closure first with turbo run build --filter=@object-ui/app-shell... --concurrency=2: 29 of 29 tasks succeeded.
  • pnpm exec vitest run --maxWorkers=2 over every suite in packages/app-shell/src/views/metadata-admin/inspectors/, plus the dataset readers previews/DatasetPreview*, DatasetPreview.dimensionLabels-8187 and dataPreviews.i18n-10862-s3: Test Files 125 passed (125), Tests 1727 passed | 1 skipped (1728). The skip is an existing skipIf on a spec version in flow-node-config.spec-reconciliation.
  • These gates each exited 0:
    • pnpm check:control-bytes
    • pnpm check:new-line-citations (VERDICT … 0 new citation(s))
    • node scripts/check-changeset-presence.mjs
    • pnpm changeset:check
    • check:vi-mock-specifiers, check:vi-mock-inherit and check:vi-mock-override-shape (the pin mocks ./useDatasetFields)
    • check:test-path-roots
    • check:i18n-keys
    • check:changeset-claims
    • check:pending-changeset-literals
  • Narrowed lint, a measurement rather than a skip.
    1. The population is the package's eslint . under the root eslint.config.js. Both changed files are linted, not ignored.
    2. --format json reports 2 files, 0 errors and 4 warnings. One warning is new: react-refresh/only-export-components on the writeRowField export, the same rule the file's existing objectChangePatch export already draws. lint.yml sets no --max-warnings.
    3. Invariance: eslint.config.js enables no type-aware linting, and no rule under eslint-rules/ reads the disk. So this diff cannot move a verdict on an untouched file.
  • The diff is not on the governed surface: check-governed-queue-guard.mjs --test reports NOT GOVERNED.

Readers of these rows (checked for an absent field)

DatasetPreview reads String(x?.field ?? '') and skips an empty one. ReportView's drill fallback reads dimDef?.field || dim. missingRelationship takes field: string | undefined. useDatasetCatalog never reads field. None of them breaks.

Acceptance notes (observations, not filed)

  • A legacy measure stored with field: '' (written by this inspector before this change) is re-sent unchanged unless the author edits it. The card records that a count measure carrying it answered 500 on the ObjectQL strategy (the objectstack dev's measurement, not re-taken here). Under feat(spec)!: an analytics dataset dimension's and measure's field is a column reference (#21220) objectstack#21240 it is refused at measures.N.field. The combo has no "clear" affordance, so the in-UI repair is the Source tab. Repairing stored data was not asked for here.
  • Clearing a filled Field box. InspectorComboField offers no way to clear a picked value, so the inspector has no UI path to clear a measure's Field box back to count(*). writeRowField covers a blank value if one ever arrives.
  • Host comments are now narrower than the channel. ResourceEditPage's Save-button comment and inspectorBlocking note name CEL faults and the objectui#6900 refusal as what the channel carries. The dataset dimension hold is now a third kind.

Generated by Claude Code

claude added 6 commits October 1, 2026 23:03
… key (objectui#11402)

Red first, against the unchanged inspector: new dimension and measure rows
are seeded with `field: ''`, a blank-Field measure saves `field: ''`, and a
field-less dimension is reported on no blocking-issue channel.

Claude-Session: https://claude.ai/code/session_01JG2jy8a9su7ia4Hx7zxv42
Co-authored-by: Claude <[email protected]>
…eld-less dimension holds Save (objectui#11402)

New dimension and measure rows are seeded without a `field` key, and every
write of the Field box goes through `writeRowField`, which removes the key on
a blank value instead of storing `''`. A measure therefore saves the one
spelling the spec has for "no field" (count(*)).

A dimension's `field` is required, so a field-less (or stored `''`) dimension
is reported on the inspector's blocking-issue channel, the one the host's
Save gate, autosave timer and shortcut already read (objectui#4527 /
objectui#6900); its Field label carries the designer's required marker
(objectui#10948). No `id` default is written on the author's behalf.

Claude-Session: https://claude.ai/code/session_01JG2jy8a9su7ia4Hx7zxv42
Co-authored-by: Claude <[email protected]>
…r than the spec (objectui#11402)

The host keeps a verdict the server also returns advisory, because a client
gate stricter than the server would wedge Save. The field-less dimension hold
is safe on that count only while `DatasetSchema` itself refuses a dimension
without a `field`; this pins that, and goes red if the key ever turns optional.

Claude-Session: https://claude.ai/code/session_01JG2jy8a9su7ia4Hx7zxv42
Co-authored-by: Claude <[email protected]>
…m compiles (objectui#11402)

A field-less object literal shares no key with `{ field?: string }`, so left
to inference it reads as a weak type and `tsc -p tsconfig.test.json` (the
second leg of the package's `type-check`) refused its other keys with TS2353.
The rows are now typed as the inspector's own row shape; the assertions are
unchanged.

Claude-Session: https://claude.ai/code/session_01JG2jy8a9su7ia4Hx7zxv42
Co-authored-by: Claude <[email protected]>
…ld label only while the box is blank (objectui#11402)

The ruling asks that a dimension with a blank Field box shows as incomplete.
A marker on every dimension's Field label said "required" on complete rows
too, and it changed the label's text for every row, which turned the
`inspectorStrings.i18n-10696` lit control red: it finds the Field combo by
the label's exact text on a dimension that already has a field. The marker
now renders while the box is blank, so the row the Save hold is about is the
one shown as incomplete, and a complete row keeps the plain label. The pin
asserts both states.

Claude-Session: https://claude.ai/code/session_01JG2jy8a9su7ia4Hx7zxv42
Co-authored-by: Claude <[email protected]>
@github-actions

github-actions Bot commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 330 chunks) 3553.0 KB 3574.6 KB
Main entry chunk (gzip) 150.3 KB 350 KB
Entry file index-Dc8AyUpd.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.88KB 6.25KB
app-shell (runtime-config.js) 20.68KB 7.36KB
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.17KB 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) 40.70KB 10.94KB
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.13KB 7.95KB
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) 570.62KB 136.73KB
core (index.js) 10.00KB 3.96KB
create-plugin (index.js) 27.94KB 9.51KB
data-objectstack (index.js) 230.46KB 63.94KB
fields (index.js) 260.89KB 66.19KB
i18n (LocalizationContext.js) 1.76KB 0.96KB
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.24KB 2.27KB
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) 34.49KB 9.23KB
i18n (useSafeTranslation.js) 5.60KB 2.33KB
layout (index.js) 40.40KB 11.41KB
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.01KB 3.93KB
plugin-calendar (index.js) 53.15KB 15.45KB
plugin-charts (index.js) 84.07KB 22.93KB
plugin-chatbot (index.js) 198.22KB 46.97KB
plugin-dashboard (index.js) 139.77KB 37.47KB
plugin-designer (index.js) 216.57KB 44.72KB
plugin-detail (index.js) 245.70KB 64.54KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 173.14KB 44.58KB
plugin-gantt (index.js) 178.11KB 44.87KB
plugin-grid (index.js) 231.72KB 63.65KB
plugin-kanban (index.js) 49.49KB 15.54KB
plugin-list (index.js) 116.63KB 28.97KB
plugin-map (index.js) 25.60KB 8.62KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 44.04KB 12.21KB
plugin-timeline (index.js) 34.29KB 10.13KB
plugin-tree (index.js) 14.58KB 5.17KB
plugin-view (index.js) 90.32KB 22.76KB
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.25KB 2.04KB
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.08KB 1.30KB
sdui-parser (index.js) 6.06KB 2.68KB
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) 21.42KB 7.05KB
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 (complex.js) 3.19KB 1.62KB
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) 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) 5.07KB 2.39KB
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 (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) 21.59KB 7.71KB
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

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review October 2, 2026 00:18
@objectstack-fleet
objectstack-fleet Bot enabled auto-merge October 2, 2026 00:18
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Oct 2, 2026
Merged via the queue into main with commit 0858267 Oct 2, 2026
45 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-11402-dataset-blank-field branch October 2, 2026 00:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

2 participants