Commit Graph

20 Commits

Author SHA1 Message Date
Charles Bochet 89dc5b4d60 Make full name editable on People page (#100)
Co-authored-by: Charles Bochet <charles@twenty.com>
2023-05-04 18:38:29 +02:00
Sammy Teillet 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
Charles Bochet 27d5edc031 Fetch workspace and user from database (#94)
Co-authored-by: Charles Bochet <charles@twenty.com>
2023-05-04 11:09:06 +02:00
Anders Borch 27070b374e In place edit company info (#90)
* Add update company functionality

* Fix padding in cells with chips

* Add icons to table headers
2023-04-28 06:50:04 +00:00
Anders Borch d5c1bd6365 Handle missing account owner (#89) 2023-04-28 07:40:40 +02:00
Anders Borch d4b1b2f661 Companies table (#79)
* Add columns to companies:
* account_owner_id
* employees
* address

Add foreign key constraint companies_account_owner_id_fkey
to auth.users.id

* Add select permissions to:
* account_owner_id
* employees
* address

Add relationship between companies and auth.users.

* Update Companies interface to include:
* account_owner_id
* employees
* address

Opportunity is expected to be replace by actual opportunity in a separate PR.

* Add GetCompanies query

* Add initial companies table

* Update test to use mock apollo provider

* Update to match changed company column names

* Add company interface mapping tests

* Test entire object

* Add test for companies being rendered in table.

* Add test for sorting reduce.

* Fix prettier errors
2023-04-27 12:46:43 +02:00
Charles Bochet 6c7eb53333 Add seeds and move to uuid (#80)
Co-authored-by: Charles Bochet <charles@twenty.com>
2023-04-26 16:42:01 +02:00
Anders Borch 4e517fa8f9 Add map back to gql person 2023-04-25 12:55:27 +02:00
Anders Borch 8ed09d61ef Refactor GraphqlPerson to GraphqlQueryPerson
A GraphqlQueryPerson has an id which is used in mutations.
2023-04-25 12:55:27 +02:00
Anders Borch b62fac3aee Map Person to GraphqlMutationPerson 2023-04-25 12:55:27 +02:00
Anders Borch 06aa78bc00 Set default pipe icon 2023-04-21 16:28:25 +02:00
Sammy Teillet 3a7b1077f8 test: wait for rows to be displayed 2023-04-20 18:44:43 +02:00
Sammy Teillet b3acfa465b refactor: move mapper in interface 2023-04-20 15:41:18 +02:00
Sammy Teillet b8032e9605 refactor: move person types in interface 2023-04-20 15:39:56 +02:00
Sammy Teillet 51fc383b1a refactor: rename logo to domain 2023-04-19 10:34:31 +02:00
Charles Bochet cb3a209380 Setting up first table in frontend 2023-04-12 11:39:46 +02:00
Charles Bochet f25f80c199 Implement new UI 2023-04-10 18:04:49 +02:00
Charles Bochet c2833cad53 Simplify infrastructure to one container 2023-03-06 19:13:59 +01:00
Charles Bochet d58af82c51 Separate auth0 users depending on tenants 2023-02-03 20:07:49 +01:00
Charles Bochet fcdc9aaec4 Create Profile Hooks to fetch current user 2023-02-02 20:40:44 +01:00