Skip to content

Commit b8eea5f

Browse files
committed
Merge remote-tracking branch 'origin/main' into claude/project-thread-gvlos5
2 parents d018066 + 5a0bb8d commit b8eea5f

143 files changed

Lines changed: 4326 additions & 237 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: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'@object-ui/plugin-grid': patch
3+
---
4+
5+
fix(plugin-grid): in design mode, a grid's row menus preview the staged record action order, as the record header does
6+
7+
Clause-②: yes (widening) — new exports only: `StagedActionLayoutProvider`, `useStagedActionLayout` and the types `StagedActionLayout`, `StagedActionLayouts`, `StagedActionLayoutProviderProps` on `@object-ui/plugin-grid`, and the same five on its new side-effect-free subpath `@object-ui/plugin-grid/core` (a new `./core` entry in the `exports` map); nothing removed or renamed
8+
Metadata-protocol: none
9+
10+
An administrator who rearranges an object's record actions in the Console's design mode saw the staged order in the record header at once, while the grid's row "⋮" menu and its right-click menu kept the saved order until the change was saved. Both row menus now list in the staged order while the change is staged, and go back to the saved order when it is cancelled.
11+
12+
`@object-ui/plugin-grid` (and its side-effect-free `@object-ui/plugin-grid/core` subpath, which registers nothing and reaches no grid renderer) exports `StagedActionLayoutProvider`, a context a host fills with the arrangements it has staged, by object name, and `useStagedActionLayout(objectName)`, which reads one. The grid reads the staged arrangement ahead of the object's served `actionLayout.record`. A staged value replaces the served one whole, as the record header reads it. With no provider, or nothing staged for the object, the grid lists by the served arrangement exactly as before. The Console mounts the provider once around its pages, fed by the design mode's staged changes, so every grid under it (list pages, related lists, split panes) previews the same order. The Console imports it from the `/core` subpath, so the grid itself stays out of the first load. The package's ESM build now emits `dist/index.js` and `dist/core.js` from one pass with one file per source module, so both entries share the one context; the UMD build is unchanged.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
'@objectstack/spec': minor
3+
'@objectstack/service-automation': minor
4+
'@object-ui/app-shell': patch
5+
'@object-ui/i18n': patch
6+
---
7+
8+
fix(automation)!: a triggered flow whose fan-out or earlier branch reaches a subflow or map whose child can suspend is not armed
9+
10+
Clause-②: no (narrowing)
11+
Metadata-protocol: narrowed
12+
Skills-docs: none — no page under `skills/**` teaches the fan-out or sequential pause shapes or the region decline this sits beside (git grep `suspending_subflow_in_region`, `fans out`: 0 hits); `content/docs/automation/flows.mdx` names the new cause
13+
14+
**BREAKING** for a flow author: FROM a trigger-declaring flow arming when, on its top-level graph or that of any flow its top-level calls reach (at any depth), a `subflow` or `map` node whose child flow can suspend (the child reaches an `approval`, `approval_revise`, `screen` or `wait` from its start, or calls a flow that does) sits beside another pausing branch of one fan-out, or on a conditioned or `isDefault` branch the engine takes before another out-edge of the same node, TO that flow registered and saved but NOT armed: `GET /api/v1/automation/_status` reads `bound: false` with the new `unboundCause` `suspending_subflow_on_branch` and a reason naming the branching node, the call, the child and where it suspends, and the engine logs one `warn`. The one-line fix: chain the call and the other pausing step onto one branch, or make the call's branch the last one its node takes, or republish the child without a node that suspends; the flow arms the moment the shape is gone.
15+
16+
Why. A run parks at one place and resumes from it, never back at the node that branched, so such a run loses a branch. The engine already fails it at run time by name, but only after the child's request opened, which is then left pending. The engine holds the child flow, so the arming gate now asks the flow parse's own fan-out and sequential readings with a call whose child can suspend counted as a pausing node, and declines the flow before any run opens a request. The flow parse is unchanged: it still cannot see a call's child (another record), so the flow still registers.
17+
18+
`@objectstack/spec`: `FLOW_UNBOUND_CAUSES` gains `suspending_subflow_on_branch` (a closed vocabulary: a consumer that switches over it exhaustively gains a case). `concurrentPauseRefusals` and `sequentialPauseRefusals` are now exported from `@objectstack/spec/automation`, and take a list of node types (what the flow parse hands) or a predicate over a node (`FlowPauseReading`); each refusal also carries `shape`, `nodeId`, `branches` and, for the sequential reading, `untaken`. The parse's verdicts and messages do not move.
19+
20+
`@objectstack/service-automation`: the arming gate's new branch half sits after the region half (a call inside a region body keeps `suspending_subflow_in_region`) and is asked again whenever a flow its calls reach is registered, as the other halves are, so an armed flow is un-armed when a child it calls is registered or republished with a step that suspends. For a `decision` that declares conditions but no fallback edge, the reason names the fix that keeps the routing: mark one branch edge `isDefault: true`. The reading goes down the call chain (maintainer ruling 7360068553): a reusable child flow that holds the shape, with no trigger of its own, declines the triggered flow that calls it, and the reason names the child and the calls that lead to it. Measured before: such a parent armed, and a concurrent shape in the child answered `paused` and then failed the parent even with a `fault` edge on its call node. The region half stays one level deep (its failure is synchronous and routable). Met only by the run-time branch refusal: a run started without a trigger (this is the arming gate); the shape held in a flow reached only through calls inside region bodies (the branch reading follows top-level calls, and a region-body call whose child can suspend is itself declined at arming by the region half); and a pausing node type a plugin registers.
21+
22+
`@object-ui/app-shell`, `@object-ui/i18n`: the flow run note has a plain-words line for the new unbound cause `suspending_subflow_on_branch` (English and Chinese): a subflow that calls a flow that can pause sits on a branch beside another pausing step, or before other branches of the same step, so the flow does not start until those steps are chained onto one branch or that branch is taken last.
23+
24+
No conversion rewrites the shape (which rewrite the author meant is not recorded); the ADR-0087 semantic entry `flow-branch-suspending-subflow-not-armed` carries it to the upgrade guide.
25+
26+
<!-- adr-0087: registered flow-branch-suspending-subflow-not-armed -->
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
'@objectstack/service-analytics': patch
3+
---
4+
5+
fix(service-analytics): a measure over a summary that declares its currency is priced
6+
7+
Clause-②: yes (widening)
8+
Metadata-protocol: none
9+
10+
A dataset measure that takes an amount aggregate (`sum`, `avg`, `min`, `max`) over a `summary` field now carries a currency on its result column when the summary declares `currencyConfig`. Before, only a `currency` field counted as money, so such a column came back bare. This affects `POST /analytics/dataset/query` and the dataset draft preview.
11+
12+
- A summary declaring `currencyMode: 'dynamic'` (or a `currencyConfig` with no mode) rolls up amounts in the home currency, so its column takes the request's tenant currency, as a sum over its child field does. A derived `sum` / `difference` whose operands are all tenant amounts counts such a measure among them, so it is priced too (for example "planned minus actual cost").
13+
- A summary declaring `currencyMode: 'fixed'` carries its code, as a `fixed` currency field does.
14+
- Unchanged: a summary that declares no `currencyConfig` is still a number, whatever it rolls up, and so is a `count` over it. A `ratio` or `product` stays bare. The compile-time currency guards still judge `currency` fields, and fields of any type through a record-mode `currencyField`, as before; they read no summary's `dynamic` or `fixed` declaration, so every dataset that compiled before still compiles.
15+
16+
**The widening.** `AnalyticsServiceConfig.sourceFieldMeta` may answer a new optional `currencyMode`, the field's declared `currencyConfig.currencyMode`, given only when a `currencyConfig` is declared. The plugin's own bridge answers it. A host that builds the service by hand and leaves it out keeps today's answer for summaries. `DeclaredCurrency`, the answer type of `DatasetCompileOptions.declaredCurrency` (re-exported from the package entry), gains the same optional `currencyMode?`; it has no effect at compile, because the guards do not read it.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
---
4+
5+
fix(app-shell): the organization Invitations page shows a plain not-allowed state to a role that may not list invitations
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
The invitation list now answers `403 YOU_ARE_NOT_ALLOWED_TO_LIST_INVITATIONS` to every role that may not create invitations (better-auth 1.7.29 gates the list on `invitation:["create"]`). The Invitations page used to show that refusal as a load error with a Retry button.
11+
12+
- A `member` or `external` member no longer asks for the list. The page shows the Invitations title and the sentence the Members tab already shows ("Only organization admins can invite members."), with no error and no Retry.
13+
- If the server still refuses the list (the member row has not loaded yet, or the role was misjudged), the refusal is shown as the same not-allowed state, never as an error. Any other failure is still an error with a Retry.
14+
- `owner`, `admin` and `delegated_admin` see the list as before. A member's own received invitations stay on the organizations page, which reads a different route.

