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

Commit 556373c

Browse files
committed
Merge origin/main into claude/issue-6152-unmirrored-round4
Carries main through PR #11267, #11268, #11269, #11271, #11273 and #11274. No conflicts. Claude-Session: https://claude.ai/code/session_01TdiauJaVCHuj45EzZGUxHh Co-authored-by: Claude <noreply@anthropic.com>
2 parents 4c272dc + f16c01e commit 556373c

59 files changed

Lines changed: 3661 additions & 277 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
'@object-ui/types': minor
3+
---
4+
5+
`flex`, `object-grid` and `object-chart` accept the node-level `responsiveStyles` that `@objectstack/spec`'s `PageComponentSchema` declares on every page component, and judge it as the spec does (objectui#10872, batch 9).
6+
7+
**Clause-②: yes (widening)**: the strict authoring face (`StrictAnyComponentSchema`) now accepts a node-level `responsiveStyles` on `FlexSchema`, `ObjectGridSchema` and `ObjectChartSchema`, where it refused the key by name. Batch 8 declared the same key on the 30 public-block arms; these are the three arms outside that set whose nodes the objectstack showcase and UI skill write it on.
8+
9+
**What changed, in observable terms.**
10+
11+
- The three arms declare `responsiveStyles` from the same shared declaration as the public-block arms: the spec's `ResponsiveStylesSchema`, by reference. Its breakpoints (`large`, `medium`, `small`, `xsmall`), its strictness and its unknown-breakpoint message come from the spec.
12+
- A node such as `{ "type": "flex", "direction": "col", "responsiveStyles": { "large": { "display": "block", "minWidth": "0" }, "small": { "padding": "12px" } } }` parses on both faces, and the map comes back unchanged. The same holds for `object-grid` and `object-chart` nodes.
13+
- The published TypeScript interfaces `FlexSchema`, `ObjectGridSchema` and `ObjectChartSchema` declare `responsiveStyles?: ResponsiveStyles`, the spec's type. Before, the key was typed `any` through `BaseSchema`'s index signature.
14+
- Nothing else widens. `BaseSchema` still does not declare `responsiveStyles`, and neither does any other arm (`stack`, `grid` and `container` included), so the strict face still refuses it there by name. The other node-level keys the spec declares (`events`, `aria`, `visibility`, `responsive`, and `dataSource` on `flex` and `object-chart`) stay undeclared.
15+
16+
**Narrowing, on already-published arms.** Unlike the public-block arms, these three were published before this change, and two things now refuse what used to pass:
17+
18+
- The tolerant face (`safeValidateSchema`, the face `objectui validate` runs) used to keep any node-level `responsiveStyles` value on these arms unjudged. It now refuses a value the spec refuses, at `responsiveStyles`, with the spec's own issue: a breakpoint the spec does not have (`md`), a number instead of a map, or a style value that is neither a string nor a number. `SchemaRenderer` applied nothing for a number or for a map with no spec breakpoint. It emitted a non-CSS value inside a valid breakpoint verbatim, where the browser dropped it, and it applied the valid breakpoints of a mixed map.
19+
- In TypeScript, a `responsiveStyles` value that is not the spec's `ResponsiveStyles` no longer type-checks on these three interfaces.
20+
- An `object-view`'s `table` slot, which takes `ObjectGridSchema`'s members, does not gain the key. `ObjectView` draws its grid as a component, not as a schema node, so nothing compiles a `responsiveStyles` map written in `table`. The slot therefore refuses `table.responsiveStyles` by name, with that reason, on both faces, as it refuses the other node-level keys (objectui#10976). The tolerant face used to keep it unjudged, and the TypeScript slot never declared it.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
'@object-ui/types': minor
3+
---
4+
5+
`safeValidateSchema` — and so `objectui validate` — and `StrictAnyComponentSchema` judge a component nested in a page container's props bag (objectui#11223).
6+
7+
**Clause-②: no (narrowing)** — a document whose bag child is malformed, or names a `type` no arm declares, parsed on both faces and is refused now. Nothing that was refused before is accepted, and no export is added or removed.
8+
9+
**What it was.** The page containers take their child lists in the bag: `properties.children` on `page:card`, `page:section`, `page:footer` and `page:sidebar`, and `properties.items[].children` on `page:tabs` and `page:accordion`. Their arms read the spec's `ComponentPropsMap` rows by reference, and the rows type every one of those slots as a list of anything, so neither face looked inside it. The same child in a node-level child slot was judged by its own component schema.
10+
11+
**What changed, in observable terms.**
12+
13+
- `AnyComponentSchema` judges every component nested in a node's bag with the same union, at each position `@objectstack/spec`'s own page walk (`walkAddressedPageComponents`, `@objectstack/spec/system`) descends — read from the installed spec at parse time, not listed here. Each issue is reported at the nested node's real path, for example `properties.children.0.properties.content`, and an unknown nested `type` gets the discriminator's own verdict at `….type`, which `objectui validate` prints as "No arm accepts type …" with the nearest accepted types. The judgment runs even when the node refuses something of its own, and it applies at every depth, including under a node-level child slot.
14+
- `StrictAnyComponentSchema` judges those components against its own strict twin of the union, so an undeclared key on a nested component is refused by name there, as it is one child slot down.
15+
- Entries of a bag child list that the spec's walk does not visit — a string, a number, `null` — are not components to it and are not judged.
16+
- One slot the renderer draws is not walked yet: `page:card`'s `properties.footer`. The spec's exported walk does not descend it, so a component written there is still accepted unexamined; it is judged the day the walk descends it.
17+
- A container's own arm schema parsed alone (`PageSectionBlockSchema.safeParse(…)`) is unchanged: the judgment lives on the union.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
---
4+
5+
fix(app-shell): switching Studio to another flow, page or package no longer saves the previous item's unsaved edit into the one just opened
6+
7+
Studio's editors save drafts on their own, 1.5 s after the last edit. If the
8+
author opened another flow or page inside that wait, and the new item took
9+
longer to load than was left of it, the pending save went out addressed to the
10+
item just opened, carrying the previous item's whole document. The newly opened
11+
item's draft was overwritten with another item's content. This was measured on
12+
a writable package in the Automations pillar (one flow saved with another
13+
flow's steps) and in the Interfaces pillar's page settings (one page saved with
14+
another page's label and blocks).
15+
16+
An unsaved edit now belongs to the item it was made on. When the author opens
17+
another item before it is saved, nothing is sent to the item just opened, and
18+
the pending edit is dropped, which is what the Data pillar has always done and
19+
what every editor already did whenever the next item loaded quickly. An edit
20+
made after the new item has loaded saves to it as usual. This applies to every
21+
editor that uses Studio's shared draft autosave: the Automations and Data
22+
pillars, the Interfaces page inspector and the Interfaces navigation editor.
23+
24+
Switching package in the Interfaces pillar now starts it afresh on the new
25+
package. Before, an unsaved navigation edit the author chose to discard kept
26+
the editor marked as having unsaved changes, so the next package's navigation
27+
was saved as a draft although nobody edited it, and the previous package's
28+
open page stayed open and saved into the next package.
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
'@object-ui/types': minor
3+
'@object-ui/plugin-kanban': patch
4+
---
5+
6+
**BREAKING (scored `minor` per this repo's version-alignment convention)** —
7+
`ObjectKanbanSchema.onQuickAdd` is retired on `object-kanban` (objectui#11234).
8+
This completes ruling B of the director seat's decision batch #91
9+
(objectui#8285): the object-bound board does not grow an inline record-creation
10+
write path, and the Quick Add pair stays with a React host.
11+
12+
**Why it did nothing.** After objectui#8285 retired `quickAdd`, `onQuickAdd`
13+
stayed a runtime slot. A host-supplied function reached the board by identity,
14+
and on `object-kanban` it was never called, because the Quick Add control is
15+
gated on both halves of the pair. A TypeScript host or an AI that wrote the key
16+
compiled and got nothing.
17+
18+
- **`@object-ui/types`** — `ObjectKanbanSchema.onQuickAdd` is `?: never` on the
19+
TypeScript face, and `handlerKeyRefusal('onQuickAdd', 'retired', …)` on the
20+
zod mirror. An authored value is refused BY NAME (`custom` at `onQuickAdd`,
21+
the same code as before), and the message now says RETIRED instead of RUNTIME
22+
SLOT. This narrows a published TypeScript face: a typed host that wrote the
23+
key on an `object-kanban` node now gets a type error.
24+
- **`@object-ui/plugin-kanban`** — `ObjectKanban` renders an internal board
25+
that takes the Quick Add pair only as explicit props, and it supplies neither
26+
half. The internal board is not exported. `check:handler-key-reads` refuses a
27+
tombstone while a renderer on the registration still reads the key off the
28+
document, and this change removes that read from the `object-kanban` path.
29+
`KanbanRenderer` is unchanged for a host: it reads `schema.quickAdd` and
30+
`schema.onQuickAdd` exactly as before, and the control draws and calls the
31+
host's function.
32+
33+
**Migration.** Delete `onQuickAdd` from `object-kanban` nodes and from any
34+
`ObjectKanbanSchema` object a host builds. It was never called there. To offer
35+
Quick Add, mount `KanbanRenderer` from `@object-ui/plugin-kanban` in a React
36+
host and pass both `quickAdd` and `onQuickAdd` on its `schema`.
37+
38+
The objectui#8285 entry's closing note, which said `onQuickAdd` stayed a runtime
39+
slot on `object-kanban`, is amended in this change to match.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
'@object-ui/components': minor
3+
'@object-ui/plugin-grid': minor
4+
'@object-ui/react': minor
5+
---
6+
7+
fix: a row-menu action gated through `disabled` stays disabled until the permissions payload has loaded, in a grid and in a related list's table, and an `<ActionProvider>` answers `current_user` in the runner's own gates
8+
9+
A custom row action whose `disabled` asks `current_user.can(...)` has no answer until the
10+
signed-in user's permissions have loaded. In the row menu of a grid (`RowActionMenu`) and
11+
of a data table (the related list's rows), that unanswerable gate used to leave the item
12+
ENABLED, so `disabled: "!current_user.can('account', 'delete')"` offered the action to
13+
everyone while the page loaded, and kept offering it where the permissions never load (the
14+
`/forms/:name` route, a standalone embed). Both menus now render a `disabled` predicate that
15+
cannot be evaluated as DISABLED, the way `page:header` already does, and the console names
16+
it once. This is the rule for the key, not a special case for `can`: a `disabled` that
17+
faults for any other reason (a misspelled root such as `nope.x == 1`) is disabled too,
18+
where it used to be enabled. An absent, empty or blank `disabled` is still not disabled.
19+
The built-in Edit and Delete keep their fail-soft `disabledWhen`.
20+
21+
`<ActionProvider>` (`@object-ui/react`) now binds the signed-in user from the surrounding
22+
`ExpressionProvider` as `current_user` on its runner. The runner checks an action's
23+
`disabled` again when the action runs, and that check used to fault on `current_user` unless
24+
the page also mounted `record:quick_actions`, `record:alert` or a dashboard, so a user who
25+
held the permission clicked an enabled header action and was told "Action is disabled".
26+
The check now answers `current_user.can(...)` under any provider mounted inside the
27+
predicate scope. On the runner's gates `user.can(...)`, `ctx.user.can(...)` and
28+
`os.user.can(...)` still fault, because there `user` is the host's own user object; write
29+
`current_user.can(...)`.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
'@object-ui/console': patch
3+
---
4+
5+
fix(console): the docs portal's book sidebar keeps a doc placed by its own `group` key from outside the book's package (objectui#11245)
6+
7+
A doc names the book group it belongs to through its own `group` key. The framework's
8+
`resolveBookTree` places such a doc in that group with no package scope (only a group's
9+
`include` is scoped), and `GET /meta/book/:name/tree` answers that resolver. The portal
10+
dropped every doc outside the book's package BEFORE resolving, so a doc an admin placed
11+
from the doc editor was listed by the tree endpoint and missing from the book sidebar:
12+
its group rendered empty, the book card did not count it, and a book with nothing else
13+
to open showed "This book has no documents yet".
14+
15+
`scopeDocsToBook` now keeps a doc whose `group` names one of the book's group keys,
16+
whatever its package. The package filter still narrows what `include` and the synthetic
17+
Uncategorized group can collect, so another package's ungrouped docs stay out of the
18+
book, and a group-level `package` override still scopes that group's `include`.

‎.changeset/7804-object-kanban-handler-keys-judged.md‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44

55
`ObjectKanbanSchema` now judges two of the three handler keys the kanban board reads off the
66
authored document (the `plugin-kanban` slice; director seat ruling of
7-
2026-09-07, decision batch #69): `onCardClick` and `onQuickAdd` are declared as objectui#6124
8-
RUNTIME SLOTS — callable on the TypeScript face, refused BY NAME in the zod mirror because
9-
JSON has no function value — and the message points at the node-type spelling an author can
10-
write instead.
7+
2026-09-07, decision batch #69): `onCardClick` is declared as an objectui#6124 RUNTIME SLOT —
8+
callable on the TypeScript face, refused BY NAME in the zod mirror because JSON has no function
9+
value — and the message points at the node-type spelling an author can write instead.
10+
`onQuickAdd` was declared the same way here; objectui#11234 retires it on `object-kanban` in the
11+
same release, so it is `?: never` on the TypeScript face and refused BY NAME as RETIRED.
1112

1213
Until now neither was declared anywhere. `BaseSchema` is `.passthrough()`, so a key no arm
1314
declares is not refused: it stops being judged and the value is KEPT, then reaches the

‎.changeset/8285-kanban-quickadd-html-diagnostic.md‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@
55
html tier: name the inert `quickAdd` on `object-kanban` / `kanban` instead of calling it unknown
66

77
The Quick Add control is gated on BOTH `quickAdd` and an `onQuickAdd` handler, and
8-
`onQuickAdd` is a runtime slot — a function — that no parsed page can write and that
9-
`ObjectKanban` supplies none of its own for. So an authored `quickAdd: true` on either
8+
`onQuickAdd` takes a function, which no parsed page can write and which `ObjectKanban`
9+
supplies none of its own for. objectui#11234 retires `onQuickAdd` on `object-kanban` in the
10+
same release; it remains a host-supplied prop on `KanbanRenderer`'s `schema`. So an authored
11+
`quickAdd: true` on either
1012
`ObjectKanbanRenderer` tag has never produced a control.
1113

1214
Until now the only thing the tier said about it was `unknown-prop`, "has no prop

‎.changeset/8285-object-kanban-quick-add-retired.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,6 @@ control there. To offer Quick Add, mount `KanbanRenderer` from
4040
diagnostic code, or imported one of the four removed names, drops that branch:
4141
the key now draws `unknown-prop` like any other prop the block does not have.
4242

43-
Unchanged: `ObjectKanbanSchema.onQuickAdd` stays a runtime slot. It still reaches
44-
the board, and on `object-kanban` it is never called, because its partner is gone.
43+
`ObjectKanbanSchema.onQuickAdd` is retired on `object-kanban` too, by objectui#11234
44+
in the same release: on that element it was never called, because its partner is
45+
gone. The Quick Add pair on `KanbanRenderer` is unchanged.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
'@object-ui/app-shell': minor
3+
---
4+
5+
Setup › Packaged automation shows the platform's reason for a packaged flow the engine has not armed, verbatim and in muted text under the flow name (objectui#9217).
6+
7+
**What it was.** The page read only `name` and `enabled` from `GET /api/v1/automation/_status`. A time-triggered flow left unarmed because the deployment has package-authored scheduled work switched off (`OS_AUTOMATION_SCHEDULED_WORK_ENABLED` unset, the default in every posture) showed as a plain "On", the same as a flow that runs. A flow whose trigger failed to bind looked identical.
8+
9+
**What changed, in observable terms.**
10+
11+
- When a `_status` row carries `reason` (`FlowRuntimeState.reason`, `@objectstack/spec` 17.5.0), the sentence appears under the flow's name exactly as the platform sent it. A deployment-policy row shows the platform's policy sentence, which names the variable that switches scheduled work on. A binding-failure row shows the platform's failure sentence.
12+
- The sentence is muted text. It is not an alert and has no error styling, and the page does not parse, compare or reword it, as the contract asks ("Consumers RENDER it; do not parse it").
13+
- A row without a `reason` renders exactly as before. That covers bound flows, disabled flows, flows with no trigger, and older backends that do not send the field. A `reason` that is not a non-empty string is ignored.
14+
- No dependency, locale key or copy of a platform sentence is added.

0 commit comments

Comments
 (0)