Commit Graph
61 Commits
Author SHA1 Message Date
6c7eb53333 Add seeds and move to uuid (#80)
Co-authored-by: Charles Bochet <charles@twenty.com>
2023-04-26 16:42:01 +02:00
Sammy TeilletandGitHub 5aec7ca730 Sammy/t 134 i see all filters in the dropdown (#78)
* feature: add filter dropdown

* test: add story for FilterDropdown

* feature: display filterOperand on top of dropdown

* feature: display filter operand

* feature: fix index and display selected filter

* refactor: set TopOption button inside dropdown file

* feature: move availableFilters outside the fitler component

* refactor: make the available sorts and filter optionnal

* refactor: rename availableSorts

* feature: add a resetState property on onOutsideClick

* feature: add filters and set  filters on Dropdown component

* feature: set filters on click in dropdown

* test: verify button is active after filters are set

* feature: display sorts and filters

* refactor: move SelectedFilters in SortAndFilter

* refactor: move SelectedFilters in dedicated file

* refactor: remove Id and use Key
2023-04-26 14:19:34 +00:00
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
Sammy TeilletandGitHub 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 a6254197b1 Add contenteditable change event test 2023-04-25 12:55:27 +02:00
Anders Borch 24a228bd44 Add EditableCell 2023-04-25 12:55:27 +02:00
Charles BochetandGitHub cf9afcc90f Merge pull request #71 from twentyhq/cbo-design-fixes
Fix small design feedbacks
2023-04-25 12:16:34 +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
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
Sammy Teillet 795f9e7af8 refactor: create SortDropdownButton 2023-04-24 17:35:43 +02:00
Sammy Teillet 7cf1f913b0 feature: add property isActive for dropdown buttons 2023-04-24 17:01:26 +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 6e353f590c feature: add email in sorts fields 2023-04-24 14:56:20 +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
Sammy Teillet bc91e97695 refactor: move sortable fields in table 2023-04-24 13:55:13 +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
Charles Bochet 0f09464f14 Finalize sort created_at filter 2023-04-21 09:00:50 +02:00
Sammy Teillet 3a7b1077f8 test: wait for rows to be displayed 2023-04-20 18:44:43 +02:00
Sammy Teillet 7d745ab143 refactor: rename setSorts to onSortsUpdate 2023-04-20 17:58:26 +02:00
Sammy Teillet fbd338ee7d feature: apply the sorts to the query 2023-04-20 16:56:42 +02:00
Sammy Teillet 33473aea92 feature: add setSorts from parent component 2023-04-20 16:38:29 +02:00
Sammy Teillet c1883d381e feature: strongly type Table component 2023-04-20 13:58:53 +02:00
Sammy Teillet 8555df6f3f refactor: move style in Cell component 2023-04-20 13:58:52 +02:00
Charles Bochet b8d089395f Add linter on CI 2023-04-20 11:51:04 +02:00
Charles Bochet 5a1baf9121 Filter ongoing 2023-04-19 23:15:08 +02:00
Sammy Teillet 3c7bd5cd28 bugfix: fix pointer propagation of links behind the before element 2023-04-19 18:31:03 +02:00
Sammy Teillet 630447a2f6 refactor: put TD up back in the table 2023-04-19 18:21:42 +02:00
Sammy Teillet a4e7211625 feature: adjust checkbox size 2023-04-19 18:00:30 +02:00
Sammy Teillet b4915895fe feature: display a border when hovering the component 2023-04-19 17:22:16 +02:00
Sammy Teillet 71c18e864f feature: move TD creation to cells 2023-04-19 17:10:37 +02:00
Sammy Teillet 05c5272c93 feature: make border transparent instead of 0px 2023-04-19 16:47:34 +02:00
Sammy Teillet 74990a3686 feature: clickableCell left space should be inside the border 2023-04-19 16:19:35 +02:00
Sammy Teillet 0f779f9d43 feature: change the border color again 2023-04-19 15:45:46 +02:00
Sammy Teillet 28af85fcb7 feature: set table text colors 2023-04-19 15:35:55 +02:00
Sammy Teillet d1f05993be feature: fix default padding of table 2023-04-19 15:24:18 +02:00
Sammy Teillet 6e9b612409 feature: fix color of border 2023-04-19 15:23:09 +02:00
Sammy Teillet 6f9506b924 feature: fix borders of table 2023-04-19 15:19:10 +02:00
Sammy Teillet a843d7d76e feature: add a left padding in cells 2023-04-19 15:00:22 +02:00
Sammy Teillet b0b81ba40d feature: fix table layout 2023-04-19 14:46:54 +02:00
Sammy TeilletandGitHub 43e71c6c93 Merge pull request #44 from twentyhq/sammy/t-102-i-see-people-chip-designed-with-picture
Sammy/t 102 i see people chip designed with picture
2023-04-19 14:38:41 +02:00
Charles Bochet 1e635b9d2f Add dropdown on Sort button on table 2023-04-19 14:22:51 +02:00
Sammy Teillet 8d321013f3 refactor: remove useless ClickableCell props 2023-04-19 12:25:20 +02:00
Sammy Teillet 5962140656 refactor: rename CellLink to ClickableCell 2023-04-19 12:24:25 +02:00