Skip to content

Commit 78acf16

Browse files
Merge branch 'main' into claude/issue-36591-design-menu-order
2 parents f4425f4 + d7411fa commit 78acf16

220 files changed

Lines changed: 6865 additions & 1667 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+
'@objectstack/spec': patch
3+
'@objectstack/service-messaging': patch
4+
'@objectstack/plugin-approvals': patch
5+
---
6+
7+
fix(i18n): an approval step label and an approval notification's object label read as the metadata translators serve them
8+
9+
Clause-②: yes (widening)
10+
Metadata-protocol: none
11+
12+
In a deployment whose `i18n.sourceLocale` differs from its `i18n.defaultLocale` (an app authored in English that defaults its users to Chinese), an English reader was shown the Chinese approval step name, and an English approval-notification recipient read the Chinese object name inside an English sentence. Both labels were read through `II18nService.t()`, which falls back to the `defaultLocale` row; `/meta` serves the authored text. Both now resolve the way the metadata route resolves a label: the reader's negotiated locale, the declared fallback chain, and the authored language (the declared `sourceLocale`, else `defaultLocale`).
13+
14+
- **`@objectstack/spec`** adds `resolveFlowApprovalStepLabel(bundle, flowName, nodeId, literal?, opts?)` (`@objectstack/spec/system`), the one reading of `flows.<flow>.approvals.<node_id>.label`: the requested locale, then the declared fallback chain (skipped for the authored locale), then `literal`. It takes the flow's name and the node's id, so a reader holding only an approval request row needs no flow document.
15+
- **`@objectstack/service-messaging`** accepts a new `NotificationTextKeys.params` value, `{ object: '<object API name>', fallback }` (`NotificationObjectLabelParam`): the label of that object in the recipient's language, resolved as `GET /meta/object/:name` serves it, by `translateObject` over the object's served definition and its packaged base, so a renamed packaged object is named by its rename. It renders the same way on the inline fan-out, the dispatcher (digests included) and the inbox reader. `fallback` is delivered when nothing resolves. The `{ key, fallback }` value is still accepted and still renders through `t()`, so stored deliveries and inbox rows render as before.
16+
- **`@objectstack/plugin-approvals`** names a notification's object with that typed param, and reads the approval step label through `resolveFlowApprovalStepLabel`, so `t()` carries catalog sentences only.
17+
18+
Upgrade `@objectstack/plugin-approvals` and `@objectstack/service-messaging` together: an older messaging service refuses the typed param at `emit()`.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
'@object-ui/plugin-detail': patch
3+
'@object-ui/i18n': patch
4+
---
5+
6+
feat(record-page): each changed field is its own line under an activity entry, `Label: old → new`
7+
8+
Clause-②: yes (widening) — four new `detail.*` language-pack keys in every locale `@object-ui/i18n` ships (`fieldChangeLabel`, `fieldChangeEmpty`, `fieldChangeExpand`, `fieldChangeCollapse`), and six new optional props on the exported `FieldChangeItem` (`label`, `oldText` / `newText`, `emptyLabel`, `expandLabel` / `collapseLabel`); nothing is removed or renamed
9+
Metadata-protocol: none
10+
11+
The record page's activity named a saved change by its fields only (「更新了 客户备注」), or carried every value on one cut line. An activity entry now reads as the fields it changed, with one line per changed field under it: `Customer notes: Old words → New words`. A save that changed the phone and the email is one entry with two lines.
12+
13+
- The values come from the field-change code the server already serves on each `sys_activity` row (`metadata.summary_message`), narrowed per reader by plugin-audit: a field the reader may not read has no change in it, so it draws no line. Nothing new is read, and nothing is filtered in the browser.
14+
- An empty side reads as the language pack's word for empty (`Empty`, `空`), never the stored `∅`.
15+
- A select side reads as the field's option label in the reader's language; a lookup or user side reads as the record's name the server served; a yes/no reads as the pack's Yes / No.
16+
- Each side is cut to its line. A side that does not fit, or holds more than one line, offers a control that shows both sides in full and one that cuts them again.
17+
- An audit-log entry (objects with `enable.trackHistory`) draws its changes the same way, and an activity row paired with its audit entry keeps its own summary with the audit's lines under it. The record's creation is unchanged: one row with its values beside the summary.
18+
- The compact one-line text of a change (the activity panel's peek rows) now reads `Label: old → new` with the same words, where it read `Label old → new` with `—` for empty.
19+
20+
What does not change: which entries the activity shows, how consecutive edits by one person on one day fold into one row, the activity filters, and no metadata key, value or default.
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 teaches the New and Edit forms as built from the object's fields and field groups, and `showOnCreate`
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
objectstack-ui no longer teaches an object's internal create and edit form views, which the Console's create and edit surfaces stopped loading. `SKILL.md` Traps 1 and `rules/list-views.md` "Form Views" now say that New and Edit are built from the object's fields, sectioned by its `fieldGroups` (`collapse: 'collapsed'` folds a rarely filled section) and following the fields' own rules; that `showOnCreate: false` leaves a field off every create surface and is refused beside `required: true`; and that a container's `form`, `formViews.default` and `formViews.create` still parse, steer nothing, and are reported by `os validate` as `form-view-internal-not-loaded`. The two form views that load are kept: a named `formViews` entry an action of type `form` opens (`/forms/:name`), and a public form (`sharing.enabled: true`), taught as before. "Master-Detail Forms" drops the form-view `subforms` override, which is no longer read; the parent field group naming the child and the page block remain. `evals/views-apps-actions-pages.json`, evals 1, 6, 13 and 19: each taught or assumed an internal form view and now expects the object's field groups and `showOnCreate`.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
---
4+
5+
feat(console): the design mode is entered from the app-name menu; the page header no longer carries 「Edit app」 or 「Open {app} in Studio」
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
The app-name menu at the top of the sidebar now offers 「Edit app」 under the list of apps, in one group with 「Add app」. Choosing it turns the design mode on for the app on screen, in place. It is offered on the condition the page header's button was drawn on, unchanged: a workspace admin holding `manage_metadata`, on an app whose package Studio lists (the console's own Setup, Studio and Account apps get none). An app built here and an installed (read-only) one get it alike, except where the customization door is walled off for the caller (a walled deployment, not the platform operator): there an installed app's menu offers no 「Edit app」. While the mode is on, the menu does not offer it. The menu is drawn from 768 px up, docked or floated over the content while the sidebar is collapsed; a phone has no way into the mode, as before.
11+
12+
The page's top-right button group now holds the comments slot, the AI assistant and help only: its 「Edit app」 and the read-only package's 「Open {app} in Studio」 are gone. The app switcher's 「Open {app} in Studio」 row is unchanged, and so is the top bar's Studio entry where a top bar is still drawn (from 640 to 767 px wide, and on an app's docs pages).
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(console): the sidebar's object entry offers Object settings in place of Design, and dashboard and page entries no longer offer Design
7+
8+
Clause-②: no
9+
Metadata-protocol: none
10+
11+
A sidebar entry's ⋯ menu used to offer Design for an object, a dashboard or a page entry, and only on an app whose package Studio lists as writable. An object entry, and an object favorite, now offer Object settings instead, which opens the object in Studio's Data surface, where its fields are. It is offered to a workspace admin who may author metadata on an app built here and on an installed app alike; an installed app's package opens in Studio's browse-only posture. A dashboard, page or report entry offers no Studio entry any more: each is edited on its own page. Object settings asks first when the page on screen holds unsaved edits, as Design did.
12+
13+
The list header's folded ⋯ menu, drawn when the header is too narrow for its actions, leads with the same Object settings entry under the same rule.
14+
15+
The `console.nav.design` translation key is replaced by `console.nav.objectSettings` in every locale pack.
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/components': patch
5+
---
6+
7+
feat(console): 「Configure tabs」 on an installed object writes its paired `.custom` package, marks where each tab comes from, and opens the record's 「…」
8+
9+
Clause-②: yes (widening)
10+
Metadata-protocol: none
11+
12+
On the record page of an object of an installed (read-only) package, a workspace administrator who may author metadata now finds 「Configure tabs」 too, where the customization door does not wall them off (the walled `group` / `isolated` postures leave it to the platform operator). Its 「Save」 writes the `relatedLists` of the object extension of the base's paired `.custom` package in the spec's shape (ADR-0146 D10): every shown tab in order, a built-in tab by its bare name, and every hidden related tab written `{ list, hidden: true }`; the pair is created on the first save by the ensure door, as Studio creates it. The extension is written over what the pair stores, with only its `relatedLists` replaced (`fields`, `fieldPatches`, `place` and `fieldGroups` kept), as a draft with the first-write pin, then published; a refused publish discards that draft. The original package is not written.
13+
14+
On an installed object every tab can be moved: the object's own lists, a list another package brings, and the built-in 附件 / 审批 / 动态. A related tab can be hidden and shown again; a built-in tab cannot be hidden there (the `.custom` list cannot hide it), and an attachments tab the base hides waits in 「Hidden」, from which it can be shown. Each related tab is marked 「Original package」, 「From <package>」 or 「This environment」, read from the child object's package and the relationship field.
15+
16+
A tab's stored title is kept when the administrator did not rename it, on self-built and installed objects alike: the name the editor shows is the served one, which the read translates for the reader's language.
17+
18+
The write is one shared helper, `saveObjectExtensionArrangement`, which replaces only the arrangement keys a caller returns (`relatedLists` here; `fieldGroups` for a field-layout editor).
19+
20+
`page:header`: a host `⋯` entry declaring `leadsMenu: true` is drawn first, ahead of Refresh; an authored action cannot claim the place. The record page's 「Configure tabs」 declares it, so it is the first item of the record's 「…」.
21+
22+
New language-pack keys under `designMode.recordTabs` (`pairNotWritable`, `builtinMoves`, `sourceBase`, `sourcePackage`, `sourceEnvironment`) in all eleven console locales.
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): the object page saves with Cancel and Save in the top bar, and a Save is live at once
7+
8+
Clause-②: no
9+
Metadata-protocol: none
10+
11+
Studio's object page (fields, validation rules, actions, settings and field groups) no longer autosaves a draft 1.5 s after each edit. Edits stay on the page until the author presses Save, which sits at the right of the Studio top bar where Publish was; Cancel beside it puts the page back as the server holds it. Save writes the object's draft and then publishes that one object at the package it was written to, so the change is live at once. An installed app's object takes its edits into the paired `.custom` package and publishes them there.
12+
13+
Changes and Publish are drawn only while drafts are pending (a copilot's, or another editor's), and a publish waits while the page holds edits Save has not sent. A Save refused by the server keeps the edits on the page with the reason, and its toast names each refused item with its reason and lists the items that were saved. Removing or retyping a published field asks first. Save waits out the expression checks of the last keystroke, so a formula or rule guard that does not parse is never sent. Leaving the page, or opening another object, with unsaved edits asks, as every departure does.
14+
15+
Other Studio editors (flows, hooks, list and form views, navigation, permissions) keep their draft autosave for now.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
'@object-ui/fields': patch
3+
---
4+
5+
fix(fields): the line-item grid stores an emptied multi-record lookup cell as `null`, draws a people or lookup column's names with one read, and mutes an empty list in list mode
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
- **An emptied multi-record lookup cell writes `null`.** Un-picking the last record of a `lookup` column with `multiple: true` wrote an empty list (`[]`) into the line, while an emptied multi-select, tags or people cell writes `null`, the value the field contract stores for a cleared multi-value field. It now writes `null` too, so every emptied multi-value cell in the grid stores the same value and the save's blank-line check reads it as empty.
11+
- **Names are read once per referenced object, not once per line.** Each people cell and lookup cell holding a bare record id read that record on its own to draw its name, so a grid of twenty lines with a people column made twenty reads of `sys_user`, and a lookup column twenty more of its target. The grid now gathers those reads into one read per referenced object (an `$in` on the record ids, up to 50 ids per read), with each id asked for once, in editable, read-only and list mode alike. What each cell draws is unchanged.
12+
- **A stored empty list reads muted in list mode.** A multi-select or tags cell holding `[]` drew the em dash in the normal text colour; it now takes the muted colour, as an empty value already did.
13+
14+
No metadata key, value or default changes.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@object-ui/components': patch
3+
---
4+
5+
feat(components): the record's close button moves to the left of the top bar's navigation row
6+
7+
Clause-②: yes (widening)
8+
Metadata-protocol: none
9+
10+
`RecordTopBar` takes a new optional `close` slot, which holds the button that closes the record. The two-row bar draws it as the first control of the navigation row, before `leading`, the ↑ ↓ buttons and the "N of M" counter. The one-row bar (the phone face) still draws it last at the right end, after `frame`. `NavigationOverlay` hands its close button through the new slot, so on the record drawer, the split pane and the maximized pane the close button is now at the top left and the "Open as full page" button stays at the right. The close button keeps its accessible name and its handler, and Escape still closes as before. A host that still passes its close button inside `frame` gets the old far-right placement; to move it, pass it as `close` instead. No metadata key and no i18n string changes.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
'@objectstack/scenarios': patch
3+
---
4+
5+
fix(scenarios): scorer and card defects from the 18.6.0 gallery refresh
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
- On a `withheld` question, a sentence about what a dataset or report covers ("The Approved Leave dataset can't group by medical note") is no longer read as a decline, unless it binds to the asker.
11+
- The agent-action check also fails an action the build gates (`ai.requiresConfirmation: true`) where the card has the agent act at once (`confirm: false`): `action:OBJECT.NAME->not-confirm-gated`. The build prompt says an unmarked action runs with no confirmation gate.
12+
- `persona-grant:*:delete` reads the platform's owner-only delete floor: `allowDelete` without Modify All (or a write depth of `org`) no longer passes a delete of a seed row the persona does not own; a delete only a row-dependent rule, a `controlled_by_parent` master gate or a declared route action could admit is not measured.
13+
- A declared `VALIDATION_FAILED` is met by a hook's own refusal with no declared code (`HOOK_ABORTED`) at a client-error status.
14+
- Card wording: service_desk `log_ticket` states it assigns the signed-in agent and opens the ticket; leave_balances `sick_by_medical_note` asks by what the medical note says; requisition_to_receipt and travel_expense ask for a record-triggered flow.

0 commit comments

Comments
 (0)