Infer record pickers for record-typed logic function workflow inputs#21494
Infer record pickers for record-typed logic function workflow inputs#21494bosiraphael wants to merge 36 commits into
Conversation
Add objectUniversalIdentifier to input schemas so logic function inputs typed as workspace records (e.g. companies: Company[]) render as record single/multi selects with a variable picker in the workflow builder. Inference resolves inline handler types against standard and app objects during the manifest build; explicit schemas can set the field directly. Update the People Data Labs enrichment inputs as reference.
|
👋 Thanks for contributing to Twenty! Your PR has been set to draft while you work on it. Once you're done, mark it as Ready for review and our automated checks will run. Looking forward to your contribution! |
Visual Regression Report✅ No visual changes detected across 225 stories. |
There was a problem hiding this comment.
4 issues found across 31 files
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
Visual Regression Report (twenty-new-ui)✅ No visual changes detected across 225 stories. |
🔍 Automated Pre-Review✅ No issues detected - This PR is ready for human review. Automated pre-review — human approval still required. |
There was a problem hiding this comment.
1 issue found across 7 files (changes from recent commits).
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
There was a problem hiding this comment.
1 issue found across 9 files (changes from recent commits).
Tip: Review your code locally with the cubic CLI to iterate faster.
Re-trigger cubic
…ord-inputs # Conflicts: # packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/FormSingleRecordPicker.tsx
…ing stale schemas
There was a problem hiding this comment.
2 issues found across 37 files
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
…ord-inputs # Conflicts: # packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/FormSingleRecordPicker.tsx
Visual Regression Report (twenty-front)
Changed stories
4 new stories
|
…n logic function input docs
Context
Logic functions can declare workflow inputs typed as records or arrays of records (e.g. the People Data Labs enrichment functions), but the workflow builder rendered those as a plain text input with a variable picker, which is not usable.
What this does
objectUniversalIdentifierlink on input schema properties, so a record-typed input is tied to a workspace object.TwentyRecord<'objectUniversalIdentifier'>marker type in the handler signature, reading the object's universal identifier straight from the source; explicit input schemas can still set the field directly.TwentyRecord<UID>is a brandedstring, so the handler signature reflects that it receives ids (a bound variable resolves to whatever the referenced step produced).+Nbadge (reusingExpandableList) and its variable picker offers both record objects and fields.