Skip to content

feat(plugin-list,app-shell): a console list's toolbar grouping lives in the URL (objectui#11860) - #11991

Merged
objectstack-fleet[bot] merged 5 commits into
mainfrom
claude/issue-11860-grouping-url
Oct 8, 2026
Merged

objectstack-fleet[bot] merged 5 commits into
mainfrom
claude/issue-11860-grouping-url

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Fixes #11860

Clause-②: yes — @object-ui/plugin-list's published ListViewProps gains one optional member, onGroupingChange; nothing else on any published surface moves, and a host that does not pass it behaves as before.

Grouping is the last of the card's four pieces. The other three (the Filter panel's conditions, the search term and the sort) landed in objectui#11915; this PR follows the same pattern. With it, all four pieces of the maintainer's contract are delivered: 「视图、筛选、排序、分组都写进 URL;临时界面(面板、弹窗)不写进 URL。」

What changes

ListView (@object-ui/plugin-list) reports a user's grouping change.

  • New optional prop onGroupingChange(grouping), beside onSortChange and onFilterChange. The value is the spec's GroupingConfig (@objectstack/spec/ui), or undefined when the grouping is cleared.
  • Every user door goes through one callback, changeGrouping:
    • the toolbar Group panel's editor (a level added, changed or removed);
    • its Clear button;
    • the setter handed to the compact View settings popover, which covers that popover's editor and its Clear.
  • The schema re-sync effect still calls the state setter directly, so a changed schema.grouping is not echoed back. That is the same rule onSortChange follows for a view's declared sort.

The console object page (@object-ui/app-shell) writes it to uf__group and opens a list grouped by it.

  • userFilterUrlState.ts gains LIST_GROUP_PARAM (uf__group). The value is the GroupingConfig serialized as JSON. The key is reserved, so parseUserFilterParams never hands it to UserFilters as a quick-filter field. This also applies to InterfaceListPage and ObjectDataPage, which call that parser.
  • The read has the same shape as the sort read:
    • level by level through GroupingConfigSchema.shape.fields.element, then the envelope through GroupingConfigSchema itself;
    • a value that is not JSON, a level or envelope the spec refuses, or a level naming a field the object does not declare or the user cannot read is dropped. The field gate is the one objectui#11915 put on the other pieces, including perms.checkField once permissions have loaded;
    • nothing throws, and the list still opens.
  • ObjectView.tsx uses the existing seed machinery (listSeedRef / ownListParamsRef / writeListUrlState) without forking it:
    • the seed carries grouping;
    • the relay passes grouping: listSeed?.grouping ?? listSchema.grouping into schema.grouping, which ListView already reads;
    • onGroupingChange writes uf__group with replace;
    • the grouping is written to the URL only, not to the view and not to the per-browser cache.

Measured against the dispatch's mechanism assumptions (on 989b1908)

  • H1, one door: holds after this change. On the base, groupingConfig is set in four places: the toolbar editor's onChange, its Clear button, the setter handed to ViewSettingsPopover (whose editor and Section Clear both call it), and the schema re-sync effect. The three user call sites now fire the callback, and the re-sync does not. Pinned by ListView.onGroupingChange-11860.test.tsx: the toolbar editor (add, flip order, remove), toolbar Clear, popover add and popover Clear all fire. A host-side schema.grouping change is re-read, the editor shows Descending, and onGroupingChange is not called.
  • H2, the spec shape is the URL shape: holds. GroupingConfigSchema.parse returns the editor's own GroupingConfigValue unchanged. This is measured in the unit test, and in a pre-edit probe of the spec on its own. One bound was found, see Acceptance notes: the schema refuses { fields: [] } (too_small), so a cleared grouping has no URL form.
  • H3, precedence: holds, pinned both ways plus the control.
    • A link's uf__group wins over the view's declared grouping.
    • Without one, the declared grouping stands, and the address bar carries none.
    • A change is written with REPLACE only, and Back leaves the list in one step.
    • A view switch opens the next view on its own grouping, and Back restores the link's.
    • Opening and closing the Group panel leaves the query string and the navigation count unchanged.
  • H4, other hosts unchanged: holds. The only non-test site that passes onGroupingChange is ObjectView.tsx. The 124-file app-shell union, which includes every InterfaceListPage and ObjectDataPage importer, passes unchanged.

