Commit Graph
84 Commits
Author SHA1 Message Date
Weiko 65aa91c774 Allow field/object update if name/label are similar values (#2709) 2023-11-24 21:25:48 +01:00
Weiko 323c69948c Fix check identical nameSingular/namePlural (#2689) 2023-11-24 11:30:22 +01:00
Weiko cc526517b3 Add viewField creation to fieldMetadata creation service (#2685)
* Add viewField creation to fieldMetadata creation service

* fix reduce with no initial value
2023-11-24 10:02:37 +01:00
Weiko c395955f12 Fix activity creation (#2686) 2023-11-24 10:01:29 +01:00
Weiko 851ce73609 Fix company update with accountOwner (#2687) 2023-11-24 10:00:45 +01:00
Weiko 5038c36df4 Update seed default values (#2681)
* Update seed default values

* Update seed default values

* Update seed default values

* remove allowImpersonation in workspaceMembers

* remove USD from currencyCode defaultValue

* fix tests
2023-11-23 23:30:53 +01:00
Weiko c795db33b2 Add activityTarget relation after custom object creation (#2670)
* Add activityTarget relation after custom object creation

* add isCustom check for relations
2023-11-23 16:26:33 +01:00
Weiko 0fd823af21 Allow isActive to be updated for standard objects (#2651)
* Allow isActive to be updated for standard objects

* Allow isActive to be updated for standard objects/fields
2023-11-22 17:17:13 +01:00
Weiko ccaa96bc58 Fix workspace/user deletion (#2648)
* Fix workspace/user deletion

* remove logs

* add defaultWorkspace check
2023-11-22 17:12:46 +01:00
Weiko a6abe09163 Move Impersonate from User to Workspace (#2630)
* Fix impersonate

* align core typeorm config with metadata config + add allowImpersonation to workspace

* move allowImpersonation to workspace

* remove allowImpersonation from workspaceMember workspace table
2023-11-22 14:12:39 +01:00
Weiko c74bde28b8 Add identifier fields to ObjectMetadata (#2616)
* Add indentifier fields to ObjectMetadata

* Add indentifier fields to ObjectMetadata

* Add indentifier fields to ObjectMetadata

* temporarily block name/label edition
2023-11-21 18:41:48 +01:00
Weiko 6f4a952381 Add [from/to]Description to CreateRelationInput (#2613) 2023-11-21 11:38:27 +01:00
Weiko 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
Weiko 1deb742ac9 Add deleteOneRelation resolver (#2569) 2023-11-17 19:13:42 +01:00
Weiko ed71ef67af Add Name defaultColumn for custom objects (#2568) 2023-11-17 19:13:07 +01:00
Weiko f62108d539 Add missing default values (#2567)
* add missing default values

* add missing default values
2023-11-17 19:11:25 +01:00
Weiko 4870b0ac30 Add fullName field metadata type (#2563)
* Add fullName field metadata type

* update seeds
2023-11-17 16:52:51 +01:00
WeikoandJérémy Magrin 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
Weiko ebd1ef5223 Add basic fields metadata (#2523)
* Add basic fields metadata

* add fieldmetadata dependency

* re-arrange modules

* fix

* fix seed

* set default fields nullable

* set default fields nullable

* fix tenantMigration order

* fix tenantMigration order
2023-11-15 19:21:51 +01:00
WeikoandCharles Bochet 7c229217be Hide System Objects (#2488)
* Hide System Objects

* add filter isSystem: false in FIND_MANY_METADATA_OBJECTS

* add filter isSystem: false in FIND_MANY_METADATA_OBJECTS

* update generated gql

* add filter to useFindManyObjectMetadataItems

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2023-11-14 15:27:24 +01:00
Weiko 3de2fc72dc Create Relation with Fields from both sides (#2480)
* Create relation with fields from both sides

* update metadata codegen schema
2023-11-13 17:22:15 +01:00
Weiko f8a887e33e Add is system flag to object metadata (#2481)
* Add isSystem flag to objectMetadata

* squash migrations and add dataSource->objects FK

* fix missing datasource enum type
2023-11-13 17:09:26 +01:00
Weiko 032e516a46 fix one to many relation dynamic query (#2430) 2023-11-10 18:20:36 +01:00
Weiko 04c618284f Convert metadata tables to camel_case (#2420)
* Convert metadata tables to camelcase

* refactor folder structure

* rename datasourcemetadata

* regenerate metadata schema

* rename dataSourceMetadata to dataSource
2023-11-10 15:33:25 +01:00
WeikoandCharles Bochet 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
Weiko 0f7581acc3 Remove Tenant columns anonymisation (#2404)
* Remove Tenant columns anonymisation

* add tests

* use _ instead of custom_

* put _ on all custom fields
2023-11-09 12:19:33 +01:00
Weiko cafffd973f Add Relation Metadata (#2388)
* Add Relation Metadata

* remove logs

* fix migrations

* add one-to-many relation inside entities

* fix relation

* use enum for tenant migration column action type
2023-11-08 09:39:44 +01:00
WeikoandCharles Bochet b56f6f3947 Fix seeds for local workspace and newly created workspaces (#2333)
* Update metadata/data seeds

* fix

* fix

* move seeding into a transaction

* add no-non-null-assertion

---------

Co-authored-by: Charles Bochet <charlesBochet@users.noreply.github.com>
2023-11-03 14:33:45 +01:00
WeikoandCharles Bochet acbcd2f162 Standard migration command (#2236)
* Add Standard Object migration commands

* rebase

* add sync-tenant-metadata command

* fix naming

* renaming command class names

* remove field deletion and use object cascade instead

---------

Co-authored-by: Charles Bochet <charlesBochet@users.noreply.github.com>
2023-10-27 18:08:59 +02:00
Weiko 53e51aad52 Add prisma metadata seeds (#2259) 2023-10-27 13:57:11 +02:00
Weiko c04e866de3 Remove Metadata SoftDelete and page limit size (#2237)
* Remove Metadata SoftDelete and page limit size

* add cascade deletion

* add missing queryRunner release
2023-10-26 17:32:27 +02:00
Weiko 781a1de8f4 Fix custom object requests pending (#2240)
* Fix custom object requests pending

* fix typo
2023-10-26 12:20:03 +02:00
Weiko cc9ffb16ad Add standardObject seeds (#2140)
* Add standardObject seeds

* use for of
2023-10-20 14:35:25 +02:00
Weiko 7fbef6d60d Add Tenant initialisation service (#2100)
* Add Tenant initialisation service

* few fixes

* fix constraint

* fix tests

* update metadata json with employees and address

* add V2

* remove metadata.gql
2023-10-18 18:01:52 +02:00
Weiko 1344e78acb Remove singular/plural from field-metadata (#2085)
* Remove singular/plural from field-metadata

* revert removing id from create input

* remove console log

* remove console log

* codegen

* missing files

* fix tests
2023-10-17 15:21:58 +02:00
Weiko c06a8a9213 Add soft delete to metadata (#2072) 2023-10-16 22:04:17 +02:00
Weiko 525603227a Add default db schema for seeded workspace (#2061)
* Add default db schema for seeded workspace

* fix

* add if not exists

* add metadata seeds

* use setup-db for e2e

* fix tests
2023-10-16 16:59:46 +02:00
Weiko f97228bfac feat: add object/field create/update resolvers (#1963)
* feat: add object/field create/update resolvers

* fix tests
2023-10-11 12:03:13 +02:00
Weiko ca492808cf Add metadata query resolvers (#1929)
* Add metadata queries resolvers

* remove hello field

* fix linter
2023-10-09 22:54:14 +02:00
Weiko 42e8869e0e Add targetColumnMap to FieldMetadata (#1863)
* Add targetColumnMap to FieldMetadata

* fix

* remove console.log

* fix test
2023-10-04 15:17:53 +02:00
Weiko 1e91c985df Add a dedicated GQL server for metadata available on /meta (#1820) 2023-10-03 10:17:13 +02:00
Weiko 09684ef6cc Fix docker setup with bcrypt (#1783) 2023-10-02 11:59:06 +02:00
Weiko 3851e0f992 Fix missing patches folder to deploy server (#1771)
* Fix missing patches folder to deploy server

* Fix missing patches folder to deploy server

* remove extra line

* add fix for twenty-dev
2023-09-29 15:41:09 +02:00
Weiko 189bf4a627 Feature: add createCustomField resolver (#1698)
* Feature: add createCustomField resolver

* update mocks

* fix import

* invalidate workspace datasource cache after migration

* fix typo
2023-09-21 12:59:11 -07:00
WeikoandCharles Bochet 19365f6639 Add metadata migration setup (#1674)
* Add metadata migration setup

* add migration generator

* fix missing 'mocks'

---------

Co-authored-by: Charles Bochet <charlesBochet@users.noreply.github.com>
2023-09-20 17:27:07 -07:00
Weiko ec90c77ec1 Refactor tenant ORM integration (#1650)
* Refactor tenant ORM integration

* fix tests
2023-09-19 17:58:28 +02:00
Weiko 6462505a86 Fix CI: remove import for metadata POC (#1577)
Fix CI: remote import for metadata POC
2023-09-14 12:03:20 -07:00
Weiko d98ddc3dbe multi tenant schemas poc (#1569)
* Multi-tenant db schemas POC

* fix tests and use query builders

* remove synchronize

* restore updatedAt

* remove unnecessary import

* use queryRunner

* fix camelcase

* add migrations for standard objects

* Multi-tenant db schemas POC

* fix tests and use query builders

* remove synchronize

* restore updatedAt

* remove unnecessary import

* use queryRunner

* fix camelcase

* add migrations for standard objects

* add metadata

* add comments

* remove migrations for now

* do not allow connection to public schema for non-remote workspace connection

* rename getLastDataSourceMetadataFromWorkspaceIdOrFail

* remove schema creation

* remove module import
2023-09-14 14:39:37 +02:00
corentin 27bb3a8126 switch back editable field hover from lighter to light 2023-08-28 12:03:07 +02:00
Weiko ab9d7ddf7e Fix tasks page (#1325)
* Fix tasks page

* remove console log

* use to-do instead
2023-08-28 11:57:00 +02:00
Weiko 0e5dcd7037 Fix confirmation modal style (#1310) 2023-08-25 21:26:27 +02:00
Weiko 8a3a176571 Add idealCustomerProfile to company show page (#1312)
* Add idealCustomerProfile to company show page

* remove editMode

* add xUrl
2023-08-25 21:11:43 +02:00
Weiko f520a00909 Remove danger text from completed passed tasks (#1309) 2023-08-25 18:05:35 +02:00
Weiko edff69b2f6 Add hotkeys to modals (#1305)
* Add hotkeys to modals

* fix

* fix

* remove unnecessary type

* restore type

* add handleEnter

* rename event props
2023-08-25 13:59:04 +02:00
corentin 75207b093b fix missing property in companies optimistic response 2023-08-24 18:10:07 +02:00
Weiko 00f1d2b739 Fix color scheme update (#1298)
* Fix color scheme update

* remove as

* fix
2023-08-24 16:34:46 +02:00
corentin 6c418a63bc move canPersistFiltersScopedState & canPersistSortsScopedState to selectors folder 2023-08-24 16:01:41 +02:00
WeikoandCharles Bochet 10b68618d3 New behavior for editable fields (#1300)
* New behavior for editable fields

* fix

* fix

* fix coverage

* Add tests on NotFound

* fix

* fix

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2023-08-24 15:56:43 +02:00
Weiko 76246ec880 Fix confirmation modal size (#1295) 2023-08-23 15:38:37 +02:00
Weiko 22dbe21bcd Add Empty as value of empty fields inputs #1042 (#1243)
* Add Empty as value of empty fields inputs #1042

* rebase
2023-08-22 16:46:15 +02:00
Weiko 9b34a0ff3d Add styled component rule (#1261)
* Add StyledComponent rule

* update doc

* update doc

* update doc
2023-08-17 20:58:02 -07:00
corentin f4accc66fa use ci-8-cores 2023-08-17 12:25:44 -07:00
Weiko 0cab6a11d2 Set 3 workers for storybook coverage (#1255)
* Set 3 workers for storybook coverage

* fix

* fix

* fix

* change ubuntu-latest to ci-4-cores

* fix
2023-08-17 12:00:45 -07:00
Weiko 1e277ba950 Fix Chip font-weight (#1242)
* Fix Chip font-weight

* fix ===
2023-08-16 16:28:16 -07:00
Weiko aa1f9bcab3 removed unused files, unnecessary exports and renamed ownProps (#1225)
* remove unused files and rename ownProps

* restore unused icons
2023-08-15 17:02:02 -07:00
Weiko c9549c3833 [docs] add folder architecture doc (#1221)
* [docs] add folder architecture doc

* update

* add internal

* improve doc
2023-08-15 15:15:07 -07:00
Weiko 24e5132029 Moving queries into dedicated files (#1210)
* Moving queries into dedicated files

* fix ci
2023-08-14 19:31:20 -07:00
WeikoandCharles Bochet 239d036813 Upgrade /front version and display the version in settings navbar (#1207)
* Upgrade /front version and display the version in settings navbar

* fix

* fix version

* restore center

* add icon

* Fix styled components

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2023-08-14 17:40:10 -07:00
Weiko 43b0945028 Reorganize context/states/selectors in dedicated folders (#1205)
* Reorganize context/states/selectors in dedicated folders

* linter
2023-08-14 15:29:47 -07:00
Weiko 7d900ad1c6 Reorganize context/states/selectors in dedicated folders (#1205)
* Reorganize context/states/selectors in dedicated folders

* linter
2023-08-14 15:08:47 -07:00
Weiko bf09a4d6a2 Improve editable field performances (#1182)
* [EditableField] improve performances

* remove FieldHotkeyScopeContext.ts
2023-08-12 17:27:02 -07:00
Weiko a30222fe76 [PersonShow] use fieldDefinition for editable fields (#1178)
* [PersonShow] use fieldDefinition for editable fields

* remove unused files

* fix company chip display field
2023-08-12 01:36:38 +02:00
Weiko 4eb4d1488c Use FieldDefinition for company show page (#1171)
* Use FieldDefinition for company show page

* removing console.log

* fix conflicts

* fix address placeholder + company show page field definition ordering

* fix story

* add replacePlaceholder

* use AppPath enum in stories

* add routeParams

* fix people input story
2023-08-11 14:31:52 -07:00
Weiko 4288cef096 refactoring editableFieldContext to match with table implementation (#1164) 2023-08-10 12:26:05 -07:00
Weiko 07a8f68ef1 Add FieldDefinition (#1162)
* add fieldDefinition

* update naming

* use a unique contextProvider for editable fields

* remove EntityUpdateMutationHookContext.Provider usage in CompanyBoardCard

* add fieldDefinitionState

* remove unnecessary refetchQueries to avoid re-render

* add FieldMetadata

* add type guards and update useUpdateGenericEntityField

* restore refetchQueries
2023-08-10 11:26:27 -07:00
Weiko a2891e50e6 [opportunities] fix poc being removed after pipeline update (#1148) 2023-08-10 02:52:36 +02:00
Weiko cd831af53d Use dedicated EditableFieldEntityIdContext for editable fields instead of CardIds (#1145)
* Use dedicated EntityIdContext for editable fields instead of CardIds

* update context name

* remove unused hook
2023-08-10 01:32:28 +02:00
Weiko 702b6e5154 fix update pipelineProgress with 0 probability (#1144) 2023-08-09 20:01:44 +02:00
Weiko 35395c2e67 [Tasks] Removing task list empty state (#1090)
* [Tasks] Removing task list empty state

* separate no-tasks story in a different file to handle cache issues
2023-08-05 15:05:40 -07:00
Weiko 5166859f80 [Opportunities] fix overlapping borders (#1091)
* [Opportunities] fix overlapping borders

* remove margin on SortAndFilterBar

* add margin-right to StyledBoard
2023-08-05 12:22:52 -07:00
Weiko 04297b0556 Add viewFields delete in Workspace delete resolver (#1082) 2023-08-04 15:23:56 -07:00
Weiko 0d16053c31 [tasks] add empty state and new task button (#1072)
* [tasks] add empty state

* add refetch + use spacing for padding

* create task auto assigned with dueAt as today

* add unscheduled tasks section

* remove unnecessary assigneeId fetching

* remove unnecessary refetchQueries

* add refetch for delete task

* rename createCommentMutation to deleteActivityMutation in activityActionBar
2023-08-04 11:04:06 -07:00
Weiko 11e7266f8a [FilterDropdownEntitySearchSelect] add missing displayAvatarUrl (#1071)
* [FilterDropdownEntitySearchSelect] add missing displayAvatarUrl

* add missing avatarUrl in activities

* remove console.log
2023-08-03 19:27:04 -07:00
Weiko 43f20ebf74 [PeoplePicker] fix missing avatar in user search dropdown (#1069) 2023-08-03 16:38:09 -07:00