-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
TWNTY-6808 - Ability to Filter by Creation Source #7078
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
This pull request implements the ability to filter records by Creation Source, addressing issue #6808. Key changes include:
- Added 'SOURCE' filter type in FilterType.ts and related components
- Implemented sub-menu functionality for 'ACTOR' filter type in ObjectFilterDropdownFilterSelect.tsx
- Created new ObjectFilterDropdownSourceSelect.tsx component for source filtering
- Updated turnObjectDropdownFilterIntoQueryFilter.ts to handle 'SOURCE' subfield in ACTOR filters
- Modified FilterDefinition type to include optional 'subFieldType' for more granular filtering
- Added utility functions getSubMenuOptions.ts and hasSubMenuFilter.ts to support new filtering structure
15 file(s) reviewed, 2 comment(s)
Edit PR Review Bot Settings
...nt/src/modules/object-record/object-filter-dropdown/components/ObjectFilterSelectSubMenu.tsx
Show resolved
Hide resolved
...ont/src/modules/object-record/record-filter/utils/turnObjectDropdownFilterIntoQueryFilter.ts
Show resolved
Hide resolved
...modules/object-record/object-filter-dropdown/components/ObjectFilterDropdownFilterSelect.tsx
Outdated
Show resolved
Hide resolved
...object-record/object-filter-dropdown/components/ObjectFilterDropdownFilterSelectMenuItem.tsx
Outdated
Show resolved
Hide resolved
...modules/object-record/object-filter-dropdown/components/ObjectFilterDropdownSourceSelect.tsx
Outdated
Show resolved
Hide resolved
...nt/src/modules/object-record/object-filter-dropdown/components/ObjectFilterSelectSubMenu.tsx
Outdated
Show resolved
Hide resolved
...nt/src/modules/object-record/object-filter-dropdown/components/ObjectFilterSelectSubMenu.tsx
Outdated
Show resolved
Hide resolved
...ages/twenty-front/src/modules/object-record/object-filter-dropdown/utils/hasSubMenuFilter.ts
Show resolved
Hide resolved
packages/twenty-front/src/modules/views/utils/mapViewFiltersToFilters.ts
Outdated
Show resolved
Hide resolved
Thanks for the review @lucasbordeau , We are working on it |
We are working on resolving the conflicts |
…and updates after merge main
...modules/object-record/object-filter-dropdown/components/ObjectFilterDropdownSourceSelect.tsx
Outdated
Show resolved
Hide resolved
.../twenty-front/src/modules/object-record/object-filter-dropdown/utils/getSourceEnumOptions.ts
Outdated
Show resolved
Hide resolved
thanks for the feedback @bosiraphael , we will work on it |
@gitstart-twenty thank you for the changes! Is it possible to add the possibility to add Icons to the items in the multiselect ? The UI will be much clearer. |
Yes, we should add the icons! Regarding the font, it shouldn't be uppercase but capitalized. |
Hello @Bonapara |
Here are the icons: Just need to add Can you also replace the |
Hello @Bonapara In the link you sent, We could not identify which icons should be used for each creation source type in the link you sent. Manual -> |
I meant these icons/illustrations: |
Oh, thank you @Bonapara. Just One more question, about this icon, which type is this? is it WORKFLOW? |
ok, thank you |
Hello @Bonapara, just another question |
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.
LGTM
Log
|
### Description - Ability to Filter by Creation Source ### Demo LOOM: <https://www.loom.com/share/dba9c3d37a4242fe90f977b1babffbde?sid=59b07c51-d245-43cc-bb38-7d898ef72878> ### Refs twentyhq#6808 Fixes twentyhq#6808 --------- Co-authored-by: gitstart-twenty <[email protected]> Co-authored-by: gitstart-twenty <[email protected]> Co-authored-by: bosiraphael <[email protected]>
Description
Demo
LOOM: https://www.loom.com/share/dba9c3d37a4242fe90f977b1babffbde?sid=59b07c51-d245-43cc-bb38-7d898ef72878
Refs
#6808
Fixes #6808