Skip to content

Commit d453ea5

Browse files
committed
docs(spec,api): the related-list Add example and the dangling-reference example no longer name permission_set_id
Claude-Session: https://claude.ai/code/session_01MZuVPXoYeF1Pa3G4ERmTPz Co-authored-by: Claude <noreply@anthropic.com>
1 parent 92bda9e commit d453ea5

3 files changed

Lines changed: 12 additions & 7 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@objectstack/spec': patch
3+
---
4+
5+
The TSDoc on `RecordRelatedListProps.add` names its canonical example by name: "Assigned Users" on a permission set keys `sys_user_permission_set` on `permission_set` with `relationshipValueField: 'name'`, since a grant names its permission set (ADR-0131 D4). Text only; no schema changes.

‎content/docs/api/error-catalog.mdx‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -285,14 +285,14 @@ object is rejected with `400 VALIDATION_FAILED`, and the specifics ride in
285285

286286
```json
287287
{
288-
"error": "Permission Set: no sys_permission_set record has id \"ps_missing\"",
288+
"error": "User: no sys_user record has id \"usr_missing\"",
289289
"code": "VALIDATION_FAILED",
290290
"fields": [{
291-
"field": "permission_set_id",
291+
"field": "user_id",
292292
"code": "reference_not_found",
293-
"label": "Permission Set",
294-
"constraint": { "target": "sys_permission_set" },
295-
"value": "ps_missing"
293+
"label": "User",
294+
"constraint": { "target": "sys_user" },
295+
"value": "usr_missing"
296296
}]
297297
}
298298
```

‎packages/spec/src/ui/component.zod.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1596,8 +1596,8 @@ export const RecordRelatedListProps = strictObject({
15961596
* Server-side rules still apply on insert (e.g. the AI-seat cap), and their
15971597
* errors surface in the dialog. The canonical use is "Assigned Users" on a
15981598
* permission set (objectName=`sys_user_permission_set`,
1599-
* relationshipField=`permission_set_id`, picker.object=`sys_user`,
1600-
* linkField=`user_id`).
1599+
* relationshipField=`permission_set`, relationshipValueField=`name`,
1600+
* picker.object=`sys_user`, linkField=`user_id`).
16011601
*/
16021602
add: strictObject({
16031603
surface: 'this `record:related_list` `add` config',

0 commit comments

Comments
 (0)