Commit Graph

124 Commits

Author SHA1 Message Date
ad8331aa89 Board V2 - Part 1 (#2619)
* improve useComputeDefinitionsFromFieldMetadata to prevent infinit loops

* fix viewFields

* improve initial seeding

* fix height 100%

* fix filters and sorts

* allow filter on currency

* remove probability from filter

* fix opportunities count

* fix persist filters and sorts
2023-11-21 18:01:30 +01:00
9912f7a336 feat: disable Standard field edition in Relation field form (#2604)
* feat: disable Standard field edition in Relation field form

Closes #2584

* refactor: code review
2023-11-21 16:33:07 +01:00
0f4796bd1a feat: improve Relation field type tag (#2606)
* feat: improve Relation field type tag

Closes #2359

* refactor: code review - rename dataTypes to settingsFieldMetadataTypes

* refactor: code review - style Icon with styled
2023-11-21 16:23:35 +01:00
f97d25d986 Introduce a RelationPicker component with a RelationPickerScope (#2617)
Refactor mainIdentifier into scope componetn
2023-11-21 16:09:02 +01:00
09533e286b Fix/opportunities board (#2610)
* WIP

* wip

* update pipelineStepId

* rename pipeline stage to pipeline step

* rename pipelineProgress to Opportunity

* fix UUID type not queried

* fix boardColumnTotal

* fix micros

* fixing filters, sorts and fields

* wip

* wip

* Fix opportunity board re-render

---------

Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com>
Co-authored-by: bosiraphael <raphael.bosi@gmail.com>
2023-11-21 01:24:25 +01:00
a33d4c8b8d Rename DATE to DATETIME (#2576)
* Rename DATE to DATETIME

* rename DATE to DATE_TIME

* fix server tests

* rename date to datetime

* rename date to datetime
2023-11-21 00:16:42 +01:00
b3c1723638 fix: hide Select field type + display Relation field type only for ed… (#2603)
fix: hide Select field type + display Relation field type only for edition

Fixes #2585
2023-11-21 00:14:58 +01:00
1e79d4351e fix: fix Relation field preview (#2605)
Fixes #2586
2023-11-21 00:14:16 +01:00
25950ab82a Introduce main identifier to power RelationFieldDisplay (#2577)
* Introduce main identifier to power RelationFieldDisplay, FilterDrodown, TableFirstColumn

* Apply to RelationPicker
2023-11-20 10:33:36 +01:00
f5e1d7825a Removing Prisma and Grapql-nestjs-prisma resolvers (#2574)
* Some cleaning

* Fix seeds

* Fix all sign in, sign up flow and apiKey optimistic rendering

* Fix
2023-11-19 18:25:47 +01:00
18dac1a2b6 feat: add Relation field form (#2572)
* feat: add useCreateOneRelationMetadata and useRelationMetadata

Closes #2423

* feat: add Relation field form

Closes #2003

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2023-11-17 23:38:39 +01:00
fea0bbeb2a feat: add EnumFieldDisplay and Enum field preview (#2487)
Closes #2428

Co-authored-by: Charles Bochet <charles@twenty.com>
2023-11-17 23:15:35 +01:00
aa2596c572 Update Seeds while pre-fi
lling a new workspace
2023-11-17 21:54:32 +01:00
e90beef91f feat: add useCreateOneRelationMetadata and useRelationMetadata (#2559)
Closes #2423
2023-11-17 19:15:15 +01:00
bc579d64a6 Rename Money/Url to Currency/Link and remove snake_case from composite fields (#2536)
* Rename Money/Url to Currency/Link

* regenerate front types

* renaming money/url field types

* fix double text

* fix tests

* fix server tests

* fix generate-target-column-map

* fix currency convert

* fix: tests

---------

Co-authored-by: Jérémy Magrin <jeremy.magrin@gmail.com>
2023-11-17 10:31:17 +01:00
e8a1d0d6d5 Remove api keys from old world (#2548)
* Use apiKeyV2 for getApiKeys

* Use apiKeyV2 for createApiKey

* Use apiKeyV2 for getApiKey

* Use apiKeyV2 to deleteapikey

* Filter null revokedAt -> not working

* Use apiKeyV2 to regenerate

* Fix default values injected

* Remove useless stuff

* Fix type
2023-11-16 18:14:04 +01:00
0ae9373532 V2 onboarding (#2543)
* fix cannot query avatarUrl

* create workspace working

* fix bugs related to refetch queries

* onboarding working

* updated dependency array

* improve error handling

* update types, remove as any, remove console logs

* small fix
2023-11-16 17:09:10 +01:00
e026b2b6e9 feat: expose foreign key (#2505)
* fix: typo

* feat: expose foreign key

* fix: foreign key exposition

* fix: be able to filter by foreign key

* feat: add `isSystem` on field metadata

* feat: update all seeds

* fix: seed issues

* fix: sync metadata generated files

* fix: squash metadata migrations

* Fix conflicts

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2023-11-16 12:30:40 +01:00
e5caa7a5df Eslint prevent duplicate import (#2516)
- eslint: prevent duplicate import
2023-11-16 12:26:43 +01:00
bee986749d 2472 v2 settings workspace module (#2532)
* update findOneWorkspaceMember

* profile picture upload is working

* first name and last name working

* support almost working

* remove picture working

* removed unused code

* remove console logs and fix allowImpersonation in FIND_ONE_WORKSPACE_MEMBER_V2

* use useUpdateOneObjectRecord
2023-11-16 11:59:13 +01:00
6129444c5c [WIP] Whole FE migrated (#2517)
* Wip

* WIP

* Removed concole log

* Add relations to workspace init (#2511)

* Add relations to workspace init

* remove logs

* update prefill

* add missing isSystem

* comment relation fields

* Migrate v2 core models to graphql schema (#2509)

* migrate v2 core models to graphql schema

* Migrate to new workspace member schema

* Continue work

* migrated-main

* Finished accountOwner nested field integration on companies

* Introduce bug

* Fix

---------

Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com>
Co-authored-by: Weiko <corentin@twenty.com>
2023-11-15 15:46:06 +01:00
130a68dd26 Add relation metadata seed (#2431)
* Add relation metadata seed

* Fix

* Add filtering by relation id on server

* Fix
2023-11-10 23:53:07 +01:00
54d7acd518 Split components into object-metadata and object-record (#2425)
* Split components into object-metadata and object-record

* Fix seed
2023-11-10 15:54:32 +01:00
618513afcd Rename fieldId and objectId into fieldMetadataId and objectMetadataId (#2421)
* Rename fieldId and objectId into fieldMetadataId and objectMetadataId

* Fix tests
2023-11-10 14:35:18 +01:00
7b9175a4a4 Revert "Convert metadata tables to camelCase" (#2419)
Revert "Convert metadata tables to camelCase (#2400)"

This reverts commit 1cf08c797f.
2023-11-10 11:48:44 +01:00
1cf08c797f Convert metadata tables to camelCase (#2400)
* Convert metadata tables to camelCase

* datasourcemetadataid to datasourceid

* refactor metadata folders

* fix command

* move commands out of metadata

* fix seed

* rename objectId and fieldId in objectMetadataId and fieldMetadataId in FE

* fix field-metadata

* Fix

* Fix

* remove logs

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2023-11-09 20:06:10 +01:00
b28ff9c97e feat: add Url field preview in settings (#2402)
* feat: add Url field preview in settings

Closes #2326

* feat: add Date field type in settings (#2414)

Closes #2331
2023-11-09 18:51:21 +01:00
0d4949484c feat: add Money field type in settings (#2405)
Closes #2346
2023-11-09 17:13:34 +01:00
aa09b5758c feat: add Boolean field preview in settings (#2399)
Closes #2328
2023-11-09 12:20:30 +01:00
28779f0fb8 feat: add Number field preview in settings (#2397)
Closes #2327
2023-11-09 08:30:37 +01:00
1f5492b4a7 feat: add Text field preview in settings (#2389)
Closes #2325
2023-11-09 08:25:46 +01:00
377f95c9db feat: add SettingsObjectFieldPreview and SettingsObjectFieldPreviewCard (#2376)
* feat: add SettingsObjectFieldPreview

Closes #2343

* feat: add SettingsObjectFieldPreviewCard

Closes #2349

* Fix ci

* Fix tests

* Fix tests

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2023-11-06 23:14:47 +01:00
9bd6d26d53 2299 fix(frontend): corrected tag spacing in settings object item table row (#2302)
* fix(frontend): corrected tag spacing in settings object item table row

* 2299-fix(front): pr requested changes

* 2299 fix(front): PR requested changes - 2
2023-11-06 17:58:03 +01:00
1ed4965a95 feat: refactor schema builder and resolver builder (#2215)
* feat: wip refactor schema builder

* feat: wip store types and first queries generation

* feat: refactor schema-builder and resolver-builder

* fix: clean & small type fix

* fix: avoid breaking change

* fix: remove util from pg-graphql classes

* fix: required default fields

* Refactor frontend accordingly

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2023-11-03 17:16:37 +01:00
dda911fea7 Remove three old env variables (#2297)
* remove three old env variables IS_DATA_MODEL_SETTINGS_ENABLED IS_DEVELOPERS_SETTINGS_ENABLED FLEXIBLE_BACKEND_ENABLED

* Fix database:reset script

* Removing unused variable

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2023-10-31 13:15:24 +01:00
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
3cdbe4f16e fix: remove blank space below Object Settings cover image (#2285)
Fixes #2280
2023-10-30 19:22:23 +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
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
9681815cb3 test: fix SettingsObjectDisabledMenuDropDown storybook tests (#2257)
* test: fix SettingsObjectDisabledMenuDropDown storybook tests

* fix: fix BoardOptionsDropdownContent lint error
2023-10-27 17:49:14 +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
3f2e1b622e Feat/show page metadata (#2234)
* Fix view fetch bug

* Finished types

* Removed console.log

* Fixed todo

* Working Object Show Page

* Minor fixes

* Fix custom object requests pending (#2240)

* Fix custom object requests pending

* fix typo

* Fix various bugs

* Typo

* Fix

* Fix

* Fix

---------

Co-authored-by: Weiko <corentin@twenty.com>
2023-10-27 11:06:07 +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
dfc59b2751 Applied min-height to Data Model banner (#2214) 2023-10-24 16:18:55 +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