Commit 5c4a8c8
feat(spec): RecordRelatedListProps.add — add-existing-via-picker (generic m2m/junction) (#2324)
* feat(spec): RecordRelatedListProps.add — add-existing-via-picker (generic m2m/junction)
A related list could only '+ New' (create+navigate). Add an optional `add`
config so a related list can LINK existing records via a picker: pick from
`add.picker.object` (the far side) → create a link row in `objectName` as
{[relationshipField]: parentId, [add.linkField]: pickedId} (junction), or omit
linkField to re-parent a 1:m child. Generic over any relationship; the canonical
use is 'Assigned Users' on a permission set (assign sys_user → ai_seat etc.),
with server-side insert rules (e.g. the AI-seat cap) surfacing inline.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* chore(changeset): related-list add-by-picker
---------
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent 3afaeed commit 5c4a8c8
2 files changed
Lines changed: 28 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
87 | 110 | | |
88 | 111 | | |
89 | 112 | | |
| |||
0 commit comments