Skip to content

Commit b6e22ef

Browse files
committed
Merge remote-tracking branch 'origin/main' into claude/issue-36895-studio-path-helper
HomePage.tsx: main (#36989) added the catalogServesBuild import beside this branch's studioLandingPath import; both kept. useAddAppEntries.ts: main's buildServed condition kept, its '/studio' target written as studioLandingPath() (byte-identical). Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzhpykmQZe1yMupC2CU
2 parents 2fec7fb + 4c4a677 commit b6e22ef

138 files changed

Lines changed: 7697 additions & 989 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: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
'@objectstack/skills': patch
3+
'@objectstack/spec': patch
4+
'@objectstack/trigger-schedule': patch
5+
---
6+
7+
docs(skills): the automation skill, the schedule trigger README and the start-node schedule refusals spell only flow shapes the publish checks accept
8+
9+
Clause-②: no
10+
Metadata-protocol: none
11+
12+
Ten flow checks of `os validate` and publish (`flow-schedule-timezone-missing`, `flow-condition-option-label`, `flow-node-write-unknown-option`, `flow-subflow-unknown` and the rest) landed without the text that teaches flows. Three of them are warnings and refuse nothing: `flow-schedule-timezone-missing`, `flow-subflow-unknown` (run by the CLI only) and `flow-create-update-pair`. Wording only; no schema, rule or reader changes.
13+
14+
- `@objectstack/spec`: the three refusals of a start node's `config.schedule` (an empty string, a typed schedule the published schema refuses, a value the readers read nothing from) now offer `{ type: 'cron', expression: '0 8 * * *', timezone: 'UTC' }` as the cron to write. They no longer offer a bare cron string or a cron object with no `timezone`, which `os validate` warns on. The typed-alias hint names `{ type: 'cron', expression: '…', timezone: 'UTC' }`. What is refused is unchanged.
15+
- `objectstack-automation` skill: recipe 1's nightly cron states `timezone: 'UTC'`; the schedule example's comment says a cron with no `timezone` (a bare string) runs in UTC and warns, where it said a bare cron string also works; the `subflow` row says `os validate` warns `flow-subflow-unknown` on any name the stack does not hold, a correct call to another package's flow included, where it said `os validate` passes; the select-label rule says a start condition or a `fields` write that uses an option's label is refused at publish where the options are inline, where it said the flow stages clean, and says a label in a `filter` or an edge condition is never checked and silently matches nothing, where it said a `filter` fails the run. Eval 1's expected answer states the cron's `timezone`, and eval 20's states that warning. No skill file passes its token ceiling: `SKILL.md` gains one line, paid for by shorter wording and shorter table separator rows in the same file, and two node labels in recipe 1 are shortened to pay for the `timezone` key.
16+
- `@objectstack/trigger-schedule` README: the time-relative example's cron states `timezone: 'UTC'`, and the schedule-shapes table is followed by the UTC reading and the warning.
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/rest': patch
4+
'@objectstack/runtime': patch
5+
'@objectstack/platform-objects': patch
6+
'@object-ui/app-shell': patch
7+
---
8+
9+
feat(spec): Studio list columns for 27 metadata types, served in the reader's language on both doors
10+
11+
Clause-②: yes (widening: `/meta/types` serves `list` on 26 more entries, and the runtime dispatcher's listing is now translated)
12+
Metadata-protocol: none
13+
14+
`METADATA_LIST_REGISTRY` now declares the Studio list columns of 27 metadata types: the first batch (`hook`, `flow`, `job`, `api`, `action`, `report`, `dataset`, `email_template`, `assignment_rule`, `sharing_rule`, `queue`, `agent`, `tool`, `skill`, `doc`, `seed`, `mapping`, `picklist`, `translation`) and the eight types the console used to declare itself (`object`, `field`, `view`, `page`, `dashboard`, `permission`, `position`, `book`). Every column names a key the type's schema declares, checked by the reconciliation test. Nothing an author writes changes: the registry is the spec's own constant.
15+
16+
- **Headers in every shipped language.** The 52 headers no form field already labels get their own `metadataForms.<type>.fields.<path>.label` leaf in the 11 platform bundles (`@objectstack/platform-objects`), translated in all ten non-English locales. A column the form labels reads the form's words.
17+
- **Both doors translate the listing.** The runtime dispatcher's `GET /meta` and `GET /meta/types` now answer the types listing in the request's language, as `RestServer`'s `GET /meta` does: type labels, form labels, list headers and schema titles. Both run one function, `translateMetaTypesListing` (`@objectstack/rest`). Before this, a host served through the dispatcher answered all of it in English.
18+
- **The console's own declarations move into the spec.** Studio's lists of objects, fields, views, pages, dashboards, permission sets, positions and books read the served columns. The console keeps only what the schema cannot say: a field row's server-stamped `object`, a position's holder count and granted permission sets, a view's derived display type, a book's audience and a sharing rule's `sharedWith` rendering. The console declared `object`'s columns twice, in two registrations that disagreed (the later one won); both declarations are gone, so one remains, in the spec. A page's former `route` column named no `PageSchema` key and is dropped. What an admin sees in Studio (`@object-ui/app-shell`): the metadata lists of all 27 types show the spec's columns, in the declared order, with headers in the reader's language. The moved lists lose the console's fixed column widths (the view list's display type and the book list's audience keep theirs), the Fields list reads name, type, label, then object, the sharing-rule list's header reads "Access Level" where it read "Access", and the Pages list shows type and description in place of the dropped route column. A summary cell reads an expression member as its source, so the Jobs list's schedule shows a cron job's expression (`cron · 0 2 * * * · UTC`), not only its kind and time zone.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
'@object-ui/data-objectstack': patch
3+
'@object-ui/app-shell': patch
4+
'@object-ui/i18n': patch
5+
---
6+
7+
feat(console): the metadata list shows when each item last changed and marks items with unpublished changes
8+
9+
Clause-②: yes (widening)
10+
Metadata-protocol: none
11+
12+
The generic metadata list (Setup's catalog lists and Studio's "All metadata" area) gains a 「修改时间」 / "Modified" column, read off the list answer's `changedAt` sibling. Only an item served from a stored row has a time; a code-shipped item shows an empty cell. The sort control gains "Modified (newest first)" and "Modified (oldest first)", which ride the address as `sort=-changed` / `sort=changed`; items without a time sort last either way, and the item page's ‹ › follow the same order.
13+
14+
Beneath the time, an item with a pending draft on the existing `GET /api/v1/meta/_drafts` ledger is marked 「有未发布的改动」 / "Unpublished changes", including drafts that existed before this change. A draft the AI assistant wrote (any of its recorded changes made by the AI copilot or through the MCP build door, the rule the item page's AI line uses) is marked 「AI 的改动未发布」 / "Unpublished AI changes" instead. A publish removes the mark.
15+
16+
`MetadataClient.listResponse` now returns the list's `changedAt` beside the items (each entry read with the spec's own rule; an entry that does not parse is dropped, and absence stays absence). `list` is unchanged.
17+
18+
New locale keys in the studio catalogue (en, zh): `engine.list.sort.changed.asc`, `engine.list.sort.changed.desc`, `engine.list.col.changedAt`, `engine.list.draftMark.human`, `engine.list.draftMark.humanTitle`, `engine.list.draftMark.ai`, `engine.list.draftMark.aiTitle`.
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(studio): a metadata item fills the content pane under one detail header, and its tools are tabs instead of side sheets
7+
8+
Clause-②: no
9+
Metadata-protocol: none
10+
11+
Studio's generic item page and the form editor of an email template or a translation now draw the shared Studio detail header: × back to the type's list (its search, filters, sort and package scope kept), ‹ › to the previous and next item in the list's order with "index / total", the type and source package as chips, and the page's actions at the right. Both × and ‹ › ask first when the page holds unsaved edits; the browser's Back is not intercepted.
12+
13+
The six side sheets of the generic item page are tabs of the page: Details, Preview (a type with an editing canvas), Related (a type with anchors), Referenced by, History (the versions with rollback, and the audit log read inside it; shown to a caller who may read the authoring trail) and Source (the JSON source, and the layered comparison read inside it, for read-only callers too). The open tab is in the address as `?tab=`; the values the sheets wrote still open the same place (`?tab=layers` opens Source on the layers, `?tab=audit` opens History on the audit log). The draft review is a status chip in the header while a draft is pending, and `?review=1` still opens it.
14+
15+
On a type with a canvas the page opens on Preview; Details shows the whole item's form. Both edit one draft, and one Save (the header's button, ⌘S or autosave) saves it whichever tab is open, so a tab switch keeps every unsaved edit.
16+
17+
The address `/studio/PACKAGE/metadata/TYPE/NAME/history` opens the item on its History tab; the permission set, whose item page is its own matrix editor, and an item a pillar's designer opens (a flow, an object) keep the standalone history page there.
18+
19+
New in `@object-ui/app-shell`: `item-tools/ItemToolTabs.tsx` (the tab strip, the address helpers and the References, History and Source panels, for the designers to mount) and `metadata-admin/ResourceDetailHeader.tsx`. New locale keys `engine.studio.itemTabs.*` in the studio catalogue (en, zh). No metadata changes; nothing to migrate.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
'@object-ui/types': patch
3+
'@object-ui/plugin-grid': patch
4+
'@object-ui/app-shell': patch
5+
'@object-ui/i18n': patch
6+
---
7+
8+
fix(console): a per-record bulk flow action counts a refused record as refused, with its own message, and stacks no refusal notice
9+
10+
Clause-②: yes (seat ruling: the published `@object-ui/types` `ActionResult` gains a member; L1-a owes a lane-keep L2 review)
11+
Metadata-protocol: none
12+
13+
The published `@object-ui/types` adds two optional members, `ActionResult.refusal` and `ActionContext.reportsRefusal`. Nothing existing is narrowed.
14+
15+
A list view's selection bar can run a `type: 'flow'` action once per selected record. A run that ended on an `end` node with `outcome: 'refused'` answers `200` with `status: "refused"` and a `refusalMessage`. Before this change the bulk result counted such a record as succeeded ("Succeeded 3 / 3"), and one refusal dialog opened on top of the result showing a single record's message, so the other refused records' reasons were lost.
16+
17+
- The result now counts refused records apart: "Succeeded 1 / 3 · Refused 2". Each refused record is listed with the sentence the flow wrote for it. A refused record has no Retry and is not written to the error CSV: re-running it would get the same answer. When a failed record is retried and the action refuses it, it moves to the refused list.
18+
- No refusal dialog opens during a bulk run. The same action launched from a row menu still opens its Close-only refusal notice, unchanged.
19+
- `ActionResult.refusal` (`{ message }`) is set by the console's flow launch on a run that ended `refused`, beside `success: true` and `handedOff: true`. A caller that counts outcomes reads it as refused, never as done.
20+
- `ActionContext.reportsRefusal` is passed for one dispatch through `ActionRunner.execute`'s `callContext`. A caller that lists refusals itself sets it, and the console's flow handler then opens no notice of its own.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
'@object-ui/i18n': patch
3+
'@object-ui/app-shell': patch
4+
---
5+
6+
fix(i18n): the full search page names component, doc and link results in every language
7+
8+
Clause-②: no
9+
Metadata-protocol: none
10+
11+
The console's full search page (opened from the command palette's "Open Full Search Page") titles each result group and badges each result by the navigation item's type. Component items, doc items and link items printed raw keys (`search.typeComponents`, `search.badgeDoc`, `search.typeUrls`, …) because no locale pack defined them, English included. Every shipped console locale pack now carries a heading and a badge for the three types, and the search placeholder and its accessible label also name components and docs. A new test in `@object-ui/app-shell` renders the page with one navigation item of every spec type and fails when any heading or badge key the page asks for is missing from a pack.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
'@objectstack/plugin-approvals': patch
3+
---
4+
5+
fix(plugin-approvals): the approvals inbox search finds a request by the record title, process label, object label and requester name its row shows
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
The inbox search box ("Search record, process, requester…", `GET /api/v1/approvals/requests?q=`) matched only the stored machine columns (`process_name`, `object_name`, `record_id`, `submitter_id`) and, where the caller reads it unmasked, the raw snapshot. Text a row actually shows, such as a record title, a process label, a requester's name or an object label, found nothing, while a machine fragment like `crm_` found every row.
11+
12+
`q` now also matches the four labels a row shows, each worked out the way that caller is served it:
13+
14+
- the record title, as served to the caller: a title field the caller may not read, or reads masked, does not match;
15+
- the process label in the caller's language: the translated label where the reader's language pack has one, otherwise the stored label. A reader who is shown the translation is not found by the stored text;
16+
- the object label, chosen the same way;
17+
- the requester's display name.
18+
19+
Matching stays case-sensitive, like the existing arms (`$contains`). The `q` parameter accepts the same values as before. A title that comes only from a deleted record's snapshot is not searched by this path.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
'@object-ui/console': patch
3+
'@objectstack/console': patch
4+
---
5+
6+
fix(console): the approvals inbox keeps its tab, filters, search and sort across a request's page and Back
7+
8+
Clause-②: no
9+
Metadata-protocol: none
10+
11+
Opening a request from the approvals inbox and pressing Back used to bring the inbox back on "My Pending" with every filter cleared: the tab, the status, process and object filters, the search text and the sort were held in component state only, and the inbox is rebuilt when the reader comes back. Someone working through "All" filtered to "Recalled" had to pick the tab and rebuild the filters after every request.
12+
13+
They now ride the inbox's address as page-scoped params: `scope` (the tab: `submitted` or `all`), `status`, `process`, `object`, `q` (the search text) and `sort` (`oldest` or `amount`). So Back, a reload and a copied link all reopen the inbox as the reader left it.
14+
15+
- A value at its default is left out, so an untouched inbox keeps a bare address.
16+
- Every change replaces the current history entry instead of adding one, so Back leaves the inbox rather than stepping through filter changes.
17+
- The search text reaches the address after the same short pause the server search already waited for. A search typed and opened at once is written before the request opens, so Back still returns to it.
18+
- A value the inbox does not offer (an unknown tab, sort or status, or a status on "My Pending", which has no status filter) reads as the default. A process or object the address names is checked once, when the first requests arrive, and is dropped only if those requests are the whole list (on "My Pending", or when the first page holds every request) and none of them carries it. On "Submitted by me" and "All", a value past the first page is kept and shown in its dropdown, so a filter picked after loading more pages survives Back, a reload and a copied link.
19+
- Switching tabs still clears the filters, search and sort, now in the address too. Other params are kept.
20+
- The `?request=` notification link still opens that request.
21+
22+
The tab rides `scope`, not `tab`, because `tab` is the console's reserved record-page tab param. Nothing to migrate.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
---
4+
5+
fix(console): the AI-build entries show only where the agent catalog serves the build agent, and an old build conversation still opens
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
A deployment can close in-app building with AI: its agent catalog then keeps `ask` and no longer lists `build`, and the chat route refuses `build`. The console's build entries now read the catalog for the build agent itself (alias-aware, `build` or its legacy id), never "any agent" and never a hosted or self-hosted guess:
11+
12+
- The sidebar app menu's 「Add app」 and the desktop's no-apps empty state offer "New in Studio" (Studio's new-package flow) instead of "Build with AI"; the template and marketplace choices stay.
13+
- Home's builder chip takes its "New in Studio" form, as it already did for an empty catalog, instead of "Build an app".
14+
- Studio's AI copilot is not drawn; the right panel shows the properties alone, as for an empty catalog. Asking stays in the console's chat drawer.
15+
- The full-page chat address `/ai/build/ID` lands on `/ai/ask/ID` and opens that conversation, instead of `/ai/ask` without it. A maker's bare `/ai/ask` is not redirected to `/ai/build`.
16+
17+
Where the catalog serves `build`, every entry behaves as before. `useAiSurfaceEnabled()` also returns `buildServed`; no locale keys change.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
'@object-ui/console': patch
3+
'@object-ui/i18n': patch
4+
---
5+
6+
fix(console): the profile Language card says it is the same setting as the globe menu
7+
8+
Clause-②: no
9+
Metadata-protocol: none
10+
11+
The Language card on the profile page described itself as the language for notifications and messages only, and said the interface language was chosen separately from the globe menu. Both controls write the same `sys_user.locale` column and the console applies it as the interface language, so saving the card switched the whole console. The card's description (`profile.language.description`, in all ten built-in packs and in the console's own fallback text) now says it is one setting for the interface and for what is sent to the user, the same one as the globe menu. The zh-Hans text uses full-width punctuation. Nothing to migrate.

0 commit comments

Comments
 (0)