Also in this PR: a sort-precedence fix in the same file (bounded in-place fix)

Measured with a throwaway probe, now deleted. On a view that declares sort: [name asc], a link carrying uf__sort=[due_date desc] produced a query with $orderby = name asc, while the address bar still showed due_date desc. The control, the same link on a view with no declared sort, queried due_date desc.

Cause. renderListView wrote sort twice. The first write is the rung objectui#11915 taught to put the URL's sort first. The second is a later ...(viewDef.sort?.length ? { sort: viewDef.sort } : {}) spread, left over from before that rung existed, which overrode the rung on every view that declares a sort. The spread is removed. It was redundant with the rung in every other case: for an empty viewDef.sort the rung already yields it.

Why it is fixed here. All four in-place conditions hold:

  • it is the same class as this card: URL-carried list state must win over the view's declared value;
  • it is a mechanical one-line removal, in the shape objectui#11915's own comment and changeset declare ("an opened link sorts as it was sorted");
  • ObjectView.tsx is already in this claim's file surface, and no other open PR touches it;
  • it needs the same test file and the same gates.

Pin and changeset. The fix is pinned by a new describe in ObjectView.listUrlState-11860.test.tsx that covers both directions, and it is named in the changeset.

Tests

Every run below was taken at head 7973e15c3 with a clean tree, through the shared verify lock.

New and changed pins:

  • ListView.onGroupingChange-11860.test.tsx (new, 4 tests).
  • userFilterUrlState.listState-11860.test.ts: 5 grouping tests added, and the reserved-key test extended to uf__group.
  • ObjectView.listUrlState-11860.test.tsx: 8 grouping tests and 2 sort-precedence tests.
    • @object-ui/plugin-grid is now imported, and find returns one row in the grouping block, so a grouped grid mounts and asks for its groups. The grouping is read off the queryGroupHeaders request, at the data source.
  • ObjectView.relayRungCensus-7559.test.ts: the grouping absence reason now says the relay writes the key only to lay a URL grouping over it. It reads no viewDef, so the census still classes it as relayed-upstream.

Unions and type checks:

  • pnpm exec vitest run --maxWorkers=2 packages/plugin-list/ → Test Files 117 passed (117) · Tests 1247 passed (1247).
  • App-shell union, 124 files: every app-shell test importing ObjectView, userFilterUrlState, listFilterStorage, InterfaceListPage or ObjectDataPage, plus every test that reads ObjectView.tsx, ListView.tsx or userFilterUrlState off disk outside packages/plugin-list/ → Test Files 124 passed (124) · Tests 2666 passed (2666).
  • pnpm exec vitest run --maxWorkers=2 scripts/__tests__/ → Test Files 179 passed | 2 skipped (181) · Tests 5452 passed | 2 skipped (5454).
  • pnpm --filter @object-ui/plugin-list type-check and pnpm --filter @object-ui/app-shell type-check both exit 0, and each echoes its script name (tsc --noEmit && tsc -p tsconfig.test.json). Both test configs include src/**/*.test.ts(x). The dependency closure was built first (turbo run build --filter=@object-ui/app-shell^..., 28/28 tasks).

Ablations. Each fix was committed first, mutated through ablation-replace.mjs (anchor must hit, blob must move), run, and restored with blob equal to HEAD and an empty git diff HEAD. Every prediction was written before its run. The subjects resolve to src through the root vitest alias, so no dist leg was needed.

