Commit Graph

438 Commits

Author SHA1 Message Date
a2e84db049 2282 Rename components to use the new naming convention part 3 (#2296)
part 3 of the renaming
2023-10-31 12:38:53 +01:00
adeaa35e8d 2282 Rename components to use the new naming convention part 2 (#2295)
renaming part 2
2023-10-31 12:32:16 +01:00
ec8389cecf 2282 Rename components to use the new naming convention part 1 (#2293)
renaming in progress
2023-10-31 12:12:52 +01:00
328c5cd184 test: add metadata object and field mocks (#2266) 2023-10-30 17:56:56 +01:00
236742e88c Fix api keys refresh (#2283)
* Move code to dedicated function

* Format cached data with proper typename
2023-10-30 17:48:34 +01:00
3fc1b74d9c feat: navigate to Object Detail page after custom object creation (#2277)
Closes #2276
2023-10-30 13:33:29 +01:00
d38497c46a Refactor ObjectDataTable to work with new views system (#2274)
Complete work
2023-10-29 23:50:59 +01:00
9bab28912d Complete Fix view work (#2272)
* Fix views

* Make view sorts and view filters functional

* Complete Company table view fix

* Fix model creation

* Start fixing board

* Complete work
2023-10-29 16:29:00 +01:00
685d342170 Migrate view field to new data model - Part 2 (#2270)
* Migrate view field to new data model

* Migrate view fields to new model
2023-10-28 19:13:48 +02:00
afd4b7c634 Fix Views on People page (#2265)
* fetching viewId for url

* fixed option menu name input

* fix table import

* fix unnecessary rerenders

* people working

---------

Co-authored-by: bosiraphael <raphael.bosi@gmail.com>
2023-10-27 18:20:58 +02:00
35237c05f3 Fix cache management (#2264) 2023-10-27 18:20:11 +02:00
e488a87ce4 feat: save edited custom field (#2245)
Closes #2161

Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com>
2023-10-27 18:06:31 +02:00
40c5f72080 feat: save activated/disabled fields in New Field - Step 1 page (#2226)
* feat: save activated/disabled fields in New Field - Step 1 page

Closes #2170

* fix: fix objectSlug

* Console.log

---------

Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com>
2023-10-27 17:59:57 +02:00
3c6ce75606 feat: activate standard objects in New Object page (#2232)
* feat: activate standard objects in New Object page

Closes #2010, Closes #2173

* Pagination limit = 1000

* Various fixes

---------

Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com>
2023-10-27 15:46:29 +02:00
d7b0c1190a feat: add Object Field Edit page sections (#2243)
Closes #2160, Closes #2163
2023-10-27 12:13:01 +02:00
3d5ee6d7ca feat: remove disabled custom objects (#2247)
Closes #2147
2023-10-27 11:08:02 +02:00
5ba68e997d Improve viewbar api (#2233)
* create scopes

* fix import bug

* add useView hook

* wip

* wip

* currentViewId is now retrieved via useView

* working on sorts with useView

* refactor in progress

* refactor in progress

* refactor in progress

* refactor in progress

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* fix code

* fix code

* wip

* push

* Fix issue dependencies

* Fix resize

---------

Co-authored-by: bosiraphael <raphael.bosi@gmail.com>
2023-10-27 10:52:26 +02:00
6a72c14af3 Use zod instead of yup (#2254)
* use zod instead of yup

* doc

* lint
2023-10-27 10:26:32 +02:00
00dd046798 feat: create custom object field (#2225)
Closes #2171
2023-10-26 11:34:26 +02:00
fc4075b372 2062 view edit an api key (#2231)
* Add query to get api keys

* Add a link to apiKey detail page

* Reset generatedApiKey when leaving page

* Simplify stuff

* Regenerate key when clicking on button

* Simplify

* Fix test

* Refetch apiKeys when delete or create one

* Add test for utils

* Create utils function

* Enable null expiration dates

* Update formatExpiration

* Fix display

* Fix noteCard

* Fix errors

* Fix reset

* Fix display

* Fix renaming

* Fix tests

* Fix ci

* Fix mocked data

* Fix test

* Update coverage requiremeents

* Rename folder

* Code review returns

* Symplify sht code
2023-10-26 11:32:44 +02:00
2b1945a3e1 feat: create custom object and update edited object names (#2220)
Closes #2155, Closes #2153
2023-10-26 11:04:16 +02:00
0b33880cc9 feat(frontend): Object Field Edit page created (#2218)
* feat(frontend): Object Field Edit page created

* fix(frontend): PR requested changes done
2023-10-24 18:13:22 +02:00
48c9ea855a Improve tests 2023-10-24 17:14:07 +02:00
d61511262e 2060 create a new api key (#2206)
* Add folder for api settings

* Init create api key page

* Update create api key page

* Implement api call to create apiKey

* Add create api key mutation

* Get id when creating apiKey

* Display created Api Key

* Add delete api key button

* Remove button from InputText

* Update stuff

* Add test for ApiDetail

* Fix type

* Use recoil instead of router state

* Remane route paths

* Remove online return

* Move and test date util

* Remove useless Component

* Rename ApiKeys paths

* Rename ApiKeys files

* Add input text info testing

* Rename hooks to webhooks

* Remove console error

* Add tests to reach minimum coverage
2023-10-24 16:14:54 +02:00
5acafe2fc6 Chore(front): Add more typeguards (#2136)
* Chore(front): Add more typeguards

Co-authored-by: Benjamin Mayanja V <vibenjamin6@gmail.com>
Co-authored-by: KlingerMatheus <klinger.matheus@gitstart.dev>

* Remove source map generation to avoid warnings

---------

Co-authored-by: Benjamin Mayanja V <vibenjamin6@gmail.com>
Co-authored-by: KlingerMatheus <klinger.matheus@gitstart.dev>
Co-authored-by: Charles Bochet <charles@twenty.com>
2023-10-24 09:26:47 +02:00
7a3338b4de feat: save edited custom object (#2204)
Closes #2153

Co-authored-by: Charles Bochet <charlesBochet@users.noreply.github.com>
2023-10-24 08:33:35 +02:00
291feae595 feat: activate, disable and erase fields in Object Detail (#2200)
* feat: activate and disable objects

Closes #2144, Closes #2148, Closes #2154

* feat: activate, disable and erase fields in Object Detail

Closes #2158

---------

Co-authored-by: Charles Bochet <charlesBochet@users.noreply.github.com>
2023-10-24 08:30:13 +02:00
26e8cd76be feat: activate and disable objects (#2194)
Closes #2144, Closes #2148, Closes #2154
2023-10-24 08:07:00 +02:00
1954ed5e3a Add tests and raise coverage on pages (#2180)
* Add tests and raise coverage on pages

* Fix lint
2023-10-21 20:09:08 +02:00
f1670f0cf4 Feat/metadata datatable types (#2175)
* Handled new url v2 type

* Fixed refetch queries

* wip

* Ok delete but views bug

* Fix lint

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2023-10-21 14:07:18 +02:00
34bbbdff41 feat: add New Field Step 2 form (#2138)
Closes #2001

Co-authored-by: Charles Bochet <charles@twenty.com>
2023-10-21 13:28:15 +02:00
2f0da64e1b feat: get object metadata from backend in Object Edit (#2125)
Closes #2009
2023-10-19 17:14:29 +02:00
f35ea19f4d feat: get object metadata from backend in Object Detail and New Field… (#2122)
* feat: get object metadata from backend in Object Detail and New Field - Step 1

Closes #2008

* refactor: add useLazyLoadIcon hook
2023-10-19 16:58:18 +02:00
514692ca1f feat: get active and disabled objects from backend in Objects Setting… (#2119)
* feat: get active and disabled objects from backend in Objects Settings page

Closes #2005

* refactor: add useObjectMetadata hook
2023-10-19 15:47:31 +02:00
c590300bf1 Feat/metadata with datatable v2 (#2110)
* Reworked metadata creation

* Wip

* Fix from PR

* Removed consolelog

* Post merge

* Fixed seeds

* Wip

* Added dynamic routing

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2023-10-18 19:41:02 +02:00
44099cf8fd 1801 objects settings add activate option to disabled menu (#2104)
* wip creating dropdown

* wip styling the dropdown

* wip

* Fix wrong gap in MenuItems

* add handleActivate and handleErase functions

* remove unused styled component

* add story

* modified according to comment
2023-10-18 18:21:03 +02:00
3971454190 feat: add New Object Custom form (#2105)
* feat: add New Object Custom form

Closes #1808

* fix: fix lint error
2023-10-18 18:12:46 +02:00
547a17b145 Feat/metadata add update and delete on frontend (#2102)
* Reworked metadata creation

* Wip

* Fix from PR

* Removed consolelog

* Post merge

* Fixed seeds
2023-10-18 16:48:11 +02:00
f95c9d3df8 1761 objects settings add a cover image (#2096)
* add image

* overflow hidden

* add close button

* add animation to cover image

* use cookie to store user preference

* refactor to have a reusable component called AnimatedFadeOut

* corrected close button position

* modified according to comments
2023-10-18 13:02:44 +02:00
a1a2309140 Chore: Edit button on cells should be guessed by the field's type (#1952)
* created custom hook to get Icon Component as per field type

* Fix conflicts

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2023-10-17 22:42:57 +02:00
6e90554ae7 feat(frontend): New Object Field Step 2 Added Cancel Save Button (#2092) 2023-10-17 21:11:34 +02:00
462a5a6738 danger zone section added in object edit page (#2093) 2023-10-17 21:10:47 +02:00
34c9259683 Fix linter 2023-10-17 21:09:15 +02:00
8894c52202 feat: add Object Edit form (#2090)
Closes #1910
2023-10-17 21:03:59 +02:00
a40516df83 Added metadata creation (#2086)
* Reworked metadata creation

* Fix from PR

* Removed consolelog
2023-10-17 20:59:41 +02:00
1549664416 feat: created new Developers Page in Settings (#2071)
* feat: created new Developers Page in Settings

* update styled according to the updated design

* update styled according to the updated design

* remove unused color import from TableCell component

* update pl based on comments

* update pl based on comments

* update pl based on comments

* update pl based on comments

* update pl based on comments

* update pl based on comments

* update pl based on comments
2023-10-17 17:28:18 +02:00
d19011f882 Use SaveAndCancelButtons in SettingsObjectNewFieldStep1 (#2088)
* Use SaveAndCancelButtons in SettingsObjectNewFieldStep1

* refactor to introduce SettingsHeaderContainer
2023-10-17 16:32:21 +02:00
0d6386bc8d 1809 new object add cancel and save buttons (#2081)
* create save and cancel buttons and their stories

* add SaveAndCancelButtons to the New Object page

* add onSave and onCancel

* modified according to comments
2023-10-17 14:55:41 +02:00
8a64903933 feat: add active/disabled fields table to New Field - Step 1 page (#2069)
Closes #1785
2023-10-16 18:16:25 +02:00
3dae11b6e4 Create page Object Field Step 2 (#2068)
* create page

* change runs-on param
2023-10-16 18:02:39 +02:00