-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Add filters to search record action #12481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Summary
Implements filtering capabilities for the Search Records workflow action with advanced filter UI and state management across front and backend.
- Added new
AdvancedFilterValueFormInput
andAdvancedFilterValueFormCompositeFieldInput
components to handle specialized form inputs like ADDRESS and CURRENCY fields in filters - Integrated new
AdvancedFilterContext
for centralized filter updates, with proper hooks integration inuseRemoveRecordFilter
,useUpsertRecordFilter
, and related hooks - Extended workflow schema and backend types to support complex filter structures including
recordFilterGroups
,recordFilters
, andgqlOperationFilter
- Created
WorkflowFindRecordFilters
andWorkflowFindRecordFiltersEffect
components to manage nested filter groups and filter initialization in workflows - Modified
FindRecordsWorkflowAction
backend class to handle the new filter structure throughgqlOperationFilter
property
20 file(s) reviewed, 17 comment(s)
Edit PR Review Bot Settings | Greptile
...src/modules/object-record/advanced-filter/components/AdvancedFilterRootRecordFilterGroup.tsx
Show resolved
Hide resolved
...-front/src/modules/object-record/advanced-filter/components/AdvancedFilterValueFormInput.tsx
Show resolved
Hide resolved
...-front/src/modules/object-record/advanced-filter/components/AdvancedFilterValueFormInput.tsx
Show resolved
Hide resolved
...ules/object-record/advanced-filter/components/AdvancedFilterValueFormCompositeFieldInput.tsx
Show resolved
Hide resolved
...enty-front/src/modules/object-record/advanced-filter/states/context/AdvancedFilterContext.ts
Show resolved
Hide resolved
...ules/workflow/workflow-steps/workflow-actions/components/WorkflowFindRecordFiltersEffect.tsx
Outdated
Show resolved
Hide resolved
packages/twenty-front/src/pages/settings/workspace/hooks/useCheckCustomDomainValidRecords.ts
Outdated
Show resolved
Hide resolved
packages/twenty-front/src/pages/settings/workspace/hooks/useCheckCustomDomainValidRecords.ts
Outdated
Show resolved
Hide resolved
packages/twenty-front/src/pages/settings/workspace/hooks/useCheckCustomDomainValidRecords.ts
Outdated
Show resolved
Hide resolved
...ules/workflow/workflow-executor/workflow-actions/record-crud/find-records.workflow-action.ts
Show resolved
Hide resolved
d1f0df6
to
b7db9b8
Compare
🚀 Preview Environment Ready! Your preview environment is available at: http://bore.pub:25850 This environment will automatically shut down when the PR is closed or after 5 hours. |
b7db9b8
to
087de62
Compare
label: 'Search Records', | ||
type: 'FIND_RECORDS', | ||
icon: 'IconSearch', | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will hide this again once reviews are done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
const filterType = recordFilter.type; | ||
|
||
return ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like it does not work well tbh, i personally prefer the regular way to display composite fields (see general comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep design is not done for now. design should match regular way but in column. Will be for another PR
First PR to add filters to send records. Lot of work left, but I want to split. I mainly want to validate the architecture there. https://github.com/user-attachments/assets/63375a75-ba88-49df-8c12-5e3e58de5342 TODO in next PRs: - fix design - make filters reliable. Some composite fields are not implemented and some fields like datetime do not work well - improve typing
First PR to add filters to send records. Lot of work left, but I want to split. I mainly want to validate the architecture there.
Enregistrement.de.l.ecran.2025-06-06.a.11.09.08.mov
TODO in next PRs: