Skip to content

Commit 62cc0f4

Browse files
committed
verify(ui-import): refresh the ui/ subtree to objectui main bba96ce (objectstack#25697, DO NOT MERGE)
Merges objectui main (20 commits past cd70b78: objectui#13481 react peer ^19, #13483, #13484 readers, #13485 spec catch-up, #13486 detail panel edges, #13487, #13491 git paths, #13496 pin 43edf90, #13498 workspace-root files) into ui/. Conflicts: the six helper and gate files this branch had carried as a pre-merge copy of #13484's patch take the upstream version; ui/pnpm-lock.yaml stays deleted (the merged workspace lock is recomputed and spliced in the next commit); plugin-list keeps @objectstack/spec at workspace:^ and takes the ^19 react peers. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RSDL3SFtJaKzcymvCD8RsU
2 parents cfa1676 + bba96ce commit 62cc0f4

290 files changed

Lines changed: 14168 additions & 6153 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: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
"@object-ui/plugin-detail": minor
3+
"@object-ui/types": patch
4+
---
5+
6+
Clause-②: no
7+
Metadata-protocol: semantic
8+
9+
A record section whose fields are all empty, and that the page keeps (`hideEmpty: false`), now draws its heading plus one "Show N empty fields" row in read-only mode, the same fold a partly-filled section uses, instead of a placeholder row per field. Edit mode still draws every field as an editable row, and a print page still prints every row. When every section of a detail body is empty and at least two are kept, the body draws one "Show N empty fields" row for all of them (objectui#13386, objectui#12618).
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
'@object-ui/types': minor
3+
'@object-ui/core': minor
4+
'@object-ui/data-objectstack': minor
5+
'@object-ui/plugin-grid': minor
6+
---
7+
8+
Clause-②: yes
9+
Metadata-protocol: none
10+
11+
A list bulk action keeps each failed record's id and the server's reason, and a bulk run refreshes the bound list once instead of once per row (objectui#13442).
12+
13+
A 100-row bulk update took about 100 s in the console for about 19 s of server work. `bulkUpdate` read only the server's `succeeded` count, so a partial failure reached the result dialog and the error CSV as one `batch_0: N records failed` entry with no record id or reason. Apps that needed the reason ran `batchSize: 1`, and on that per-row path every write refetched and re-rendered the whole list.
14+
15+
- `DataSource.bulkUpdate` / `bulkDelete` (`@object-ui/types`) may now resolve to a `BulkWriteResult`, `{ succeeded, errors: [{ id, error }] }`, as well as to a plain count. Both new types are exported. An adapter that returns a number keeps working unchanged. A caller that reads the result must now handle both shapes; the bulk executor does.
16+
- `ObjectStackAdapter.bulkUpdate` / `bulkDelete` (`@object-ui/data-objectstack`) resolve to a `BulkWriteResult` built from the `results[].errors[]` that `updateMany` / `deleteMany` already answer, and the per-id fallback loop keeps each row's reason instead of discarding it. Breaking for direct callers: these two methods used to resolve to a number. Code that calls them directly and reads the result as a count must read `.succeeded`.
17+
- `executeBulkBatch` (`@object-ui/core`) reports each failure the bulk call names under its own id and reason. Only failures it does not name still fold into one `batch_${offset}` entry. So the result dialog, the error CSV and Retry work per record whatever the `batchSize`, and Undo skips the failed rows.
18+
- New optional `DataSource.batchMutationEvents(work)`: runs `work` with `onMutation` events held, then delivers them when it settles, one per resource and mutation type. `ObjectStackAdapter` implements it. `useBulkExecutor` (`@object-ui/plugin-grid`) runs each bulk run and each undo inside it, so ListView, ObjectView, kanban, calendar and the console's invalidation bridge refetch once per run, not once per row. The executor's `dataSource` face gains the matching optional member.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
'@object-ui/components': minor
3+
'@object-ui/types': minor
4+
'@object-ui/core': minor
5+
'@object-ui/cli': minor
6+
---
7+
8+
The raw-HTML `html` node type is retired (objectui#13449). Its renderer wrote the authored `html` string into the page through `dangerouslySetInnerHTML` with no sanitiser, so anyone who could write metadata could put script-bearing markup in front of every viewer — a `kind: 'html'` page included, which compiled an `html` tag carrying an `html` attribute with no diagnostic. `@objectstack/spec` declares no `html` component, so it is removed rather than sanitised, at once, with no deprecation alias. This is breaking for a page that still names it; it is marked `minor` under this repository's version policy.
9+
10+
- **SDUI node `html`**, also registered as `ui:html`. FROM: `@object-ui/components` registered both keys. TO: neither is registered. A JSON node that still names it draws the unknown-component panel, a `kind: 'html'` page that writes the tag fails to compile with `forbidden-tag` and `unknown-component`, and `objectui check` no longer counts either key among the known component types.
11+
- **Public block `html`** in `PUBLIC_BLOCKS` (`@object-ui/core`). FROM: listed as the curated tier's escape hatch, so `getPublicConfigs()` and the published `sdui.manifest.json` carried it. TO: not listed, so neither names it.
12+
- **Schema `HtmlSchema`** in `@object-ui/types`: the TypeScript interface from the package entry, with its `DataDisplaySchema` member and its `SchemaRegistry` row (so `ComponentType` no longer offers `'html'`), and the zod arm from `@object-ui/types/zod`. FROM: exported, and a `type: "html"` node validated against the arm. TO: there is no such export, so importing it fails to compile. `DataDisplaySchema` keeps a refusal arm for the literal, which is not exported, so `objectui validate` refuses a `type: "html"` node BY NAME at `type`, and the message names the remedy.
13+
14+
The `html` FIELD type (`HtmlFieldMetadata`, drawn by `field:html`) is a different layer and stays: its value displays through the sanitised fields path.
15+
16+
Fix for a page that still names it: in place of `{ "type": "html", "html": "…" }`, declare rich text a user edits as an `html` or `richtext` field on the object, whose value renders sanitised, and write authored page copy as a `kind: 'html'` page.
17+
18+
Clause-②: no (narrowing)
19+
Metadata-protocol: narrowed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
'@object-ui/core': minor
3+
'@object-ui/types': minor
4+
---
5+
6+
**BREAKING:** the `module` widget source is retired. `WidgetRegistry` no longer loads a widget's code from a URL at runtime (objectui#13450).
7+
8+
`RuntimeWidgetSource` had a `module` member, `{ type: 'module', url, exportName? }`, and `WidgetRegistry.load()` resolved it with a dynamic `import()` built through the Function constructor so that bundlers could not see it. That is the runtime dynamic import AGENTS.md commandment #6 forbids ("No `eval()` / runtime dynamic imports to load components"), and it also needs `unsafe-eval` under a strict Content Security Policy. The member, its `WidgetSourceModule` interface and the loader arm are removed. `RuntimeWidgetSource` is now `WidgetSourceInline | WidgetSourceRegistry`.
9+
10+
An old manifest is refused loudly, not skipped. In TypeScript, `type: 'module'` no longer type-checks, and importing `WidgetSourceModule` is `TS2305`. A manifest that reaches `WidgetRegistry.load()` untyped (plain JavaScript, a cast, or an older `@object-ui/types`) is rejected before anything is fetched. The rejection names the retired `module` source and both replacements, `load()` emits `widget:error`, and `loadAll()` reports the error for that widget. Any other unknown source type is rejected the same way, and the message lists the supported types.
11+
12+
Migration, FROM → TO:
13+
14+
- FROM `source: { type: 'module', url: '/widgets/chart.js', exportName: 'Chart' }`
15+
- TO `import { Chart } from './widgets/chart';` and then `source: { type: 'inline', component: Chart }`. The component is imported at build time, so the bundler sees it.
16+
- OR register the component once with the component registry (`ComponentRegistry.register('chart', Chart)`) and declare `source: { type: 'registry', registryKey: 'chart' }`.
17+
18+
One-line fix: replace each `{ type: 'module', url }` with `{ type: 'inline', component }`, where `component` is imported at build time.
19+
20+
Remote widgets as a product capability would be a new contract (a signed manifest and an allow-listed origin, decided in `@objectstack/spec`). This release does not add one.
21+
22+
Clause-②: no (narrowing)
23+
Metadata-protocol: narrowed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
"@object-ui/plugin-list": patch
3+
"@object-ui/plugin-map": patch
4+
"@object-ui/plugin-timeline": patch
5+
"@object-ui/plugin-grid": patch
6+
"@object-ui/plugin-view": patch
7+
"@object-ui/core": patch
8+
"@object-ui/react": patch
9+
---
10+
11+
Clause-②: no
12+
Metadata-protocol: none
13+
14+
The record overlay opened from a list, gallery, map or timeline view now mounts `RecordDetailPanel` from `@object-ui/plugin-detail`, as the grid, tree, kanban, calendar and gantt overlays already did, in place of a raw dump of the record's keys and values. A record previewed from any view reads with the object's declared labels and typed values, and without its `hidden` fields. The panel is read-only there, as on the grid and the tree; a row with no object name or id keeps the plain reading.
15+
16+
Drifted copies folded: `GANTT_CONFIG_SPELLING` is exported once from `@object-ui/core` (used by `ListView` and `ObjectView`); `isSameAuthoredFilter` is exported from `@object-ui/react` and `ObjectGrid` drops its copy; `@object-ui/core` exports `isPlainObject` (a non-null, non-array object) for private copies to switch to when their file is next touched.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
"@object-ui/plugin-gantt": patch
3+
"@object-ui/app-shell": patch
4+
---
5+
6+
Clause-②: no
7+
Metadata-protocol: narrowed
8+
9+
An invalid `gantt` block is refused instead of drawn (objectui#13459). `ObjectGantt` used to log `Invalid gantt configuration` and render the block anyway, so a block with a misspelt or missing key still drew a chart. It now renders a refusal that names each `GanttConfigSchema` issue by its path in the block (`gantt.endDateField: …`); a valid block and the flat ObjectView / ListView spelling render as before.
10+
11+
The Studio designers' spec derivations (`dashboard`, `package`, `page`, `report` and `view` schemas in `metadata-admin`) no longer catch a failed derivation and return `undefined`, which rendered a designer form silently missing fields. Their only input is the bundled spec, so a failure is a build-time fact that fails their tests; at runtime it reaches the route's error boundary.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
"@object-ui/console": patch
3+
"@object-ui/app-shell": patch
4+
"@object-ui/i18n": patch
5+
---
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
fix(console, app-shell): four routed console pages and the Studio datasource page speak the session's language instead of hard-coded English (objectui#13460).
11+
12+
- Developer → API Console, Developer → Public Forms, Developer → Integrations & APIs and System → AI Approvals read their copy from new `console.developer.apiConsole.*`, `console.developer.publicForms.*`, `console.developer.integrations.*` and `console.system.aiApprovals.*` keys, translated in all ten locale packs. Sentences with an inline bold action or `<code>` key are one translated string each, so every language places the element itself.
13+
- Setup → Datasources reads its copy from new `engine.datasource.*` rows in the Studio table (en-US and zh-CN, the `engine.*` carve-out). The driver config form's enum option values are unchanged.
14+
- English renders exactly as before, with or without an i18n provider. Code samples, verbs, paths, example slugs and server messages stay as written.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
'@object-ui/components': patch
4+
'@object-ui/fields': patch
5+
'@object-ui/i18n': patch
6+
'@object-ui/plugin-chatbot': patch
7+
---
8+
9+
Icon-only buttons in the console now have an accessible name, and the clickable `div` / `span` controls the console drew are real buttons a keyboard can reach (objectui#13461).
10+
11+
Clause-②: no
12+
Metadata-protocol: none
13+
14+
- Named, in every shipped language: the AI canvas's close button, the secret value's show / hide toggle in the action result dialog, the permission set editor's remove-policy and remove-tab buttons, the metadata history page's refresh button, the sort builder's remove button, the `file-upload` renderer's remove buttons, the file, master-detail, password and QR-code field widgets' icon buttons, the chat composer's send button, the chat's scroll-to-latest button, and the top bar's avatar button ("Account menu").
15+
- The organization picker's "Manage" link is its own button beside the card, not a clickable `span` inside the card's button, so it can be tabbed to and is no longer read as part of the card's name.
16+
- A flow canvas branch label selects its edge with Enter or Space when the edge is selectable.
17+
- `tree-view`: the expand toggle is named ("Expand" / "Collapse") and reports `aria-expanded`; a node is a button only when the host passes `onNodeClick`, instead of a clickable row wrapped round the toggle.
18+
- `file-upload`: the dropzone opens the file picker with Enter or Space.
19+
- The app preview's read-only navigation list no longer carries a click handler that could never fire.
20+
- New pack keys: `common.expand`, `common.collapse`, `user.accountMenu`, `actions.resultDialog.showValue` / `hideValue`, `fields.masterDetail.view` / `remove`, `fields.password.show` / `hide`, `fields.qrCode.copy` / `show` / `hide`, `chatbot.sendMessage`, `chatbot.scrollToBottom`.
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
"@object-ui/auth": patch
3+
"@object-ui/cli": patch
4+
"@object-ui/collaboration": patch
5+
"@object-ui/create-plugin": patch
6+
"@object-ui/data-objectstack": patch
7+
"@object-ui/mobile": patch
8+
"@object-ui/permissions": patch
9+
"@object-ui/plugin-ai": patch
10+
"@object-ui/plugin-calendar": patch
11+
"@object-ui/plugin-charts": patch
12+
"@object-ui/plugin-chatbot": patch
13+
"@object-ui/plugin-dashboard": patch
14+
"@object-ui/plugin-designer": patch
15+
"@object-ui/plugin-detail": patch
16+
"@object-ui/plugin-editor": patch
17+
"@object-ui/plugin-form": patch
18+
"@object-ui/plugin-gantt": patch
19+
"@object-ui/plugin-grid": patch
20+
"@object-ui/plugin-kanban": patch
21+
"@object-ui/plugin-list": patch
22+
"@object-ui/plugin-map": patch
23+
"@object-ui/plugin-markdown": patch
24+
"@object-ui/plugin-report": patch
25+
"@object-ui/plugin-timeline": patch
26+
"@object-ui/plugin-tree": patch
27+
"@object-ui/plugin-view": patch
28+
"@object-ui/providers": patch
29+
"@object-ui/react": patch
30+
"@object-ui/runner": patch
31+
---
32+
33+
Clause-②: no
34+
Metadata-protocol: none
35+
36+
Every published package now declares `sideEffects`, so a host that bundles `@object-ui/*` can tree-shake the ones that do nothing on import. `@object-ui/react`, `auth`, `collaboration`, `data-objectstack`, `mobile`, `permissions` and `providers` declare `false`: no module in them registers, imports CSS or writes a global when it loads. Every `plugin-*` package except `plugin-ai`, `plugin-chatbot`, `plugin-dashboard` and `plugin-grid` declares an array naming exactly its entry forms and the modules that register components at load time, so `import '@object-ui/plugin-x'` still registers everything it did before. `plugin-ai`, `plugin-chatbot`, `plugin-dashboard`, `plugin-grid`, `cli`, `create-plugin` and `runner` declare `true` (objectui#13464).
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
"@object-ui/app-shell": minor
3+
---
4+
5+
Clause-②: no
6+
Metadata-protocol: none
7+
8+
**Breaking:** React 18 is no longer a supported host. `peerDependencies.react` and `peerDependencies.react-dom` now read `^19.0.0` (was `^18.0.0 || ^19.0.0`). Nothing in this repository ever installed or tested React 18, so the old range was a promise without a test behind it; a React 18 host now gets a peer-dependency warning or refusal at install time instead of an untested runtime. Declared `minor` per the version-alignment policy (a changeset never declares `major`). Upgrade the host to React 19 (objectui#13465).

0 commit comments

Comments
 (0)