‎.changeset/39182-action-notices.md‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
'@objectstack/spec': minor
3+
'@objectstack/lint': minor
4+
'@objectstack/metadata-core': minor
5+
'@object-ui/core': patch
6+
---
7+
8+
feat(spec): `notices` on an action, warnings its dialog draws before submit, in `record:alert`'s vocabulary
9+
10+
Clause-②: yes (widening)
11+
Metadata-protocol: added
12+
13+
An action that opens a dialog before it runs (a param dialog, or the confirm dialog of `confirmText`) can now declare `notices`: a map from a snake_case notice name to a notice the dialog draws above its description, each while its condition holds.
14+
15+
```yaml
16+
notices:
17+
mail_not_delivered:
18+
severity: warning
19+
title: No email will be sent
20+
body: This deployment does not deliver mail.
21+
visible: features.emailDelivery != true
22+
```
23+
24+
- **`record:alert`'s vocabulary.** A notice takes the record page banner's names: `severity`, `title`, `body`, and `visible` for its condition. `severity` is the banner's own closed set (`info`, `warning`, `error`, `success`), one schema mounted by both: `RecordAlertProps.severity` now mounts it too, with the same values. The banner's `icon`, `action`, `dismissible` and `dismissKey` are refused on a notice, each with a sentence saying why; `label` renames to `title`, as it does in a translation bundle.
25+
- **Plain text.** `title` and `body` are `I18nLabel`s: a non-blank string or an inline locale map, with no markup, link, button or template. A notice declares at least one of them. An unknown severity, a non-string label, a blank one, or a notice with neither is refused at parse.
26+
- **Named, so each notice has a stable translation key.** The text is translated at `objects.<object>._actions.<action>.notices.<notice>.title` / `.body` (`globalActions.<action>.notices.<notice>.*` for an action with no object). `translateAction` overlays it leaf by leaf, only for the leaves a declared notice authors. `os validate` reports a translated notice the action does not declare, or a translated leaf the notice does not author (`translation-target-unknown`), and the translation extractor lists each declared leaf.
27+
- **The action's own condition.** `visible` takes the shape of the action's `visible` and reads the same scope (the record the surface holds, the signed-in user, `features`), with no new root. `os validate` checks it as it checks the action's `visible`. Omitted, the notice is drawn whenever the dialog opens.
28+
- **Only on a dialog host.** `notices` on an action with neither `confirmText` nor a non-empty `params` is refused at parse: no dialog opens to draw it.
29+
- **Display only.** Nothing gates on a notice. The action's endpoint, its outcome and its outcome copy are unchanged by it. The served object schema's field mask reads only a notice's `visible`: a notice whose `title` or `body` mentions a field the caller cannot read does not remove the action from what that caller is served, and a notice whose `visible` reads such a field removes the action, as any other condition on it does.
30+
- `alerts` and `warnings` on an action are refused with a rename to `notices`.
31+
32+
The key is `planned` in the liveness ledger: it parses, translates and is checked, and the console's dialogs do not draw it yet. `@object-ui/core` lists `notices` among the spec's action keys, so the console stops treating it as an unknown key.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
'@object-ui/i18n': patch
4+
---
5+
6+
fix(console): a local install can confirm installation-wide uniques and access findings, and the catalog org card can confirm what its install is stopped for
7+
8+
Clause-②: no
9+
Metadata-protocol: none
10+
11+
A self-hosted runtime's install door stops an install `409` for three decisions, one at a time: uniques the package declares installation-wide under the `isolated` posture (`UNIQUE_SCOPE_CONFIRMATION_REQUIRED`), then an upgrade that would change what access choices made in this system cover (`ACCESS_UPGRADE_CONFIRMATION_REQUIRED`), then an upgrade that renames or retypes stored fields (`SCHEMA_UPGRADE_CONFIRMATION_REQUIRED`). The console confirmed only the last, on the package page; the CLI confirmed all three. An install stopped for either of the first two failed in the console with no way forward.
12+
13+
- **Package page, local Install.** The confirm in front of Install opens again for each of the three refusals in turn, lists that refusal's findings, and says this runtime asks for the confirmation. Uniques and access findings are listed in the runtime's own sentence, the one the CLI prints. Its button (**Confirm rules and install**, **Confirm findings and update**, or **Confirm changes and update**) sends the install again with every confirmation given so far: the listed unique ids as `confirmGlobalUniques`, the access token as `confirmAccessUpgrade`, the schema token as `confirmSchemaUpgrade`. A confirmation is recorded only when the install goes through, so a later refusal's resend still carries the earlier ones. A refusal that lists nothing to confirm says the install cannot be confirmed from the console. Cancelling installs nothing, and opening the confirm again from the page starts over.
14+
- **Catalog org card.** Its Install opens its own confirm for the same refusals and installs again with them confirmed. On a hosted environment the card confirms a schema upgrade, its token sent as `confirm_schema_upgrade`, the one confirmation the tenant-runtime door forwards; a uniques or access refusal there keeps the door's message.
15+
16+
Nothing to migrate.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
'@objectstack/spec': patch
3+
---
4+
5+
Clause-②: no
6+
Metadata-protocol: none
7+
8+
Text in `@objectstack/spec` now calls the authoring surface by its name, App Studio, where 39 lines in 15 `*.zod.ts` files still said the retired "Studio" (ADR-0084, 2026-11-26 amendment, decision 2). 28 are schema descriptions. 10 are the sentences of parse refusals and unknown-key guidance, so a tool that matches refusal text sees new wording: the `history` refusal (`data/object.zod.ts`), the `viewItems` refusal (`stack.zod.ts`), the unknown-key guidance of `studio/plugin.zod.ts`, the retired-key messages of `system/email-template.zod.ts`, and guidance in `ui/app.zod.ts` and `ui/view.zod.ts`. One is the description of a default metadata route (`api/plugin-rest-api.zod.ts`). The generated JSON schema and reference docs carry the new wording. Only prose changes: no key, type name, identifier or `/studio` address moves, and every refusal fires on the same input, at the same path, with the same code.

