twenty icon indicating copy to clipboard operation
twenty copied to clipboard

Filter the opportunities "Point of contact" field

Open Bonapara opened this issue 2 years ago • 9 comments
trafficstars

Current behavior

CleanShot 2023-11-22 at 11 17 36

Desired behavior

  1. Filter the list to display only the employees of a company. For example, if the company is "Figma," only Figma's employee (Dylan Field in the seed) should be shown.

CleanShot 2023-11-22 at 11 19 50

  1. Add an "Add People" button at the bottom of the menu if there are no matching records in the search or if there are no employees associated with the company.

See Companies show pages behavior:

CleanShot 2023-11-22 at 11 45 43

If there are no employees linked to the company, display only the "Add new people" button, excluding the search and result section.

When a new person is created, it should be automatically associated with the corresponding company (the one from the opportunity).

Bonapara avatar Nov 22 '23 10:11 Bonapara

Hi @Bonapara is anyone working on this? If not, I'd like to pick it up. Thanks!

jioh-kim avatar Nov 28 '23 17:11 jioh-kim

Could you assign it to me? :) Thanks

jioh-kim avatar Nov 28 '23 17:11 jioh-kim

Just assigned you @jioh-kim. Thanks!

Bonapara avatar Nov 29 '23 18:11 Bonapara

@jioh-kim any update on this one? :)

charlesBochet avatar Dec 18 '23 08:12 charlesBochet

@charlesBochet, Discord update received, this issue is available for assignment

Bonapara avatar Dec 18 '23 09:12 Bonapara

Here is the GitStart Ticket for this issue: https://clients.gitstart.com/twenty/5449/tickets/TWNTY-2632

gitstart-app[bot] avatar Dec 20 '23 07:12 gitstart-app[bot]

is this issue available for grabs?

a-kud avatar Jan 02 '24 02:01 a-kud

Hi @a-kud, I think @gitstart-twenty is handling this one!

Bonapara avatar Jan 02 '24 09:01 Bonapara

Re-opening as this was lost during refacto 🥲 - not convinced the implementation in #3191 was the right long-term approach. Would be great if we had a more generic design pattern for this that was driven by the backend.

E.g. use Options column in Field Metadata (on the record representing the point of contact field), something like { filter: {sourceField: 'companyId', targetField: 'companyId', operand: 'eq'}})

FelixMalfait avatar Jan 19 '24 10:01 FelixMalfait