Skip to content

Commit 40f4e27

Browse files
committed
Merge remote-tracking branch 'origin/main' into claude/issue-36401-i18n-skill-keys
2 parents cd69066 + 159113f commit 40f4e27

77 files changed

Lines changed: 4193 additions & 557 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: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@objectstack/scenarios': patch
3+
---
4+
5+
fix(scenarios): a namespaced card prefixes each operation's `via` the way it prefixes the agent action it names
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
`namespacedScenario` prefixed `run.agentActions[].name` with the card's namespace but copied `run.operations[].via` bare, so the persona-grant check never found the routed action a build declares (`decide_approval_step` against `demoleave_decide_approval_step`) and failed builds that route the decision through the card's own action. The namespaced card now carries `via` prefixed, and the loader's rule (a `via` is one of the card's agent actions on the operation's object) holds on it as on the plain card.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@objectstack/skills': patch
3+
---
4+
5+
docs(skills): the data skill says a lookup pick copies a currency amount only between fields in the same currency
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
`skills/objectstack-data` described `lookupAutofill` (`rules/field-types.md`) and the line-item grid's catalog auto-fill (`rules/relationships.md`) as unconditional copies. The first now states, and the second points to, the rule the platform applies to a declared pair and to the line-item grid's same-named `autofill` copy: a `currency` amount is copied only between fields in the same currency (a `fixed` code or a per-record one); otherwise the target is left as it was and the form says why. Nothing is converted, so a line in another currency takes its price by hand. The sentence is paid for in the same file by trimming type-table cells that only restated the type name. No behaviour changes.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@objectstack/skills': patch
3+
---
4+
5+
docs(skills): objectstack-ui teaches the board's lane statistic and card settings
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
The kanban example in `rules/list-views.md` now writes `kanban.summary` in place of the older sum-only `summarizeField`, and sets `showFieldLabels` and `hideEmptyFields` with their defaults (both `true`). One note names the six lane statistics (`none`, `count`, `sum`, `avg`, `min`, `max`), says the four aggregates cover every record of the lane and not only the loaded cards, names the known gap (a board over a lookup field or in a grouped view), and says `summary` takes precedence over `summarizeField`. Text only; restating comments and sentences in the same file are cut to pay for it.
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+
---
4+
5+
fix(studio): the object extension, hook, action and flow Saves no longer publish over another admin's live change
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
Studio's top-bar Save writes an item's draft and then publishes that one item. The object page pinned that publish to the published row it was loaded at, but the other editors that save this way did not: two admins who opened the same object extension, hook, pair action or flow each passed the draft check, and the later Save replaced the earlier one's live change without a word.
11+
12+
Each of those editors now reads the published version at the address its publish writes (the `/layers` read's `overlayVersion`) where its buffer is loaded, and its Save's publish sends it as `If-Match` (`If-None-Match: *` where nothing is published there yet). When another writer published since, the Save opens the same dialog the object page shows for a live change: reload re-reads the live item, overwrite (after a confirmation) publishes over the version the refusal names, and keep editing leaves the edits on the page, unsaved. The flow's on/off switch is pinned the same way. Creating a new hook, pair action or flow publishes with `If-None-Match: *`, so a same-named item another writer published first is refused instead of replaced. No dialog wording or locale key changes.
13+
14+
A reload over a draft that was pending before the Save (a copilot's) now keeps the publish pinned to the version the conflict was raised on: the reload re-reads that draft, which carries the page's edits, and the next Save is asked again instead of publishing it over the row that moved. An overwrite, a publish that lands, or a load that finds no pending draft ends that hold. This applies to the object page too.
15+
16+
A server that serves no `overlayVersion` gets an unpinned publish, as before. Nothing to migrate.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
---
4+
5+
fix(console): a design-mode menu rename in the source language over an inline locale-map label keeps the other languages
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
A menu entry's label can be written as an inline locale map, for example `{ en: 'Orders', 'zh-CN': '订单' }`. The menu is served with that map as it is stored, so a rename typed in the app's source language goes to the stored label, and the save used to write the new name as a plain string over the whole map: every other language's text was lost from the app. The save now replaces only the entry the editor showed for the session language (`{ en: 'Sales orders', 'zh-CN': '订单' }`), adds that entry when the map has none, and a cleared name drops only that entry. The entry is chosen the way Studio's navigation editors choose it. A plain-string label is replaced by the typed name as before, and where a rename lands (the stored label or a translation) is unchanged.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
'@object-ui/i18n': patch
4+
'@object-ui/data-objectstack': patch
5+
---
6+
7+
feat(studio): the generic item page's Save takes effect at once; an AI draft gets the designers' notice and discard
8+
9+
Clause-②: yes (widening)
10+
Metadata-protocol: none
11+
12+
Studio's generic item page saves the way the designers do. Save writes the item's draft and then publishes that one item (`POST /meta/:type/:name/publish`, at the same package and bundle member), so the change is live at once and there is no second Publish step. The draft save keeps its version pin and conflict dialog, and the publish is now pinned to the published version the page loaded: when another editor published the item in between, the same dialog asks to reload, overwrite or keep editing. A create publishes right after its first save. The auto-save switch is gone, and edits wait for Save, ⌘S or the destructive-change confirmation.
13+
14+
A refused publish shows its reason above the editor in the designers' words, with the server's text under Details. Nothing goes live, the draft the Save wrote is taken back, and the edits stay on the page, unsaved.
15+
16+
A pending draft written by the AI assistant (the copilot or an MCP client) is the version on screen, under the designers' line: saving makes it live too, and "Discard AI changes" drops that one item's draft, asking first when the page holds unsaved edits. A pending draft a person wrote before this change is marked "This item has unpublished changes", with its own Publish and Discard for that item. The header's Publish and discard buttons are gone.
17+
18+
Leaving the page with unsaved edits still asks first through ×, ‹ ›, the side menu, in-app links, reload and close. The browser's Back is not intercepted.
19+
20+
`@object-ui/data-objectstack`: the exported `MetadataLayered` type gains an optional `overlayVersion` member (`string | null`), and `MetadataClient.layered()` now forwards the served `overlayVersion` into it. The client used to rebuild its answer field by field and drop it, so a Studio Save's publish was never pinned on a server that serves it.
21+
22+
Locale keys `engine.edit.unpublishedChanges` and `engine.edit.unpublishedPublishDirty` are new, and `engine.edit.autoSaveOn`, `engine.edit.autoSaveOff` and `engine.edit.autoSavingShortly` are removed (en, zh). The per-browser `metadata-admin:autosave` setting is no longer read. No metadata changes; nothing to migrate.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@object-ui/plugin-dashboard': patch
3+
---
4+
5+
fix(plugin-dashboard): a dashboard that declares `gap: 0` is drawn with no gap
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
The dashboard renderer read the declared `gap` as `schema.gap || 4`, so a declared `gap: 0`, which the spec admits (`min(0)`), fell through to the default and widgets an author wanted flush were drawn 1rem apart. It now reads `schema.gap ?? 4`: only an absent `gap` takes the default of 4 (1rem), and a declared zero draws the grid with no gap. The design-mode resize handle, which measures a span from the same gap, uses the declared zero too.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
'@object-ui/fields': patch
3+
'@object-ui/plugin-list': patch
4+
---
5+
6+
fix(plugin-list): a gallery card labels and formats a formula or summary column whose result is a number, an amount or a percentage
7+
8+
Clause-②: yes
9+
Metadata-protocol: none
10+
11+
A gallery card, which is also how a phone draws a related list's rows, now gives a `formula` or `summary` column the same treatment as a stored number when its result is a number, an amount or a percentage: the field's label before the value, and the format the related-list table gives the same field. A `returnType: 'currency'` formula reads `Total 12,000.00` on the card, as it does in the table. Before, it read a bare `12,000` beside `Unit price 6,000.00`, so the reader could not tell what the figure was. A summary declaring its `currencyConfig` reads as money in the same way. A formula whose result is text stays unlabeled, as a text field does.
12+
13+
The card's field builder now hands the cell `returnType` and `currencyConfig`, the two declarations the related-list table's builder already hands it. A plain `currency` field with a fixed `currencyConfig` therefore also shows its own currency on a card instead of the tenant default.
14+
15+
`@object-ui/fields` exports `resolveFormulaValueType(field, value)`, the rule the formula cell uses to choose how it draws a result. The formula cell now calls it, and so does the card's label decision, so the two cannot disagree.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@object-ui/console': patch
3+
---
4+
5+
fix(console): a signed-in open asks `GET /api/v1/i18n/locales` once, not twice
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
The console has two readers of the locale list: the globe menu's locale codes (`loadLocales`) and the language load, which reads the server's declared fallback chain beside the active language's bundle (objectstack#36809). Each sent its own request, so every signed-in page open asked the server the same question twice. Both now share one answer per page load (`localesRead.ts`), and a language switch reuses it too. A failed read is not kept, so the next reader asks again, as before.

‎packages/qa/scenarios/src/runner/namespace.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ export function namespacedScenario(scenario: LoadedScenario): LoadedScenario {
9292
operations: c.run.operations.map((op) => ({
9393
...op,
9494
object: o(op.object),
95+
// `via` names one of the card's agent actions, which carry the prefix below: a bare `via`
96+
// would never match the action the build declares.
97+
...(op.via !== undefined ? { via: o(op.via) } : {}),
9598
outcome: op.outcome.kind === 'applied' ? { ...op.outcome, state: op.outcome.state.map((s) => ({ ...s, object: o(s.object) })) } : op.outcome,
9699
})),
97100
guardrails: c.run.guardrails.map((g) => ({

0 commit comments

Comments
 (0)