Skip to content
This repository was archived by the owner on Nov 4, 2026. It is now read-only.

feat(form): the record form names a visibleWhen clear-on-hide (objectui#8070) - #10598

Merged
objectstack-fleet[bot] merged 8 commits into
mainfrom
claude/issue-8070-name-visiblewhen-clear
Sep 25, 2026
Merged

objectstack-fleet[bot] merged 8 commits into
mainfrom
claude/issue-8070-name-visiblewhen-clear

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #8070
Clause-②: no

What this does

The record form now names the objectui#6958 clear-on-hide. This applies ruling 5749200153 (letter A, ratified by the maintainer at 5809913547) at its default placement: one form-level notice under the form's existing outcome-toast id. The clear itself is unchanged. It is the same loop, skipping the same values and writing the same values.

  • packages/components/src/renderers/form/form.tsx, in the clear-on-hide effect (the one that keeps previouslyHiddenFieldNames): the loop that clears now also collects what it cleared and raises one toast.warning with t('form.clearedOnHide', …) under outcomeToastId. It names fields by fieldLabelByName, the same label source validation.formInvalid uses, joined by t('validation.formInvalidJoiner'). The useSafeFormTranslation fallback table carries the en row, wired like form.submitFailed.
  • packages/i18n/src/locales/*.ts: one key, form.clearedOnHide, in all ten packs, placed after uploadInFlight in each form block.
  • One pin, packages/components/src/renderers/form/__tests__/visiblewhen-clear-notice-8070.test.tsx, beside the objectui#6958 pin. That pin is byte-unchanged (git diff --quiet against BASE 8740e86 exits 0) and green.
  • One changeset, .changeset/8070-name-visiblewhen-clear.md, a patch for @object-ui/components and @object-ui/i18n.

Register: warning. Nothing failed, so it is not error. It is not info either, because the value leaves the record when the form is saved.

Two rules sit on top of "name what the pass clears". Each has its own pin leg and its own ablation below.

  1. A field is named only if it held something. An empty list is rewritten as itself, so it is not named. false on a two-state control is not named either: BOOLEAN_WIDGET_TYPES in the same file defines false as that control's EMPTY state, and a create form seeds it. Without this rule, hiding an untouched checkbox on a create form raised a notice about a box that reads unchecked before and after (measured with a probe: notices= ["Cleared — no longer applicable given the current values: Priority Support"]). A checked box is still named. The clear still writes null over false exactly as before.
  2. A chained clear is named together with the clear that caused it. One clear can hide a second field whose visibleWhen reads the field just cleared, and that second clear runs on the next pass. Suppose a pass starts from exactly the values the previous clearing pass left behind, compared with the file's own computeDirty. Then nothing was edited in between: the second pass is part of the same cascade. It names its fields together with the first pass's. Any edit in between starts a fresh list, and that case is pinned too.

PM mechanism hypotheses: readings

  • H1: holds for one pass, falsified for a chained clear. With the first one-pass implementation (commit 4c23e90), the chained leg failed with Tests 1 failed | 9 passed (10) and received Cleared — no longer applicable given the current values: Role. Contact had been cleared and was not named. That result is the reason for rule 2. Names are still collected only in the clear's own loop, and no visibility is recomputed anywhere else.
  • H2: holds. I measured this once with a real sonner Toaster in a throwaway probe, not committed. After the transition there was 1 toast, carrying the notice text. After a client refusal there was still 1 toast, and the notice text was gone: sonner updated the toast in place. After an accepted attempt there were 0 toasts. The pin checks the same contract at the id level: the notice's id is the id of the refusal's toast.error, and the id that toast.dismiss receives at the next accepted attempt. The other direction: a transition while a refusal toast is showing replaces that toast with the notice. The refusal is still visible, as the client field highlights or, for a server refusal, the in-form submitError banner. A refusal can also replace a notice the user has not read yet. That refusal comes from the user's own next Save, which is how the ruling's "retires like its siblings" reads, so no second id was introduced.
  • H3: holds. The joiner is validation.formInvalidJoiner, and the labels come from fieldLabelByName (label, then name, as validation.formInvalid does). Pinned: Contact, Role under en, and Contact、Role under zh (read from the zh pack, with no , present).
  • H4: holds. form.submitFailed lives in both the useSafeFormTranslation defaults table and each pack's form block, and the new key follows the same pattern. check:i18n-keys confirms every readable createSafeTranslation defaults row repeats the pack value.
  • H5: holds. The key is in all ten packs, and all-locales-key-parity is green. No count is interpolated: each value ends in a colon and the list. ar and ru say "what no longer applies" (ما / то, что), so no word has to agree with the number of fields.

In the table the i18next placeholder is spelled FIELDS. The tree uses the double-brace form.

pack value
ar تم مسح ما لم يعد ينطبق على القيم الحالية: FIELDS
de Geleert, was für die aktuellen Werte nicht mehr gilt: FIELDS
en Cleared — no longer applicable given the current values: FIELDS
es Se borró lo que ya no corresponde a los valores actuales: FIELDS
fr Ce qui ne s'applique plus aux valeurs actuelles a été effacé : FIELDS
ja 現在の値に該当しなくなった項目をクリアしました: FIELDS
ko 현재 값에 더 이상 해당하지 않는 항목을 비웠습니다: FIELDS
pt O que não se aplica mais aos valores atuais foi limpo: FIELDS
ru Очищено то, что больше не применимо к текущим значениям: FIELDS
zh 已清空不再适用于当前取值的字段:FIELDS

Pin and reverse verification

The pin has 13 legs.

  • Named:
    • A populated field that goes hidden produces one notice with its label, not its API name, under an id matching form-outcome:.
    • A checked two-state control is named.
    • Two fields cleared by one transition produce one notice, joined by the en joiner.
    • The same pair under zh is joined by U+3001.
    • A chained clear names both fields.
    • A separate later transition names only its own field.
    • Refusal supersedes the notice and the next accepted attempt dismisses it, under one id.
  • Not named:
    • A field hidden while already empty.
    • A field holding an empty list.
    • An unchecked, seeded two-state control.
    • The first render of a record with a hidden populated field: no notice, and the payload keeps the value.
    • A transition that hides nothing.
    • A field that was already hidden and stays hidden.

All runs used the repo root, pnpm exec vitest run on the pin file, through the shared verify lock. The mutations went through ablation-replace.mjs, which confirmed each one landed on disk and restored the file to its HEAD blob with git diff HEAD empty.

leg tree exit result
base form.tsx at BASE 8740e86 (0 on-disk hits for the key) 1 Tests 7 failed | 6 passed (13). The six that pass are the absence legs.
after HEAD 8a69de7 0 Tests 13 passed
ablation: drop the chained carry HEAD with that one line replaced 1 1 failed | 12 passed: only the chained leg
ablation: drop the two-state rule HEAD with that one condition replaced 1 1 failed | 12 passed: only the unchecked leg

Gates at 8a69de7

Each gate was run separately. Exit codes were written to a file before any pipe.

  • pnpm exec vitest run --maxWorkers=2 packages/components/src/renderers/form/ packages/i18n/ → exit 0, Test Files 137 passed (137), Tests 1634 passed | 10 skipped (1644).
  • pnpm turbo run type-check --filter @object-ui/components --filter @object-ui/i18n --concurrency=2 → exit 0, Tasks: 10 successful, 10 total. The components tsconfig.test.json compiles this pin: an earlier implicit-any in it failed this gate and was fixed in 22b1755.
  • pnpm exec eslint on the 12 changed .ts/.tsx files → exit 0, 0 errors. No warning falls on a changed line, and the pin has none.
  • pnpm check:i18n-keys, check:i18n-drift (0 en values changed, 1 key added), check:i18n-dead-keys, check:control-bytes, check:test-path-roots, check:vi-mock-specifiers, check:vi-mock-inherit, check:vi-mock-override-shape, check:new-line-citations (0 new citations), check:changeset-claims, check:pending-changeset-literals, and node scripts/check-changeset-presence.mjs → each exit 0.
  • node scripts/check-governed-queue-guard.mjs --test over the 13 changed paths → NOT GOVERNED.
  • check-changeset-claims listed four pending changesets that name en.ts or form.tsx (6661, 5594, 5131, 5735). I read each paragraph. None of them says anything this diff moves.
  • NOT MEASURED: the console eager-closure and bundle budget (check:eager-closure, check:eager-locale-catalogues). They need a full console build, which CI's Bundle Analysis runs. The addition is one short value per pack, so the eager en catalogue grows by one string.

origin/main was merged at 57a26d0 (merge base a50600166). origin/main has moved since, to 1daf477, without touching any file in this change.

Acceptance notes

  • Docs sentence: written in the docs round (1c62b68). content/docs/plugins/plugin-form.mdx now says that when the clear empties a field that held a value, the form raises one notice naming the cleared fields by their labels; that an already-empty field (an unchecked two-state control counts as empty) and the first render are not named; and that a later submit refusal replaces the notice. The seat widened this claim's surface by that one passage, as AGENTS.md Add automated testing infrastructure and CI/CD workflows #2 requires.
  • A record swap into a still-mounted form clears the incoming record's hidden, populated column. This is a pre-existing behaviour of the objectui#6958 clear, and this PR does not revisit it, as the ruling requires. The baseline pass is recorded once per mount, not once per defaultValues reset. When a form shows record A with a field visible and then receives record B, where that field is hidden and populated, the swap reads as a VISIBLE to HIDDEN transition. Probe on BASE form.tsx: payload crm_contact was null and no notice was raised. Since this PR, that path raises the notice naming the column, so it is no longer silent, but the value is still cleared. The effect's own comment says "opening a record never nulls a column the user has not seen". This is reported for the seat to decide whether to file it. The probe was renderer-level, a rerender with new defaultValues and previousValues; I did not drive it in the console.
  • objectui#6958 answers 404 on both the REST issue read and the web page, so its body could not be read (NOT MEASURED). I cited it through the objectui#6958 pin file and the clear effect's own comment.

Generated by Claude Code

The objectui#6958 clear now raises one notice under the form's
outcome-toast id naming the cleared fields' labels, joined by the
locale's validation.formInvalidJoiner. New key form.clearedOnHide in
the form.tsx fallback table and in every pack.

Claude-Session: https://claude.ai/code/session_01KUxVUa7e39aNjhkKi1gsoy
Co-authored-by: Claude <noreply@anthropic.com>
…d it

A clear can hide a second field whose visibleWhen reads the field just
cleared; that clear runs on the next pass and used to replace the
notice with the second field alone. A pass that starts from exactly the
values the previous clearing pass left behind now names its fields with
that pass's; any edit in between starts a fresh list.

Claude-Session: https://claude.ai/code/session_01KUxVUa7e39aNjhkKi1gsoy
Co-authored-by: Claude <noreply@anthropic.com>
`false` is a two-state control's empty state (BOOLEAN_WIDGET_TYPES; a
create form seeds it), so hiding an untouched checkbox raised a notice
about a box that reads unchecked before and after. Only a field that
held something is named now; a checked one still is.

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

github-actions Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

changeset-claim-re-read

⚠️ 5 pending changeset(s) describe a file this change touches

Their bodies publish verbatim into the CHANGELOG at the next release, so this is a request to re-read them against your diff — addressed here because you are the one seat that can answer it without re-deriving anything.

⛔ Nothing here blocks, and nothing here is a verdict on your change. This gate exits 0, is not a required context, and judges name resolution, never meaning: it asked whether a pending body names a file you touched. "Is this sentence still true?" is the one question it will not answer, and the one you are being asked to answer.

.changeset/6237-wizard-step-config-split.md

  • names content/docs/plugins/plugin-form.mdx → content/docs/plugins/plugin-form.mdx — edited by this change

    Documentation repair in the same stroke: the support table in the README and in content/docs/plugins/plugin-form.mdx still said formType: 'tabbed' sections drop the predicate. That stopped being true when the tabbed arm landed — the row now reads Yes, the surrounding prose no longer claims two inert arms or a diagnostic that fires for tabbed, and the wizard row stays No, which is still exactly true.

.changeset/6661-app-launcher-nav-menu-renderers.md

  • names en.ts → packages/i18n/src/locales/en.ts — edited by this change

    Three new strings — the launcher's and the menu's accessible names, and the menu's empty state — are declared under console.nav in en.ts and its nine sibling packs. An inline defaultValue alone is not a fix: it renders English at one call site and leaves the string untranslatable everywhere (objectui#3517).

.changeset/console-formpage-visible-predicates-5594.md

.changeset/plugin-form-readme-classname-quantifier-5131.md

  • names packages/components/src/renderers/form/form.tsx → packages/components/src/renderers/form/form.tsx — edited by this change

    README.md's "Not a FormField key" table said a field-level className is "read on exactly one pseudo-field, type: 'section-divider'". That quantifier holds only for the renderer's explicit read — className={fp.className} on the section-divider branch of packages/components/src/renderers/form/form.tsx. The same renderer forwards every key it did not destructure, and className is not among the names taken off the field config, not among the ones stripRendererOnlyProps removes, and so rides {...fieldProps} into renderFieldComponent, whose built-in input branch spreads it onto ANGLE-BRACKETS(Input). A field-level className therefore lands visibly on ordinary built-in controls, and a reader taking "exactly one" literally concludes the opposite of what the code does (objectui#5131).

.changeset/text-input-description-aria-describedby-5735.md

  • names renderers/form/form.tsx → packages/components/src/renderers/form/form.tsx — edited by this change

    Before this the paragraph and the input were siblings with no programmatic relationship: a screen reader moving to the field announced the label and the value and never the helper text. The label half of the same block was already wired (htmlFor against the input's id), which is what made the gap specific to description rather than a general absence of a11y wiring — and the identical key authored on a field INSIDE renderers/form/form.tsx has been announced all along, so one authoring key behaved two ways depending on which container the author reached for. It no longer does.

Read the paragraph, not the line: both false halves of the objectui#8617 claim sat in one paragraph, and correcting either alone would have left it asserting the same wrong thing.

If a claim did go false, correct the body. That is precedented and prose-only, frontmatter untouched; check-changeset-overwrite.mjs will report the correction as its own case 2 ("correcting a declaration on purpose … legitimate"), which is the intended shape — one gate asks for the read, the other records the write.

Not covered, stated so nobody reads this as more: a born-false claim that spells no line address at all (objectui#9495 coordinated one by ORDINAL — "a grep finds that member first" — and deciding that means reading what the sentence means), a claim spelled as a symbol or a package rather than a backticked file name, and a file named ambiguously.

Angle-bracketed names in the quoted prose above are rewritten as ANGLE-BRACKETS(name): GitHub deletes tag-shaped fragments from a stored body, and a quote that silently loses the identifier it is about is worse than a visible repair.

Compared the checked-out tree with 8cd8eb562 (merge-base with origin/main): 13 file(s) changed outside .changeset/, read against 1473 pending declaration(s) that publish a body (2056 pending in total). · run

@github-actions

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 329 chunks) 3047.6 KB 3104.5 KB
Main entry chunk (gzip) 147.9 KB 350 KB
Entry file index-Cdg3SH5r.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.68KB 6.20KB
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) 27.95KB 10.04KB
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.52KB 3.45KB
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) 546.99KB 130.83KB
core (index.js) 9.22KB 3.71KB
create-plugin (index.js) 27.94KB 9.51KB
data-objectstack (index.js) 223.91KB 62.28KB
fields (index.js) 258.79KB 65.62KB
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.40KB 12.91KB
i18n (useDisplayLocale.js) 3.52KB 1.76KB
i18n (useObjectLabel.js) 34.34KB 9.17KB
i18n (useSafeTranslation.js) 5.60KB 2.33KB
layout (index.js) 39.28KB 11.09KB
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.52KB 4.88KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.24KB 2.16KB
permissions (discardProofCache.js) 1.04KB 0.55KB
permissions (evaluator.js) 8.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) 51.40KB 14.61KB
plugin-charts (index.js) 74.94KB 20.89KB
plugin-chatbot (index.js) 198.36KB 47.20KB
plugin-dashboard (index.js) 133.50KB 35.37KB
plugin-designer (index.js) 216.25KB 44.39KB
plugin-detail (index.js) 232.59KB 61.50KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 147.92KB 37.83KB
plugin-gantt (index.js) 169.62KB 41.91KB
plugin-grid (index.js) 215.37KB 58.92KB
plugin-kanban (index.js) 48.26KB 15.04KB
plugin-list (index.js) 114.43KB 28.26KB
plugin-map (index.js) 22.42KB 7.38KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 43.55KB 11.99KB
plugin-timeline (index.js) 30.64KB 8.94KB
plugin-tree (index.js) 10.52KB 3.69KB
plugin-view (index.js) 87.31KB 21.78KB
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) 114.58KB 37.60KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.03KB 1.86KB
react (schema-input.js) 4.25KB 2.04KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (body-dialect.js) 4.78KB 2.09KB
sdui-parser (codegen.js) 6.58KB 2.74KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 5.78KB 2.56KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (kanban-quick-add.js) 3.89KB 1.87KB
sdui-parser (parse.js) 25.28KB 7.80KB
sdui-parser (provenance.js) 3.66KB 1.82KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 18.27KB 6.20KB
types (ai.js) 4.11KB 2.06KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 2.87KB 1.00KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (complex.js) 2.93KB 1.49KB
types (crud.js) 0.20KB 0.18KB
types (dashboard-filter-alias.js) 6.23KB 2.74KB
types (data-display.js) 3.75KB 1.85KB
types (data-protocol.js) 0.20KB 0.19KB
types (data.js) 0.20KB 0.18KB
types (designer.js) 1.85KB 0.85KB
types (disclosure.js) 0.20KB 0.18KB
types (error-code.js) 1.54KB 0.88KB
types (expression.js) 0.20KB 0.18KB
types (feedback.js) 0.20KB 0.18KB
types (field-types.js) 0.20KB 0.18KB
types (form.js) 0.20KB 0.18KB
types (http-inflight.js) 8.87KB 3.73KB
types (http-retry.js) 4.32KB 2.02KB
types (icon-key-migration.js) 4.26KB 1.63KB
types (index.js) 4.74KB 2.25KB
types (layout.js) 0.20KB 0.18KB
types (managed-by.js) 0.19KB 0.18KB
types (mobile.js) 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) 0.20KB 0.18KB
types (plugin-scope.js) 0.20KB 0.18KB
types (record-components.js) 0.20KB 0.19KB
types (record-semantics.js) 1.28KB 0.67KB
types (registry.js) 0.20KB 0.18KB
types (reports.js) 0.20KB 0.18KB
types (select-option.js) 0.20KB 0.19KB
types (spec-report.js) 5.05KB 1.93KB
types (spec-ui-namespace.js) 0.20KB 0.19KB
types (strict-authoring-face.js) 17.15KB 6.32KB
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

@github-actions

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 329 chunks) 3047.9 KB 3104.5 KB
Main entry chunk (gzip) 147.9 KB 350 KB
Entry file index-BS0VTgvW.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.68KB 6.20KB
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) 27.95KB 10.04KB
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.52KB 3.45KB
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) 546.99KB 130.83KB
core (index.js) 9.22KB 3.71KB
create-plugin (index.js) 27.94KB 9.51KB
data-objectstack (index.js) 223.91KB 62.28KB
fields (index.js) 259.41KB 65.82KB
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.40KB 12.91KB
i18n (useDisplayLocale.js) 3.52KB 1.76KB
i18n (useObjectLabel.js) 34.34KB 9.17KB
i18n (useSafeTranslation.js) 5.60KB 2.33KB
layout (index.js) 39.28KB 11.09KB
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.52KB 4.88KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.24KB 2.16KB
permissions (discardProofCache.js) 1.04KB 0.55KB
permissions (evaluator.js) 8.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) 51.40KB 14.61KB
plugin-charts (index.js) 74.94KB 20.89KB
plugin-chatbot (index.js) 198.36KB 47.20KB
plugin-dashboard (index.js) 133.50KB 35.37KB
plugin-designer (index.js) 216.25KB 44.39KB
plugin-detail (index.js) 232.96KB 61.65KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 147.92KB 37.83KB
plugin-gantt (index.js) 169.62KB 41.91KB
plugin-grid (index.js) 215.37KB 58.92KB
plugin-kanban (index.js) 48.26KB 15.04KB
plugin-list (index.js) 114.43KB 28.26KB
plugin-map (index.js) 22.42KB 7.38KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 43.55KB 11.99KB
plugin-timeline (index.js) 30.67KB 8.95KB
plugin-tree (index.js) 10.52KB 3.69KB
plugin-view (index.js) 87.31KB 21.78KB
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) 116.21KB 38.14KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.03KB 1.86KB
react (schema-input.js) 4.25KB 2.04KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (body-dialect.js) 4.78KB 2.09KB
sdui-parser (codegen.js) 6.58KB 2.74KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 5.78KB 2.56KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (kanban-quick-add.js) 3.89KB 1.87KB
sdui-parser (parse.js) 25.28KB 7.80KB
sdui-parser (provenance.js) 3.66KB 1.82KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 18.27KB 6.20KB
types (ai.js) 4.11KB 2.06KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 2.87KB 1.00KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (complex.js) 2.93KB 1.49KB
types (crud.js) 0.20KB 0.18KB
types (dashboard-filter-alias.js) 6.23KB 2.74KB
types (data-display.js) 3.75KB 1.85KB
types (data-protocol.js) 0.20KB 0.19KB
types (data.js) 0.20KB 0.18KB
types (designer.js) 1.85KB 0.85KB
types (disclosure.js) 0.20KB 0.18KB
types (error-code.js) 1.54KB 0.88KB
types (expression.js) 0.20KB 0.18KB
types (feedback.js) 0.20KB 0.18KB
types (field-types.js) 0.20KB 0.18KB
types (form.js) 0.20KB 0.18KB
types (http-inflight.js) 8.87KB 3.73KB
types (http-retry.js) 4.32KB 2.02KB
types (icon-key-migration.js) 4.26KB 1.63KB
types (index.js) 4.74KB 2.25KB
types (layout.js) 0.20KB 0.18KB
types (managed-by.js) 0.19KB 0.18KB
types (mobile.js) 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) 5.05KB 1.93KB
types (spec-ui-namespace.js) 0.20KB 0.19KB
types (strict-authoring-face.js) 17.15KB 6.32KB
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

Copy link
Copy Markdown
Contributor Author

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 1c62b6829cd6eb769721be1724cab2d62d2f0f80

Reviewed against merge-base a50600166466958f066ff123d7c2ceefbdf22455 (main at 8cd8eb56229a97b2e32a6fa4899ac51b86d805d0 at review time). 14 files, +403/-1; the one deletion is the docs line the passage extends. Eight commits, the newest 1c62b68 docs-only.

① Derived judgments

Binding text. Ruling 5749200153 (letter A, ratified 5809913547): "The record form names the clear: after a visibleWhen transition empties a populated field, the user sees which columns were cleared and why (the field does not apply under the current values). Register and placement are the claimant's call within the ruling: the form-level notice under the form's existing outcome-toast id is the default … ⛔ The clear itself (objectui#6958) is not revisited." Pin asked: "a transition that clears a populated field renders the notice naming the column; one that clears nothing renders none." Triage 5583317996: the #6499 precedent analysis "must not be re-litigated". Claim 5830201971 file surface: form.tsx (clear-on-hide effect and outcome-toast id), one key in every pack, pins beside the clear-on-hide tests, one changeset.

Behaviour changes, each judged.

  1. packages/components/src/renderers/form/form.tsx:2068-2079 — after the clear loop, one toast.warning(t('form.clearedOnHide', {fields}), { id: outcomeToastId }), fields = cleared names mapped through fieldLabelByName (:1783-1787, label then name, the same map validation.formInvalid uses at :2307) joined by t('validation.formInvalidJoiner'). RIGHT: names which columns and why (the copy reads "no longer applicable given the current values"), at the ruling's default placement. outcomeToastId (:1345) is the id the client refusal (:2312, reached from the onInvalid callback at :2489), both server refusals (:2403, :2473) and the accepted-attempt dismiss (:2351, inside the handleSubmit success callback, so only after client validation passes) already use, so the notice retires like its siblings. Register warning is the claimant's call and is stated in the body.
  2. form.tsx:2054-2059 (the skip at :2055 and the write at :2056-2059) are diff CONTEXT, 0 deletions in the file. The additions read current after the write and never alter it. RIGHT: "the clear itself is not revisited" holds.
  3. form.tsx:2060-2066 — a cleared field is named only if it held something: an empty list, or false on a widget in BOOLEAN_WIDGET_TYPES (:345-348, the set the create-form seeding at :1293-1304 writes false from), is written as before but not named. RIGHT: the ruling names a POPULATED field; a seeded unchecked box is not one. The .find at :2064 searches fields (:1231), the same array conditionallyHiddenFieldNames (:1498-1536) draws its names from, so the lookup cannot miss a name that set produced.
  4. form.tsx:2039-2041, 2046-2050, 2069-2073 — a pass whose values equal (by computeDirty, :325-337, empty-ish tolerant plus JSON compare) the snapshot the previous clearing pass left behind is a cascade and appends to that pass's names; otherwise the list restarts. RIGHT: without it the second pass of a chained clear would overwrite the notice under the same id and the first column would go unnamed, which is the silence the ruling forbids. No visibility is recomputed anywhere else.
  5. form.tsx:291 — useSafeFormTranslation defaults row, byte-equal to the en pack value. RIGHT: the wiring every form-read key follows (form.submitFailed at :290); createSafeTranslation (packages/i18n/src/useSafeTranslation.ts:19-57) serves defaults[key] and interpolates {{fields}} when no I18nProvider is mounted.
  6. packages/i18n/src/locales/ — one key form.clearedOnHide in each of the ten packs: ar.ts:181, de.ts:170, en.ts:207 (comment :202-206), es.ts:174, fr.ts:170, ja.ts:170, ko.ts:170, pt.ts:169, ru.ts:180, zh.ts:177; every value ends in a colon and the placeholder, so no word agrees with a count. Ten packs is the whole roster (locales/ holds those ten plus index/registry/rtl). RIGHT: "one i18n key with its locale rows".
  7. content/docs/plugins/plugin-form.mdx:228-233 — the passage judged in ② (all true).
  8. .changeset/8070-name-visiblewhen-clear.md — judged in ②.

Not asked / beyond the claim's surface. (a) The docs edit is outside the claim's declared file surface, but AGENTS.md #2 ("Not done until docs reflect the code") makes it owed, and plugin-form.mdx:227 was the only prose site that stated the 6958 clear (grep for 6958 / clear-on-hide across content/docs/** and package READMEs: only that line and packages/plugin-form/README.md:899, which describes the diff-save payload and stays true). (b) The :291 defaults row is strictly outside "the effect and the outcome-toast id only" but is the pattern's required adjunct and is disclosed in the body. Neither widens the ruling. No re-litigation of #6499 anywhere in the diff; the comment block at :2014-2037 cites the ruling and does not re-argue it.

Missing. Nothing. Notice, why-clause, id sharing, all ten packs, reader, pin (both halves), changeset, docs: all present.

Existing pins edited or deleted. None. visiblewhen-clear-on-hide-6958.test.tsx is byte-unchanged against the merge-base (empty diffstat); form-cascade-clear-prefixed-type.test.tsx untouched. No guard weakened.

Can the new pin fail? packages/components/src/renderers/form/__tests__/visiblewhen-clear-notice-8070.test.tsx, 13 legs.

  • Lit control: at the merge-base form.tsx has 0 toast.warning calls and the key form.clearedOnHide exists nowhere in the tree (one comment in the 6958 pin names the effect, not the key). The seven "named" legs (:108-225) each assert warningSpy was called, so none can pass at base.
  • Negative legs (:229-298): already-empty, empty list, unchecked seeded false, first render (also asserts the payload keeps the value at :272), hides-nothing, stays-hidden, each asserting warningSpy not called. Static ablation reading confirms they discriminate: replacing current === false && with false && lets the seeded false (form.tsx:1300) pass the :2055 skip and be pushed, failing only the unchecked leg (:247); replacing the chained carry with names = cleared leaves at(-1) reading "Role" alone, failing only the chained leg (:164).
  • The spy targets toast from src/ui/sonner, the module object form.tsx:31 imports, so the real call is intercepted. Assertions are load-bearing: label not API name (:115-116), id shape /^form-outcome:/ (:118) and id identity across warning, error and dismiss (:212-224), joiner from the en and zh packs (:146, :160-161), key resolution (:148).
  • Corner, not a defect: the cascade test is value equality, so a hidden-set change with no value change that is not a cascade (a predicate reading a non-record scope variable) would carry the previous list into the next notice. That is an over-report, never a silent clear, and outside the ruling's pin.

② Semver level

.changeset/8070-name-visiblewhen-clear.md: @object-ui/components: patch, @object-ui/i18n: patch. Both packages are in the fixed group (.changeset/config.json) and both had src/ changed, so a changeset is owed (AGENTS.md line 168) and present; no major (AGENTS.md line 271, check-changeset-no-major.mjs). AGENTS.md binds no patch-versus-minor level for an additive change and no script enforces one. Observation only: the sibling key form.uploadInFlight shipped under minor (.changeset/10166-record-form-save-during-upload.md), and a feat( adding a user-visible notice would conventionally be minor; with the fixed group taking the highest pending bump and several pending changesets already at minor for i18n, the released version is unaffected. Not a semver error. content/docs/** belongs to the private, ignored @object-ui/site, publishes nothing, and the PR is not docs-only, so no empty-frontmatter changeset is owed on top. CI Changeset Declaration, Bump Policy and Fixed Group Check: success.

Changeset prose, sentence by sentence.

  • "The record form now tells the user when a visibleWhen transition clears a field" — TRUE (form.tsx:2074-2079).
  • "Since objectui#6958 a field whose own visibleWhen / visibleOn turns it invisible while it holds a value has that value cleared, so the server does not refuse the row…" — TRUE (:1498-1536 folds both spellings; :2052-2059 clears; the server rationale is the effect's own comment at :1985-1996).
  • "That clear was silent: the field disappeared and nothing said a stored value went with it." — TRUE at the merge-base (0 toast.warning, 0 key hits).
  • "…ports the naming half of the objectui#6499 ruling to this surface, and the clear itself is unchanged." — TRUE (0 deletions; write path is context).
  • "…raises one notice that names them by the labels the form draws, joined by the locale's validation.formInvalidJoiner, and says they no longer apply given the current values." — TRUE (:2074-2079, :1785; every pack value carries that sense).
  • "A field that was already empty is not named (an unchecked two-state control counts as empty), and neither is the first render of a record, which only records the baseline." — TRUE (:2055, :2060-2066; :2045 returns before any clear on the first pass).
  • "The notice is published under the form's outcome-toast id. A later submit refusal replaces it, and the next attempt that passes client validation dismisses it, like the form's other outcome messages." — TRUE (:2078; :2312, :2403, :2473 share the id, and :1335-1337 documents that reusing an id updates in place; :2351 sits in the success callback).
  • "When a clear hides a second field whose visibleWhen reads the field just cleared, the notice names both. Any edit in between starts a new list." — TRUE (:2046-2050, :2069; any value change makes computeDirty true, which resets the list at the next run).
  • "@object-ui/i18n adds one key, form.clearedOnHide, to all ten packs. The form's built-in fallback table carries its en text for a form rendered without an I18nProvider." — TRUE (ten pack lines above; :291; useSafeTranslation.ts:19-57).

Docs prose added, content/docs/plugins/plugin-form.mdx:228-233, sentence by sentence.

  • "When that clear empties a field that held a value, the form raises one notice naming the cleared fields by their labels and saying they no longer apply given the current values (objectui#8070)." — TRUE (form.tsx:2068-2079, :1785).
  • "A field that was already empty (an unchecked two-state control counts as empty) is not named" — TRUE (:2055, :2060-2066).
  • "the first render clears and names nothing" — TRUE (:2045).
  • "a later submit refusal replaces the notice." — TRUE (:2312, :2403, :2473 under the same id as :2078).

The added en.ts:202-206 comment and the form.tsx:2014-2037 comment block state the same facts and are likewise true against the code above.

③ Boundary flags

  • PR body's own flags. (1) "Docs sentence, not written … left for the seat": superseded at the head, 1c62b68 wrote it (plugin-form.mdx:228-233, true); the body is stale on this point only. (2) Record swap into a mounted form clears the incoming hidden populated column: pre-existing 6958 behaviour (baseline recorded once per mount, :2043-2045), placed outside this card by the ruling's ⛔; this diff only makes that path non-silent. Correctly not fixed here; whether to file is the seat's call. (3) objectui#6958 unreadable: reproduced, REST GET returns 404 for this reviewer too; NOT MEASURED stands and the clear's contract was read from form.tsx:1998-2012 and the 6958 pin. (4) "NOT MEASURED: eager-closure / eager-locale-catalogues": at the head, Bundle Analysis and Docs Route Eager Closure Check both success. (5) "origin/main has moved … without touching any file in this change": still true at 8cd8eb5. No open questions in the body beyond these.
  • CI at the head. Poll 1: 42 runs, 30 success, 3 skipped, 9 in_progress. Poll 2 (2026-09-25T12:04Z): 43 runs, 40 success, 3 skipped, 0 failure, 0 in progress. The three skips are the coverage matrix placeholders and dependabot. Test shards 1-8, Test (dist pins), Type Check, Lint, Build and E2E, Spec Main Shape Gate, Line Citation Gate, Changeset gates: success.
  • Draft. Yes, the PR is a draft.
  • Clause-②: no. Holds. No zod schema or accept set moves; no published export identifier is added or removed; the only surface addition is one string key in each locale dictionary, which the ruling priced in as "UI copy only". No new @objectstack/spec symbol is consumed and no import is added; the predicate wire shape is consumed as at base.
  • Main under the PR's files. No. main is 14 commits past the merge-base; the diffstat of those commits over the PR's 14 paths is empty. The PR is behind main (mergeable, state behind), so the merge queue will rebase but nothing it touches has changed.

Implemented-by: claude/issue-8070-name-visiblewhen-clear
Reviewed-by: session_01KUxVUa7e39aNjhkKi1gsoy

VERDICT: PASS

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review September 25, 2026 12:11
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Sep 25, 2026
Merged via the queue into main with commit b1030c7 Sep 25, 2026
45 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-8070-name-visiblewhen-clear branch September 25, 2026 12:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A visibleWhen clear-on-hide is silent — the sibling surface names the same state (#6499 Option C) and the form renderer does not

2 participants