Skip to content

Commit 55478e2

Browse files
committed
Merge origin/main into claude/project-thread-l8wnbr
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5ni5yjiTswP6crgAkX
2 parents 68effe3 + 9a9823d commit 55478e2

126 files changed

Lines changed: 5887 additions & 599 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: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
'@object-ui/plugin-list': patch
3+
'@object-ui/permissions': patch
4+
---
5+
6+
fix(plugin-list): the list toolbar offers the "In a queue" toggle only when the organization has at least one queue
7+
8+
Clause-②: yes (widening)
9+
Metadata-protocol: none
10+
11+
The "In a queue" toggle showed on every list of an owned object, because the platform adds the `queue` column to every such object. In an organization with no queue it could only ever return an empty list. It now appears when both of these hold:
12+
13+
- **The object carries the platform's `queue` column**, as before.
14+
- **The session says the organization has a queue.** `GET /auth/me/permissions` answers `hasAnyQueue` (true when the organization has a declared queue or a `sys_queue` row). The console already reads that answer once per session, so opening a list sends no new request and reads no queue list.
15+
16+
When the answer is unknown (no permission provider is mounted, the role-based `PermissionProvider` is used, or the session is anonymous), the toggle stays hidden. Turning the toggle on filters exactly as before, and the server's queue behaviour (claim, release, the read rule) does not change.
17+
18+
`@object-ui/permissions`: `PermissionContextValue` gains one optional member, `hasAnyQueue?: boolean`. `MePermissionsProvider` sets it from the authenticated answer. It is `undefined` with no answer.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
'@object-ui/layout': patch
4+
---
5+
6+
feat(app-shell): a phone record page draws one bar, its own top bar, and the record's name once
7+
8+
Clause-②: yes (widening)
9+
Metadata-protocol: none
10+
11+
Below 768 px a console record page drew two bars at its top: the app bar (sidebar trigger, app, the record's name, search, notifications, account) and, under it, the record page's own top bar (「‹ <object plural>」 and the counter with ↓ ↑). The record's name showed twice, once in the app bar and once as the header title right below it.
12+
13+
- **One bar on a phone record page.** Below 768 px the console mounts no app bar on a record route (`/apps/APP/OBJECT/record/ID`, and the same record on a named record page, `.../page/PAGE`). The record page's top bar is the page's one bar, and the record's name shows once, as the header title.
14+
- **The four doors stay on the root routes.** The app menu, search, notifications and the account menu stay in the app bar on every other route: the object's list, home, dashboards, the record's edit form. A phone record page reaches them through its 「‹」 link, one tap. No menu is added to the record bar, and there is no bottom navigation bar.
15+
- **A record page that cannot show its record keeps its 「‹」 bar on a phone.** While it loads, and when the record is not found, the read is refused or fails, the object is unknown, the named page is not one of the object's record pages, or the viewer's approval access has ended, the page draws the same back bar above that state, so a deep link always has a way off the page.
16+
- **768 px and up is unchanged.** Every route keeps the app bar, and a record page that cannot show its record draws no extra bar.
17+
- **`AppShell` gains `showHeader`** (`@object-ui/layout`, optional, default `true`). `showHeader={false}` draws no `<header>` element and does not mount `navbar`. Leaving it out renders exactly as before, including a shell with no `navbar`, which still draws its empty bar.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
'@objectstack/spec': minor
3+
---
4+
5+
feat(spec): an action's confirm and param dialogs can name their dismiss button — `cancelText`
6+
7+
Clause-②: yes (widening)
8+
Metadata-protocol: added
9+
10+
`ActionSchema` gains one optional key, `cancelText`: the label of the dismiss button on the dialog an action opens before it runs. The button says "Cancel" today for every action. That reads badly when the action's own verb is "Cancel …" or "Close …": a "Cancel Invitation" confirm whose two buttons read "Cancel" and "Cancel Invitation" leaves the user unable to tell which one keeps the invitation. With the key, the action names what dismissing keeps. An action that does not declare it parses exactly as before.
11+
12+
```ts
13+
defineAction({
14+
name: 'cancel_invitation',
15+
label: 'Cancel Invitation',
16+
objectName: 'sys_invitation',
17+
type: 'api',
18+
target: '/api/v1/auth/organization/cancel-invitation',
19+
confirmText: 'Cancel this invitation? The recipient will no longer be able to accept it.',
20+
cancelText: 'Keep invitation',
21+
});
22+
```
23+
24+
- **An `I18nLabel`.** A plain string or an inline locale map (`{ en, 'zh-CN' }`). A blank string is refused at parse: `''` or whitespace only. Omit the key to keep "Cancel". `cancelLabel` (the same button's spelling on the console's `form` and `alert-dialog` renderers) is refused with a rename to `cancelText`, on the action and in a translation bundle.
25+
- **Either pre-run dialog.** It labels the dismiss button of the confirm dialog a param-less action with `confirmText` opens, and of the param dialog an action with a non-empty `params` opens, beside that dialog's `submitText`. An action that declares neither opens no dialog, so `cancelText` there is refused at parse, naming the key.
26+
- **Translated like `submitText`.** The slot is `objects.OBJECT._actions.ACTION.cancelText` (`globalActions.ACTION.cancelText` for an action with no `objectName`). `translateAction` overlays it for an action that opens either dialog, and never gives a button to an action that opens none.
27+
- **The name.** `cancelText` is the protocol's existing word for a dismiss button's copy: the `object-form` component's `cancelText`, beside its `submitText`.
28+
29+
Nothing draws the key yet. The console's confirm and param dialogs read it in a follow-up change. Until then the liveness ledger marks it `planned` with `authorWarn`, so `os validate` warns an author who declares it that the button still says "Cancel".
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
'@object-ui/core': patch
3+
---
4+
5+
`SPEC_ACTION_KEYS` lists `cancelText`, the key `@objectstack/spec` adds to `ActionSchema` for the dismiss button label of an action's confirm and param dialogs. An action that carries it is not counted as having an unknown key, and the inventory pin stays green.
6+
7+
Clause-②: no
8+
Metadata-protocol: none
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
'@objectstack/lint': patch
3+
---
4+
5+
`validateTranslationReferences` judges an action translation's new `cancelText` key (`@objectstack/spec`'s dismiss label of an action's confirm and param dialogs). Under an action that declares neither `confirmText` nor `params`, at `objects.OBJECT._actions.ACTION.cancelText` or `globalActions.ACTION.cancelText`, it reports `translation-target-unknown` at `error`: such an action opens no dialog, so nothing reads the label. Under an action that declares either the key is accepted.
6+
7+
Clause-②: no
8+
Metadata-protocol: none
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
'@object-ui/i18n': patch
4+
---
5+
6+
feat(studio): add a field to a read-only base object, written as an extension in its customization pair
7+
8+
Clause-②: no
9+
Metadata-protocol: none
10+
11+
- **Before.** In Studio's Data pillar, a base object of an installed (read-only) package offered no Add field: the grid "+" and the Form toolbar's add were hidden with the rest of the read-only package, and the field inspector locked every property. The only way to add a field was to take the object over.
12+
- **Now.** On a base object of a read-only base with a customization pair, Add field is offered in the Form toolbar and the grid "+". Create ensures the pair `<base>.custom` (once, without a prompt) and writes an `object_extension` draft of the object into the pair through the `/api/v1/meta` doors. The base object's own body is never sent. The popover shows the api name with its `__c` suffix before Create, a typed name is suffixed too, and the taken-name refusal covers the fields of the object as shown, a published extension's fields included. The new field shows in the form at once and its inspector edits the extension; it joins the Records grid's columns once published, like any draft field.
13+
- **Base fields.** Selecting one of the package's own fields opens the inspector with only `BASE_FIELD_DISPLAY_WHITELIST` editable (label, description, help text, placeholder, option labels), read from the spec constant, under one sentence naming them. An edit is written as the field's `fieldPatches` entry in the extension, and clearing a property drops it from the patch so the package's text shows again. Every other property draws read-only.
14+
- **Refusals and walls.** A refusal from the ensure door or the save is shown in the server's own words. Under a walled posture the Add field action draws disabled with the console's walled sentence.
15+
- A writable package's add-field and inspector are unchanged.
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+
`ConnectorConnectionState.status`'s docblock no longer says `reconnect_required` means only that the authorization server refused the grant. It now names every way the grant stops working: the authorization server refused it on refresh, the connection keeps nothing to renew an expired access token with (no refresh token was issued, or no client to refresh with), or the upstream refused the connection's token while an `mcp` instance discovered its tools; `statusReason` says which. Comment only; no behaviour change.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
'@object-ui/i18n': patch
4+
---
5+
6+
fix(app-shell): the Studio RLS editor stops offering CHECK on a select or delete policy, flags a policy with no predicate, and a refused save shows the server's own explanation
7+
8+
Clause-②: no
9+
Metadata-protocol: none
10+
11+
On a permission set's Row-level security tab, a policy whose operation is `select` or `delete` still offered the CHECK box. A CHECK typed there read "Valid CEL", and the autosave was then refused 422 at `rowLevelSecurity.N.check`. An empty USING behaved the same, refused at the policy itself. The banner showed only the refusal's headline (`rowLevelSecurity.0.check [custom]`), never the server's explanation.
12+
13+
- **CHECK on select / delete.** A blank CHECK is not offered on an operation that admits none; a short note stands in its place. A CHECK that is already written stays visible, with the spec's refusal under it word for word, and no "Valid CEL". Nothing the author wrote is removed.
14+
- **No predicate.** A policy with neither USING nor CHECK shows the spec's refusal under USING.
15+
- **Judged by the spec.** Both findings come from `RowLevelSecurityPolicySchema` itself, not from a rule restated in the editor. While one remains, the autosave holds and the status line says why, since the door would refuse that save.
16+
- **A refused save.** The banner now prints each issue's own message: one on a policy reads on that policy's row ("Not saved. Policy on row 1: …"), and one elsewhere follows the door's headline at its path. A refusal with no issues keeps the door's text, as before.
17+
- **Unchanged.** The server, its 422 and the spec.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
'@objectstack/skills': patch
3+
---
4+
5+
docs(skills): objectstack-platform says a locale added in the `.custom` pair is served on the base's address, and a locale a dependent adds under the base's name stays under its own package
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
- **Before.** The ADR-0146 customization paragraph said a locale the base does not ship is added in the pair without `overrides`, and stopped there: nothing said where that added locale is served, and nothing said what a dependent package's added locale under the base's name reaches. The reads of a base's address now decide an email template member by member, so an author could expect the pair's added locale to stay under `hotcrm.custom` only, or a dependent's to answer on the base's address.
11+
- **Now.** One sentence beside that rule: the base's address serves the pair's added locale too (both lists, the execution list, a send in that locale), and a locale a dependent adds under the base's name is served only under its own `?package=`, never by a base-named or package-less read. The file stays under its token ceiling: the sentence is paid for by tightening four restating clauses elsewhere in the file (one intro clause, one explanatory aside, one restated driver rule, one filler template bullet). No rule is removed, no frontmatter, schema or behaviour changes.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
'@objectstack/metadata-protocol': patch
3+
---
4+
5+
fix(metadata-protocol): the per-package layer stamps a row with its own package's envelope, never another package's (#28831)
6+
7+
Clause-②: no — the stamp is on the per-package layer (`getMetaItemsPerPackage`), which no door serves as it is: the package export drops every `_`-prefixed key, and the anonymous form doors' withdrawal judgement matches by view name. No accept set, export or served answer moves.
8+
Metadata-protocol: none
9+
10+
`getMetaItemsPerPackage` seats each stored row under its own package, and the #22024 envelope graft looked up the item's artifact at that package. When the package ships no artifact of the name, the artifact lookup falls back to the first code package that does, so a dependent package's row, or a `.custom` pair's undeclared row, under a base item's name read the base's `_packageId`, `_packageVersion` and `_provenance`.
11+
12+
- **Now.** On the per-package layer an item bound to a package wears its own package's artifact envelope, or none.
13+
- **Kept.** A `.custom` pair's declared override keeps the base's envelope it is served under, judged by `isServedOverrideRowOf` on the row's own `package_id` at the item's bundle member. An item bound to no package keeps the lookup's answer.
14+
- **Unchanged.** The artifact lookup (`registry.getArtifactItem` and its fallback) for every other caller, and every other read: the effective list, the by-name read and the execution list.

0 commit comments

Comments
 (0)