‎content/docs/automation/flows.mdx‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1833,6 +1833,28 @@ ones above: chain the steps onto one branch, make the branch that pauses the
18331833
last one the node takes, or republish the child flow without a step that
18341834
pauses.
18351835

1836+
**Declined at activation when the child is already registered.** When a
1837+
flow's trigger activates it, the engine asks the same two questions with a
1838+
`subflow` or `map` whose child flow it holds counted as a step that pauses (a
1839+
child reaching an `approval`, `approval_revise`, `screen` or `wait` from its
1840+
start, or calling a flow that does), of the flow itself and of every flow its
1841+
calls reach, at any depth: a reusable child that holds the shape declines the
1842+
triggered flow that calls it, even though the child has no trigger. A flow of either shape still registers and
1843+
saves, but its trigger is not armed: `GET /api/v1/automation/_status` reads
1844+
`bound: false` with `unboundCause: suspending_subflow_on_branch` and a reason
1845+
naming the branching node, the call and where its child pauses (and, when the
1846+
shape is in a called flow, that flow and the calls that lead to it), and the engine
1847+
logs one `warn`. For a `decision` that declares conditions but no fallback edge,
1848+
the reason says so and names the fix that keeps the routing: mark one branch
1849+
edge `isDefault: true`. The question is asked again whenever a flow its calls
1850+
reach is registered: the flow arms the moment the shape or the child changes,
1851+
and an armed flow is un-armed when a child or grandchild it calls is registered,
1852+
or republished, with a step that pauses. Only the run-time error above meets a
1853+
run started without a trigger. A call inside a region body keeps its own cause,
1854+
`suspending_subflow_in_region`, judged one level deep: a region failure is
1855+
always immediate and an error-handler edge can route it, while a branch failure
1856+
in a child can arrive after the parent has paused, where nothing routes it.
1857+
18361858
### Batch approval — a `map` node, one item at a time
18371859

18381860
"Sign off **every** task in the release, in turn" is a **`map` node**: it runs a

0 commit comments

Comments
 (0)