Skip to content

Commit 58e12ff

Browse files
committed
Merge remote-tracking branch 'origin/main' into claude/issue-33581-console-eager-closure
2 parents feb24f5 + 99fbaa6 commit 58e12ff

127 files changed

Lines changed: 5336 additions & 638 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: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
'@objectstack/metadata-protocol': patch
3+
---
4+
5+
fix(metadata-protocol): a seed resolves a lookup that another package adds through `objectExtensions` to the target's id
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
A package can add a lookup to another package's object through `objectExtensions`. A seed that set that lookup by the target's natural key (`externalId`) used to store the raw key in the foreign-key column on a boot that loads a compiled artifact (`os dev`, `os serve`, the cloud runtime). The record then linked to nothing, and the console showed "Restricted record". The same seed resolved correctly under the in-process test harness.
11+
12+
The cause was the seed loader's object read. It took the metadata service's copy of the object, which on an artifact boot is the object as its own package wrote it, without the fields an extension adds. Now the loader reads the object as the engine serves it, with its extensions included. It falls back to the metadata service's copy only when the engine has no schema for the object. So a lookup an extension adds is treated exactly like one the owner wrote, in every mode (`upsert`, `ignore`, `update`):
13+
14+
- it adds a dependency, so the target dataset loads first;
15+
- its natural key is resolved to the target's id;
16+
- it waits for the second pass when the target loads later in the same load;
17+
- an unknown key is refused with the same error.
18+
19+
The same read now drives the loader's other per-field decisions for such a field: the required-on-insert check, the tenant column, the replay compare and the undeclared-column warning.
20+
21+
Rows an earlier load stored with the raw key are not rewritten. Run the seed again (in `update` or `upsert` mode) to store the target's id in place of the key.
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+
'@object-ui/i18n': patch
5+
---
6+
7+
fix(console): Studio's kanban card "Click to open" offers only Default and "Don't open"
8+
9+
Clause-②: no
10+
Metadata-protocol: none
11+
12+
On an object's list the record name opens the full page and the hover icon opens the side panel, so `navigation.mode` `drawer`, `page` and `new_window` parse there and change nothing; only `none` still counts. The kanban card section of Studio's list-view inspector offered all four. It now offers Default (no key) and "Don't open" (`none`). A view that already stores `drawer`, `page` or `new_window` shows that value flagged "(deprecated)" in the select, and picking Default removes the key. Opening such a view writes nothing. The spec is unchanged, and page blocks that carry `navigation` keep every mode.
13+
14+
The studio catalogue drops the three labels nothing reads any more: `engine.studio.inspector.listView.kanbanCard.mode.drawer`, `.mode.page` and `.mode.newWindow`.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'@object-ui/components': patch
3+
---
4+
5+
fix(components): the record header re-measures its width fold on another record
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
In a record page's header bar the action row folds by width: while its buttons wrap past one line, the page's own actions fold into the `⋯` one at a time. The lowered budget used to come back only when the bar changed width. Stepping to another record (previous / next, or another record in the drawer) keeps the same row, so after a record with many actions a record with fewer kept the old, lower budget and folded actions that fit.
11+
12+
The lowered budget now holds only for the record and the action set it was measured on. Another record, or a changed action set, draws the full budget (3, or the page's `maxVisible`) and the next layout measures again, so a row that still does not fit folds as before. Nothing an author writes changes.
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+
fix(console): on a phone the account menu stays on the screen in every interface language
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
The account menu sized itself to its longest line. On a phone, with the desktop notification hint showing (notifications blocked, or a browser with no notification support such as Safari on iPhone), the menu was wider than a 375 px screen in seven of the eleven interface languages (English, German, French, Russian, Spanish, Portuguese, Japanese), and in German, French, Russian, Spanish and Portuguese the Language control was pushed off the right edge, so the language list could not be opened.
11+
12+
Below 768 px the menu is now no wider than the screen less a 1 rem gutter on each side, and long lines wrap with their full text. The language list opens under the Language control (or above it where only that fits), on the screen. From 768 px up the menu is unchanged, and the language list itself, which the sign-in page also uses, is unchanged. No props, exports or locale keys change.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@object-ui/plugin-detail': patch
3+
---
4+
5+
fix(plugin-detail): the record header's summary chip honours `percentDisplay: 'plain'`
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
The `summaryFields` chip beside the record title drew its progress bar for every `percent` field and every `formula` whose `returnType` is `percent`, even when the field declares `percentDisplay: 'plain'` — the face `@objectstack/spec` describes as "the percentage as text alone, with no bar", which the list cell already honoured. The chip now reads `percentDisplay` off the same merged field it reads `scale` and `max` from (the view's entry over the object schema): `plain` shows the percentage text alone, while an absent `percentDisplay` or `bar` keeps the bar. The text, its accessible name and the stored value are unchanged.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
'@object-ui/plugin-grid': patch
3+
---
4+
5+
fix(plugin-grid): leave a raw aggregate over a record-mode quantity out of the whole-set footer and the group headers
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
The engine refuses a `sum` / `avg` / `min` / `max` over a `number` field declaring `unitConfig: { unitMode: 'record', unitField }` unless the query groups by `unitField` (ADR-0158 U7 R1): quantities in different units do not add. The grid now treats such a quantity the way it treats a `record`-mode currency amount (ADR-0144 D6), through one rule:
11+
12+
- The whole-set footer query of a paged list or grid leaves that column's aggregate out, so the other summarised columns keep their whole-set figures instead of all falling back to the current page's.
13+
- The footer draws no `sum` / `avg` / `min` / `max` for that column, and its menu offers the count family only; the counts stand.
14+
- A group-header aggregate over it stands only when the grid is grouped by its `unitField`.
15+
16+
A `fixed`-mode quantity and a `number` with no `unitConfig` total as before.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
'@object-ui/plugin-detail': patch
3+
'@object-ui/fields': patch
4+
'@object-ui/i18n': patch
5+
---
6+
7+
feat(console): the record page's field area is one list — one field a row in the side preview, on a phone and in the wide page's pinned left column
8+
9+
Clause-②: yes (widening)
10+
Metadata-protocol: none
11+
12+
The synthesized record page's field area (objectstack#36147, ruling on the card 7066516044):
13+
14+
- **One column at any width.** The drawer (at any width), the split pane, the phone's 「详情」 tab, the wide page's pinned left column and a desktop full page that has other tabs but is not pinned (an opportunity's 详情 tab goes from three columns to one) draw the fields one a row: label left, value right, a hairline between rows. The phone's own grouped-inset face is gone there; it is the same list. A full page whose details are its only face (no other tab, none hidden) keeps laying a group out by width.
15+
- **Group title row.** The title sits left and its chevron at the row's right end, pointing down while the group is folded and up while it is open; the whole row toggles.
16+
- **Referenced records are chips.** A lookup value is drawn as a pill with the referenced object's colour tile (`ObjectSchema.color` / `icon`, objectstack#35985) and the record's whole name, wrapping rather than cut. A click on the chip opens the record; the rest of an editable lookup's row edits it. Everywhere else a reference keeps its link face.
17+
- **Empty fields fold into one row.** Every empty field of every group is folded into the list's one last row (「显示 N 个空字段」), replacing the per-group toggle and the 「N 个空分组」 line on this page. The reader's choice is the per-object record-page preference `showEmptyFields` (objectstack#25883), so it holds for the next record of the object. An authored `hideEmpty` group stays hidden and is not counted.
18+
- **「系统信息」 is the last group,** folded until opened: created by, created on, updated by, updated on (when the record was updated), the owner (when the body does not draw it) and the record ID, one fact a row. On this page it **replaces the one-line meta footer that objectui#12307 introduced**; outside the laid-out record page that line is unchanged.
19+
- **A click edits; no pencil.** A single click on an editable value enters edit (a click on a link, a button or a text selection inside it is not taken); the hover pencil is no longer drawn, and stays in the DOM only as the keyboard's way in (visible on focus). A double click is no longer needed. **A read-only value takes no click any more**: the click-to-copy on read-only rows is removed on this page. For a mouse or a keyboard its copy icon, shown on hover or keyboard focus, stays; a touch screen shows none, and the value is selected by a long press.
20+
- Authored record pages and every other DetailView keep their faces.
21+
22+
`@object-ui/fields` widens: it exports `ReferenceChipContext` (a boolean React context, default `false`) that switches `LookupCellRenderer`'s reference link to the chip face.
23+
24+
`@object-ui/i18n` widens: five new keys in every pack, `detail.systemInfo` (系统信息 / System information), `detail.createdTime`, `detail.updatedTime`, `detail.recordNumber` and `detail.clickToEdit`.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
'@object-ui/plugin-detail': patch
3+
---
4+
5+
fix(plugin-detail): a slotted page's record:chatter on the 动态 tab lists the system history alone while the comment panel holds the comments
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
- A page whose `discussion` slot holds `record:chatter` or `record:discussion` draws that block on the record page's 动态 tab. While the comment panel is offered beside the record, on the page or in the drawer (objectstack#36075), the block now draws the system entries alone, as the platform's own 动态 stream does there: no comment and no reply, no comment box, no Comments-only filter, a count without the comments, the 动态 heading instead of 「讨论」, and the activity empty line instead of 「暂无评论」. A refused or failed comment read is the panel's to report, not this block's.
11+
- Not changed: the platform's own 动态 stream, the 动态 tab's label, a page an author composed whole, and the phone while it has no comment surface.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
'@objectstack/lint': patch
3+
---
4+
5+
feat(lint): warn when a full record page's header title or action order differs from what the phone and the drawer draw
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
An object's hand-written full record page (`type: 'record'`, `kind: 'full'`) is drawn on the desktop full page only; on a phone, in the side drawer, in a split pane and in an interface page's preview the record draws the standard page, built from the object. Two new advisories name a header that makes the same record read differently between the two:
11+
12+
- `record-page-header-title-differs`: the `page:header` declares a `title` that is not exactly the object's name field token (`{nameField}`, or the derived title field). The standard page, lists, search and lookups all title the record by that field.
13+
- `record-page-header-actions-differ`: the header's `actions` list gives a different primary button, or a different order within the row of buttons or within the `⋯`, than the actions' own `order` / `variant: 'primary'` and their declaration order give on the standard page.
14+
15+
Both are warnings. They run on `os validate`, `os build` and `os lint`, and on a page publish at the metadata save door, where they come back as advisories and refuse nothing. Nothing about how a page renders changes. The fix each names: drop the header `title` (or set `nameField` on the object), give the actions an `order` and the main one `variant: 'primary'`, or move a header that should differ everywhere into a `kind: 'slotted'` page's `header` slot. `os explain` on either id prints what the check cannot see: visibility predicates and permissions, actions another package attaches, and the served declaration order, which it estimates.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
'@object-ui/components': patch
3+
'@object-ui/plugin-list': patch
4+
'@object-ui/i18n': patch
5+
---
6+
7+
fix(list): "Add group field" asks which field, and offers only fields that can group
8+
9+
Clause-②: yes (widening) — `@object-ui/components`'s `GroupingEditor` gains the optional props `askFieldOnAdd`, `fieldOptionsLoading` and `fieldLabel`, and its `labels` the optional `noFields`; `@object-ui/i18n` gains the key `list.noGroupableFields` in every locale; nothing removed or renamed
10+
Metadata-protocol: none
11+
12+
On a list, 「添加分组字段」 / "Add group field" used to group at once by the list's first column, usually the record's name, so every record became a group of its own. Now, in the toolbar's Group panel and in the view settings menu's Group level alike:
13+
14+
- It adds no field by itself and does not group. The field dropdown opens, and the list is grouped once a field is picked there. Closing the dropdown without a pick leaves the list as it was.
15+
- The dropdown lists only the fields that can group: single select or radio (a status is one), tick (boolean or toggle), person, and linked record (lookup, master-detail, tree), each single-valued. Text, number, date and multi-select fields are not offered. The list's columns come first in the reader's column order, then the object's other groupable fields the reader may read, business fields before system ones such as the record owner. Created by and updated by are offered only when the view shows them as a column.
16+
- With no field that can group, the button is drawn disabled and says why: 「没有可以用来分组的字段」 / "No field here can group the list".
17+
- Until the object's field types are read, the button is disabled without a reason. When no definition can be read at all, every column is offered, as before.
18+
- A view already grouped by another kind of field keeps showing that grouping, and its level can still be changed or removed.
19+
- A second level follows the same rule among the fields no level uses yet.
20+
- The grouping is still a part of the list's draft: **Discard** and **Save** appear, and nothing is written.
21+
22+
`@object-ui/components`: with `askFieldOnAdd`, `GroupingEditor`'s "Add group field" opens a row whose field dropdown is already open and writes the level only on a pick. With no `fieldOptions` it draws the button disabled, explained by `labels.noFields`, or without a reason while `fieldOptionsLoading`. `fieldLabel(field)` labels a level whose field `fieldOptions` does not carry. Without these props the editor behaves as before.

0 commit comments

Comments
 (0)