Skip to content

Commit 54e4586

Browse files
committed
Merge remote-tracking branch 'origin/main' into claude/issue-36908-remove-studio-home
# Conflicts: # ui/packages/app-shell/src/views/studio-design/BuilderLanding.orgScope-11553.test.tsx # ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.notFound-26708.test.tsx
2 parents cf77ecb + 4fb03eb commit 54e4586

242 files changed

Lines changed: 7337 additions & 3923 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: 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): a related list that already shows 0 keeps showing 0 while it reloads
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
A related list on a record page whose count was known to be 0 used to drop its count badge for as long as a reload took (after a delete, a filter change or any other refetch), because an empty list being read looked like a list read for the first time. Once a read the list issued has answered, its count is known, so a later reload keeps drawing that count until the new one lands. A read that fails forgets the count, so its Retry draws no count until it answers, never a false 0; so do rows emptied without a read (the parent record reloading, or no data adapter), so the next parent's read draws no count either. A list's first read, including one that starts only once its parent record has loaded, still draws no count while it is in flight.
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
'@object-ui/i18n': patch
4+
---
5+
6+
feat(studio): a flow opens full-screen in its own page; the Automations pillar's flow list is gone
7+
8+
Clause-②: yes (narrowing)
9+
Metadata-protocol: none
10+
Skills-docs: none — no page under `skills/` or `content/docs/` names the Automations rail's strings or teaches overriding a Studio console string
11+
12+
<!-- adr-0087: not-required (no-migration-prescription) the narrowing is nine console strings retired from the studio locale namespace of @object-ui/i18n; no packages/spec schema, registered node type, stored row or metadata key names them, nothing a metadata author writes changes, and a host that overrode one has nothing to rewrite: its override is simply no longer shown -->
13+
14+
**BREAKING** for a host that overrides one of the nine studio console strings listed under "Removed translation keys" below: they are retired with the Automations pillar's flow list in 19.0.0, and an override of one of them no longer applies.
15+
16+
In Studio, a flow now opens on its own page, full-screen beside the left menu, from the flow list in "All metadata", instead of in the Automations pillar's flow list and canvas. Its header is the one every full-screen item page has: × goes back to the flow list with its filters and sort kept, ‹ › step through the list in its order, and the flow's label, type and package are shown, with its machine name in a chip beside the label. A ⋯ menu holds New similar and Delete flow. The header still shows the flow's Trigger, Status (the engine's run status), Run as and version, and the Enabled switch (or, on a read-only package, the activation switch). The tab row holds the designer's Canvas, Variables, Runs, Problems and Debug, then References, History and Source, which replace the item-tools menu and its side sheets; a refreshed or shared link reopens the same tab. Save stays in the Studio top bar and still publishes that one flow, pinned to the version it was loaded at. Leaving with unsaved edits (×, ‹ ›, the menu, the Changes sheet, a reload, closing the tab) asks first.
17+
18+
A flow is created from the flow list's 「新建」, with the same starting points, and that create refuses to overwrite a flow published under the same name, as the pillar's did. When the name is taken by a flow in this package, the dialog says so and offers to open it. New similar opens the copy on its own page, with a strip saying where it landed. Deleting a flow returns to the flow list. The copilot still knows which flow is open, and still refreshes it after its edits.
19+
20+
The organization's own flows, which belong to no package, have their own flow list and open on their own pages; that list offers no 「新建」, as before, and when it is empty it says how a packaged flow is changed instead (open its package and use New similar).
21+
22+
Old bookmarks keep working. A link to a flow in the Automations pillar opens that flow's page, and a link to the pillar itself opens the flow list, for a package, a read-only package's customizations and the organization's own flows alike. A flow's History link opens its History tab. A link naming a flow the package does not hold says so and opens no other flow; one naming a flow that belongs to no package opens it among the organization's flows. A flow's draft-review link (and the environment view) opens the general item page with its review, as it did when flows had a pillar. A permission set's review link keeps opening its matrix page, as before.
23+
24+
The flow list has no column yet for a flow's trigger object or its run status; until it has one, both are shown in the flow's header.
25+
26+
Removed translation keys (studio namespace of `@object-ui/i18n`, released in 18.6.0; no code reads them since the flow list left the designer). Each is removed from both packs it shipped in, `en` and `zh`:
27+
28+
- `engine.studio.auto.heading` (en, zh)
29+
- `engine.studio.auto.none` (en, zh)
30+
- `engine.studio.auto.emptyMain` (en, zh)
31+
- `engine.studio.auto.group.noObject` (en, zh)
32+
- `engine.studio.auto.kind.record` (en, zh)
33+
- `engine.studio.auto.kind.scheduled` (en, zh)
34+
- `engine.studio.auto.kind.screen` (en, zh)
35+
- `engine.studio.auto.kind.autolaunched` (en, zh)
36+
- `engine.studio.auto.legend` (en, zh)
37+
38+
An override of one of these keys no longer applies; delete it. `engine.studio.org.none` is kept: the organization's empty flow list shows it.
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+
feat(app-shell): a dashboard or a report opened from a Studio list opens in its app's edit state, and × goes back to the list
7+
8+
Clause-②: no
9+
Metadata-protocol: none
10+
11+
Studio redesign (epic #36890), decisions 3, 6, 13 and 15.
12+
13+
- **Opening a dashboard or a report from a Studio list** opens its page in an app, with the dashboard's edit state or the report's builder already open, as the page's own Edit opens them. The app is the one the author came from, when that app is one of the package's published apps or its menu opens the item; otherwise it is the package's first published app. The item keeps opening Studio's own item page when the package has no published app, on the list of every package, when the item has no published version yet (a draft only), or when the link asks for one of the item page's tabs or its draft review.
14+
- **× back to Studio.** The page's address remembers the Studio list it was opened from, so the dashboard page and the report page draw a × that goes back to that list with its filters and sort, after a reload too. The report builder's own × does the same. Leaving unsaved edits asks first.
15+
- **New report from Studio's report list** opens the app's New report page. The report is saved in the package the list shows, or, for an installed app, in its customization package, so it appears in the list × goes back to. Where the installed app's customization package cannot be used, New goes back to the list, as before. If that package becomes unusable between opening the page and saving, the report is saved outside any package, and a notice says the Studio list does not show it. Closing the page goes back to the Studio list, and the saved report's page keeps the way back. With no app to open, the list creates as before.
16+
- **A dashboard made in Studio** opens in its app once saved, and the browser's Back from there goes to the list, not to an empty New page.
17+
- **The report builder's ×, and the New report page's ×,** now ask before dropping unsaved edits everywhere, not only when Studio opened them.
18+
- **No dashboard edit on a phone.** The dashboard edit state is no longer offered in a phone-width window (narrower than 640 px). A link that asks for it, from Studio or the design mode, is ignored there and the page stays a viewer. The Edit button was already hidden at that width.
19+
- New console strings under `studioReturn`, and `report.builder.savedOutsideApp`, in every bundled locale.
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 authoring form's Default Period row (Filters, then Date Range) now names each choice: Today, This month, Last 30 days, Custom… and so on, instead of the stored preset (`this_month`). It offers the same named options as the report form, from one shared table, so the two selects name a period the same way and a preset added later is named on both the day it lands. The Date Range group now lists its three rows (Date Field, Default Period, Allow Custom Range) by name, with zh-CN catalog wording. In the Studio dashboard inspector, a Chinese session reads the period names from the console's locale packs, the same words the period chip shows (本月, 近 30 天, 自定义…), through the helper the report inspector uses.
11+
12+
Only the form's row and option names moved. No key, accepted value or default changed, and nothing an author can write or validate is different.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
'@objectstack/spec': minor
3+
'@objectstack/runtime': patch
4+
'@object-ui/core': minor
5+
'@object-ui/react': minor
6+
'@object-ui/components': patch
7+
'@object-ui/plugin-grid': patch
8+
'@object-ui/plugin-detail': patch
9+
'@object-ui/app-shell': minor
10+
---
11+
12+
feat(actions): `type: 'ask_ai'` — an action that opens the in-app assistant focused on the record it runs on
13+
14+
Clause-②: yes (widening: a new `ActionType` member `ask_ai`, refused beside `target`, `ai.exposed: true` and on a dashboard header)
15+
Metadata-protocol: added
16+
Skills-docs: follow-up #37217
17+
18+
ADR-0160 D7. An author can now put an "Ask AI" button on a record:
19+
20+
```ts
21+
actions: [{ name: 'ask_about_account', label: 'Ask AI', type: 'ask_ai', locations: ['record_header'] }]
22+
```
23+
24+
- **Spec.** `ActionType` gains `ask_ai`. It takes no `target`: the parse refuses one (and its inline spelling `to`) at the `target` path, because what the assistant reads about the record is chosen by the record's context pack, not by the action. It is never an AI tool: `ai.exposed: true` beside it is refused at `ai.exposed` (`false` parses). A dashboard header action cannot be `actionType: 'ask_ai'` (a header runs on no record); `WidgetActionTypeSchema` stays derived from `ActionType` and the header refuses that one member with the reason.
25+
- **Runtime.** `ask_ai` has no server dispatch. `isHeadlessInvokableAction` answers `false` for it, so MCP `list_actions` skips it and the AI action door refuses it, and the REST action door answers with a sentence about the in-app assistant.
26+
- **Console.** A click focuses the in-app assistant on the record (`setChatFocus`) and opens the drawer. It sends no message and makes no server call. The record is the page record, the row a row surface hands over, or the one selected row; with none, or several selected, the click is refused before any `confirmText`. New in `@object-ui/core`: `ActionRunner.setAssistantFocusHandler`, `ActionRunner.drawsAction`, `isAskAiAction`, and the `AssistantFocus` / `AssistantFocusHandler` types; `ActionEngine` leaves undrawn actions out of `getActionsForLocation` and `getBulkActions`. New in `@object-ui/react`: `<ActionProvider onAskAi>` and `useDrawsAction()`. `@object-ui/app-shell` installs the handler (`useAskAiHandler`) only when the layout hosts the assistant drawer, the AI surface is on, and an agent in the catalog advertises `capabilities.focus`.
27+
- **Absent, not disabled.** Where no in-app assistant can take it, an `ask_ai` action is not drawn on any action surface (record header, action bars, row menus, related lists, page action renderers). Where no single record is held it is absent too: the bulk bar never offers it, a related list's toolbar leaves it out (its rows draw it), and a list toolbar draws it only while exactly one row is selected. A launch that reaches the runner anyway is refused, not reported done; `ActionRunner.bulkRefusal` refuses a per-row run over a selection, and `ActionEngine.getBulkActions` / `executeBulk` leave it out.
28+
- **The conversation it opens.** The click opens the drawer on a fresh thread of an agent that declares `capabilities.focus` (an `ask` agent first), so the drawer's own pin control is drawn on the record, and pins the record to that thread; its first send carries the focus and creates the conversation, and an unsent one creates nothing. A conversation the drawer showed before keeps its own focus. So does a history conversation the user opens before the first send: the dock's focus host now drops a hand-off's carry when the drawer is asked for another target. New in `@object-ui/app-shell`: `setChatFocus(focus, { follow: true })`, a pin for the conversation the caller moves the chat to in the same event.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
'@objectstack/spec': patch
3+
'@object-ui/i18n': patch
4+
---
5+
6+
feat(ai): `get_record_context` joins the cloud `service-ai` group of `PLATFORM_TOOLS_BY_PACKAGE`, with its chat step label
7+
8+
Clause-②: yes (widening) — `PLATFORM_TOOLS_BY_PACKAGE` and `PLATFORM_PROVIDED_TOOL_NAMES` gain `get_record_context`, so `ai-skill-tool-unresolved` stops reporting it on a `mcpPrompt: false` skill; nothing that resolved before is reported
9+
Metadata-protocol: none
10+
Skills-docs: none — `skills/objectstack-ai/SKILL.md` points at the registry file and names no tool
11+
12+
The in-app assistant (cloud `@objectstack/service-ai`) registers `get_record_context` from the same definition the MCP door serves and delegates to the same `record-context` executor (ADR-0160 D4). Its name now sits in that group of the platform tool registry, so `PLATFORM_PROVIDED_TOOL_NAMES` resolves it. The `skill.tools[]` lint rule therefore stops reporting it for a skill kept out of MCP (`mcpPrompt: false`); before, it reported the name as served over MCP only. Nothing an author writes changes.
13+
14+
New locale key: `chatbot.tool.get_record_context` in all eleven packs (en "Read the record context", zh-Hans 读取记录资料), the step name the chat shows while the assistant reads a record's context pack.
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
---
2+
'@object-ui/i18n': major
3+
---
4+
5+
feat(i18n)!: the 67 translation keys `@object-ui/i18n@18.6.0` shipped that no code reads any more are retired in 19.0.0
6+
7+
**BREAKING**: released keys are retired in 19.0.0. `@object-ui/i18n@18.6.0` shipped every key listed below; none of them is in the package any more, in any locale. No code in the platform reads them.
8+
9+
Clause-②: yes (narrowing)
10+
Metadata-protocol: none
11+
12+
<!-- adr-0087: not-required (no-migration-prescription) The retired operands are translation keys in the published i18n catalogues: no packages/spec schema, registered node type, stored metadata row or ADR-0087 conversion surface names them, and nothing a metadata author writes changes, so there is nothing for objectstack migrate meta to rewrite -->
13+
14+
If a deployment overrides one of these keys (in its own i18next resources, or a Studio catalogue it registers), that override no longer applies: nothing in the console or Studio asks for the key, so the overriding text is never shown. Remove the override, or move the text to the key the surface reads now.
15+
16+
`@object-ui/i18n` is in the changesets `fixed` group, so this `major` moves every package in that group to 19, every `@objectstack/*` package included. The line's opening marker is a second `major` (on `@objectstack/spec`) in the same group; two majors in one fixed group still give one 19.0.0. In pre mode under `next` the first version step reads `19.0.0-next.0`.
17+
18+
The list is reproduced by `node ui/packages/i18n/scripts/released-keys-removed.mjs` (the tag against `origin/main`, every locale and namespace the package publishes, nested keys flattened).
19+
20+
## Removed translation keys
21+
22+
### Language packs (`@object-ui/i18n`, `@object-ui/i18n/locales`), 32 keys
23+
24+
Each key below is removed from all eleven locales: ar, de, en, es, fr, ja, ko, pt-BR, ru, zh-Hans, zh-Hant.
25+
26+
- `appDesigner.fieldDesigner.trackHistory`
27+
- `console.firstRunChecklist.confirm`
28+
- `console.firstRunChecklist.currency.saved`
29+
- `console.firstRunChecklist.currency.title`
30+
- `console.firstRunChecklist.currency.todo`
31+
- `console.firstRunChecklist.languageCountry.saved`
32+
- `console.firstRunChecklist.languageCountry.title`
33+
- `console.firstRunChecklist.languageCountry.todo`
34+
- `console.firstRunChecklist.organizationName.action`
35+
- `console.firstRunChecklist.organizationName.title`
36+
- `console.firstRunChecklist.organizationName.todo`
37+
- `console.firstRunChecklist.prefilled`
38+
- `console.firstRunChecklist.timezone.saved`
39+
- `console.firstRunChecklist.timezone.title`
40+
- `console.firstRunChecklist.timezone.todo`
41+
- `console.nav.design`
42+
- `console.nav.phoneBarHint`
43+
- `console.nav.searchMenu`
44+
- `console.objectView.openAsPage`
45+
- `console.objectView.personalizedParts.rowNumbers`
46+
- `dashboard.exportCsv`
47+
- `detail.collapseToDrawer`
48+
- `filterBuilder.where`
49+
- `list.recordOpen`
50+
- `list.recordOpenDeclaredPage`
51+
- `list.recordOpenDrawer`
52+
- `list.recordOpenNote`
53+
- `list.recordOpenPage`
54+
- `list.rowNumbers`
55+
- `sidebar.keepOpen`
56+
- `view.switcher.all`
57+
- `view.switcher.saveAsMyView`
58+
59+
### Studio namespace (`@object-ui/i18n/namespaces/studio`), 35 keys
60+
61+
Each key below is removed from both locales the namespace ships: en, zh.
62+
63+
- `designer.field.relatedList.parentFallback`
64+
- `designer.field.trackHistory`
65+
- `engine.edit.autoSaveOff`
66+
- `engine.edit.autoSaveOn`
67+
- `engine.edit.autoSavingShortly`
68+
- `engine.edit.related`
69+
- `engine.packages.installedApps.description`
70+
- `engine.packages.installedApps.title`
71+
- `engine.studio.autoSaved`
72+
- `engine.studio.data.form.flowCreate`
73+
- `engine.studio.data.form.flowEdit`
74+
- `engine.studio.data.form.flowLabel`
75+
- `engine.studio.data.form.layoutSource.fieldGroups`
76+
- `engine.studio.data.form.layoutSource.fieldGroupsTitle`
77+
- `engine.studio.data.form.layoutSource.formView`
78+
- `engine.studio.data.form.layoutSource.formViewTitle`
79+
- `engine.studio.designer.offForm`
80+
- `engine.studio.designer.sectionDeleteTitle`
81+
- `engine.studio.flowSavedNamed`
82+
- `engine.studio.flowSaveFailed`
83+
- `engine.studio.inspector.listView.kanbanCard.mode.drawer`
84+
- `engine.studio.inspector.listView.kanbanCard.mode.newWindow`
85+
- `engine.studio.inspector.listView.kanbanCard.mode.page`
86+
- `engine.studio.openApp`
87+
- `engine.studio.openAppPick`
88+
- `engine.studio.openAppTitle`
89+
- `engine.studio.owd.save`
90+
- `engine.studio.owd.saved`
91+
- `engine.studio.owd.saveNone`
92+
- `engine.studio.pillar.access`
93+
- `engine.studio.pillar.automations`
94+
- `engine.studio.pillar.data`
95+
- `engine.studio.pillar.interfaces`
96+
- `engine.studio.pillar.metadata`
97+
- `engine.studio.settings.highlightPreview`

‎.changeset/37223-v19-line-opens.md‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
"@objectstack/spec": major
3+
---
4+
5+
The v19 line opens (maintainer rulings 7153326968 and 7153441862). Every release from here is a `19.0.0-next.N` prerelease on the npm dist-tag `next`, until 19.0 GA.
6+
7+
Clause-②: no
8+
9+
- **What this marks.** Changesets is in pre mode with the tag `next`. Every package in the `fixed` group versions together, so this `major` takes all of them to 19, and the first version cut is `19.0.0-next.0`. `PROTOCOL_VERSION` follows `@objectstack/spec`'s major at version time. The marker itself changes no code, key, export or stored shape.
10+
- **What the line carries.** Each breaking change on the line says so in its own changeset. The first is `@object-ui/i18n`'s retirement of the translation keys 18.6.0 shipped and no code reads any more; a second `major` in the same `fixed` group still gives one 19.0.0.
11+
- **Who receives it.** A plain install still resolves the dist-tag `latest`, which stays on 18.x until 19.0 GA. A prerelease is installed only on request: `@objectstack/spec@next`, or an exact `19.0.0-next.N`.
12+
- **What ends it.** 19.0 GA exits pre mode and publishes to `latest`.
13+
14+
<!-- adr-0087: not-required (no-migration-prescription) the v19 line's opening marker: Changesets pre mode plus one major on the fixed group, so the train versions 19.0.0-next.N. No authorable key, spelling, export, type or stored shape moves in this changeset, and no stored row is read, rewritten or converted; each breaking change of the line states its own disposition in its own changeset. The other categories are closed on facts: the package publishes (not unpublished); no ADR-0087 id is named or touched (not registered or already-registered); and no TypeScript declaration moves (not runtime-interface-only or type-surface-only). -->

0 commit comments

Comments
 (0)