Skip to content

Commit c743433

Browse files
committed
Merge origin/main into claude/issue-36505-field-layout-tab
Takes in the Interfaces retirement (#36884, objectstack#36502). Three files conflicted; both sides are kept: - StudioDesignSurface.designerRegistryMissing / lateRegistration-11939 tests: main's side (InterfacesPillar import and cases removed, its own module-top lint import), with the object page tab looked up as Field layout again. - studio-authoring.json first-run-loop: main's revision 14 entry kept, this branch's Field layout entry renumbered 15 and the item's revision set to 15. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzhpykmQZe1yMupC2CU
2 parents 4b0d7ee + 3f568c1 commit c743433

332 files changed

Lines changed: 8475 additions & 36981 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: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
'@object-ui/auth': patch
3+
'@object-ui/plugin-grid': patch
4+
---
5+
6+
fix(auth): signing out keeps the list layout for the same person; a change of user still clears it
7+
8+
Clause-②: no
9+
Metadata-protocol: none
10+
11+
Column widths, row height and tab order are kept only in the browser, so the sign-out purge (`purgeSignedOutUserClientState`, run by `AuthProvider` on `signOut()` and on every session read that answers "no session", including a session that ended on its own) reset every list at every sign-out. It now keeps the list layout: `localStorage` keys starting `list-layout:` (written by `@object-ui/app-shell`) and `grid-columns-` (the grid's own copy of column widths and order, also used by a record page's related tab). An entry is kept only while it holds that layout and nothing else: view ids, field names, widths and a row height. An entry holding anything more, such as a filter, a search term or record data, is removed like any other key. These keys are kept only in `localStorage`; the same keys in `sessionStorage` are still removed.
12+
13+
A different person signing in on that browser still clears everything (`purgePreviousUserClientState` keeps none of these keys), so their lists open at each view's defaults. Nothing changes for an app that writes no keys under these prefixes.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
'@objectstack/spec': patch
3+
'@objectstack/platform-objects': patch
4+
---
5+
6+
docs(spec): the `compactToolbar` describe says which toolbar is the default and that it draws no Refresh
7+
8+
Clause-②: no
9+
Metadata-protocol: none
10+
11+
The `compactToolbar` description on a list view (and the view form's hint for it, which mirrors it) now says what a renderer does when the key is omitted and which toolbar `userActions.refresh` applies to: the compact toolbar (the View settings popover) is on by default, omitted or `true`; `false` draws the wide toolbar, one button per control. The compact toolbar draws no Refresh button, so `userActions.refresh` governs only the wide toolbar; pull-to-refresh is unaffected by either key. This matches the `userActions.refresh` description, which already scopes the toggle to the wide toolbar.
12+
13+
Description text only: the key, its type, its optionality and the accepted values are unchanged, so every view that parsed before parses the same. The generated reference pages and the English metadata-forms help text carry the new sentence; the translated help texts keep their current wording.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
'@objectstack/plugin-audit': patch
3+
'@object-ui/plugin-detail': patch
4+
---
5+
6+
fix: a comment notification opens the record with its comments at that comment
7+
8+
Clause-②: no
9+
Metadata-protocol: none
10+
11+
Opening an @mention or reply notification used to land on the record page with the comments closed (or, on a phone, with no comments page), so the reader had to find the comment they were told about.
12+
13+
- **`@objectstack/plugin-audit`**: the `collab.mention` and `collab.reply` inbox notices now link `/{object}/{id}?comments={rootCommentId}`, plus `&comment={commentId}` when the comment is a reply. A reply's thread is found from `parent_id`; a mention inside a reply links that reply's thread. The mention and reply e-mails carry the same link. Notices already in an inbox keep their old record link: nothing is backfilled. Other notifications are unchanged.
14+
- **`@object-ui/plugin-detail`**: `CommentsPanel` takes `focusThreadId` / `focusCommentId`. With them, it shows that thread even when the filter hides it, opens its replies, marks the comment and scrolls the list to it. `CommentsPage` takes `focusCommentId`, and the thread opens scrolled to that comment, marked. `CommentThread` takes `openSignal` / `targetId`, and `CommentItem` takes `targeted`.
15+
- The Console's record page reads the link: on desktop, `?comments=` (a thread id) opens the comment panel at that thread without changing the stored open or closed choice, and closing the panel drops the link. On a phone, the existing `?comments=` page opens the thread scrolled to `?comment=`.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
'@objectstack/runtime': patch
3+
'@objectstack/cli': patch
4+
'@object-ui/i18n': patch
5+
'@object-ui/plugin-chatbot': patch
6+
---
7+
8+
fix(studio): Studio's Interfaces column is retired; its old links land on the Studio home and its Changes links open from the Data pillar
9+
10+
Clause-②: no
11+
Metadata-protocol: none
12+
13+
objectstack#36502. Menus, header actions, list views, dashboards, reports and record pages are designed in the running app. Studio keeps Data, Automations, Access and All metadata, and every view, dashboard, report and page stays readable and editable as metadata on its All-metadata item page. No metadata type, key or stored shape changes.
14+
15+
- **Old links still open.** `/studio/<package>/interfaces`, with or without a `?surface=` deep link, lands on the package's Data pillar and says once, there, "Interface edits have moved into the app" (「界面的修改已经搬到应用里」) with a link back to the app. A `?changes=review` request travels with it.
16+
- **`@objectstack/runtime`, `@objectstack/cli`.** The review link the MCP authoring tools and `os meta register --draft` print is `/studio/<package>/data?changes=review` (it was `/studio/<package>/interfaces?changes=review`, which still works through the redirect).
17+
- **`@object-ui/i18n`.** Adds `engine.studio.interfacesRetired.sentence`, `.backToApp` and `.dismiss` (en, zh).
18+
- **`@object-ui/plugin-chatbot`.** The `onDesignBuiltApp` doc example names the Data route.
19+
- The console's "Edit in Studio" links for a dashboard, page, report or view open its All-metadata item page.
20+
- **Customize moves with them.** On a read-only base, a view, dashboard, report or page is customized on its All-metadata item page, in the type's designer, into the base's pair (`<base>.custom`), with the override mark and "Restore package original" as before. It was the Interfaces column's header.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
'@objectstack/spec': minor
3+
'@objectstack/runtime': patch
4+
'@object-ui/app-shell': patch
5+
'@object-ui/i18n': patch
6+
---
7+
8+
feat(i18n): `GET /i18n/locales` names the source locale, and a design-mode menu rename outside it is stored as that language's translation
9+
10+
Clause-②: yes (widening)
11+
Metadata-protocol: added
12+
Skills-docs: follow-up owed — skills/objectstack-i18n/SKILL.md
13+
14+
- **`GET /api/v1/i18n/locales` names the source locale.** The body gains an optional `sourceLocale` (`GetLocalesResponseSchema.sourceLocale`): the language the app's own text, a plain-string `label`, is written in. It is the declared `i18n.sourceLocale`, else the default locale, the same rule the metadata translators use. It differs from the `isDefault` locale on an app written in one language that defaults its users to another. It is absent only when the server knows neither. Nothing that parsed before stops parsing.
15+
- **A menu rename in design mode is stored where the reader's language reads it.** The name field of 「Rename and icon」 is now open in every language. A name typed in the source language, over an entry shown by its stored label, is still written to the stored label. Any other name is written as that language's translation of the entry: a name typed in another language, or one typed in the source language over a translation the reader was shown. The stored label stays unchanged, so every other language keeps its name. The rename says so when the new name will be a translation ("The new name is shown in LANGUAGE. The app's other languages keep their names.").
16+
- **Where the translation goes.** It is written to the `translation` item `APP_menu_LOCALE` (for example `crm_menu_zh_cn`), at `apps.APP.navigation.ID.label`, the key app navigation is translated by. It goes into the package the menu is written to: the app's own package when that is writable, else its customization package, whose own translations are read first (ADR-0146 D2). Like the menu, it is saved as a draft with the first-write pin and published at once. A pending draft of it is refused and the reason is shown. A translation-only rename writes the translation and leaves the app alone.
17+
- **A link added in another language** is stored without a name, and the name typed for it becomes that language's translation. The source language names it when someone sets a name there. Until then, a reader in the source language sees the link's URL, as for any link with no label.
18+
- Before this change, the console allowed a rename only when the reader was in the deployment's default language. The default language could differ from the source language, and a rename there was written to the stored label for every language.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
'@objectstack/spec': minor
3+
'@objectstack/lint': minor
4+
'@object-ui/plugin-kanban': minor
5+
'@object-ui/plugin-list': minor
6+
'@object-ui/i18n': minor
7+
---
8+
9+
feat(kanban): a lane's sum, average, minimum and maximum cover every record of the lane, computed in the query
10+
11+
Clause-②: yes
12+
Metadata-protocol: semantic
13+
Skills-docs: follow-up #36422 (skills/objectstack-ui/rules/list-views.md teaches the board lane summary, now including avg / min / max)
14+
15+
A stored `kanban.summary` of type `sum` now totals every record in the lane (computed in the query) instead of the loaded cards; where the board cannot ask the server, no figure is drawn.
16+
17+
A board's lane foot statistic, `kanban.summary`, now takes `{ type: 'avg' | 'min' | 'max', field }` beside `none`, `count` and `sum`, and every one of `sum`, `avg`, `min` and `max` covers all of the lane's records:
18+
19+
- **One grouped aggregate, no fetch-then-add.** The board asks ONE aggregate over its own query — its filter and its host's search, grouped by the lane field — through the data door a grouped list view's headers already ride (`DataSource.queryGroupHeaders`, `POST /data/:object/query`). A lane longer than its page (50 records) shows the whole lane's figure; the "loaded cards" label is gone. Records with no lane value, and records in a value that is no lane, are folded into the trailing "Uncategorized" lane. A lane with no record shows `0` for a sum and no figure for the other three; a lane that holds records but that the answer has no group for (the door can cut the group rows under a deployment's default page size) shows no figure rather than `0`. A whole answer needs the door to hand back that the rows were cut: follow-up #36870.
20+
- **Under the reader's permissions.** The platform runs the aggregate with the reader's row filter, and refuses an aggregate over a field the reader may not read; the board asks nothing for such a field, and a refused read draws no figure.
21+
- **No figure rather than a partial one.** A data source without `queryGroupHeaders`, or a filter the read cannot repeat, draws no `sum` / `avg` / `min` / `max` figure. Over cards a host hands to the board, a `sum` is still added up on the board and the other three draw nothing. Known gap, follow-up #36871: the list view hands a board whose lanes it cannot know before the query (lanes over a lookup field, a view with grouping) its fetched page, so there `sum` totals that page, unmarked.
22+
- **`@objectstack/lint`** judges `avg`, `min` and `max` the way it judges `sum` (`list-view-summary-field-type-refused`): the aggregate × field-type table's row for that function over the field's declaration, less the boolean class, which it now reads from the spec (`BOOLEAN_VALUE_TYPES`) instead of listing `boolean` and `toggle` itself. The list view's lane-statistic picker reads the same class, and now offers and names `avg` (Average), `min` (Minimum) and `max` (Maximum) over the number fields it offers for `sum`; the locale packs carry the three names and drop the retired loaded-cards label.
23+
24+
A stored `sum` keeps its key and its field; what it draws is now the whole lane's total where it drew a total over the loaded cards before, and no figure over a data source that cannot answer the lane read.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
'@object-ui/i18n': patch
4+
---
5+
6+
fix(console): report editing is its own entry, and report and dashboard editing exclude the design mode both ways
7+
8+
Clause-②: no
9+
Metadata-protocol: none
10+
11+
The console's design mode no longer hosts the report builder, so the screen shows one Save/Cancel set at a time:
12+
13+
- The design mode's 「Add menu item → Reports」 lists only reports that exist; its 「New report…」 row is gone, with the hand-off that let the builder save into the menu. A new report is made from the reports index, then linked from the design mode.
14+
- The reports index offers 「New report」 in its header, opening the report builder. It is offered to workspace admins, as the builder is, and not while the design mode is on.
15+
- While the design mode is on, a dashboard's and a report's own 「Edit」 are not offered.
16+
- While a dashboard or report editor is open, 「Design layout」 refuses with a prompt to save or cancel those changes first, so the design mode's 「Cancel」 can no longer end the mode under an editor left open.
17+
- The report builder's own address reached with the design mode already on (the browser's Back) shows a prompt to finish designing the layout instead of the builder; the builder opens there once the mode is saved or cancelled.
18+
19+
The design mode's 「New dashboard…」 is unchanged. In `@object-ui/i18n`, `designMode.menu.newReport`, `designMode.menu.newReportLeft` and `report.builder.addsToMenu` are removed from every pack, and `designMode.editorOpen`, `console.reportIndex.newReport`, `report.builder.designModeOnTitle` and `report.builder.designModeOn` are added. Nothing to migrate.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
'@object-ui/i18n': patch
4+
---
5+
6+
fix(console): the Change Owner dialog's queue target offers the queues an installed app declares, not only the organization's `sys_queue` rows
7+
8+
Clause-②: no
9+
Metadata-protocol: none
10+
11+
A queue can live in two places (ADR-0142 D1): a `sys_queue` row the organization authored, or a `queue` item an installed package declares. The Change Owner dialog's queue target searched `sys_queue` alone, so a declared queue could be named everywhere else (sharing-rule recipients, flow approvers) but never picked as a record's new owner. The queue target now lists the declared queues as their own choices under the `sys_queue` lookup, built by `mergeQueueCandidates`, the merge the other queue pickers use. The server resolves a queue name registry-first, so when a `sys_queue` row shares a declared queue's name, the declared queue is the one offered and the lookup leaves that row out. Either choice sends the queue's name, as before. The `sys_queue` lookup keeps its server search and paging; a declared read that fails offers no declared queue and leaves the lookup working.
12+
13+
`@object-ui/i18n` adds one key, `console.changeOwner.declaredQueues`, in every locale pack.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'@objectstack/spec': patch
3+
'@objectstack/platform-objects': patch
4+
'@object-ui/app-shell': patch
5+
---
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
The dashboard settings panel's hints now read in business terms. Nine field hints of the dashboard authoring form (Name, Label, Columns, Gap, Refresh Interval Seconds, Header, Widgets, Date Range, Global Filters) no longer use developer vocabulary such as "snake_case", "in steps of 0.25rem (4 = 1rem)" or "config". Each one now says what the builder decides. The Columns and Gap hints also describe what an empty value does, in line with the dashboard renderer.
11+
12+
Only hint text moved. No key, accepted value, label or section title changed, and nothing an author can write or validate is different. The platform metadata-form bundles are regenerated, and the nine hints are re-translated in all ten translated locales (zh-CN, zh-Hant, ja-JP, ko, es-ES, fr, de, pt-BR, ru, ar). The console's own zh-CN overlay for the dashboard panel now uses the same platform wording for these nine hints.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
'@object-ui/i18n': patch
4+
---
5+
6+
fix(console): a screen-flow step the run already left is never submitted again
7+
8+
Clause-②: no
9+
Metadata-protocol: none
10+
11+
The console's screen-flow dialog no longer resends a step after the run has moved on. Before, a resume could finish on the server while its answer was lost on the way back: a gateway timed out, or the connection dropped. The dialog then kept the step with Next still active. The next press sent that step's values to the screen the run was now on, and the user saw the engine's English refusal, which names the fields. A two-step quote wizard showed this failure after the quote had already been created.
12+
13+
Before it offers a retry, the dialog now reads the run's paused screen again (`GET /api/v1/automation/FLOW/runs/RUN/screen`). This happens when no answer arrives, and on every failure the dialog would treat as retryable:
14+
15+
- If the run waits on another screen, the dialog shows that screen with a plain notice: "Your previous submission went through. The flow has moved on to this step."
16+
- If the run waits on no screen (`404`), Next is withdrawn and a plain notice asks the user to check the record before trying again.
17+
- If the run still waits on the same screen, or the read gives no usable answer, the retry and the refusal's sentence stay as before.
18+
19+
Both notices come from the console catalog (`flowRunner.alreadySubmitted` and `flowRunner.noLongerWaiting`) in every shipped locale. The engine's refusal is unchanged. Nothing to migrate.

0 commit comments

Comments
 (0)