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

@ -11,7 +11,7 @@ import {
useSearch,
} from '../../../../services/search/search';
import { MockedProvider } from '@apollo/client/testing';
import { defaultData } from '../../../../pages/people/default-data';
import { mockData } from '../../../../pages/people/__tests__/__data__/mock-data';
const component = {
title: 'FilterDropdownButton',
@ -34,7 +34,7 @@ const mocks = [
},
result: {
data: {
searchResults: defaultData,
searchResults: mockData,
},
},
},
@ -53,7 +53,7 @@ const mocks = [
},
result: {
data: {
searchResults: defaultData,
searchResults: mockData,
},
},
},
@ -72,7 +72,7 @@ const mocks = [
},
result: {
data: {
searchResults: [defaultData.find((p) => p.firstname === 'Jane')],
searchResults: [mockData.find((p) => p.firstname === 'Jane')],
},
},
},