Sammy/t 195 aau i see filters and sort on company (#104)

* feature: add company filter by name

* feature: add fitler on URL

* feature: set icons for sorts

* feature: add creation date and address sorts

* Add tests

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
Sammy Teillet
2023-05-06 07:59:30 +02:00
committed by GitHub
parent 406e1dc02e
commit 354cdb6ad9
17 changed files with 350 additions and 52 deletions

View File

@ -17,6 +17,7 @@ describe('mapCompany', () => {
},
employees: 10,
address: '1 Infinite Loop, 95014 Cupertino, California, USA',
__typename: 'Company',
});
expect(company.id).toBe('7dfbc3f7-6e5e-4128-957e-8d86808cdf6b');
expect(company.name).toBe('ACME');
@ -43,6 +44,7 @@ describe('mapCompany', () => {
created_at: now.toUTCString(),
employees: 10,
address: '1 Infinite Loop, 95014 Cupertino, California, USA',
__typename: 'Company',
});
expect(company.id).toBe('7dfbc3f7-6e5e-4128-957e-8d86808cdf6b');
expect(company.name).toBe('ACME');

View File

@ -21,10 +21,11 @@ export type GraphqlQueryCompany = {
id: string;
name: string;
domain_name: string;
account_owner?: GraphqlQueryUser;
account_owner?: GraphqlQueryUser | null;
employees: number;
address: string;
created_at: string;
__typename: string;
};
export type GraphqlMutationCompany = {