38 Commits
Author SHA1 Message Date
Anders BorchandFelix Malfait f28edd405f I can open the project in GitHub (#92)
* Ignore node_modules

* Use bash-compatible dotenv format

While still being compatible with dotenv, this
also allows sourcing the file to export all
variables in bash.

* Add prettier extension to recommendations

* Move to port 5001 to avoid conflict with macOS services

* Add workspace

* Add devcontainer

This automatically starts with all environment
variables available locally.

It brings up services which are dependent on each
other individually and verifies health before
moving on to the next service.

* Split init into clean, up, and logs tasks.

This allows the developer to set up .env and .npmrc
files before running services, and does not require
starting from a clean db every time the devcontainer
is restarted.

* Copy .env when creating codespace

* Automatically run UP command upon devcontainer creation

* Fix log message

---------

Co-authored-by: Felix Malfait <felix.malfait@gmail.com>
2023-05-03 11:34:10 +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 00f0a36457 Implicitly start hasura console (#88) 2023-04-27 17:28:04 +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
Anders BorchandCharles Bochet 1c8a4058c3 Fix html entities and newline handling (#77)
* Fix html entities and newline handling

This forces contenteditable to behave as single line input,
and properly handles html entities.

* Proposal without reacteditable

* Fix tests and re-add focus styleé

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2023-04-26 11:58:40 +02:00
Anders Borch e19a85a5d0 Build fixes (#76)
* Fix compose syntax error

It turns out that docker compose does not like a literal `true`
but it will accept a `"true"` string.

* Added missing && operators
2023-04-26 09:53:11 +02:00
Anders Borch 463b5f4ec9 Mock apollo client.
Remove unit test argument.
2023-04-25 12:55:27 +02:00
Anders Borch a6254197b1 Add contenteditable change event test 2023-04-25 12:55:27 +02:00
Anders Borch 4e517fa8f9 Add map back to gql person 2023-04-25 12:55:27 +02:00
Anders Borch 443f8ed663 Added update test 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 b6c7149b66 Use EditableCell for email 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 38132749c2 Add updatePerson function 2023-04-25 12:55:27 +02:00
Anders Borch 24a228bd44 Add EditableCell 2023-04-25 12:55:27 +02:00
Anders Borch efd6138877 Use GET_PEOPLE in mock 2023-04-24 12:28:22 +02:00
Anders Borch b5cbf219e3 Add write permissions for user to people and companies
Add insert, update, delete permissions without any custom checks.

It is assumes that custom checks will be added as a part of the
workspace authorization ticket.
2023-04-24 11:53:28 +02:00
Anders Borch 47bdabd5aa Refactor people query into separate file. 2023-04-24 11:10:56 +02:00
Anders Borch 06aa78bc00 Set default pipe icon 2023-04-21 16:28:25 +02:00
Anders Borch be601c58b1 Add pipe chip 2023-04-21 16:03:29 +02:00
Anders Borch 4885e3598a Add cancel button.
Add test to ensure that cancel button can remove an item.
2023-04-21 14:17:09 +02:00
Anders Borch 3cea61d9ed Add mailhog for local smtp 2023-04-19 17:51:15 +02:00
Anders Borch 39ffb0f90b Setup Hasura-auth locally 2023-04-19 17:49:09 +02:00
Anders Borch b9d1d80f64 Merge pull request #33 from twentyhq/add-ci
Add continous integration
2023-04-14 08:35:15 +02:00
Anders Borch 02fe9ee506 Add email link 2023-04-13 17:28:28 +02:00
Anders Borch 27d4867488 Format creation date 2023-04-13 17:28:09 +02:00
Anders Borch caf7c168aa Format phone number 2023-04-13 17:27:33 +02:00
Anders Borch a58735925f Add libphonenumber-js dependency
This is used e.g. for formatting phone numbers in the People list.
2023-04-13 17:26:31 +02:00
Anders Borch 3d976577c1 Add CellLink 2023-04-13 17:25:35 +02:00
Anders Borch 8f8315b9bc Add person placeholder image 2023-04-13 10:55:12 +02:00
Anders Borch 759f91b066 Add name, company and pipe styling 2023-04-13 10:54:51 +02:00
Anders Borch f5b16c7f6d Rename People type to Person 2023-04-13 10:53:39 +02:00
Anders Borch c6a60824b3 Merge pull request #29 from twentyhq/cbo-add-table
Add simple styled table
2023-04-13 10:50:08 +02:00
Anders Borch 5619078abd Hide table footer when all groups are empty 2023-04-13 10:26:09 +02:00
Anders Borch 7887e724d5 Add people styling
* Add styled PeopleHeader tag
* Add icon prefix to view name
2023-04-13 10:26:08 +02:00
Anders Borch 7111f99cff Add table styling 2023-04-12 19:24:35 +02:00
Anders Borch b7e43de670 Add icon property to table. 2023-04-12 13:30:13 +02:00