Ablation Predicted Measured
A — remove onGroupingChange?.(next); from changeGrouping 5 failed, 22 passed (27) 5 failed, 22 passed (27): the 3 user-door tests, plus the URL-write and reload tests. The re-sync test stays green.
B — relay grouping: listSchema.grouping (no URL seed) 4 failed, 19 passed (23) 4 failed, 19 passed (23)
C — drop LIST_GROUP_PARAM from the reserved keys 1 failed, 20 passed (21) 1 failed, 20 passed (21)
D — put the late view-sort spread back 1 failed, 22 passed (23) 1 failed, 22 passed (23): the link-sort test. The first attempt at D was a no-op: its anchor survived inside its own replacement, so the tool refused with "the anchor count moved 1 -> 1" and ran nothing. It was re-run with an anchor the mutation removes.

Gates (all exit 0 unless noted):

  • node scripts/check-changeset-presence.mjs: "7 source file(s) of 2 released package(s) changed, and this change declares 1 changeset(s)".
  • check-changeset-no-major, pnpm check:changeset-claims ("No pending changeset names a file this change touches"), pnpm check:pending-changeset-literals, check-changeset-fixed.
  • pnpm check:new-line-citations: "0 new citation(s)".
  • pnpm check:control-bytes, plus a control-byte self-scan of the 9 changed files (no match).
  • pnpm check:i18n-keys, check-vi-mock-override-shape, check-test-path-roots.
  • pnpm check:doc-types: no doc names ListViewProps.
  • pnpm check:skill-examples, after its scoped build: "Every marked skill example holds up against the built types".
  • ESLint on the 7 touched code files: 0 errors. Warning counts against the base are equal or lower (ListView.tsx 188 → 187).
  • node scripts/check-changeset-overwrite.mjs reports, as designed, the one-sentence edit to .changeset/11860-list-url-state.md (see below).

Not measured:

  • pnpm check:readme-exports: exit 1, because 6 packages this PR does not touch are unbuilt (cli, plugin-ai, plugin-gantt, plugin-map, plugin-markdown, plugin-timeline). The judged part (507 real, 0 fabricated) includes both packages this diff touches. The diff adds or removes no export and no README line.
  • Bundle Analysis: not posted yet. A local estimate, not the gate: the three changed source files grow by 218 bytes gzipped in total, minified per file (+163 / +23 / +32).
  • pnpm lint and the full pnpm test are CI's runs.

Acceptance notes

  • A cleared grouping has no URL form. GroupingConfigSchema requires at least one level, so clearing deletes uf__group. On a view that declares a grouping, a link therefore cannot carry "no grouping": it opens on the declared one. This follows the ruling (read through GroupingConfigSchema, drop on invalid). It is not worked around with a sentinel of this module's own. The report raises it as an open question.
  • Files beyond the four named regions:
    • one import type { GroupingConfig } line at the top of ListView.tsx;
    • the sort fix above, in ObjectView.tsx;
    • the census reason line;
    • the one-sentence edit to the pending .changeset/11860-list-url-state.md: "Toolbar grouping is not included yet." is deleted, because this PR makes it false and both entries would publish in the same release.
  • No README sentence was changed. packages/plugin-list/README.md and its "With Callbacks" example are outside the claim's file surface. Offered to the seat: one line after "End users can also add or remove grouping fields at runtime via the Group toolbar button", saying that a host hears each change through onGroupingChange.
  • Observation, read in source only and not filed. The compact View settings popover's hint reads "Grouping, color, density, and visible fields. Applies to everyone who uses this view." Toolbar grouping is not stored on the view: it was component state before this PR and lives in the URL after it.

Out of scope, measured as the dispatch asked (not fixed)

