Commit Graph

13 Commits

Author SHA1 Message Date
434e020846 Restructure project (#124) 2023-05-17 22:31:16 +02:00
bc49815ff0 Make all fields optional on entities (#121)
* Make all fields optional on entities

* Rewrite tests

* Add test on TableHeader Cancel button
2023-05-17 14:50:49 +02:00
8c7815af79 Hide Opportunities as nothing is built yet and make company table fully editable (#109)
* Hide Opportunities as nothing is built yet and make company table fully editable

* Fix tests
2023-05-06 19:08:47 +02:00
41c46c36ed Create and EditableRelation component and make it generic (#107)
* Create and EditableRelation component and make it generic

* Refactor EditableCell component to be more flexible

* Complete Company picker on people page

* Fix lint
2023-05-06 16:08:45 +02:00
6a8a8f0728 Add Filters on Table views (#95)
* Add filter search logic

WIP Filter search

Implement filters

test: fix sorts tests

test: fix filter test

feature: search person and display firstname in results

feature: fix test for filter component

test: mock search filters

refactor: create a useSearch hook

refactor: move debounce in useSearch and reset status of filter selection

feature: debounce set filters

refactor: remove useless setSorts

feature: add where variable to people query

feature: strongly type Filters

feature: update WhereTemplate method

feature: implement filtering on full name

feature: type the useSearch hook

feature: use where reducer

refactor: create a type for readability

feature: use query and mapper from filters

feature: implement filter by company

feature: search filter results on filter select

feature: add loading and results to search results in filters

refactor: move render search results in a function

feature: display a LOADING when it loads

feature: split search input and search filter for different debounce

refactor: remove some warnings

refactor: remove some warnings

* Write test 1

* Write test 2

* test: useSearch is tested

* test: update names of default people data

* test: add a filter search

* Test 3

* Fix tests

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2023-05-04 13:54:46 +02:00
be601c58b1 Add pipe chip 2023-04-21 16:03:29 +02:00
b8d089395f Add linter on CI 2023-04-20 11:51:04 +02:00
59f64695a2 test: test PersonChip displays image or placeholder 2023-04-19 14:37:36 +02:00
97457f54cb test: rename test and remove useless nav wrapper 2023-04-19 14:25:27 +02:00
b434f3da45 feature: make the person picture circle 2023-04-19 12:40:57 +02:00
bb5ae02c3a refactor: use PersonChip in people page 2023-04-19 12:35:19 +02:00
16a1aadba9 feature: add alt tag for image in company chip 2023-04-19 12:28:32 +02:00
471d6743ad refactor: create company chip 2023-04-19 12:20:19 +02:00