Refactor/remove react table (#642)

* Refactored tables without tan stack
* Fixed checkbox behavior with multiple handlers on click
* Fixed hotkeys scope
* Fix debounce in editable cells
* Lowered coverage

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
Lucas Bordeau
2023-07-13 19:08:13 +02:00
committed by GitHub
parent e7d48d5373
commit 734e18e01a
88 changed files with 1789 additions and 671 deletions

View File

@ -17,7 +17,7 @@ export const availableSorts = [
key: 'fullname',
label: 'People',
icon: <IconUser size={16} />,
_type: 'custom_sort',
orderByTemplates: [
(order: Order_By) => ({
firstName: order,
@ -31,31 +31,27 @@ export const availableSorts = [
key: 'company_name',
label: 'Company',
icon: <IconBuildingSkyscraper size={16} />,
_type: 'custom_sort',
orderByTemplates: [(order: Order_By) => ({ company: { name: order } })],
},
{
key: 'email',
label: 'Email',
icon: <IconMail size={16} />,
_type: 'default_sort',
},
{
key: 'phone',
label: 'Phone',
icon: <IconPhone size={16} />,
_type: 'default_sort',
},
{
key: 'createdAt',
label: 'Created at',
icon: <IconCalendarEvent size={16} />,
_type: 'default_sort',
},
{
key: 'city',
label: 'City',
icon: <IconMap size={16} />,
_type: 'default_sort',
},
] satisfies Array<SortType<People_Order_By>>;