Skip to content

fix(plugin-list): the hide-fields, Group and Row color lists and the user-filter chips ask the field read (objectui#11984) - #11999

Merged
objectstack-fleet[bot] merged 7 commits into
mainfrom
claude/issue-11984-toolbar-field-lists
Oct 8, 2026
Merged

objectstack-fleet[bot] merged 7 commits into
mainfrom
claude/issue-11984-toolbar-field-lists

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Fixes #11984
Clause-②: no

The list toolbar's hide-fields popover, Group editor and Row color select no longer offer a field the caller may not read, and neither do its user-filter chips. Each now asks canReadField, the predicate objectui#11962 gave the Filter panel and the Sort picker, behind the same isLoaded gate. This is the family's third card, after objectui#11925 (filter) and objectui#11943 (sort), and it carries the enumeration pin triage asked for (6063905126).

What changes

All in packages/plugin-list/src/ListView.tsx:

  • allFields asks the read. It is the one list the hide-fields popover, the Group editor and the Row color select offer, and the compact toolbar's View settings popover hands it to the same three sections. A column the caller may not read is offered by none of them. Before the permission answer loads, nothing is withheld, as the column gate defers.
  • The user-filter chips ask it too (filterElements, now a memo declared below perms). A dropdown or toggle chip on an unreadable field is dropped, whether the author named the field or resolvedUserFilters derived it from the definition: a value chosen on it is a filter the server refuses, and the list blanks. One exception, shaped like the Sort picker's: a chip whose field a held selection names (the applied user filter, or a host-restored userFilterSelections) stays, so that filter can be cleared. Preset tabs pass through.
  • Stored configuration on an unreadable field is kept as stored:
    • a grouping level stays visible and removable. GroupingEditor already mounts a value its options lack as its own entry, labelled with the field name, so the level reads secret_note (the raw name), its remove button works, and no other level and no "Add group field" offers it. Nothing fires onGroupingChange until the user edits.
    • a hidden-field entry is withheld from both hide-fields lists: not listed, not counted in the badge, not cleared by "Show all", and every write puts it back. Without this, "Show all" would rewrite the view for its other viewers through an entry this caller was never shown.
    • a row-color rule is withheld from both Row color selects: they show None with no Clear, and the trigger is not marked. The rule stays in rowColorConfig; ListView has no row-color callback, so nothing writes it back to a host. It colors nothing for this caller anyway: the server masks the field out of their rows.
  • Comments. The canReadField docblock and the effectiveFields comment now name every list that asks the read, and point at the enumeration pin for which lists exist instead of asserting a list.

Named in-place fix: the user-filter chips. The card names three lists; the chips are a fourth. Triage's ruling asks every field list ListView and its toolbar offer to pass the predicate, the probe found the derived chips offering an unreadable select field (below), and the change is the same defect class, the same predicate, in the file this claim holds, under the same gates. The seat may want to add the resolvedUserFilters / filterElements region to the claim's file surface.

The dispatch's hypotheses

  • H0, read first (objectstack 51290bca, read only): the server refuses a grouping on an unreadable field; it does not reveal it. The grid's header query rides POST /data/:object/query, and findData routes a body carrying groupBy to engine.aggregate. plugin-security refuses it twice over: step 2.9's assertReadableQueryFields walks groupBy (with where, orderBy, having and aggregations) and throws PermissionDeniedError (code PERMISSION_DENIED, status 403, reason field_predicate_denied); step 2.5b refuses any groupBy or aggregation field the query-guard map marks unreadable on an aggregate. The same step-2.9 guard answers a user-filter where on such a field with 403. Read from source; not measured against a running server.
  • H1 holds. Measured first on main through the real ListView with a probe (deleted, never committed): with a /me/permissions answer marking two fields unreadable, the Sort picker withheld them, so the answer was loaded and denying, while the hide-fields popover, the Group editor, the Row color select, all three View settings sections and the derived user-filter chips offered them. Now each omits them, behind isLoaded, with a readable control in each.
  • H2 holds: the enumeration pin below, with two scratch ablations that add an unfiltered list.
  • H3: as described above, and pinned.
  • H4: the budget bot's reading comes after CI. Local estimate only: the minified ListView module grows by 628 B, 214 B gzipped on its own (esbuild, gzip -9, b13ea3c67 against d9a6f718b); the latest PR readings were 3311.2 KB against the 3312.0 KB ceiling.

Pins

packages/plugin-list/src/__tests__/ListView.fieldListRead-11984.test.tsx, 20 tests:

  1. The enumeration pin, per toolbar layout (wide and compact). A sweep opens every popover the toolbar renders (anything carrying aria-haspopup), opens every combobox inside it, and reads every option and checkbox. The popovers that offer a field of the view must equal FIELD_LIST_TRIGGERS (wide: Color, Filter, Group, Hide fields, Sort; compact: Filter, Sort, View settings), so a new field list fails until it is listed. For a restricted caller nothing it reads, nor the toolbar's own text (the chips), may name an unreadable field. Control: with full read every enumerated list offers it. Its bound is written in the file: a list behind a further click, such as a collapsed section, needs a row in POSITIONS.
  2. One pin per position (POSITIONS, 10 rows: the Filter panel, the Sort picker, the hide-fields popover, the Group editor, the Row color select, the user-filter chips derived and authored, and the three View settings sections). With no permission answer and with full read the list is identical and includes the unreadable fields; restricted, it is that list minus them. Plus before isLoaded: a provider refetching with the restricted answer still held offers every field in the hide-fields list, the chips and the Group editor.
  3. Stored configuration: the grouping level, the hidden-field entry (with a full-read control), the row-color rule (with a full-read control), and a chip kept by a restored selection that leaves once the selection is cleared.

Reverse check

On the committed tree d9a6f718b, each mutation landed and was restored through objectstack's scripts/ablation-replace.mjs (anchor 1 to 0, blob changed; restore blob equal to HEAD, git diff HEAD empty), running the new file plus the three family files (ListView.filterFieldRead-11925, ListView.sortFieldRead-11943, ListView.sortRemovableOnly-11943), 37 tests. Every observation matched its prediction:

Mutation Observed
M1: allFields drops the read 11 failed / 26 passed: both restricted sweeps, the six allFields positions, before-isLoaded, the stored grouping and hidden-field cases
M2: the chips drop the read 6 / 31: both restricted sweeps, both chip positions, before-isLoaded, the restored-selection chip
M3: the chips drop the in-use exception 1 / 36: the restored-selection chip
M4: nothing is withheld from hiddenFields 1 / 36: the stored hidden-field case
M5: the row-color rule is not withheld 1 / 36: the stored row-color case
M6, scratch: an unfiltered native select added inside the Group popover 1 / 36: the wide restricted sweep; the Group editor's own pin stays green
M7, scratch: a new toolbar popover listing every column 4 / 33: all four sweeps (an unlisted field list; restricted, also an unreadable field)
M8: the Filter panel drops the read 8 / 29: both restricted sweeps, the Filter position, five objectui#11925 pins
M9: the Sort picker drops the read 10 / 27: both restricted sweeps, the Sort position, three objectui#11943 read pins, four removable-only pins

M3, M5 and M6 were first sent with a replacement that contained its own anchor. ablation-replace refused each before any test ran, with the restore proven, so those first attempts measured nothing; they were re-anchored and re-run, and the rows above are the re-runs.

Gates

On HEAD d9a6f718b, heavy runs through the container's verify lock:

  • pnpm --workspace-concurrency=2 --filter '@object-ui/plugin-list^...' build: VERDICT command-exit 0, scope 13 of 47 workspace projects.
  • pnpm --filter @object-ui/plugin-list type-check (tsc --noEmit && tsc -p tsconfig.test.json): VERDICT command-exit 0; --listFilesOnly lists the new test file.
  • pnpm exec vitest run --maxWorkers=2 over every plugin-list test file naming ListView, canReadField, hiddenFields, rowColor or GroupingEditor (101 files by git grep -l, the new one included), plus packages/core/src/utils/__tests__/column-identity.ratchet.test.ts and scripts/__tests__/one-authority-per-exported-name-6273.test.ts: Test Files 103 passed (103), Tests 1137 passed (1137), VERDICT command-exit 0.
  • node scripts/check-changeset-presence.mjs exit 0 ("2 source file(s) of 1 released package(s) changed, and this change declares 1 changeset(s)"); node scripts/check-changeset-no-major.mjs exit 0.
  • pnpm check:new-line-citations exit 0, VERDICT new-cross-file-line-citations: 0 new citation(s); pnpm check:control-bytes exit 0.
  • Also exit 0: check:changeset-claims, check:pending-changeset-literals, check:test-path-roots, check:vi-mock-specifiers, check:vi-mock-inherit, check:vi-mock-override-shape, check:i18n-keys, check:shell-escape-residue, check:unreferenced-sources, check:phantom-deps.
  • Lint, narrowed and measured. pnpm exec eslint --format json over the two touched TS files (the config's **/*.{ts,tsx} population): 2 files, 0 errors. ListView.tsx carries 187 warnings, equal to its base blob linted over stdin; the new test carries 0. eslint.config.js enables no type-aware linting, so the diff cannot move an untouched file's verdict. Repo-wide lint is CI's.

Acceptance notes

  • Docs. The package README and content/docs say nothing about which toolbar lists ask the field read, so nothing there became false. They are outside the claim's file surface and are not edited.
  • Out of scope, measured, reported for the seat, not fixed here: a host-restored user-filter selection (userFilterSelections) on a chip derived from the definition (userFilters with element: 'dropdown' and no fields) is dropped when the definition loads after mount. With full read and no permission provider, the chip showed no selection and the fetch carried no $filter; with the same field named by the author, the fetch carried ["status","=","open"]. The chip state is initialised once, from the fields present at mount, and a derived list has none until the definition loads. Producers: app-shell's ObjectView, ObjectDataPage and InterfaceListPage pass URL-restored userFilterSelections.
  • Observation, not filed: the allFields lists label a column by its declared label or the i18n resolver, falling back to the raw name, so with unlabelled columns they read title where the Sort picker reads Title. Unchanged here.
  • Changeset: .changeset/11984-toolbar-field-lists-read.md, a patch for @object-ui/plugin-list.

Session: https://claude.ai/code/session_01MgfduSkFrfM3eorB3UGfAU


Generated by Claude Code

claude added 3 commits October 8, 2026 18:24
…user-filter chips ask the field read (objectui#11984)

The list the hide-fields popover, the Group editor and the Row color select
share (`allFields`, which the compact toolbar's View settings popover reads
too) now passes through `canReadField`, the predicate the Filter panel's and
the Sort picker's lists use, behind the same `isLoaded` gate. So do the
user-filter chips, with the in-use exception the Sort picker makes: a chip
whose field a held selection names stays, so that filter can be cleared.

A stored hidden-field entry or row-color rule on a field the caller may not
read is withheld from the editors (not listed, counted or cleared) and kept
as stored.

Claude-Session: https://claude.ai/code/session_01MgfduSkFrfM3eorB3UGfAU
Co-authored-by: Claude <noreply@anthropic.com>
…list (objectui#11984)

A sweep opens every toolbar popover and combobox and reads what each offers:
the popovers that offer a field must be the enumerated ones, and for a
restricted caller none may offer a field they cannot read (control: with full
read every enumerated list offers it). One pin per position, before-isLoaded,
and the stored-configuration cases.

Claude-Session: https://claude.ai/code/session_01MgfduSkFrfM3eorB3UGfAU
Co-authored-by: Claude <noreply@anthropic.com>
… check (objectui#11984)

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

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 337 chunks) 3311.9 KB 3312.0 KB
Main entry chunk (gzip) 71.4 KB 350 KB
Entry file index-C23yEMnr.js —
Status PASS —

The eager closure is every chunk the entry reaches through static imports — what the browser fetches and parses before the app renders. The entry chunk on its own is a small fraction of it.


📦 Bundle Size Report

Package Size Gzipped
app-shell (consoleActionDispatch.js) 0.20KB 0.19KB
app-shell (index.js) 18.33KB 6.73KB
app-shell (runtime-config.js) 22.59KB 7.89KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 10.11KB 3.87KB
auth (ActiveOrganizationStorage.js) 27.95KB 10.04KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 2.07KB 1.00KB
auth (AuthProvider.js) 40.22KB 10.61KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 18.15KB 5.40KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.72KB 2.24KB
auth (SocialSignInButtons.js) 9.70KB 3.93KB
auth (UserMenu.js) 3.39KB 1.21KB
auth (auth-gate-events.js) 1.29KB 0.66KB
auth (authStyles.js) 5.04KB 1.72KB
auth (createAuthClient.js) 41.19KB 11.12KB
auth (createAuthenticatedFetch.js) 8.54KB 3.46KB
auth (index.js) 3.63KB 1.64KB
auth (invitation-status.js) 1.22KB 0.70KB
auth (org-roles.js) 6.66KB 2.78KB
auth (phone-identifier.js) 1.11KB 0.66KB
auth (types.js) 0.59KB 0.35KB
auth (useAuth.js) 5.30KB 1.02KB
auth (useWorkspaceAdminStatus.js) 11.08KB 4.58KB
collaboration (CommentThread.js) 27.11KB 7.97KB
collaboration (LiveCursors.js) 3.17KB 1.27KB
collaboration (PresenceAvatars.js) 6.28KB 2.60KB
collaboration (PresenceProvider.js) 2.79KB 1.13KB
collaboration (index.js) 1.68KB 0.73KB
collaboration (useCollaborationTranslation.js) 6.50KB 2.52KB
collaboration (useCommentSearch.js) 1.98KB 0.88KB
collaboration (useConflictResolution.js) 7.75KB 1.86KB
collaboration (useMentionNotifications.js) 1.81KB 0.68KB
collaboration (usePresence.js) 6.33KB 1.84KB
collaboration (useRealtimeSubscription.js) 7.91KB 2.01KB
components (index.js) 587.07KB 141.28KB
core (index.js) 10.00KB 3.96KB
create-plugin (index.js) 27.94KB 9.51KB
data-objectstack (index.js) 240.39KB 67.09KB
fields (index.js) 268.74KB 68.04KB
i18n (LocalizationContext.js) 2.92KB 1.42KB
i18n (builtinAggregateLabels.js) 0.86KB 0.49KB
i18n (currency.js) 2.59KB 1.22KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 8.87KB 3.64KB
i18n (index.js) 5.52KB 2.39KB
i18n (pickLocalized.js) 9.86KB 3.95KB
i18n (provider.js) 39.35KB 12.88KB
i18n (translateFn.js) 0.20KB 0.18KB
i18n (useDisplayLocale.js) 3.52KB 1.76KB
i18n (useObjectLabel.js) 36.87KB 9.88KB
i18n (useSafeTranslation.js) 7.14KB 2.92KB
layout (index.js) 41.50KB 11.82KB
mobile (MobileProvider.js) 0.92KB 0.49KB
mobile (ResponsiveContainer.js) 0.94KB 0.38KB
mobile (breakpoints.js) 1.51KB 0.70KB
mobile (createOfflineDataSource.js) 5.61KB 1.75KB
mobile (index.js) 1.99KB 0.87KB
mobile (offlineQueue.js) 3.91KB 1.35KB
mobile (pwa.js) 0.97KB 0.49KB
mobile (serviceWorker.js) 1.48KB 0.62KB
mobile (serviceWorkerSource.js) 3.41KB 1.48KB
mobile (useBreakpoint.js) 1.54KB 0.65KB
mobile (useGesture.js) 6.96KB 1.98KB
mobile (useOfflineSync.js) 1.99KB 0.72KB
mobile (usePullToRefresh.js) 6.62KB 2.45KB
mobile (useResponsive.js) 0.72KB 0.42KB
mobile (useSpecGesture.js) 5.52KB 2.10KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 13.86KB 5.00KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.52KB 2.26KB
permissions (discardProofCache.js) 1.04KB 0.55KB
permissions (evaluator.js) 8.33KB 3.07KB
permissions (index.js) 0.93KB 0.41KB
permissions (store.js) 0.91KB 0.42KB
permissions (useFieldPermissions.js) 1.28KB 0.53KB
permissions (usePermissions.js) 4.83KB 2.27KB
plugin-ai (index.js) 16.04KB 3.92KB
plugin-calendar (index.js) 53.43KB 15.54KB
plugin-charts (index.js) 84.71KB 23.25KB
plugin-chatbot (index.js) 199.63KB 47.46KB
plugin-dashboard (index.js) 144.20KB 38.95KB
plugin-designer (index.js) 231.46KB 48.87KB
plugin-detail (index.js) 248.57KB 65.47KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 177.11KB 45.88KB
plugin-gantt (index.js) 179.17KB 45.07KB
plugin-grid (index.js) 249.56KB 69.16KB
plugin-kanban (index.js) 52.22KB 16.38KB
plugin-list (index.js) 118.61KB 29.62KB
plugin-map (index.js) 27.24KB 9.03KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 44.12KB 12.29KB
plugin-timeline (index.js) 39.10KB 11.81KB
plugin-tree (index.js) 15.07KB 5.33KB
plugin-view (index.js) 91.09KB 22.94KB
providers (DataSourceProvider.js) 0.75KB 0.39KB
providers (MetadataProvider.js) 1.37KB 0.59KB
providers (ThemeProvider.js) 1.90KB 0.85KB
providers (UploadProvider.js) 11.81KB 3.58KB
providers (index.js) 0.45KB 0.23KB
providers (types.js) 0.01KB 0.04KB
react-runtime (index.js) 5.62KB 2.34KB
react (LazyPluginLoader.js) 4.47KB 1.63KB
react (SchemaRenderer.js) 120.63KB 39.56KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.50KB 2.06KB
react (schema-input.js) 4.31KB 2.07KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (body-dialect.js) 4.50KB 1.99KB
sdui-parser (codegen.js) 9.45KB 3.76KB
sdui-parser (dashboard-widget-options.js) 3.07KB 1.30KB
sdui-parser (index.js) 7.30KB 3.12KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (parse.js) 25.28KB 7.80KB
sdui-parser (provenance.js) 3.84KB 1.90KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 23.87KB 7.83KB
types (ai.js) 4.39KB 2.17KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 4.12KB 1.61KB
types (authoring-nodes.js) 0.20KB 0.19KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (cloud.js) 0.20KB 0.18KB
types (complex.js) 4.44KB 2.07KB
types (crud.js) 0.20KB 0.18KB
types (dashboard-filter-alias.js) 6.23KB 2.74KB
types (dashboard-widget-layout.js) 2.06KB 0.96KB
types (data-display.js) 3.75KB 1.85KB
types (data-protocol.js) 0.20KB 0.19KB
types (data.js) 0.20KB 0.18KB
types (designer.js) 1.85KB 0.85KB
types (disclosure.js) 0.20KB 0.18KB
types (error-code.js) 1.54KB 0.88KB
types (expression.js) 0.20KB 0.18KB
types (feedback.js) 0.20KB 0.18KB
types (field-types.js) 1.13KB 0.65KB
types (form.js) 0.20KB 0.18KB
types (http-inflight.js) 8.87KB 3.73KB
types (http-retry.js) 4.32KB 2.02KB
types (icon-key-migration.js) 4.26KB 1.63KB
types (index.js) 5.78KB 2.70KB
types (layout.js) 0.20KB 0.18KB
types (managed-by.js) 0.19KB 0.18KB
types (mobile.js) 5.00KB 2.39KB
types (navigation.js) 0.20KB 0.18KB
types (node-slots.js) 7.18KB 2.34KB
types (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (permissions.js) 2.52KB 1.31KB
types (plugin-scope.js) 0.20KB 0.18KB
types (record-components.js) 0.20KB 0.19KB
types (record-semantics.js) 1.28KB 0.67KB
types (registry.js) 0.20KB 0.18KB
types (reports.js) 0.20KB 0.18KB
types (select-option.js) 0.20KB 0.19KB
types (spec-report.js) 4.99KB 1.96KB
types (spec-ui-namespace.js) 0.20KB 0.19KB
types (strict-authoring-face.js) 19.93KB 7.25KB
types (system-fields.js) 3.33KB 1.54KB
types (theme.js) 6.28KB 2.87KB
types (ui-action.js) 8.11KB 3.32KB
types (views.js) 0.20KB 0.18KB
types (widget.js) 0.20KB 0.18KB

Size Limits

  • ✅ Core packages should be < 50KB gzipped
  • ✅ Component packages should be < 100KB gzipped
  • ⚠️ Plugin packages should be < 150KB gzipped

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review October 8, 2026 19:18
@objectstack-fleet
objectstack-fleet Bot enabled auto-merge October 8, 2026 19:18
@objectstack-fleet
objectstack-fleet Bot marked this pull request as draft October 8, 2026 19:30
auto-merge was automatically disabled October 8, 2026 19:30

Pull request was converted to draft

Sync with main 054fd84 for the eager-closure re-measure (objectui#11984).

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

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

❌ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 336 chunks) 3312.0 KB 3312.0 KB
Main entry chunk (gzip) 71.5 KB 350 KB
Entry file index-DEvRZnBi.js —
Status FAIL —

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.

Which half objected:

Eager-closure half Verdict
Aggregate closure ceiling ❌ over its ceiling
Per-chunk ceilings ✅ pass
Per-chunk membership (declared packages) ✅ pass
Ceiling sensitivity (headroom) ✅ pass
Ceiling freshness (checkout vs. base branch) ✅ pass

📦 Bundle Size Report

Package Size Gzipped
app-shell (consoleActionDispatch.js) 0.20KB 0.19KB
app-shell (index.js) 18.33KB 6.73KB
app-shell (runtime-config.js) 22.59KB 7.89KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 10.11KB 3.87KB
auth (ActiveOrganizationStorage.js) 27.95KB 10.04KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 2.07KB 1.00KB
auth (AuthProvider.js) 40.22KB 10.61KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 18.15KB 5.40KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.72KB 2.24KB
auth (SocialSignInButtons.js) 9.70KB 3.93KB
auth (UserMenu.js) 3.39KB 1.21KB
auth (auth-gate-events.js) 1.29KB 0.66KB
auth (authStyles.js) 5.04KB 1.72KB
auth (createAuthClient.js) 41.19KB 11.12KB
auth (createAuthenticatedFetch.js) 8.54KB 3.46KB
auth (index.js) 3.63KB 1.64KB
auth (invitation-status.js) 1.22KB 0.70KB
auth (org-roles.js) 6.66KB 2.78KB
auth (phone-identifier.js) 1.11KB 0.66KB
auth (types.js) 0.59KB 0.35KB
auth (useAuth.js) 5.30KB 1.02KB
auth (useWorkspaceAdminStatus.js) 11.08KB 4.58KB
collaboration (CommentThread.js) 27.11KB 7.97KB
collaboration (LiveCursors.js) 3.17KB 1.27KB
collaboration (PresenceAvatars.js) 6.28KB 2.60KB
collaboration (PresenceProvider.js) 2.79KB 1.13KB
collaboration (index.js) 1.68KB 0.73KB
collaboration (useCollaborationTranslation.js) 6.50KB 2.52KB
collaboration (useCommentSearch.js) 1.98KB 0.88KB
collaboration (useConflictResolution.js) 7.75KB 1.86KB
collaboration (useMentionNotifications.js) 1.81KB 0.68KB
collaboration (usePresence.js) 6.33KB 1.84KB
collaboration (useRealtimeSubscription.js) 7.91KB 2.01KB
components (index.js) 587.07KB 141.28KB
core (index.js) 10.00KB 3.96KB
create-plugin (index.js) 27.94KB 9.51KB
data-objectstack (index.js) 240.39KB 67.09KB
fields (index.js) 268.74KB 68.04KB
i18n (LocalizationContext.js) 2.92KB 1.42KB
i18n (builtinAggregateLabels.js) 0.86KB 0.49KB
i18n (currency.js) 2.59KB 1.22KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 8.87KB 3.64KB
i18n (index.js) 5.52KB 2.39KB
i18n (pickLocalized.js) 9.86KB 3.95KB
i18n (provider.js) 39.35KB 12.88KB
i18n (translateFn.js) 0.20KB 0.18KB
i18n (useDisplayLocale.js) 3.52KB 1.76KB
i18n (useObjectLabel.js) 36.87KB 9.88KB
i18n (useSafeTranslation.js) 7.14KB 2.92KB
layout (index.js) 41.50KB 11.82KB
mobile (MobileProvider.js) 0.92KB 0.49KB
mobile (ResponsiveContainer.js) 0.94KB 0.38KB
mobile (breakpoints.js) 1.51KB 0.70KB
mobile (createOfflineDataSource.js) 5.61KB 1.75KB
mobile (index.js) 1.99KB 0.87KB
mobile (offlineQueue.js) 3.91KB 1.35KB
mobile (pwa.js) 0.97KB 0.49KB
mobile (serviceWorker.js) 1.48KB 0.62KB
mobile (serviceWorkerSource.js) 3.41KB 1.48KB
mobile (useBreakpoint.js) 1.54KB 0.65KB
mobile (useGesture.js) 6.96KB 1.98KB
mobile (useOfflineSync.js) 1.99KB 0.72KB
mobile (usePullToRefresh.js) 6.62KB 2.45KB
mobile (useResponsive.js) 0.72KB 0.42KB
mobile (useSpecGesture.js) 5.52KB 2.10KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 13.86KB 5.00KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.52KB 2.26KB
permissions (discardProofCache.js) 1.04KB 0.55KB
permissions (evaluator.js) 8.33KB 3.07KB
permissions (index.js) 0.93KB 0.41KB
permissions (store.js) 0.91KB 0.42KB
permissions (useFieldPermissions.js) 1.28KB 0.53KB
permissions (usePermissions.js) 4.83KB 2.27KB
plugin-ai (index.js) 16.04KB 3.92KB
plugin-calendar (index.js) 53.43KB 15.54KB
plugin-charts (index.js) 84.71KB 23.25KB
plugin-chatbot (index.js) 199.63KB 47.46KB
plugin-dashboard (index.js) 144.20KB 38.95KB
plugin-designer (index.js) 231.46KB 48.87KB
plugin-detail (index.js) 248.57KB 65.47KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 177.11KB 45.88KB
plugin-gantt (index.js) 179.17KB 45.07KB
plugin-grid (index.js) 249.56KB 69.16KB
plugin-kanban (index.js) 52.22KB 16.38KB
plugin-list (index.js) 118.61KB 29.62KB
plugin-map (index.js) 27.24KB 9.03KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 44.12KB 12.29KB
plugin-timeline (index.js) 39.10KB 11.81KB
plugin-tree (index.js) 15.07KB 5.33KB
plugin-view (index.js) 91.09KB 22.94KB
providers (DataSourceProvider.js) 0.75KB 0.39KB
providers (MetadataProvider.js) 1.37KB 0.59KB
providers (ThemeProvider.js) 1.90KB 0.85KB
providers (UploadProvider.js) 11.81KB 3.58KB
providers (index.js) 0.45KB 0.23KB
providers (types.js) 0.01KB 0.04KB
react-runtime (index.js) 5.62KB 2.34KB
react (LazyPluginLoader.js) 4.47KB 1.63KB
react (SchemaRenderer.js) 120.63KB 39.56KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.50KB 2.06KB
react (schema-input.js) 4.31KB 2.07KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (body-dialect.js) 4.50KB 1.99KB
sdui-parser (codegen.js) 9.45KB 3.76KB
sdui-parser (dashboard-widget-options.js) 3.07KB 1.30KB
sdui-parser (index.js) 7.30KB 3.12KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (parse.js) 25.28KB 7.80KB
sdui-parser (provenance.js) 3.84KB 1.90KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 23.87KB 7.83KB
types (ai.js) 4.39KB 2.17KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 4.12KB 1.61KB
types (authoring-nodes.js) 0.20KB 0.19KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (cloud.js) 0.20KB 0.18KB
types (complex.js) 4.44KB 2.07KB
types (crud.js) 0.20KB 0.18KB
types (dashboard-filter-alias.js) 6.23KB 2.74KB
types (dashboard-widget-layout.js) 2.06KB 0.96KB
types (data-display.js) 3.75KB 1.85KB
types (data-protocol.js) 0.20KB 0.19KB
types (data.js) 0.20KB 0.18KB
types (designer.js) 1.85KB 0.85KB
types (disclosure.js) 0.20KB 0.18KB
types (error-code.js) 1.54KB 0.88KB
types (expression.js) 0.20KB 0.18KB
types (feedback.js) 0.20KB 0.18KB
types (field-types.js) 1.13KB 0.65KB
types (form.js) 0.20KB 0.18KB
types (http-inflight.js) 8.87KB 3.73KB
types (http-retry.js) 4.32KB 2.02KB
types (icon-key-migration.js) 4.26KB 1.63KB
types (index.js) 5.78KB 2.70KB
types (layout.js) 0.20KB 0.18KB
types (managed-by.js) 0.19KB 0.18KB
types (mobile.js) 5.00KB 2.39KB
types (navigation.js) 0.20KB 0.18KB
types (node-slots.js) 7.18KB 2.34KB
types (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (permissions.js) 2.52KB 1.31KB
types (plugin-scope.js) 0.20KB 0.18KB
types (record-components.js) 0.20KB 0.19KB
types (record-semantics.js) 1.28KB 0.67KB
types (registry.js) 0.20KB 0.18KB
types (reports.js) 0.20KB 0.18KB
types (select-option.js) 0.20KB 0.19KB
types (spec-report.js) 4.99KB 1.96KB
types (spec-ui-namespace.js) 0.20KB 0.19KB
types (strict-authoring-face.js) 19.93KB 7.25KB
types (system-fields.js) 3.33KB 1.54KB
types (theme.js) 6.28KB 2.87KB
types (ui-action.js) 8.11KB 3.32KB
types (views.js) 0.20KB 0.18KB
types (widget.js) 0.20KB 0.18KB

Size Limits

  • ✅ Core packages should be < 50KB gzipped
  • ✅ Component packages should be < 100KB gzipped
  • ⚠️ Plugin packages should be < 150KB gzipped

claude added 3 commits October 8, 2026 19:45
… drops its identity-preserving return (objectui#11984)

The seat's ruling A on the eager-closure overrun: 43 B gzip off the closure,
measured on the merged tree. The memo still recomputes only when its inputs
change, and every family pin holds.

Claude-Session: https://claude.ai/code/session_01MgfduSkFrfM3eorB3UGfAU
Co-authored-by: Claude <noreply@anthropic.com>
…, so its config type-checks (objectui#11984)

The previous commit's guard read only `fields?.length`, which does not narrow
`resolvedUserFilters`, so the spread typed `element` as optional and the
UserFilters `config` prop refused it (TS2719). The guard now reads through
`resolvedUserFilters` itself.

Claude-Session: https://claude.ai/code/session_01MgfduSkFrfM3eorB3UGfAU
Co-authored-by: Claude <noreply@anthropic.com>
Sync with main b1f0dcc before the eager-closure re-measure (objectui#11984).

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

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 336 chunks) 3312.0 KB 3312.0 KB
Main entry chunk (gzip) 71.5 KB 350 KB
Entry file index-Ds7BJ5Xj.js —
Status PASS —

The eager closure is every chunk the entry reaches through static imports — what the browser fetches and parses before the app renders. The entry chunk on its own is a small fraction of it.


📦 Bundle Size Report

Package Size Gzipped
app-shell (consoleActionDispatch.js) 0.20KB 0.19KB
app-shell (index.js) 18.33KB 6.73KB
app-shell (runtime-config.js) 22.59KB 7.89KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 10.11KB 3.87KB
auth (ActiveOrganizationStorage.js) 27.95KB 10.04KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 2.07KB 1.00KB
auth (AuthProvider.js) 40.22KB 10.61KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 18.15KB 5.40KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.72KB 2.24KB
auth (SocialSignInButtons.js) 9.70KB 3.93KB
auth (UserMenu.js) 3.39KB 1.21KB
auth (auth-gate-events.js) 1.29KB 0.66KB
auth (authStyles.js) 5.04KB 1.72KB
auth (createAuthClient.js) 41.19KB 11.12KB
auth (createAuthenticatedFetch.js) 8.54KB 3.46KB
auth (index.js) 3.63KB 1.64KB
auth (invitation-status.js) 1.22KB 0.70KB
auth (org-roles.js) 6.66KB 2.78KB
auth (phone-identifier.js) 1.11KB 0.66KB
auth (types.js) 0.59KB 0.35KB
auth (useAuth.js) 5.30KB 1.02KB
auth (useWorkspaceAdminStatus.js) 11.08KB 4.58KB
collaboration (CommentThread.js) 27.11KB 7.97KB
collaboration (LiveCursors.js) 3.17KB 1.27KB
collaboration (PresenceAvatars.js) 6.28KB 2.60KB
collaboration (PresenceProvider.js) 2.79KB 1.13KB
collaboration (index.js) 1.68KB 0.73KB
collaboration (useCollaborationTranslation.js) 6.50KB 2.52KB
collaboration (useCommentSearch.js) 1.98KB 0.88KB
collaboration (useConflictResolution.js) 7.75KB 1.86KB
collaboration (useMentionNotifications.js) 1.81KB 0.68KB
collaboration (usePresence.js) 6.33KB 1.84KB
collaboration (useRealtimeSubscription.js) 7.91KB 2.01KB
components (index.js) 587.07KB 141.28KB
core (index.js) 10.00KB 3.96KB
create-plugin (index.js) 27.94KB 9.51KB
data-objectstack (index.js) 240.39KB 67.09KB
fields (index.js) 268.74KB 68.04KB
i18n (LocalizationContext.js) 2.92KB 1.42KB
i18n (builtinAggregateLabels.js) 0.86KB 0.49KB
i18n (currency.js) 2.59KB 1.22KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 8.87KB 3.64KB
i18n (index.js) 5.52KB 2.39KB
i18n (pickLocalized.js) 9.86KB 3.95KB
i18n (provider.js) 39.35KB 12.88KB
i18n (translateFn.js) 0.20KB 0.18KB
i18n (useDisplayLocale.js) 3.52KB 1.76KB
i18n (useObjectLabel.js) 36.87KB 9.88KB
i18n (useSafeTranslation.js) 7.14KB 2.92KB
layout (index.js) 41.50KB 11.82KB
mobile (MobileProvider.js) 0.92KB 0.49KB
mobile (ResponsiveContainer.js) 0.94KB 0.38KB
mobile (breakpoints.js) 1.51KB 0.70KB
mobile (createOfflineDataSource.js) 5.61KB 1.75KB
mobile (index.js) 1.99KB 0.87KB
mobile (offlineQueue.js) 3.91KB 1.35KB
mobile (pwa.js) 0.97KB 0.49KB
mobile (serviceWorker.js) 1.48KB 0.62KB
mobile (serviceWorkerSource.js) 3.41KB 1.48KB
mobile (useBreakpoint.js) 1.54KB 0.65KB
mobile (useGesture.js) 6.96KB 1.98KB
mobile (useOfflineSync.js) 1.99KB 0.72KB
mobile (usePullToRefresh.js) 6.62KB 2.45KB
mobile (useResponsive.js) 0.72KB 0.42KB
mobile (useSpecGesture.js) 5.52KB 2.10KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 13.86KB 5.00KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.52KB 2.26KB
permissions (discardProofCache.js) 1.04KB 0.55KB
permissions (evaluator.js) 8.33KB 3.07KB
permissions (index.js) 0.93KB 0.41KB
permissions (store.js) 0.91KB 0.42KB
permissions (useFieldPermissions.js) 1.28KB 0.53KB
permissions (usePermissions.js) 4.83KB 2.27KB
plugin-ai (index.js) 16.04KB 3.92KB
plugin-calendar (index.js) 53.43KB 15.54KB
plugin-charts (index.js) 84.71KB 23.25KB
plugin-chatbot (index.js) 199.63KB 47.46KB
plugin-dashboard (index.js) 144.20KB 38.95KB
plugin-designer (index.js) 231.46KB 48.87KB
plugin-detail (index.js) 248.57KB 65.47KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 177.11KB 45.88KB
plugin-gantt (index.js) 179.17KB 45.07KB
plugin-grid (index.js) 249.56KB 69.16KB
plugin-kanban (index.js) 52.22KB 16.38KB
plugin-list (index.js) 118.48KB 29.59KB
plugin-map (index.js) 27.24KB 9.03KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 44.12KB 12.29KB
plugin-timeline (index.js) 39.10KB 11.81KB
plugin-tree (index.js) 15.07KB 5.33KB
plugin-view (index.js) 91.09KB 22.94KB
providers (DataSourceProvider.js) 0.75KB 0.39KB
providers (MetadataProvider.js) 1.37KB 0.59KB
providers (ThemeProvider.js) 1.90KB 0.85KB
providers (UploadProvider.js) 11.81KB 3.58KB
providers (index.js) 0.45KB 0.23KB
providers (types.js) 0.01KB 0.04KB
react-runtime (index.js) 5.62KB 2.34KB
react (LazyPluginLoader.js) 4.47KB 1.63KB
react (SchemaRenderer.js) 120.63KB 39.56KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.50KB 2.06KB
react (schema-input.js) 4.31KB 2.07KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (body-dialect.js) 4.50KB 1.99KB
sdui-parser (codegen.js) 9.45KB 3.76KB
sdui-parser (dashboard-widget-options.js) 3.07KB 1.30KB
sdui-parser (index.js) 7.30KB 3.12KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (parse.js) 25.28KB 7.80KB
sdui-parser (provenance.js) 3.84KB 1.90KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 23.87KB 7.83KB
types (ai.js) 4.39KB 2.17KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 4.12KB 1.61KB
types (authoring-nodes.js) 0.20KB 0.19KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (cloud.js) 0.20KB 0.18KB
types (complex.js) 4.44KB 2.07KB
types (crud.js) 0.20KB 0.18KB
types (dashboard-filter-alias.js) 6.23KB 2.74KB
types (dashboard-widget-layout.js) 2.06KB 0.96KB
types (data-display.js) 3.75KB 1.85KB
types (data-protocol.js) 0.20KB 0.19KB
types (data.js) 0.20KB 0.18KB
types (designer.js) 1.85KB 0.85KB
types (disclosure.js) 0.20KB 0.18KB
types (error-code.js) 1.54KB 0.88KB
types (expression.js) 0.20KB 0.18KB
types (feedback.js) 0.20KB 0.18KB
types (field-types.js) 1.13KB 0.65KB
types (form.js) 0.20KB 0.18KB
types (http-inflight.js) 8.87KB 3.73KB
types (http-retry.js) 4.32KB 2.02KB
types (icon-key-migration.js) 4.26KB 1.63KB
types (index.js) 5.78KB 2.70KB
types (layout.js) 0.20KB 0.18KB
types (managed-by.js) 0.19KB 0.18KB
types (mobile.js) 5.00KB 2.39KB
types (navigation.js) 0.20KB 0.18KB
types (node-slots.js) 7.18KB 2.34KB
types (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (permissions.js) 2.52KB 1.31KB
types (plugin-scope.js) 0.20KB 0.18KB
types (record-components.js) 0.20KB 0.19KB
types (record-semantics.js) 1.28KB 0.67KB
types (registry.js) 0.20KB 0.18KB
types (reports.js) 0.20KB 0.18KB
types (select-option.js) 0.20KB 0.19KB
types (spec-report.js) 4.99KB 1.96KB
types (spec-ui-namespace.js) 0.20KB 0.19KB
types (strict-authoring-face.js) 19.93KB 7.25KB
types (system-fields.js) 3.33KB 1.54KB
types (theme.js) 6.28KB 2.87KB
types (ui-action.js) 8.11KB 3.32KB
types (views.js) 0.20KB 0.18KB
types (widget.js) 0.20KB 0.18KB

Size Limits

  • ✅ Core packages should be < 50KB gzipped
  • ✅ Component packages should be < 100KB gzipped
  • ⚠️ Plugin packages should be < 150KB gzipped

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review October 8, 2026 20:19
@objectstack-fleet
objectstack-fleet Bot enabled auto-merge October 8, 2026 20:19
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Oct 8, 2026
@objectstack-fleet
objectstack-fleet Bot marked this pull request as draft October 8, 2026 20:22
Merged via the queue into main with commit aa67386 Oct 8, 2026
45 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-11984-toolbar-field-lists branch October 8, 2026 20:38
os-bill pushed a commit that referenced this pull request Oct 8, 2026
…and the user-filter chips ask the field read (objectui#11984) (#11999)"

This reverts commit aa67386.

The eager closure crossed its ceiling when this commit merged behind
aaba865 in one merge-queue run. aaba865 fits alone and stays; this
commit is rolled back alone, with no ceiling raise.

Claude-Session: https://claude.ai/code/session_01MgfduSkFrfM3eorB3UGfAU
Co-authored-by: Claude <noreply@anthropic.com>
os-bill pushed a commit that referenced this pull request Oct 9, 2026
… for first-load bytes only (objectui#11984)

fix(plugin-list): the hide-fields, Group and Row color lists and the user-filter chips ask the field read (objectui#11984) (#11999)

Fixes #11984
Clause-②: no

The list toolbar's hide-fields popover, Group editor and Row color
select no longer offer a field the caller may not read, and neither do
its user-filter chips. Each now asks `canReadField`, the predicate
objectui#11962 gave the Filter panel and the Sort picker, behind the
same `isLoaded` gate. This is the family's third card, after
objectui#11925 (filter) and objectui#11943 (sort), and it carries the
enumeration pin triage asked for (`6063905126`).

## What changes

All in `packages/plugin-list/src/ListView.tsx`:

- **`allFields` asks the read.** It is the one list the hide-fields
popover, the Group editor and the Row color select offer, and the
compact toolbar's View settings popover hands it to the same three
sections. A column the caller may not read is offered by none of them.
Before the permission answer loads, nothing is withheld, as the column
gate defers.
- **The user-filter chips ask it too** (`filterElements`, now a memo
declared below `perms`). A dropdown or toggle chip on an unreadable
field is dropped, whether the author named the field or
`resolvedUserFilters` derived it from the definition: a value chosen on
it is a filter the server refuses, and the list blanks. One exception,
shaped like the Sort picker's: a chip whose field a held selection names
(the applied user filter, or a host-restored `userFilterSelections`)
stays, so that filter can be cleared. Preset tabs pass through.
- **Stored configuration on an unreadable field is kept as stored:**
- a grouping level stays visible and removable. `GroupingEditor` already
mounts a value its options lack as its own entry, labelled with the
field name, so the level reads `secret_note` (the raw name), its remove
button works, and no other level and no "Add group field" offers it.
Nothing fires `onGroupingChange` until the user edits.
- a hidden-field entry is withheld from both hide-fields lists: not
listed, not counted in the badge, not cleared by "Show all", and every
write puts it back. Without this, "Show all" would rewrite the view for
its other viewers through an entry this caller was never shown.
- a row-color rule is withheld from both Row color selects: they show
None with no Clear, and the trigger is not marked. The rule stays in
`rowColorConfig`; `ListView` has no row-color callback, so nothing
writes it back to a host. It colors nothing for this caller anyway: the
server masks the field out of their rows.
- **Comments.** The `canReadField` docblock and the `effectiveFields`
comment now name every list that asks the read, and point at the
enumeration pin for which lists exist instead of asserting a list.

**Named in-place fix: the user-filter chips.** The card names three
lists; the chips are a fourth. Triage's ruling asks every field list
`ListView` and its toolbar offer to pass the predicate, the probe found
the derived chips offering an unreadable select field (below), and the
change is the same defect class, the same predicate, in the file this
claim holds, under the same gates. The seat may want to add the
`resolvedUserFilters` / `filterElements` region to the claim's file
surface.

## The dispatch's hypotheses

- **H0, read first (objectstack `51290bca`, read only): the server
refuses a grouping on an unreadable field; it does not reveal it.** The
grid's header query rides `POST /data/:object/query`, and `findData`
routes a body carrying `groupBy` to `engine.aggregate`. plugin-security
refuses it twice over: step 2.9's `assertReadableQueryFields` walks
`groupBy` (with `where`, `orderBy`, `having` and `aggregations`) and
throws `PermissionDeniedError` (`code` `PERMISSION_DENIED`, `status`
403, reason `field_predicate_denied`); step 2.5b refuses any `groupBy`
or aggregation field the query-guard map marks unreadable on an
`aggregate`. The same step-2.9 guard answers a user-filter `where` on
such a field with 403. Read from source; not measured against a running
server.
- **H1 holds.** Measured first on `main` through the real `ListView`
with a probe (deleted, never committed): with a `/me/permissions` answer
marking two fields unreadable, the Sort picker withheld them, so the
answer was loaded and denying, while the hide-fields popover, the Group
editor, the Row color select, all three View settings sections and the
derived user-filter chips offered them. Now each omits them, behind
`isLoaded`, with a readable control in each.
- **H2 holds**: the enumeration pin below, with two scratch ablations
that add an unfiltered list.
- **H3**: as described above, and pinned.
- **H4**: the budget bot's reading comes after CI. Local estimate only:
the minified `ListView` module grows by 628 B, 214 B gzipped on its own
(esbuild, gzip -9, `b13ea3c67` against `d9a6f718b`); the latest PR
readings were 3311.2 KB against the 3312.0 KB ceiling.

## Pins

`packages/plugin-list/src/__tests__/ListView.fieldListRead-11984.test.tsx`,
20 tests:

1. **The enumeration pin**, per toolbar layout (wide and compact). A
sweep opens every popover the toolbar renders (anything carrying
`aria-haspopup`), opens every combobox inside it, and reads every option
and checkbox. The popovers that offer a field of the view must equal
`FIELD_LIST_TRIGGERS` (wide: Color, Filter, Group, Hide fields, Sort;
compact: Filter, Sort, View settings), so a new field list fails until
it is listed. For a restricted caller nothing it reads, nor the
toolbar's own text (the chips), may name an unreadable field. Control:
with full read every enumerated list offers it. Its bound is written in
the file: a list behind a further click, such as a collapsed section,
needs a row in `POSITIONS`.
2. **One pin per position** (`POSITIONS`, 10 rows: the Filter panel, the
Sort picker, the hide-fields popover, the Group editor, the Row color
select, the user-filter chips derived and authored, and the three View
settings sections). With no permission answer and with full read the
list is identical and includes the unreadable fields; restricted, it is
that list minus them. Plus **before `isLoaded`**: a provider refetching
with the restricted answer still held offers every field in the
hide-fields list, the chips and the Group editor.
3. **Stored configuration**: the grouping level, the hidden-field entry
(with a full-read control), the row-color rule (with a full-read
control), and a chip kept by a restored selection that leaves once the
selection is cleared.

## Reverse check

On the committed tree `d9a6f718b`, each mutation landed and was restored
through objectstack's `scripts/ablation-replace.mjs` (anchor 1 to 0,
blob changed; restore blob equal to `HEAD`, `git diff HEAD` empty),
running the new file plus the three family files
(`ListView.filterFieldRead-11925`, `ListView.sortFieldRead-11943`,
`ListView.sortRemovableOnly-11943`), 37 tests. Every observation matched
its prediction:

| Mutation | Observed |
|---|---|
| M1: `allFields` drops the read | 11 failed / 26 passed: both
restricted sweeps, the six `allFields` positions, before-isLoaded, the
stored grouping and hidden-field cases |
| M2: the chips drop the read | 6 / 31: both restricted sweeps, both
chip positions, before-isLoaded, the restored-selection chip |
| M3: the chips drop the in-use exception | 1 / 36: the
restored-selection chip |
| M4: nothing is withheld from `hiddenFields` | 1 / 36: the stored
hidden-field case |
| M5: the row-color rule is not withheld | 1 / 36: the stored row-color
case |
| M6, scratch: an unfiltered native select added inside the Group
popover | 1 / 36: the wide restricted sweep; the Group editor's own pin
stays green |
| M7, scratch: a new toolbar popover listing every column | 4 / 33: all
four sweeps (an unlisted field list; restricted, also an unreadable
field) |
| M8: the Filter panel drops the read | 8 / 29: both restricted sweeps,
the Filter position, five objectui#11925 pins |
| M9: the Sort picker drops the read | 10 / 27: both restricted sweeps,
the Sort position, three objectui#11943 read pins, four removable-only
pins |

M3, M5 and M6 were first sent with a replacement that contained its own
anchor. `ablation-replace` refused each before any test ran, with the
restore proven, so those first attempts measured nothing; they were
re-anchored and re-run, and the rows above are the re-runs.

## Gates

On `HEAD` `d9a6f718b`, heavy runs through the container's verify lock:

- `pnpm --workspace-concurrency=2 --filter '@object-ui/plugin-list^...'
build`: `VERDICT command-exit 0`, scope 13 of 47 workspace projects.
- `pnpm --filter @object-ui/plugin-list type-check` (`tsc --noEmit &&
tsc -p tsconfig.test.json`): `VERDICT command-exit 0`; `--listFilesOnly`
lists the new test file.
- `pnpm exec vitest run --maxWorkers=2` over every `plugin-list` test
file naming `ListView`, `canReadField`, `hiddenFields`, `rowColor` or
`GroupingEditor` (101 files by `git grep -l`, the new one included),
plus `packages/core/src/utils/__tests__/column-identity.ratchet.test.ts`
and `scripts/__tests__/one-authority-per-exported-name-6273.test.ts`:
`Test Files 103 passed (103)`, `Tests 1137 passed (1137)`, `VERDICT
command-exit 0`.
- `node scripts/check-changeset-presence.mjs` exit 0 ("2 source file(s)
of 1 released package(s) changed, and this change declares 1
changeset(s)"); `node scripts/check-changeset-no-major.mjs` exit 0.
- `pnpm check:new-line-citations` exit 0, `VERDICT
new-cross-file-line-citations: 0 new citation(s)`; `pnpm
check:control-bytes` exit 0.
- Also exit 0: `check:changeset-claims`,
`check:pending-changeset-literals`, `check:test-path-roots`,
`check:vi-mock-specifiers`, `check:vi-mock-inherit`,
`check:vi-mock-override-shape`, `check:i18n-keys`,
`check:shell-escape-residue`, `check:unreferenced-sources`,
`check:phantom-deps`.
- **Lint, narrowed and measured.** `pnpm exec eslint --format json` over
the two touched TS files (the config's `**/*.{ts,tsx}` population): 2
files, 0 errors. `ListView.tsx` carries 187 warnings, equal to its base
blob linted over stdin; the new test carries 0. `eslint.config.js`
enables no type-aware linting, so the diff cannot move an untouched
file's verdict. Repo-wide lint is CI's.

## Acceptance notes

- **Docs.** The package README and `content/docs` say nothing about
which toolbar lists ask the field read, so nothing there became false.
They are outside the claim's file surface and are not edited.
- **Out of scope, measured, reported for the seat, not fixed here:** a
host-restored user-filter selection (`userFilterSelections`) on a chip
derived from the definition (`userFilters` with `element: 'dropdown'`
and no `fields`) is dropped when the definition loads after mount. With
full read and no permission provider, the chip showed no selection and
the fetch carried no `$filter`; with the same field named by the author,
the fetch carried `["status","=","open"]`. The chip state is initialised
once, from the fields present at mount, and a derived list has none
until the definition loads. Producers: app-shell's `ObjectView`,
`ObjectDataPage` and `InterfaceListPage` pass URL-restored
`userFilterSelections`.
- Observation, not filed: the `allFields` lists label a column by its
declared `label` or the i18n resolver, falling back to the raw name, so
with unlabelled columns they read `title` where the Sort picker reads
`Title`. Unchanged here.
- Changeset: `.changeset/11984-toolbar-field-lists-read.md`, a patch for
`@object-ui/plugin-list`.

Session: `https://claude.ai/code/session_01MgfduSkFrfM3eorB3UGfAU`

---
_Generated by [Claude
Code](https://claude.ai/code/session_01MgfduSkFrfM3eorB3UGfAU)_

---------

Claude-Session: https://claude.ai/code/session_01MgfduSkFrfM3eorB3UGfAU
Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

security(list toolbar): the hide-fields popover, the Group editor and the Row color field list offer a field the caller may not read

2 participants