The quick-filter carry-over across a view switch reproduces. It was measured with a throwaway probe, now deleted, in the same harness: this page, plugin-view's ObjectView and ListView render for real, and window.location was set to the router's entry, because initialUfSelections reads it.

  • Steps: open view/qa?uf_priority=urgent, then navigate the same mounted page to view/qb (no query string).
  • Result on qb: the query still carried ["priority","=","urgent"], the chip read "Priority1", and the address bar's search was empty.
  • Control: view/qb opened fresh queried with no filter.
  • Cause, as read: initialUfSelections is captured once per mount. That path is not edited here. The finding is reported for the seat to file.

Generated by Claude Code

claude added 3 commits October 8, 2026 15:25
…in the URL (objectui#11860)

ListView gains an optional onGroupingChange prop, fired with the spec
GroupingConfig when the user changes the grouping in either grouping
editor (the toolbar Group panel and the compact View settings popover),
and not when the list re-reads a changed schema.grouping.

The console object page writes it to uf__group (replace), reads it back
through GroupingConfigSchema with the same drop-on-invalid read as the
other uf_ keys, and seeds the list through schema.grouping: a URL
grouping wins over the view's declared one, otherwise the declared one
stands.

Claude-Session: https://claude.ai/code/session_01DBZ9bntPZ7VKyQNtJeNsgw
Co-authored-by: Claude <noreply@anthropic.com>
…bjectui#11860)

The object page wrote `sort` twice into the list schema: the rung that
puts a URL-carried sort first, and a later spread of the view's own
sort, left over from before the URL rung existed. On a view that
declares a sort the spread overrode the link's sort, so it reached the
address bar and never the query. The spread is removed; the rung is the
one sort write. The grouping pins also mount the grid now, so the group
header query is where the grouping is read.

Claude-Session: https://claude.ai/code/session_01DBZ9bntPZ7VKyQNtJeNsgw
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.7 KB 3312.0 KB
Main entry chunk (gzip) 71.4 KB 350 KB
Entry file index-CDZWchJC.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.53KB 141.60KB
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) 248.22KB 68.84KB
plugin-kanban (index.js) 52.22KB 16.38KB
plugin-list (index.js) 117.80KB 29.42KB
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 2 commits October 8, 2026 16:29
The grouping section says which edits fire it, with which value, and
that a schema re-sync does not; the "With Callbacks" example lists it
beside onSortChange and onFilterChange.

Claude-Session: https://claude.ai/code/session_01DBZ9bntPZ7VKyQNtJeNsgw
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Oct 8, 2026
@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.7 KB 3312.0 KB
Main entry chunk (gzip) 71.4 KB 350 KB
Entry file index-CDZWchJC.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.53KB 141.60KB
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) 248.22KB 68.84KB
plugin-kanban (index.js) 52.22KB 16.38KB
plugin-list (index.js) 117.80KB 29.42KB
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

Copy link
Copy Markdown
Contributor Author

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 848fe53e580479d564d93f9e35cca19eada228f6
Local-runs: none

Inputs read: card #11860 (body and every comment, 6051934402 through 6064349633 — the triage direction 6055441287 and the lane amendment 6060546214 included), PR #11991's body and file list, the net diff of the head against main at merge base fff07fbba (10 files, +508 −28; the head is a merge of origin/main into the branch, and the net diff carries nothing from main), and the 43 check-runs on the head: 40 success, 3 skipped by design (coverage shard, coverage, dependabot), 0 failures. Nothing was built, run or re-run locally; the objectui checkout was read with git show / git diff only.

