Anders Borch
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
Charles Bochet
04d498668d
Remove broken link in doc
2023-04-25 23:50:31 +02:00
Charles Bochet
4fa80663f6
Build docs for production
2023-04-25 23:46:39 +02:00
Charles Bochet
86586b70c7
Fix Dockerfile docs
2023-04-25 23:27:51 +02:00
Charles Bochet
d2c6a71c9e
Fix server local build ( #75 )
...
* Fix server local build
* Build docs locally and for prod
---------
Co-authored-by: Charles Bochet <charles@twenty.com>
2023-04-25 17:47:15 +02:00
Charles Bochet
ae7bad65ca
Setup GraphQL Code Generator ( #74 )
...
* chore: add types of schema
* Ease codegen use on FE
* chore: ignore prettier in generated files
* lint: generated files
* feature: strongly type filter of query
* chore: ignore generated files in prettier
* chore: eslint ignore generated files
---------
Co-authored-by: Sammy Teillet <sammy.teillet@gmail.com>
Co-authored-by: Charles Bochet <charles@twenty.com>
2023-04-25 17:25:30 +02:00
Sammy Teillet
a93c92c65c
Sammy/t 131 i see a ascending descending option in ( #73 )
...
* refactor: use safe css selector
* feature: onclick update the order option
* feature: set option in the dropdown
* feature: display icon for sort options
* refactor: indent key so react does not complain of conflicting keys
* feature: align icon and text
* feature: fix size of icon to align text
* feature: create design for TopOption in dropdown
* refactor: set font weight in style
* feature: finalise design of TopOption
* refactor: rename option to sort
* refactor: remove order from the sortType
* refactor: move sort mapper in service
* test: selection of Descending in SortDropdownButton
* refactor: fix styme-component warning
* feature: add sorting by people
* refactor: set SortFields types for tables
* feature: add sort by company
* refactor: rename sortFields to singular
* refactor: rename option to SortDirection
2023-04-25 16:29:08 +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
Charles Bochet
cf9afcc90f
Merge pull request #71 from twentyhq/cbo-design-fixes
...
Fix small design feedbacks
2023-04-25 12:16:34 +02:00
Charles Bochet
6284677fca
Merge pull request #72 from twentyhq/cbo-horizontal-scroll
...
Add horizontal scroll on tables
2023-04-25 12:16:12 +02:00
Charles Bochet
8de2d345ed
Add horizontal scroll on tables
2023-04-25 12:14:31 +02:00
Charles Bochet
63feef5727
Fix small design feedbacks
2023-04-25 11:34:04 +02:00
Charles Bochet
67e4e79623
Merge pull request #69 from twentyhq/sammy/t-130-when-a-sort-is-selected-i-see-the-sort
...
feature: add property isActive for dropdown buttons
2023-04-24 18:39:35 +02:00
Sammy Teillet
f7c53dbdeb
feature: set the right sort on click
2023-04-24 18:17:01 +02:00
Sammy Teillet
0f4dcc1957
refactor: extract dropdown for Sort dropdown
2023-04-24 18:05:29 +02:00
Charles Bochet
9971da59a6
Fix server build
2023-04-24 18:04:55 +02:00
Charles Bochet
250b51ec4a
Fix server build
2023-04-24 17:36:28 +02:00
Sammy Teillet
795f9e7af8
refactor: create SortDropdownButton
2023-04-24 17:35:43 +02:00
Charles Bochet
fc4a7d1486
Fix server build
2023-04-24 17:30:12 +02:00
Charles Bochet
f6341a422b
Fix server build
2023-04-24 17:24:58 +02:00
Charles Bochet
7b2033e5a4
Fix bug prisma build on server
2023-04-24 17:20:20 +02:00
Charles Bochet
f1058ffcf5
Fix bug prisma build on server
2023-04-24 17:19:21 +02:00
Charles Bochet
ec245f20c6
Build prisma client based on schema
2023-04-24 17:10:50 +02:00
Sammy Teillet
7cf1f913b0
feature: add property isActive for dropdown buttons
2023-04-24 17:01:26 +02:00
Charles Bochet
d4152fdcff
Merge pull request #68 from twentyhq/cbo-add-user-to-workspaces-on-signup
...
Assign user to workspace on signin
2023-04-24 17:01:24 +02:00
Charles Bochet
7ae7efb523
Fix
2023-04-24 17:00:14 +02:00
Charles Bochet
29b6109e54
Fix tests
2023-04-24 16:53:24 +02:00
Sammy Teillet
911eb48250
Merge pull request #67 from twentyhq/sammy/t-129-i-see-all-text-sorts-available-in-the
...
feature: Add all sortable fields of People table
2023-04-24 15:47:35 +02:00
Sammy Teillet
19385e00c0
feature: fix background color of dropdown item to be fully transparent
2023-04-24 15:39:36 +02:00
Sammy Teillet
4e3acf21d2
feature: set the right border radius for dropdown items
2023-04-24 15:29:24 +02:00
Sammy Teillet
bb8f61212b
feature: add all the sortable fields for people
2023-04-24 15:01:18 +02:00
Sammy Teillet
19903219c3
refactor: move sorts in peolpe-table
2023-04-24 14:59:53 +02:00
Sammy Teillet
99aa39f2ba
refactor: keep type of sortsAvailable while having type assertion
2023-04-24 14:57:57 +02:00
Sammy Teillet
c3da5fa5f4
feature: put react app in strict mode
2023-04-24 14:56:44 +02:00
Sammy Teillet
6e353f590c
feature: add email in sorts fields
2023-04-24 14:56:20 +02:00
Charles Bochet
6d2c8bbdf9
Assign user to workspace on signin
2023-04-24 14:53:48 +02:00
Sammy Teillet
a5909bd6ff
feature: keep callbacks between two renders
2023-04-24 14:49:40 +02:00
Sammy Teillet
2acd98370d
bugfix: remove infinite renderloop of onSortUpdate
2023-04-24 14:46:39 +02:00
Sammy Teillet
c7dc9cf83b
bugfix: fix direction and zindex of dropdown
2023-04-24 14:18:22 +02:00
Sammy Teillet
be947bdc8f
refactor: strongly type keys of sorts
2023-04-24 14:02:38 +02:00
Sammy Teillet
095a6886ae
refactor: move sortable fields in People
2023-04-24 14:00:14 +02:00