Handle relations for filters (#13654)

- Refacto variable dropdown so it can display both objects and fields
- we do not filter on object name anymore to simplify the code
- add relation handler in filters



https://github.com/user-attachments/assets/e4f03f11-45cb-4d3f-b628-e996129dd996
This commit is contained in:
Thomas Trompette
2025-08-06 14:57:10 +02:00
committed by GitHub
parent d74bcbe62b
commit d9dbfc4f7e
21 changed files with 705 additions and 307 deletions
@@ -222,7 +222,8 @@ export const FormSingleRecordPicker = ({
instanceId={variablesDropdownId}
disabled={disabled}
onVariableSelect={handleVariableTagInsert}
objectNameSingularToSelect={objectNameSingular}
shouldDisplayRecordObjects={true}
shouldDisplayRecordFields={false}
/>
)}
</FormFieldInputRowContainer>
@@ -3,5 +3,6 @@ export type VariablePickerComponent = React.FC<{
disabled?: boolean;
multiline?: boolean;
onVariableSelect: (variableName: string) => void;
objectNameSingularToSelect?: string;
shouldDisplayRecordObjects?: boolean;
shouldDisplayRecordFields?: boolean;
}>;