① Derived judgments

  1. @object-ui/plugin-list — ListViewProps.onGroupingChange, an optional callback taking GroupingConfig | undefined and returning nothing: one optional member on the published props type (ListView is exported from src/index.tsx). The one widening in the diff, and the one the ruling directed. Right. Every user door goes through one changeGrouping callback — the toolbar Group panel's editor, its Clear, and the setter handed to the compact View settings popover (its editor and Clear) — and the schema re-sync effect still sets state directly, so a host's own schema.grouping delta is not echoed back, the rule onSortChange follows. Pinned in ListView.onGroupingChange-11860.test.tsx and ablated (A). The value is the spec GroupingConfig, parsed unchanged by GroupingConfigSchema (pinned). The import type { GroupingConfig } line adds no dependency: that file already imported @objectstack/spec/ui.
  2. @object-ui/app-shell — LIST_GROUP_PARAM, ListUrlState.grouping, ListStatePatch.grouping are module exports of views/userFilterUrlState.ts. Read at the head: the module is imported only by sibling view modules and their tests, is not re-exported from src/index, and the package's exports map addresses . (./dist/index.d.ts) and ./styles.css alone. Shipped bytes, not a published accept set. Right, and the same reading the 11915 review made of the three earlier keys.
  3. The console list URL's accept set — uf__group is a fourth reserved key. Read level by level through GroupingConfigSchema.shape.fields.element, then the envelope through the strict GroupingConfigSchema: non-JSON, a spec-refused level or envelope, and a level naming a field the object does not declare or the user cannot read (the 11915 gate, perms.checkField once permissions load) are dropped; nothing throws; the list opens; the dropped entry leaves the address bar. Right — the ruling's "same drop-on-invalid read as the other uf_ keys", pinned in both the unit and the mounted test file.
  4. Precedence and history. A link's uf__group wins over the view's declared grouping (listSeed?.grouping ?? listSchema.grouping); absent, the declared grouping stands and the URL carries none; every change writes with REPLACE only; a view switch opens the next view on its own grouping and Back restores the link's; opening and closing the Group panel leaves the query string and the navigation count unchanged (the control the triage asked for). The grouping is written to the URL only, never to the view row and never to the per-browser cache — consistent with the base, where nothing stored it. Right, all pinned in ObjectView.listUrlState-11860.test.tsx, read at the queryGroupHeaders request of a mounted grid.
  5. parseUserFilterParams on ObjectView, InterfaceListPage and ObjectDataPage no longer hands uf__group to UserFilters as a quick-filter for a field spelled _group. A narrowing of a degenerate key, the same move 11915 made for _filter, _search and _sort; ablated (C). Right.
  6. Sort precedence fix, beyond the order's increment. The late ...(viewDef.sort?.length ? { sort: viewDef.sort } : {}) spread in renderListView is removed, so the sort rung listSeed?.sort ?? viewDef.sort ?? listSchema.sort is the one write: on a view that declares a sort, a link's uf__sort now reaches the query, not only the address bar. Read at the head: listSeed.sort is only ever a URL reading (a storage seed carries filters and search alone), so a list opened without a link is unchanged, and an empty viewDef.sort yields the same value both ways. The review checklist's four in-place conditions hold: same defect class (URL-carried list state must win over the view's declared value), mechanical one-line removal, ObjectView.tsx is in this claim and on no other open PR, same gate family. Pinned both ways, ablated (D), named in the changeset. Right.
  7. ObjectView.relayRungCensus-7559.test.ts — the grouping absence reason is reworded; the key stays relayed-upstream because the rung reads no viewDef. Right; the census passes on the head.
  8. packages/plugin-list/README.md — one paragraph and one line in the "With Callbacks" example document onGroupingChange, with the same fire / no-fire rule the code implements. Added after the dev report by the owning seat (3565cb7bb); the README Export Check is green. Right — the doc sentence a widened published prop owes under the docs-driven rule.

