Skip to content

fix(fields): a formula reads one stored value the same in the form and in the cell (objectui#11748) - #11751

Merged
objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/issue-11748-formula-faces
Oct 7, 2026
Merged

objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/issue-11748-formula-faces

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #11748

Clause-②: no

A formula's value now reads the same in the read-only record form and in a table cell. Implemented by session session_01CGZy1BGCjdN5cXqL9cnvB8 (seat domain:ui#3, round 1, claim comment 6027067109).

What changed

FormulaField (packages/fields/src/widgets/FormulaField.tsx, the read-only form face) and FormulaCellRenderer (packages/fields/src/index.tsx, the table face) now read one rule. Each type is drawn through the calls the matching field type's faces make. Both edits sit inside the claim's file surface.

  • Which type. The declared returnType. With none, a JS number is a number and any other value is text. That is the rule objectui#11683 gave the cell, now read by the form too. No type is inferred from the expression.
  • number. Both faces call formatNumberFieldValue, the call the number cell and NumberField's read-only branch make. That gives the locale's grouping and the width a declared scale sets. The form face no longer calls toFixed(2). The form now reads the value the way the cell does: blank is empty, and a numeric string under a declared number is a number.
  • boolean. Both faces draw the locale's common.yes / common.no word. Only a JS boolean is a boolean, as in BooleanField's read-only branch (objectui#8593) and BooleanCellRenderer (objectui#8582). Any other value draws EmptyValue. The form face used to read truthiness, so the string 'false' said Yes.
  • date. Both faces draw formatDate's default face (see the next section). A falsy or unparsable value draws EmptyValue, with the same toDisplayDate guard as DateField's read-only branch.
  • text. The cell is unchanged. The form face now takes the cell's emptiness floor and prints the coerced text (the bounded fix below).
  • Monospace now applies to text only. In the form, the typed results draw in a text-sm span, as the field widgets' read-only branches do. In the cell, the date is tabular-nums, the boolean word is a plain span, and the number is NumberCellRenderer as before.
  • Prose, commit 6865bcd (the patch round the claim amendment added; no source or test file changed). Each statement was measured against this branch's code, which that commit does not change, with a throwaway component probe that was never committed.
    • packages/types/src/field-types.ts and packages/types/src/form.ts: the doc comments on FormulaFieldMetadata.returnType and on the form field's returnType member said "a number to two decimals, ... anything else as text (the default when it is absent)". They now state the rule above for both faces. Both ship in the @object-ui/types declarations, so the changeset adds '@object-ui/types': patch.
    • content/docs/fields/formula.mdx: the Return Types list said two decimal places, and text as the default with no returnType. The Cell Renderer section said the cell is monospace. Both now describe this rule.
    • content/docs/fields/summary.mdx: the Cell Renderer comment said the summary cell reads 15750.5 in monospace, which has been false since objectui#11683. It now says 15,750.5 (en-US) through the number cell, not monospace. Measured in en-US and zh-CN on this branch.
    • .changeset/11748-formula-faces.md: adds '@object-ui/types': patch and one sentence on the doc comments. In the number line, "grouped" becomes "formatted", because a formula declaring returnType: 'number' and scale: 0 reads 2026, not grouped, in both faces.
    • The nearby summaryOperations comment in form.ts ("count as it arrives, the other four to two decimals") is unchanged. It describes the SummaryField widget, which neither this PR nor objectui#11683 touched, and it is still true there.

The rule is written out in both modules. The barrel and the lazily loaded widget may not import each other (the reason number-format.ts gives). A shared helper module would be a new file outside the claim, so the equality leg of the new pin file keeps the two copies in step.

No export, prop or language-pack key is added. The diff adds or removes no export line, and both component signatures are unchanged. summary is still registered to FormulaCellRenderer. It declares no returnType, so it stays on the no-returnType rule.

The date face: the choice the card left to this PR

Both faces use formatDate's default face. It reads Jul 4 in the current year and Jul 4, 2020 otherwise, or 7月4日 / 2020年7月4日 in zh-CN. Neither face uses the date cell's relative default (Today, 2 days ago).

Why: the date field itself has two faces. Its cell defaults to the relative style, and its read-only form face is formatDate's default. Only the default face exists on both surfaces, so it is the only choice where one stored value reads the same in the form and in the cell. It is also the face FormulaField already drew (objectui#8194), and the date cell's own fallback outside the plus-or-minus seven day window.

Cost: within seven days of today, a formula date column reads Jul 4 where a date column beside it reads 2 days ago. A pin covers this case ("inside the relative window, the cell keeps the default face").

The boolean face

The cell draws the word, not BooleanCellRenderer's checkbox. The card's Done-when names "the translated Yes / No" for both faces. A checkbox has no text that could match the form's word.

Bounded fix inside the claim: the text arm and the empty floor

A component probe on dd82d4a measured three more divergences, all on a formula with no returnType (form face, then cell):

  • the empty string: a blank span with no accessible name, then the — affordance;
  • the empty list: the same split;
  • an expanded record holding a name of Ada: [object Object], then Ada.

In commit da0652c the form face takes the cell's floor (isEmptyValue on the coerced value) and prints the coerced text. All four conditions for a bounded fix hold:

  • it is the same defect class (one value, two formula faces);
  • it is mechanical (the cell's two lines);
  • it is in the same file under the same claim;
  • it falls under the same gates.

Pins (en-US and zh-CN, measured on textContent)

New: packages/fields/src/__tests__/formulaFaces.returnType-11748.test.tsx, 96 tests. Each session sets both the UI language and the display locale, through I18nProvider and LocalizationProvider.

  • number, both faces:
    • returnType: 'number' reads 200,000, not 200000.00;
    • with no returnType, a JS number reads 200,000;
    • a declared scale: 2 reads 200,000.00, and a fraction reads 1,234.5;
    • the text equals the number field's own form and cell faces;
    • no monospace; de-DE reads 200.000;
    • a declared-number numeric string reads 200,000, and whitespace draws the affordance, not 0;
    • control: a string of digits with no returnType stays monospace text.
  • boolean, both faces:
    • Yes / No and 是 / 否, equal to BooleanField's read-only word, with no monospace;
    • 'false', 'true', 0 and 1 draw the affordance;
    • control: returnType: 'text' over true reads true.
  • date, both faces:
    • a past-year date reads Jul 4, 2020 / 2020年7月4日, equal to formatDate's default and to DateField's read-only face, with no monospace;
    • an unparsable value draws the affordance;
    • with the clock pinned two days after the value, the formula cell reads Jul 4 / 7月4日 while the date cell reads its relative phrase.
  • text, both faces: the empty string and the empty list draw the affordance; a record reads its name; a declared text over a number stays monospace 200000.
  • The equality leg: 13 (returnType, value) rows in each of the two sessions. The form's text must equal the cell's text, not a literal, so a change that moves only one face goes red.

Updated: packages/fields/src/widgets/__tests__/formula-summary-spec-reads-11070.test.tsx.

  • The '3.00' pin asserted the retired toFixed(2) face. It now asserts a numeric string: 1,234.5 under a declared number, 1234.5 with none.
  • The return_type-retirement control now uses a numeric string. A JS number no longer separates "read" from "ignored", because both read 3.

Premise check, on db4cb6b before any edit

The new pin file ran against unchanged code and failed 51 of 86 tests (35 passed). In the form it read 200000.00, 200000 and 1234.50. In the cell it read true (en-US and zh-CN) and 2020-07-04, all in monospace. In the form, the string 'false' under returnType: 'boolean' drew a word, not the affordance.

Measured, on head da0652c

command (from the worktree root) exit verdict
pnpm exec vitest run --maxWorkers=2 packages/fields/src/widgets/ 0 Test Files 112 passed (112), Tests 1051 passed (1051)
pnpm exec vitest run --maxWorkers=2 packages/fields/src/__tests__/ plus the 9 test files directly under packages/fields/src/ 0 Test Files 127 passed, 1 skipped (128), Tests 2768 passed, 7 skipped (2775)
pnpm --filter @object-ui/fields type-check 0 echoed tsc --noEmit && tsc -p tsconfig.test.json; --listFilesOnly on the test program lists both changed test files
pnpm exec vitest run --maxWorkers=2 over 49 consumer files (below) 0 Test Files 49 passed (49), Tests 1030 passed (1030)
pnpm exec eslint on the 4 changed source files 0 0 errors; no warning falls inside a changed hunk
pnpm check:control-bytes / check:test-path-roots / check:changeset-claims / check:pending-changeset-literals / check:new-line-citations / check:vi-mock-specifiers / check:comment-mask-corpus / check:esm-specifiers / check:self-import / check:phantom-deps / check:unreferenced-sources 0 each check:changeset-claims: "No pending changeset names a file this change touches." check:new-line-citations: 0 new citations
node scripts/check-changeset-presence.mjs / -no-major / -fixed / -overwrite 0 each presence: "4 source file(s) of 1 released package(s) changed, and this change declares 1 changeset(s)"
pnpm --workspace-concurrency=2 --filter '@object-ui/fields^...' build 0 9 packages, on dd82d4a; no dependency changed after it

The two package-suite halves together cover all 240 test files under packages/fields (119 + 112 + 9). The suite was split because a single run held the lock for 9 minutes 5 seconds on dd82d4a (exit 0, 239 passed and 1 skipped), too close to the foreground cap.

Consumer selection: every test file under apps/console, packages/app-shell, packages/components, packages/react and packages/plugin-* that contains the word formula (a git grep -l -i), less metadata-admin and plugin-designer. That is a declared narrowing: the public surface is byte-unchanged, so the rest of the farm is left to CI. Heavy runs went through os-verify-lock.sh, and the times above are shared-box times.

NOT MEASURED:

  • check:eager-closure: PREREQUISITE NOT MET, because it needs a built apps/console bundle. The barrel's imports are unchanged. FormulaField now also imports number-format.js, coerceToSafeValue.js and core's isEmptyValue, and all three are already in the barrel's eager closure.
  • check:readme-exports: exit 1 with "404 self-import(s) could not be judged", because no dist type entries are built. This gate is only owed when exports change, and none did.

Ablation (one-time proof; no permanent test added)

Each mutation was made from a committed head through ablation-replace.mjs, which ran the new pin file and then restored the file. Every restore was proven: blob equal to HEAD, and an empty git diff HEAD. The pins import the units by relative path (../index, ../widgets/FormulaField), so the ablations read src, and dist is not involved.

mutation head result
cell date arm drawn by DateCellRenderer (the relative face) dd82d4a 2 failed, 84 passed: exactly the two relative-window pins
form number arm formatNumberFieldValue(num, field, locale) becomes num.toFixed(2) dd82d4a 18 failed, 68 passed, including the number rows of the equality leg
cell boolean word becomes String(value) dd82d4a 8 failed, 78 passed, including the boolean rows of the equality leg
form floor isEmptyValue(safe) becomes value == null da0652c 5 failed, 91 passed: the empty-string and empty-list equality rows and the form affordance pin

Each direction was predicted before its run. Past-year dates stay green under the first mutation because the relative face falls back to the default face outside its window.

Acceptance notes

  • content/docs/fields/summary.mdx, in its "Cell Renderer" section, said the summary cell renders "monospace text: 15750.5", which has been false since objectui#11683. It was corrected in commit 6865bcd (see What changed). The summary field's own two faces still disagree (the form widget prints toFixed(2)). That is filed as objectui#11752. (Edited by domain:ui seat 3, session_01CGZy1BGCjdN5cXqL9cnvB8, after the patch round.)
  • The pending changeset .changeset/11683-formula-datetime-cell-text.md says any other declared returnType "is drawn as before". This PR makes that untrue for boolean and date. Rather than edit another card's entry, this PR's changeset says so in its last paragraph.
  • The barrel's emptiness-floor table (the objectui#8496 block) lists FormulaCellRenderer under "the floor exactly", with a note about its number arm. Past the floor, the new boolean and date arms also draw the affordance for a non-boolean or unparsable value. The table is now incomplete but not false. It sits outside FormulaCellRenderer, so it was left alone.
  • The number field's own two faces disagree on a numeric string. NumberField's read-only branch prints it as it arrives, and NumberCellRenderer formats it. A formula declared number follows the cell's reading in both faces, so the formula's two faces agree. The number field's own split belongs to that field, not to this card.
  • Not in this card: a currency display for formulas. The spec's returnType has no currency member.

Generated by Claude Code

claude added 2 commits October 6, 2026 23:19
…d in the cell (objectui#11748)

FormulaField (the read-only form face) and FormulaCellRenderer (the
table cell) each formatted the value themselves. Both now read one rule
-- the declared returnType, or with none a JS number as a number and
anything else as text -- and draw each type through the calls the
matching field type's faces make: formatNumberFieldValue for numbers,
the locale's Yes / No word for booleans (only a JS boolean), and
formatDate's default face for dates, in both faces.

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CGZy1BGCjdN5cXqL9cnvB8
…and text (objectui#11748)

FormulaField read `value == null` and printed `String(value)`, so an
empty string or empty list drew a blank span with no accessible name,
and an expanded record printed `[object Object]`, where the formula
cell draws the shared empty affordance and the record's name. The form
face now takes the same floor (`isEmptyValue` on the coerced value) and
prints the coerced text, as the cell does.

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

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 331 chunks) 3328.3 KB 3330.4 KB
Main entry chunk (gzip) 154.9 KB 350 KB
Entry file index-Rxc2qcGM.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) 17.82KB 6.58KB
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) 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.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) 579.15KB 139.25KB
core (index.js) 10.00KB 3.96KB
create-plugin (index.js) 27.94KB 9.51KB
data-objectstack (index.js) 235.41KB 65.46KB
fields (index.js) 266.88KB 67.47KB
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.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) 37.51KB 10.04KB
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.39KB 15.52KB
plugin-charts (index.js) 84.26KB 23.05KB
plugin-chatbot (index.js) 199.63KB 47.46KB
plugin-dashboard (index.js) 144.26KB 38.97KB
plugin-designer (index.js) 231.46KB 48.87KB
plugin-detail (index.js) 247.73KB 65.20KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 177.09KB 45.89KB
plugin-gantt (index.js) 179.16KB 45.06KB
plugin-grid (index.js) 238.51KB 65.53KB
plugin-kanban (index.js) 52.17KB 16.37KB
plugin-list (index.js) 116.85KB 29.12KB
plugin-map (index.js) 25.60KB 8.62KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 44.12KB 12.29KB
plugin-timeline (index.js) 38.90KB 11.74KB
plugin-tree (index.js) 15.07KB 5.33KB
plugin-view (index.js) 90.64KB 22.85KB
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.08KB 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

