Skip to content

Commit 079c772

Browse files
committed
Merge origin/main into claude/project-thread-j77l7i (#36178 comment panel PR 2)
Claude-Session: https://claude.ai/code/session_01L6bhgUZTwDqtEFzNFCVTri Co-authored-by: Claude <noreply@anthropic.com>
2 parents a6544d8 + 4ab2c82 commit 079c772

156 files changed

Lines changed: 5968 additions & 556 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: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
'@object-ui/types': patch
3+
'@object-ui/core': patch
4+
'@object-ui/data-objectstack': patch
5+
'@object-ui/plugin-dashboard': patch
6+
---
7+
8+
fix(dashboard): a global filter bound to a field holding several values is sent as `$contains`, not `=` / `$in`
9+
10+
Clause-②: yes (widening)
11+
Metadata-protocol: none
12+
13+
A dashboard `select` / `lookup` global filter bound to a field that holds several values (`multiple: true` on a select, lookup or user field, or a `multiselect` / `checkboxes` / `tags` field) used to be sent as `field = value`, or `$in` for several values. The server refuses both on such a field: the data query answers `400 INVALID_FILTER`, and the dataset query answers `200` with a count of 0, so the dashboard showed no data. The filter is now sent as `{ field: { $contains: value } }`, and several chosen values as `$or` over one `$contains` each, which the server answers with the matching rows. Single-value fields keep `=` / `$in`.
14+
15+
To know whether the bound field holds several values, the dashboard reads the field's definition before it sends the widget's query:
16+
17+
- `@object-ui/types`: `DataSource` has a new optional member, `getDataset(name, { callerPackage })`. It reads a dataset definition and resolves `null` when no such dataset is served; a failed read rejects.
18+
- `@object-ui/data-objectstack`: `ObjectStackAdapter.getDataset` reads `GET /api/v1/meta/dataset/:name`, sending the reader's package as `callerPackage`, and caches the answer like the adapter's other metadata reads.
19+
- `@object-ui/core`: `buildWidgetScopedFilter` takes an optional fifth argument, the operators each bound field takes when it is stored as a JSON column, and lowers a `select` / `lookup` filter on such a field to `$contains`. `boundMemberFilterNames` names the active `select` / `lookup` filters that bind a widget.
20+
- `@object-ui/plugin-dashboard`: `DashboardRenderer` reads a dataset-bound widget's base object through `getDataset`, and a `provider: 'object'` widget's own object, through `getObjectSchema`. While that read is in flight, a widget that a `select` / `lookup` filter with a value binds draws a skeleton and sends no query. The operators come from `jsonColumnFilterOperators`, the helper the list quick filter and the filter builder use.
21+
22+
A data source without `getDataset`, or a dataset the server does not serve, keeps the `=` / `$in` lowering, and the dashboard logs a console warning that names the filter.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
'@objectstack/platform-objects': patch
3+
---
4+
5+
fix(platform-objects): Setup → Users shows who a user's manager is, who reports to them, and can remove a manager
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
An administrator who set a user's manager could not read it back anywhere in Setup: the record page's Details tab named no section holding `manager_id`, no list showed the people reporting to a user, and the Set Manager dialog opened on an empty picker. The value was stored correctly; only the reading back was missing.
11+
12+
- **Details → Reporting Line** shows the user's manager (`sys_user.manager_id`, still read-only on the record; it is written only through the admin endpoint).
13+
- **Details → Direct Reports** lists the users whose manager is this user. It is read-only: a report's manager is changed on that report's record.
14+
- **Set Manager** now opens on the current manager (the param is field-backed on `manager_id` with `defaultFromRow`), so an admin sees what a re-point replaces. The request body is unchanged: `{ userId, managerId }`.
15+
- **Remove Manager** (new `sys_user` action `remove_user_manager`, on the row menu and the record header) clears the link by posting `managerId: null` to `POST /api/v1/auth/admin/set-user-manager`. It carries the same platform-admin gate as Set Manager, is offered only while the user has a manager, asks for confirmation, and is not exposed to AI agents. The endpoint's refusals are unchanged and apply to the clear too: an identity a SCIM directory holds is refused there.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
'@object-ui/plugin-detail': patch
4+
'@object-ui/react': patch
5+
'@object-ui/types': patch
6+
'@object-ui/i18n': patch
7+
---
8+
9+
feat(record-page): the desktop comment panel resolves and reopens threads, filters them, counts the unresolved ones, and offers Edit and Delete on other people's comments only where the server admits them
10+
11+
Clause-②: yes (widening) — `@object-ui/react`'s `DiscussionContextValue` adds three optional members: `onResolveComment(itemId, resolved)`, `moderatesComments` and `updatesOthersComments`. `@object-ui/types`' `FeedItem` adds five optional members: `resolved`, `resolvedById`, `resolvedByName`, `resolvedAt`, `mentionsViewer`. `@object-ui/plugin-detail` adds exports `useRecordVerdict` (the three-state verdict `useRecordEditable` fails open on; a definite allow is the explain answer's `allowed` together with its `record.visible`, as the server admits a by-id write, so `useRecordEditable` reads as before except that an answer whose `allowed` is false beside a visible record, such as an on-behalf-of session whose delegator is gone, now reads not editable), `threadResolvable`, `threadResolved`, `threadInvolvesViewer`, `filterCommentThreads`, `unresolvedThreadCount`, `DEFAULT_COMMENT_THREAD_FILTER` and the type `CommentThreadFilter`; `RecordCommentsData` adds `resolvable`, `onResolveComment`, `moderates` and `updatesOthers`, and its `count` is now the unresolved threads; `CommentItemActions` adds `onResolve` and `resolved`; `CommentHoverActionsProps` adds `resolved`; `RecordCommentThreadProps['comments']` may carry `onResolveComment`, `moderates` and `updatesOthers`. `@object-ui/i18n` adds ten keys to every pack: `detail.reopenThread`, `detail.threadResolved`, `detail.threadResolvedBy`, `detail.filterComments`, `detail.showResolvedComments`, `detail.commentsInvolvingMe`, `detail.noUnresolvedComments`, `detail.noCommentsInvolvingMe`, `detail.showAllComments`, `detail.commentResolveFailed`. Nothing existing is removed or re-typed.
12+
Metadata-protocol: none
13+
Skills-docs: none — no skill under `skills/**` teaches the console's comment panel; `content/docs/frontend/plugins/plugin-detail.mdx` and the plugin-detail README gain resolved threads, the filter and the moderator's Edit and Delete in this change.
14+
15+
The desktop record page's comment panel (objectstack#36075) gains the resolved threads #36071 stores:
16+
17+
- ✓ in a thread's first comment's action row marks the thread resolved: it leaves the list and the comments icon's number, now the unresolved threads, drops by one. ✓ is offered under the `sys_comment` update grant: on a thread the viewer started, and on anyone's only where the explain engine admits the viewer's update of a comment they did not write. Today the platform's row floor admits that for administrators, not for rank-and-file members, so a member resolves only the threads they started until the server carries ruling 7063285032 (any reader of the record may resolve) past that floor.
18+
- The filter menu at the panel's top right holds 「显示已解决」, which shows resolved threads marked 「已由 X 解决」 (their ✓ reopens them), and 「只看我参与的」, the threads the viewer started, replied in or is mentioned in. The filter is not stored. With every thread resolved, the panel says so and offers to show them all.
19+
- A reply into a resolved thread shows the thread reopened, as the platform stores it.
20+
- The resolver is named from the people the page already knows (the viewer and the discussion's authors); any other resolver is named by one `sys_user` read of exactly those ids, after the discussion is drawn. Where that read is refused, the mark reads 「已解决」.
21+
- Edit and Delete under More are offered on other members' comments to a viewer the explain engine admits to update the record by id, the server's rule for moderating someone else's comment; Edit also needs the explain engine to admit their update of a comment they did not write (the row floor above). Both are asked only on a definite allow: pending, a refusal, an error or a deployment without the explain service offers them on the viewer's own comments alone. Their own comments keep them as before.
22+
23+
Unchanged: no server permission changes (a deployment without the explain service shows ✓ and Edit on the viewer's own rows only, administrators included); a deployment whose comment rows carry no `is_resolved` shows no ✓ and no filter, and the icon counts every thread; hand-written record pages and the phone keep their feed as before.
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/plugin-list': patch
4+
'@object-ui/i18n': patch
5+
---
6+
7+
feat(console): the list page's top reads the object's row, the view bar, then the condition row; 「Import / Export」 and 「New Account」 end the view bar
8+
9+
Clause-②: yes (widening): `@object-ui/plugin-list` exports `ListExportDoor` and `ListToolbarTrailingState` and calls `toolbarTrailing` with a second argument; `@object-ui/i18n` adds `console.objectView.newObject` and `console.objectView.importExport`
10+
Metadata-protocol: none
11+
12+
An object's list page draws three rows above its table again:
13+
14+
- **The object's row** — the console `PageHeader` in its list posture: the object's icon and plural name, ended by the shell's top-right button group where the shell turns it on. It carries none of the page's acts.
15+
- **The view bar** — the view switcher and 视图设置 on the left; the search, 「Import / Export」, the authored list toolbar actions, 「New Account」 and ⋮ More on the right. The view bar no longer leads with the object's name.
16+
- **The condition row** — the sort and filter chips, and Discard / Save while the list holds a draft, as before.
17+
18+
「Import / Export」 holds Import and one entry per export format the reader may use. ⋮ More keeps the object's description and the favorites entry; Import is no longer in it. While the list is narrower than 896px, 「Import / Export」 folds into ⋮ More; below 768px the search keeps its icon alone, without the active keyword. The 视图设置 panel keeps its export entries. The create button names what it creates (`console.objectView.newObject`, 「New {{object}}」, in every locale). A phone's list header is unchanged.
19+
20+
`@object-ui/plugin-list`: `ListView`'s `toolbarTrailing` host prop is now called with a second argument, `ListToolbarTrailingState`, whose `export` is the list's export door (`ListExportDoor`: the formats, `run`, `busy`, `error`), absent where the list offers no export. Both types are exported. A host that reads only the first argument is unchanged.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
'@objectstack/plugin-auth': patch
3+
---
4+
5+
fix(plugin-auth): an MCP access token for an app the user consented to, minted in the same second as a password change, after it, is no longer refused
6+
7+
Clause-②: yes (widening)
8+
Metadata-protocol: none
9+
10+
The MCP door refuses an OAuth access token issued before its subject's password last changed. It compared the token's `iat`, which is whole seconds, with the change time in milliseconds, so a token minted after the change but inside the same wall-clock second was refused with `401` too. An agent or script that connected over MCP right after a password change or reset was turned away until the next second.
11+
12+
- The embedded authorization server now signs one more claim into every JWT access token it mints: `iat_ms`, the mint's own instant in milliseconds, written by the server's clock. A client cannot set or change it. It is written at a mint only, never into an opaque token's introspection answer.
13+
- For an app the user granted access to through the consent step, the MCP door compares the change time with `iat_ms` when the token carries one that lies inside the second its `iat` names. A token minted in the second of the change, after it, is admitted; one minted in that second before it is still refused.
14+
- An app admitted without a consent step (a server-only `skip_consent` client) keeps the whole-second refusal: every token minted for it in the second of the change is refused, whatever its `iat_ms`.
15+
- A token without the claim (minted before this release) or with a value that cannot be placed keeps the old whole-second rule, so it is still refused in the second of the change. A token issued before a password change is never admitted.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
'@object-ui/components': patch
3+
'@object-ui/layout': patch
4+
'@object-ui/app-shell': patch
5+
---
6+
7+
feat(ui): every menu row is a tile: objects and their views in the object's colour, everything else on a light grey tile
8+
9+
Clause-②: yes (widening) — `@object-ui/components` adds `NeutralIconTile`, `NeutralIconTileProps` and `NEUTRAL_ICON_TILE_CLASS`; `@object-ui/layout` adds `NAV_KIND_ICON` and `resolveNavKindIcon`; nothing removed or renamed
10+
Metadata-protocol: none
11+
12+
The sidebar drew an object entry as its object's colour tile and every other entry as a bare line icon, so one column mixed solid squares and outlines. Now every row is a tile of the same size and corners, and colour still says only which object a row opens:
13+
14+
- **Object entries, and object entries that open one of its views** (a `viewName`, such as "My deals"): the object's tile, as before.
15+
- **Every other entry** (`dashboard`, `report`, `page`, `url`, `component`, `doc`, `action`): a light grey tile with a dark grey glyph, the entry's own `icon`, else its kind's (`NAV_KIND_ICON`: a dashboard, a column chart, a page, an outward arrow, a grid, a book, a bolt). No kind gets a colour of its own.
16+
- **Recent, Favorites and Starred in the sidebar, and Home's "Recently accessed"**: an object, one of its views or one of its records is that object's tile; a dashboard, page or report is the neutral tile. The emoji these rows drew are gone.
17+
- Group headings and separators are unchanged. The phone's app home lists the same menu, so it follows.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
'@object-ui/app-shell': minor
3+
---
4+
5+
feat(app-shell): an authored record page is drawn on the desktop full page only; a phone and the side drawer draw the standard page
6+
7+
Clause-②: no
8+
Metadata-protocol: semantic
9+
Skills-docs: follow-up #36179 — skills/objectstack-ui/rules/record-page.md rules 4 and 5 (the `record_more` advice); skills edits ride a domain:skills PR
10+
11+
What a `kind: 'full'` record page means changes: it is drawn on the desktop full page only. On a phone, and in every embedded record view (the side drawer a list opens, the split pane, an interface page's preview), the record draws the platform's standard page for its object, whether or not the object has an authored page. **Open full page** from the drawer still lands on the authored page.
12+
13+
The standard page keeps what the object declares: field groups and order, field permissions and visibility, the `record_header` / `record_more` actions, one tab per child table, the stage and the approval state. The authored page's layout does not apply there, nor anything that lives only on it: its tabs and sections, page-only related lists and blocks, banners, and `record_section` actions, which the standard page does not draw. To keep such an action reachable on a phone and in the drawer, add `record_more` to its `locations` (and leave it out of the authored header's `actions` list, so the full page still draws it once). There is no setting that keeps an authored page on the phone or in the drawer.
14+
15+
Unchanged: a slotted page (the standard page with slots filled) applies everywhere; a page named in the URL (`…/record/:id/page/:pageName`, print pages included) is drawn wherever that route renders; the platform's approval request (`sys_approval_request`) and user (`sys_user`) pages keep their own page on every surface.
16+
17+
Nothing to migrate: no metadata key changes, and the desktop full page draws exactly as before.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
---
4+
5+
feat(console): an app's icon is the same everywhere: an app with no logo and no colour gets a solid colour of its own, and Home drops its gradients
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
An app that declared neither `branding.logo` nor a hex `branding.primaryColor` was drawn two ways: on one of ten gradients on Home, and on a neutral grey square in the app switcher, its pill, the phone's app list and Studio's package chip. Now every place draws it by one rule:
11+
12+
- **A declared logo** is drawn, as before.
13+
- **A declared hex `primaryColor`** colours the icon's square, as before.
14+
- **Neither:** the icon is a white glyph on a solid square of a colour picked by the app's `name` from the objects' palette (`OBJECT_COLORS` without `gray`: blue, teal, green, amber, orange, red, pink, purple). The pick is djb2 over the name, kept to a signed 32-bit integer, its absolute value modulo eight, so an app keeps its colour on every load and for every viewer. Nothing is written back, and the app's buttons keep the platform's default primary colour.
15+
16+
Home's tiles lose their gradients and draw this same square at their 56 px size. The `tile-grid` page block, which draws Home's tile, takes a solid palette colour keyed by its tile's `href` instead of a gradient. The command palette's "Switch app" items draw the app's mark (its logo, or its square) instead of a bare line icon.
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/console': patch
4+
---
5+
6+
fix(console): the view and page-block filter editor offers a multiple: true field only Contains, Does not contain and the empty checks
7+
8+
Clause-②: no
9+
Metadata-protocol: none
10+
11+
A `select`, `lookup` or `user` field declared `multiple: true` holds a list. Studio's filter editor for a view's filter, a page's base filter and tab presets, and a related-list block's filter built its field list without `multiple`, so it offered Equals and Is any of on such a field, and the saved filter was refused by the data door with 400 `INVALID_FILTER` for every reader of that view. Every host that builds the editor's field list now carries the field's declared `multiple` (the generic metadata editor, the list-view and view-variant inspectors, the in-app view configuration panel and the page block inspector), and the shared filter builder offers such a field Contains, Does not contain, Is empty and Is not empty, the operators the other condition editors already give it.
12+
13+
A single-value field of the same types keeps its operators. A stored Equals rule on a list-valued field still opens as its row, so it can be changed. No metadata key, value or default changes.

‎content/docs/frontend/data-source.mdx‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,8 @@ await (dataSource.batchMutationEvents ? dataSource.batchMutationEvents(write) :
214214

215215
`listMetadataItems(type)` lists one metadata registry type as `{ name, label }` headers, for the `position-ref` / `permission-ref` field widgets (see the [Fields guide](/docs/frontend/fields)). An empty array means the registry has no item of that type, so a failed load must **reject**, never resolve `[]`.
216216

217+
`getDataset(name, { callerPackage })` reads a semantic-layer dataset definition (`GET /api/v1/meta/dataset/:name`). A dashboard reads it to learn a dataset-bound widget's base object, so a filter on a field holding several values is sent as `$contains` instead of `=` / `$in`. It resolves `null` when no such dataset is served, and a failed read must **reject**. The member is optional: without it, the dashboard sends `=` / `$in` and warns in the console, naming the filter.
218+
217219
### Cross-object atomic writes (`batchTransaction`)
218220

219221
Master-detail saves (a parent record plus its child line items) go through

0 commit comments

Comments
 (0)