Not touched, as the claim's not-on-it list requires: ListView.tsx's sortFields region (base lines 4170–4197) and allFields (4473) — the hunks sit at 32, 289, 1153, 1522, 4749, 4764 and 4981; listFilterStorage.ts; InterfaceListPage.tsx; ObjectDataPage.tsx; packages/i18n/**; packages/components/src/ui/**.

② Semver level

  • PR body: Clause-②: yes, at line start, no arm — the widening reading. Matches the claim (6062996540) and the lane rulings (6055441287, 6060546214).
  • .changeset/11860-grouping-url.md: @object-ui/plugin-list: minor, @object-ui/app-shell: patch. Matches what the diff publishes: the one optional ListViewProps member takes the minor a yes requires; app-shell's exports-addressable surface does not move, and its behaviour changes (the uf__group read and write, the sort precedence fix) are patch. Every sentence of the changeset was checked against the diff, the cleared-grouping bound and the sort fix included.
  • .changeset/11860-list-url-state.md (pending from 11915): the sentence "Toolbar grouping is not included yet." is deleted — this PR falsifies it, and both entries publish in the same release. The Changeset Overwrite Report is green.
  • No skip-changeset, no major, no breaking change, so no migration or ADR-0087 marker is owed. Changeset Declaration, Bump Policy, Claim Re-read and Fixed Group Check are green on the head.

③ Boundary flags

Dev flags (report 6064349633):

  1. Bounded in-place sort fix — answered: accepted, ① item 6.
  2. Two changeset files against the claim's "one .changeset/11860-*.md" — answered: accepted, ②.
  3. Lines outside the named ListView regions (the type import, the props destructure) — answered: accepted; the not-on-it regions are untouched, ① closing note.
  4. Census reason update — answered: accepted, ① item 7.
  5. "No README change, offered to the seat" — superseded: the seat added it (① item 8). The PR body's Acceptance note "No README sentence was changed" and its list of files beyond the four regions are now stale — a seat body edit, not a diff matter.
  6. The grouping tests import @object-ui/plugin-grid and find answers one row — answered: accepted; it is what lets the grouping be read at the group header request, and the 13 tests from 11915 pass unchanged.
  7. The quick-filter probe needed window.location set to the router's entry — answered: recorded with the finding; the probe is deleted and nothing of it is in the diff.
  8. "Bundle Analysis: not posted yet" in the PR body — answered: stale; the check-run is success on the head. The dev reads 0.3 KB of eager headroom left, so the next eager addition on this surface is the seat's to watch.

open_questions:

  1. A cleared grouping has no URL form — answered: A, accept the bound as shipped. GroupingConfigSchema requires at least one level by design (the group header query needs a groupBy), the ruling said to read through that schema and drop on invalid, and the changeset discloses the bound to consumers ("a link to a view that declares a grouping cannot carry no grouping"). C, a sentinel outside the spec, is refused as a consumer-side dialect. B, a spec form for "explicitly ungrouped", is not owed by this PR; it is noted for the seat as a spec-lane card only on a named user report. Named so nobody re-derives it: uf__sort can carry [] because ListViewSchema.sort admits an empty array; uf__group cannot, because the spec does not.

Escalations to the owning seat (out-of-scope findings; none blocks this PR):

  • The quick-filter carry-over across a view switch reproduces in the jsdom harness (initialUfSelections is captured once per mount, so the second view restores the first view's uf_FIELD selections while its URL carries none). Retriage 6055441287 said that if it reproduces it is a card — the seat files it.
  • The compact View settings popover hint (list.viewSettingsHint, "Applies to everyone who uses this view") names grouping, which is per-link after this PR and was component state before. packages/i18n/** is off this claim; the seat decides whether to file.

Check-runs on the head: 40 success, 3 skipped by design, no failure — the gate verdicts stand.

Implemented-by: claude/issue-11860-grouping-url
Reviewed-by: session_01DBZ9bntPZ7VKyQNtJeNsgw

VERDICT: PASS


Generated by Claude Code

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review October 8, 2026 17:31
@objectstack-fleet
objectstack-fleet Bot enabled auto-merge October 8, 2026 17:31
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Oct 8, 2026
Merged via the queue into main with commit 75bacf9 Oct 8, 2026
45 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-11860-grouping-url branch October 8, 2026 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation package: app-shell plugin tests

Projects

None yet

2 participants