Skip to content

Commit ab5bc53

Browse files
committed
Merge remote-tracking branch 'origin/main' into claude/issue-34593-studio-open-app
Claude-Session: https://claude.ai/code/session_01WGufzi3ezPzTysQPDEjmVz Co-authored-by: Claude <noreply@anthropic.com>
2 parents 572f256 + f6f5b50 commit ab5bc53

261 files changed

Lines changed: 5880 additions & 1455 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: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
'@object-ui/components': patch
3+
'@object-ui/plugin-detail': patch
4+
---
5+
6+
fix(ui): on a phone the record page keeps Edit in its bottom bar, names the current stage in full, and lays its key fields out in two columns
7+
8+
Clause-②: no
9+
Metadata-protocol: none
10+
11+
Three phone-width changes to the record page. Desktop layouts are unchanged.
12+
13+
- **Bottom action bar.** On an editable record the bar is now Edit, the primary action, then the `⋯` menu with every other action. Before, the page's own actions took both slots first, so an object with two record actions pushed Edit into the `⋯`. The primary is the action declaring `variant: 'primary'`, else the first action. A record the reader cannot edit keeps the primary and one more. A destructive host action (Delete) still always goes in the `⋯`. `page:header`'s `mobileMaxVisible` still sets how many buttons the bar holds; a budget of one is Edit's.
14+
- **Stage bar (`record:path`).** Below the `sm` breakpoint the path draws one progress segment per stage and no stage names, then one line with the step and the current stage's full name ("Step 5 of 6 · Negotiation", the existing form `stepOf` copy). The step counts the forward stages; a record on a lost stage shows that stage, marked lost, with no step. Tapping the line lists every stage by its full name, and on a path that allows stage changes each reachable stage there moves the record, behind the same permission and state-machine checks as on desktop. Nothing is authored for this: the viewport picks the mode.
15+
- **Key-field strip on a hand-written page.** Below `sm` the strip is a two-column grid, as the default page's is, so six key fields read as three rows instead of six lines. A value too long for its cell ends in an ellipsis.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
'@object-ui/components': patch
3+
'@object-ui/types': patch
4+
---
5+
6+
fix(components): an editable list's lookup column is wide enough for its record picker
7+
8+
Clause-②: no
9+
Metadata-protocol: none
10+
11+
With inline editing on, a lookup column in a list was sized from the short names its cells draw, often 80 to 121px. Its cell editor is the record picker, so the picker's trigger got a few dozen pixels and the option list it opened cut every name ("C..", "W."). In an editable table, a foreign-key column (a lookup, master-detail, tree or user field) whose cells edit is now never narrower than 168px, the width the inline line-item grid already gives its lookup columns. A wider name still widens the column as before. A width the view pins, or the user's own resize, is drawn exactly as written, and read-only tables and columns that do not edit are unchanged.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
'@objectstack/spec': minor
3+
'@objectstack/plugin-sharing': patch
4+
'@objectstack/plugin-hono-server': patch
5+
'@objectstack/client': patch
6+
'@object-ui/permissions': patch
7+
'@object-ui/plugin-list': patch
8+
---
9+
10+
feat: the list toolbar offers the "In a queue" toggle only on objects that actually use queues
11+
12+
Clause-②: yes (widening)
13+
Metadata-protocol: added
14+
15+
Until now the toggle appeared on every list of an object with a user owner as soon as the organization had a single queue, although on most of those objects no record ever sits in a queue, so it could only return an empty list. It now appears only on an object where a queue can hold something:
16+
17+
- a record of the object sits in a queue now (no owner, a queue set), or
18+
- an active assignment rule routes the object's new records into a queue: one of the organization's own rules, or a rule an installed package declares that is not switched off.
19+
20+
Nothing is authored for this. The server works it out from the rules and the records.
21+
22+
`GET /auth/me/permissions` carries the answer as a new field beside `hasAnyQueue`: `objectsUsingQueues`, a list of object names, declared in `MePermissionsAuthenticatedResponseSchema`. It names only objects the caller may read, and never a queue name or a count. It is empty when the organization has no queue, when no ownership-queue service is registered, and on the closed body. The ownership-queue service contract gains the optional method `objectsUsingQueues(organizationId)`, implemented by `@objectstack/plugin-sharing`. The method checks each owned object for one sitting record (`limit 1`) and reads the routing rules once. The route asks only when `hasAnyQueue` is true, so an organization with no queue pays nothing extra.
23+
24+
**Migration.** `objectsUsingQueues` is required on the strict `MePermissionsAuthenticatedResponseSchema`. Code that builds a `MePermissionsAuthenticatedResponse` (a test fixture, a stub server) adds `objectsUsingQueues: []` beside `hasAnyQueue`. Code that parses a body from a server older than this release with the schema gets a parse failure for the missing key: parse with `.partial({ objectsUsingQueues: true })` or default it to `[]` until the server is upgraded. The console does not parse; it reads the field and treats its absence as "no object".
25+
26+
The console reads the field from the payload it already loads once per session. A record that starts sitting in a queue on an object not listed yet shows the toggle from the next time the permissions are read. An answer without the field is treated as "no", the same way an unknown `hasAnyQueue` is.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
'@object-ui/plugin-form': patch
3+
---
4+
5+
feat(plugin-form): the form dialog's header has a maximize / restore button, like the record drawer's, and remembers the choice per object
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
A create or edit dialog could not be made bigger: a long form, or a form with line items, stayed in a dialog capped at 90% of the window height. The dialog header now has the record drawer's maximize button (the same icon, size and labels, "Maximize" / "Restore size"), just before the close (X) button.
11+
12+
- **Maximize** widens the dialog to the `full` size (95% of the window width) and makes it fill 95% of the window height. The form body scrolls inside the dialog.
13+
- **Restore size** puts the dialog back to its declared or inferred size.
14+
- The form stays open the whole time. Typed values, the unsaved-changes prompt on close, and line items added in a form with `subforms` are all kept.
15+
- Both dialog kinds have the button: a plain form and a form with `subforms` (line items).
16+
- A maximized dialog with no declared `columns` uses the `full` column count, so a form with sixteen or more fields shows four per row.
17+
- The choice is remembered per object in the browser's local storage. The next dialog for that object opens the same way. Other objects are not affected.
18+
- On a phone the dialog already fills the screen, so the button is shown from the `sm` breakpoint up only.
19+
20+
No metadata changes. An authored `modalSize` is still the size the dialog opens with until the user maximizes it.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
'@object-ui/components': patch
3+
'@object-ui/plugin-form': patch
4+
'@object-ui/i18n': patch
5+
---
6+
7+
feat(plugin-form): a sectioned form shows its sections as a navigation strip; a click scrolls to the section, and a section with errors carries the count
8+
9+
Clause-②: yes (widening — one @object-ui/components export + new @object-ui/i18n locale keys; no FormSchema or spec key)
10+
Metadata-protocol: none
11+
12+
The new export is `FormSectionNavContext` with its `FormSectionNavItem` / `FormSectionNavSink` types; the new locale keys are `form.sectionNav` and `form.sectionNavErrors`. Nothing that worked before is refused.
13+
14+
A create or edit dialog whose form is stacked in sections now shows one entry per visible section between the title and the scrolling body; a full-page sectioned form shows the same strip above its sections, sticky at the top of the page. A click scrolls to the section, unfolding it first when it is collapsed, and the entry of the section in view is highlighted while the form scrolls. When a submit is refused, each entry shows how many fields in its section need fixing, and the count drops as the fields are fixed.
15+
16+
The strip appears only with two or more visible sections. A section hidden by its `visibleWhen` is not listed. A tabbed form keeps its tab strip and gets no section strip. Nothing is configured: no form, section or field key turns it on or off.
17+
18+
For hosts: the `form` renderer reports the section headings it draws, with each section's error count, to a sink provided through `FormSectionNavContext`; each heading row now carries a stable `id` and a `data-form-section` attribute naming its section.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
'@object-ui/console': patch
4+
'@object-ui/i18n': patch
5+
---
6+
7+
feat(console-ai): the AI assistant is one right-side drawer, opened from the top-bar robot, with no full page
8+
9+
Clause-②: yes (widening — new @object-ui/i18n locale keys only)
10+
Metadata-protocol: none
11+
12+
The console's AI assistant now has one container, the right-side drawer (ui ADR-0057, amended).
13+
14+
- The robot in the top bar opens and closes the drawer on the page you are on. The URL does not change. The floating button in the bottom-right corner is gone. While a proposed plan waits for approval, the robot carries the marker that button used to carry.
15+
- The drawer's expand button makes it fill the window in place, with the conversation history as a column beside the chat. The same button puts it back as a side panel. Moving to another page puts it back too. At side-panel width the history is behind a "History" button. On a phone the drawer is a bottom sheet with the same "History" button.
16+
- Home hosts the same drawer. "Build with AI" and "Ask AI" on Home, and "Edit with AI" in app management, open the drawer instead of a page. A new build still starts unbound to any app (ADR-0057 A1).
17+
- The old `/ai`, `/ai/AGENT` and `/ai/AGENT/CONVERSATION` addresses still work. That includes bookmarks, shared links, `?package=` and `?new=`. They open the drawer on the conversation they name, filling the window, over the home page. A Builder handoff still travels only as navigation state.
18+
- Inside an app, a builder's empty state offers data questions as well as changes, as the composer hint already did. Its description and its first suggestions name both.
19+
- The drawer's share button now opens the share dialog. Before, it did nothing in the drawer.
20+
21+
`@object-ui/i18n`: new keys `console.ai.dock.history`, `console.ai.dock.backToChat`, `console.ai.dock.expand`, `console.ai.dock.restore` and `console.ai.empty.editApp.askOrChangeDescription`, in every locale pack. No key was removed or changed. The console no longer reads `console.ai.dock.maximize` or `console.ai.empty.editApp.description`. Retiring them is a separate change.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'@object-ui/plugin-grid': patch
3+
'@object-ui/components': patch
4+
---
5+
6+
fix(ui): a phone list card shows its amount in full, and a form's tab strip no longer widens a phone screen
7+
8+
Clause-②: no
9+
Metadata-protocol: none
10+
11+
- Phone list cards: the card's amount is the first shown column whose field type is `currency`. It used to share the subtitle line with the next column and was truncated with it (`CN¥1,2…`). It now has a line of its own under the subtitle, right-aligned and never truncated, with the status chip at that line's left. The subtitle shows the next shown column in its place. A list with no currency column draws its cards as before.
12+
- Form field tabs (`fieldTabs`, also used by tabbed modal and tabbed forms): below the `sm` breakpoint a horizontal tab strip is capped at its container's width, and tabs that do not fit scroll sideways with no scrollbar drawn, so the page no longer scrolls sideways. The active tab is kept in view: on a tap, on `defaultFieldTab`, and when a failed submit jumps to the tab with the first error, whose red dot stays on the trigger. Desktop strips and vertical strips are unchanged.
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+
fix(lint): the line-items and association inline-edit advisories read every inline-edit mode, not only `inlineEdit: true`
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
`inlineEdit` on a relationship field accepts `true`, `'grid'` and `'form'`, and the platform edits the child inline in all three. Two `os lint` advisories read only `true`:
11+
12+
- `relationship/line-items-inline-edit` told a `*_line` / `*_item` child whose `master_detail` already declares `inlineEdit: 'grid'` or `'form'` to "consider inlineEdit: true", offering a fix that would replace the mode the author chose. It is now silent for any of the three values and suggests inline editing only when `inlineEdit` is absent or `false`.
13+
- `relationship/association-inline-edit` warned an association child (comments, audit, activity) only for `inlineEdit: true`. It now warns for `'grid'` and `'form'` too, which clutter the parent's entry form the same way.
14+
15+
Rule ids, severities and messages are unchanged. Nothing is refused; both rules stay advisories.

