Skip to content

Commit 6f1e735

Browse files
committed
merge: origin/main into claude/issue-37440-draft-publish-pins
The guard's draft pin (rule 10, the draftStillAt classification, isPublishDraftMoved, draftReceiptVersion) moves with the guard into draftVersionGuard.ts; the dialog re-exports the new names and keeps the header rule and the hook's stable heldDraftVersion. Claude-Session: https://claude.ai/code/session_01L6bhgWAbKPqt7vTgX5qgUn Co-authored-by: Claude <noreply@anthropic.com>
2 parents 08d6fec + 758e145 commit 6f1e735

186 files changed

Lines changed: 6980 additions & 990 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: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
'@objectstack/scenarios': patch
3+
---
4+
5+
fix(scenarios): the order_to_cash card's English title is 126 characters, under the 128-character displayName cap
6+
7+
Clause-②: no
8+
Metadata-protocol: none
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 UI skill says a default or create form an action opens by name still loads and is not reported
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
objectstack-ui `rules/list-views.md` "Form Views" said `os validate` warns `form-view-internal-not-loaded` on every container `form`, `formViews.default` and `formViews.create`. The rule leaves out one that a `type: 'form'` action's literal `target` names, because the Console still loads that form where the action opens it. The passage now says so, and that such a form loads as a named form. The list of what an internal form no longer steers (sections, tabs, steps, `subforms`, `defaults`, `modalSize`) is dropped to pay for the new words: the file stays at its token ceiling and its line count is unchanged.
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
'@objectstack/spec': minor
3+
'@objectstack/runtime': patch
4+
'@objectstack/mcp': patch
5+
'@objectstack/lint': patch
6+
'@objectstack/metadata-core': patch
7+
'@objectstack/platform-objects': patch
8+
'@object-ui/core': minor
9+
'@object-ui/types': patch
10+
'@object-ui/components': patch
11+
'@object-ui/fields': patch
12+
'@object-ui/plugin-form': patch
13+
'@object-ui/plugin-detail': patch
14+
'@object-ui/plugin-grid': patch
15+
'@object-ui/plugin-kanban': patch
16+
'@object-ui/plugin-calendar': patch
17+
'@object-ui/plugin-list': patch
18+
'@object-ui/i18n': patch
19+
'@object-ui/app-shell': patch
20+
---
21+
22+
feat(spec,ui): a field can be read-only by hand at the console while actions, imports, the API and flows keep writing it (`uiReadonly` / `uiReadonlyWhen`)
23+
24+
Clause-②: yes (widening: two new optional authorable keys `Field.uiReadonly` and `Field.uiReadonlyWhen`)
25+
Metadata-protocol: added
26+
Skills-docs: follow-up #37405
27+
28+
A status column that only moves through actions, or a field an integration fills, used to have no honest declaration: `readonly: true` also strips every client write, so the action, the import and the API lost the field too. Fields now carry two lock tiers:
29+
30+
| | server lock: no client writes | hand lock: no person edits at the console |
31+
|:--|:--|:--|
32+
| always | `readonly` | `uiReadonly` |
33+
| conditional | `readonlyWhen` | `uiReadonlyWhen` (CEL, the same scope as `readonlyWhen`) |
34+
35+
- **`uiReadonly: true` / `uiReadonlyWhen`.** These console surfaces lock the field: the create and edit dialogs (the field is left off them and out of the payload they submit, so a create from the console lands on the field's `defaultValue`, and a `required` field therefore needs one), the record page's inline edit and stage path, the highlight-strip chip, grid inline edit and its multi-row save, kanban drag between columns grouped by the field, calendar drag, and the line-item grid (a `uiReadonly` child field is not a derived column, and an authored column over it is locked; a `uiReadonlyWhen` one locks its cell per row). The Gantt, the timesheet cell, the kanban swimlane drag and the in-app assistant do not read the keys yet. The engine never reads either key, so REST, import, declarative and script actions, and flows write the field, and the object's validations (a `state_machine`, for one) judge each write.
36+
- **`uiReadonlyWhen` is judged on an existing record only** (the create dialog does not read it, nor does a new line-item row), over the host's predicate scope on every surface. Grids and list views fetch the operands of a shown or dragged field's lock predicates. A predicate that cannot be evaluated LOCKS the field (no server judges the hand lock), the edit dialog refuses to submit until it is fixed, and `os validate` checks it as it checks `readonlyWhen`.
37+
- **Refused: `uiReadonly: true` beside `readonly: true`** (at `['uiReadonly']`, at every door that parses a field: `defineStack`, `os validate`, metadata save). Keep one: `readonly` when no client may write the field, `uiReadonly` when people at the console may not. `uiReadonlyWhen` beside `readonlyWhen` is accepted.
38+
- **Kanban: a `readonly` lane field no longer drags.** The board read no field lock before, so a card grouped by a `readonly` field could be dragged and its PATCH was silently stripped. The board now reads both locks.
39+
- **`@object-ui/core` exports the one verdict:** `fieldReadOnlyByHand(def, record?, context?)`, `fieldStaticallyReadOnlyByHand(def)`, `fieldHasConditionalHandLock(def)`. `resolveFieldRuleState` takes `uiReadonlyWhen` in its rules and `uiReadonly` in its statics. The import wizard's target mapping and the Studio/designer reads stay on the raw `readonly`.
40+
- **MCP `describe_object`** reports `uiReadonly` and `uiReadonlyWhen` as their own keys where set (never folded into `readonly`, which tells an agent to leave the field out of a write), on the HTTP and the stdio transport, and the tool description names them.
41+
- **Censuses and Studio.** The FLS reference scrub classifies both keys (`@objectstack/metadata-core`: `uiReadonly` kept, `uiReadonlyWhen` an expression position). A caller denied a field the `uiReadonlyWhen` reads is served the field with `uiReadonly: true` in place of the predicate, so the lock never opens for them. The Studio field form offers both rows beside Read-only and Read-only when, with their labels and help translated in every metadata-forms locale pack (`@objectstack/platform-objects`).
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-platform names the `arrangements` list of the package customizations read
6+
7+
Clause-②: no (published prose only; names a list the read already returns on main)
8+
Metadata-protocol: none
9+
10+
`GET /packages/<base>/customizations` answers an `arrangements` list beside its overrides, extensions and switched-off items: one `{ object, key }` entry per object and whole arrangement (`fieldGroups`, `relatedLists` or `actionLayout`) the pair's object extension writes, with no content and no diff against the base. The `objectstack-platform` sentence that teaches this read now names it. The words are paid for in the same file by cutting four restatements: that the only template is the default, that the bundled template comes with `create-objectstack`, that the default auth mount is `/api/v1/auth`, and that the platform-app plugins load after `AuthPlugin` in a list already in boot order.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
'@objectstack/spec': patch
3+
'@objectstack/platform-objects': patch
4+
'@object-ui/types': patch
5+
'@object-ui/plugin-list': patch
6+
'@object-ui/app-shell': patch
7+
---
8+
9+
fix(i18n): the compact toolbar hint says the same thing in every language
10+
11+
Clause-②: no
12+
Metadata-protocol: none
13+
14+
The `compactToolbar` hint in Studio was reworded in English to say that the compact toolbar draws no Refresh button, so `userActions.refresh` governs only the wide toolbar. The ten translated hints (ar, de, es-ES, fr, ja-JP, ko, pt-BR, ru, zh-CN, zh-Hant) and the console's zh-CN overlay still carried only the old first sentence. They now carry the whole hint.
15+
16+
Each translation names the popover by its own locale's label for the "View settings" button (`list.viewSettings`).
17+
18+
The `compactToolbar` jsdoc in `@object-ui/types` and the `@object-ui/plugin-list` README describe the View settings popover as it is: the view's name, its columns, and Layout, Group, Row height and Row color where offered, with Save, Restore defaults and Export in its footer. Neither lists Refresh there any more: Refresh is a wide-toolbar button only. The view liveness ledger's `userActions` note points at the current `toolbarFlags` lines.
19+
20+
Text only: no schema, key or behaviour change.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'@objectstack/skills': patch
3+
---
4+
5+
docs(skills): objectstack-data names `actionLayout` among the keys only the paired `.custom` extension writes, and objectstack-automation says an option label in a flow filter or edge condition is refused
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
objectstack-data: the sentence on what only the pair's object extension writes listed `fieldGroups` and `relatedLists`; it now names `actionLayout` too, with a pointer to objectstack-ui, where the key is taught, and says what differs for that key: it replaces each arm it writes, and outside a `.custom` package an action is placed by its own `locations` and `order`, not by `place`. Paid for in the same file by trimming three Quick Reference lines that repeated what the body says (naming, field types, "partial indexes").
11+
12+
objectstack-automation: the trap sentence said a label in a `filter` or an edge `condition` "is never checked". `flow-condition-option-label` now reads those positions, so the sentence says they are refused at publish like a start condition (where the field's options are inline), and that a filter for rows still holding the label takes a CEL envelope operand. Text only; no ceiling of the skills token ratchet moves.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
'@object-ui/plugin-kanban': patch
3+
'@object-ui/i18n': patch
4+
---
5+
6+
fix(kanban): a list view board whose lanes come from the data counts and totals each whole lane, and a board laned by a lookup draws a lane whose records all sit past the first page
7+
8+
Clause-②: yes (widening) — @object-ui/i18n kanban.notLoaded
9+
Metadata-protocol: none
10+
11+
A list view hands its board one page of records when it cannot know the lanes before the query: the lane field has no options (a lookup, or a text, number, boolean or date field). That board's lane header count and a foot `count` counted the page with no `+`, its `summarizeField` header total summed the page, and a lane whose records all sat past the first page was not drawn.
12+
13+
- The board's one grouped lane read (`DataSource.queryGroupHeaders`, the read that already answers its `sum`, `avg`, `min` and `max`) now also asks each lane's record count and the `SUM` of the view's `summarizeField`, and is asked whether or not the view draws a lane statistic. It is still one read per board, never one per lane.
14+
- Each lane header and a foot `count` read the whole lane's count, and the header total reads the whole lane's sum, printed without binary residue (`0.3`, never `0.30000000000000004`), as the page's total is. The foot `sum` gets the same rounding. The trailing "Uncategorized" lane, when it is drawn, reads its whole count and total too.
15+
- On a board laned by a lookup (a field that names the object it references), the read's groups name every lane, so a lane whose records all sit past the page is drawn after the page's lanes, titled by its referenced record, and says how many cards it did not load (new string `kanban.notLoaded`, in every locale). A board laned by any other field draws the page's lanes only.
16+
- Over a source without that door, a refused read or a cut answer, the counts and the header total are the page's, marked `+`, and no lane past the page is drawn.
17+
- Unchanged: the swimlane layout, and an "Uncategorized" lane whose records all sit past the page, which is still not drawn.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'@object-ui/console': patch
3+
---
4+
5+
fix(console): a bulk approve or reject that finishes after leaving the Approvals Inbox opens its failed rows back on the inbox
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
A bulk run keeps going when the decider leaves the Approvals Inbox. When it finished after the page had closed, it raised its "N succeeded, M failed" toast with a "Show all (M)" button that opened nothing, because the dialog it opened belonged to the closed page.
11+
12+
Now that button takes the decider back to the inbox the run started on and opens the list of that run's failed rows, each with its reason. A run that finishes while the inbox is still open works as before: "Show all" opens the list in place. A run that finishes after the page closed no longer reloads the closed page's list or badge count. Nothing to migrate.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
'@object-ui/types': patch
3+
'@object-ui/core': patch
4+
'@object-ui/app-shell': patch
5+
---
6+
7+
feat(console): a refusal that names several reasons lists every one in its alert box
8+
9+
Clause-②: yes (widening)
10+
Metadata-protocol: none
11+
12+
The widening: `@object-ui/types` adds the export `ActionRefusalLine` and the optional member `ActionResult.refusals`, and `@object-ui/core` adds the optional member `ActionResponseOutcome.refusals`. Nothing is narrowed; every package ships `patch`.
13+
14+
- **Every reason is shown.** When a refusal names several reasons (the server answers each reason's sentence on `error.details.refusals`), the action dialog's refusal box lists every reason in the order the server sent them, then the refusal's closing sentence, with no "More" toggle hiding any of them. A refusal without such a list renders as before.
15+
- **The reasons come from the list, not from the text.** The closing sentence is read from the end of the refusal text only when that text still starts with exactly the listed reasons; when the text was cut short, every reason is still shown and the closing sentence is left out.
16+
- **New: `ActionResult.refusals`** (`@object-ui/types`, with its element type `ActionRefusalLine`) **and `ActionResponseOutcome.refusals`** (`@object-ui/core`): the reasons a failed result's refusal listed, read from the `/actions` response by `interpretActionResponse` and set by the server action handler beside `userMessage`. `RefusalMessage` (`@object-ui/app-shell`) takes them as `lines`.
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+
'@object-ui/console': patch
4+
'@objectstack/console': patch
5+
---
6+
7+
perf(console): an object list and a record page no longer load the Studio designer's string table on first paint
8+
9+
Clause-②: no
10+
Metadata-protocol: none
11+
12+
Opening an object list or a record page downloaded the Studio designer's English string table (about 69 KB gzipped) and the designer's header and Customize controls with it, before the page could paint, for every user, designer or not. The running app's save paths that load with those pages (a list's view save, the record page's tabs and arrangement saves, the header-pin save) read small pure helpers that lived inside the designer's component modules, and importing a helper loaded the whole module.
13+
14+
Those helpers now live in modules of their own, so each page's first load is about 94 KB gzipped lighter on the Console build this was measured on. Nothing changes in what the pages show or save: every name is still exported from where it was, and the designer loads its string table when it opens, as before.

0 commit comments

Comments
 (0)