Skip to content
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

Merged
merged 10 commits into from
Oct 2, 2024
Merged

Conversation

gitstart-app[bot]
Copy link
Contributor

@gitstart-app gitstart-app bot commented Sep 16, 2024

Description

  • Ability to Filter by Creation Source

Demo

LOOM: https://www.loom.com/share/dba9c3d37a4242fe90f977b1babffbde?sid=59b07c51-d245-43cc-bb38-7d898ef72878

Refs

#6808

Fixes #6808

Copy link
Contributor

@greptile-apps greptile-apps bot left a 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

@gitstart-twenty gitstart-twenty changed the title TWNTY-6808 - Ability to Filter by Creation Source Ability to Filter by Creation Source Sep 16, 2024
@lucasbordeau lucasbordeau self-assigned this Sep 17, 2024
@gitstart-twenty
Copy link
Contributor

Thanks for the review @lucasbordeau , We are working on it

@gitstart-app gitstart-app bot changed the title Ability to Filter by Creation Source TWNTY-6808 - Ability to Filter by Creation Source Sep 20, 2024
@gitstart-twenty
Copy link
Contributor

We are working on resolving the conflicts

@gitstart-twenty
Copy link
Contributor

thanks for the feedback @bosiraphael , we will work on it

@bosiraphael
Copy link
Contributor

bosiraphael commented Sep 25, 2024

@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.
Capture d’écran 2024-09-25 à 16 31 54
What do you think about that @Bonapara?

@Bonapara
Copy link
Member

Yes, we should add the icons! Regarding the font, it shouldn't be uppercase but capitalized.

@gitstart-twenty
Copy link
Contributor

Hello @Bonapara
could you provide the correct icons that we should use?

@Bonapara
Copy link
Member

Here are the icons:

https://www.figma.com/design/xt8O9mFeLl46C5InWwoMrN/Twenty?node-id=1406-44830&node-type=frame&t=NvkpK4dfe3Mv1wrT-11

Just need to add user-circle for "Manual" that should be renamed into "User"

Can you also replace the user-circle icon used for Creator name by the ID icon?

CleanShot 2024-09-27 at 09 34 49

@gitstart-twenty
Copy link
Contributor

gitstart-twenty commented Sep 27, 2024

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.
could you help us define the icons?

Manual -> user-circle ✔️
Api ->
Import ->
Calendar ->
Email ->

@Bonapara
Copy link
Member

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. could you help us define the icons?

Manual -> user-circle ✔️ Api -> Import -> Calendar -> Email ->

I meant these icons/illustrations:

c5ec548741330554427b068c59467dc8530555508db664b454516301ab13122c

@gitstart-twenty
Copy link
Contributor

Oh, thank you @Bonapara. Just One more question, about this icon, which type is this? is it WORKFLOW?

image

@Bonapara
Copy link
Member

Oh, thank you @Bonapara. Just One more question, about this icon, which type is this? is it WORKFLOW?

image

This is related to this issue -> #6924

@gitstart-twenty
Copy link
Contributor

ok, thank you

@gitstart-twenty
Copy link
Contributor

Hello @Bonapara, just another question
which icon should we use for the WORKFLOW source type?

@Bonapara
Copy link
Member

CleanShot 2024-09-30 at 16 13 40

Just added it to the Figma, thanks!

Copy link
Contributor

@bosiraphael bosiraphael left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bosiraphael bosiraphael merged commit 35788af into main Oct 2, 2024
7 of 12 checks passed
@bosiraphael bosiraphael deleted the TWNTY-6808 branch October 2, 2024 15:56
Copy link

github-actions bot commented Oct 2, 2024

Fails
🚫

node failed.

Log

�[31mError: �[39m SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
�[90m    at parseJSONFromBytes (node:internal/deps/undici/undici:5584:19)�[39m
�[90m    at successSteps (node:internal/deps/undici/undici:5555:27)�[39m
�[90m    at fullyReadBody (node:internal/deps/undici/undici:1665:9)�[39m
�[90m    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)�[39m
�[90m    at async specConsumeBody (node:internal/deps/undici/undici:5564:7)�[39m
danger-results://tmp/danger-results-2bbdb879.json

Generated by 🚫 dangerJS against ce1f4d0

harshit078 pushed a commit to harshit078/twenty that referenced this pull request Oct 14, 2024
### 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ability to Filter by Creation Source
5 participants