‎content/docs/automation/queues-and-assignment-rules.mdx‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ The moment someone claims it, the queue path stops applying: the other members l
119119

120120
In the Console, a list of an object that carries the `queue` column has an **In a queue** toggle in its toolbar when your organization has at least one queue and the view's own filter does not require `owner_id` to hold a value (a top-level `equals`, `in` or `is_not_empty` condition on it, such as a "my records" view; one inside an OR group does not count), since a parked record has no owner. It narrows the list to parked records (`owner_id` empty and `queue` set); which of them you see is still the server's read filter, so a member sees what sits in their own queues.
121121

122+
The toggle appears only where it can find something: on an object where a record of your organization sits in a queue now, or where an active assignment rule (the organization's own or a package's) routes new records into a queue. Nothing is declared for this; the server works it out and the Console reads it once per session from `GET /api/v1/auth/me/permissions` (`objectsUsingQueues`, which names only objects you may read). So the toggle on an object whose first record was just parked by hand appears from the next time the Console loads your permissions, for example after signing in again or reloading the page.
123+
122124
## How a claim is spelled
123125

124126
A **claim** is an ordinary update of `owner_id` to your own user id, by record id:

‎content/docs/references/api/auth.mdx‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ const result = AuthProvider.parse(data);
9797
| **systemPermissions** | `string[]` | optional | The effective system capabilities (ADR-0066). Absent only on the degraded body, where it means unknown; an empty array means none. |
9898
| **tabPermissions** | `Record<string, Enum<'visible' \| 'hidden' \| 'default_on' \| 'default_off'>>` | optional | The effective app tab visibilities, keyed by app name. Absent only on the degraded body. |
9999
| **hasAnyQueue** | `boolean` | ✅ | Whether the caller's organization has at least one ownership queue: a declared queue the activation ledger has not switched off, or a `sys_queue` row of the organization. Resolved server-side through the ownership-queue service, so a member who may not read `sys_queue` still gets the answer; no names and no counts are disclosed. False when no ownership-queue service is registered, and on the closed body. |
100+
| **objectsUsingQueues** | `string[]` | ✅ | The objects, by name, on which a queue filter can find something in the caller's organization: a record of the object sits in an ownership queue now (no owner, a queue set), or an active assignment rule of the organization or of an installed package routes the object's new records into a queue. Resolved server-side through the ownership-queue service and listed only for objects the caller may read, except on the degraded body, where no object permissions resolved and the list is not narrowed; no queue names and no counts are disclosed. Empty when `hasAnyQueue` is false, for a person outside every organization, for a caller with no active organization on a deployment that walls organizations apart (`isolated` or `group`; under `single` that caller is answered environment-wide), when the ownership-queue service is not registered or cannot answer, and on the closed body. Read once per session, so a record that starts sitting in a queue later shows here from the next read on. |
100101