… (objectui#11748)

The patch round the claim amendment added. Prose only; no source or
test file changes.

- `@object-ui/types`: the doc comments on `FormulaFieldMetadata.returnType`
  and on the form field's `returnType` member no longer describe the retired
  two-decimal face. They state the one rule both formula faces read: a
  number formatted as a `number` field formats it, the UI language's
  Yes / No word, `formatDate`'s default face, text in monospace, and with
  no `returnType` a JS number as a number and anything else as text.
- `content/docs/fields/formula.mdx`: the Return Types list and the Cell
  Renderer section, which said two decimal places and monospace.
- `content/docs/fields/summary.mdx`: the Cell Renderer comment, false
  since objectui#11683 (the summary cell reads `15,750.5`, not monospace).
- `.changeset/11748-formula-faces.md`: adds `'@object-ui/types': patch`
  and one sentence on the doc comments; "grouped" becomes "formatted",
  because a declared `scale: 0` reads ungrouped (`2026`) in both faces.

Claude-Session: https://claude.ai/code/session_01CGZy1BGCjdN5cXqL9cnvB8
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added documentation Improvements or additions to documentation package: types labels Oct 7, 2026
@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 331 chunks) 3328.3 KB 3330.4 KB
Main entry chunk (gzip) 154.9 KB 350 KB
Entry file index-Rxc2qcGM.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) 17.82KB 6.58KB
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) 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.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) 579.15KB 139.25KB
core (index.js) 10.00KB 3.96KB
create-plugin (index.js) 27.94KB 9.51KB
data-objectstack (index.js) 235.41KB 65.46KB
fields (index.js) 266.88KB 67.47KB
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.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) 37.51KB 10.04KB
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.39KB 15.52KB
plugin-charts (index.js) 84.26KB 23.05KB
plugin-chatbot (index.js) 199.63KB 47.46KB
plugin-dashboard (index.js) 144.26KB 38.97KB
plugin-designer (index.js) 231.46KB 48.87KB
plugin-detail (index.js) 247.73KB 65.20KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 177.09KB 45.89KB
plugin-gantt (index.js) 179.16KB 45.06KB
plugin-grid (index.js) 238.51KB 65.53KB
plugin-kanban (index.js) 52.17KB 16.37KB
plugin-list (index.js) 116.85KB 29.12KB
plugin-map (index.js) 25.60KB 8.62KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 44.12KB 12.29KB
plugin-timeline (index.js) 38.90KB 11.74KB
plugin-tree (index.js) 15.07KB 5.33KB
plugin-view (index.js) 90.64KB 22.85KB
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.08KB 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

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review October 7, 2026 00:41
@objectstack-fleet
objectstack-fleet Bot enabled auto-merge October 7, 2026 00:41
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Oct 7, 2026
Merged via the queue into main with commit 4c0de52 Oct 7, 2026
45 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-11748-formula-faces branch October 7, 2026 00:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation package: fields package: types tests

Projects

None yet

2 participants