101102
### Nested Shape: `MePermissionsAuthenticatedResponse.objects[string]`
102103

@@ -160,6 +161,7 @@ This schema accepts one of the following structures:
160161
| **systemPermissions** | `string[]` | optional | The effective system capabilities (ADR-0066). Absent only on the degraded body, where it means unknown; an empty array means none. |
161162
| **tabPermissions** | `Record<string, Enum<'visible' \| 'hidden' \| 'default_on' \| 'default_off'>>` | optional | The effective app tab visibilities, keyed by app name. Absent only on the degraded body. |
162163
| **hasAnyQueue** | `boolean` | ✅ | Whether the caller's organization has at least one ownership queue: a declared queue the activation ledger has not switched off, or a `sys_queue` row of the organization. Resolved server-side through the ownership-queue service, so a member who may not read `sys_queue` still gets the answer; no names and no counts are disclosed. False when no ownership-queue service is registered, and on the closed body. |
164+
| **objectsUsingQueues** | `string[]` | ✅ | The objects, by name, on which a queue filter can find something in the caller's organization: a record of the object sits in an ownership queue now (no owner, a queue set), or an active assignment rule of the organization or of an installed package routes the object's new records into a queue. Resolved server-side through the ownership-queue service and listed only for objects the caller may read, except on the degraded body, where no object permissions resolved and the list is not narrowed; no queue names and no counts are disclosed. Empty when `hasAnyQueue` is false, for a person outside every organization, for a caller with no active organization on a deployment that walls organizations apart (`isolated` or `group`; under `single` that caller is answered environment-wide), when the ownership-queue service is not registered or cannot answer, and on the closed body. Read once per session, so a record that starts sitting in a queue later shows here from the next read on. |
163165

164166
### Nested Shape: `MePermissionsResponse[authenticated=true].objects[string]`
165167

0 commit comments

Comments
 (0)