9df83c9a5a
feat: better server lint ( #2850 )
...
* feat: add stylistic eslint plugin
* feat: add missing line return
* feat: secure line-break style
* feat: disallow break before else
* feat: line between class members
* feat: better new line lint rule
2023-12-06 12:19:00 +01:00
6d4ad6ec18
Sync standard object metadata ( #2807 )
...
* Sync standard object metadata
* remove debug logging
* remove unused func
* fix comments
* fix empty objectsToDelete list
2023-12-05 14:10:50 +01:00
2dcce31ede
Create feature flag and use hook to display account tab conditionally ( #2843 )
...
create feature flag and use hook to display account tab conditionally
2023-12-05 12:23:18 +01:00
fd9467c54d
feat: Add seed people and companies data for demo environment ( #2207 ) ( #2307 )
...
* feat: seed companies and people data
* init DataSeedDemoWorkspaceCommand to handle:
- seedCoreSchema()
- seedMetadataSchema()
* feature: Seed workspace with demo data
- delete workspace
- initDemo() with prefillWorkspaceWithDemoObjects()
* added companies-demo.ts with data
* added people-demo.ts with data
* added workspaceId to seedFeatureFlags()
* delete previous CoreSchema before seedCoreSchema
* added workspaceMemberPrefillData
* getDemoWorkspaces() to get DEMO_WORKSPACES from config
* defined DemoSeedUserIds
- created core/demo/ to keep modified seedCoreSchema() there
- DemoSeedUserIds with new set of users and Ids
* generateOpportunities() to seed demo opportunities (limit = 50)
* Code review and fixes
* Fix
---------
Co-authored-by: Charles Bochet <charles@twenty.com >
2023-12-02 18:37:45 +01:00
6e6f0af26e
feat: Adding support for new FieldMetadataType with Postgres enums ( #2674 )
...
* feat: add enum type (RATING, SELECT, MULTI_SELECT)
feat: wip enum type
feat: try to alter enum
feat: wip enum
feat: wip enum
feat: schema-builder can handle enum
fix: return default value in field metadata response
* fix: create fieldMedata with options
* fix: lint issues
* fix: rename abstract factory
* feat: drop `PHONE` and `EMAIL` fieldMetadata types
* feat: drop `VARCHAR` fieldMetadata type and rely on `TEXT`
* Revert "feat: drop `PHONE` and `EMAIL` fieldMetadata types"
This reverts commit 3857539f7d42f17c81f6ab92a6db950140b3c8e5.
2023-11-30 15:24:26 +01:00
7e454d2013
Attachments ( #2716 )
...
* create attachment site
* add deletion
* - fix person create attachment
* - add presentation type
- add some more file endings
- various fixes
2023-11-29 16:58:58 +01:00
04c7c1a334
Feature flags seeds, queries and hooks ( #2769 )
...
* seed is working
* allow graphql to retrieve feature flag data
* create useIsFeatureEnabled hook
* hook is working
* Update icons.ts
2023-11-29 16:40:44 +01:00
18d30c45c4
Create feature flag table ( #2752 )
...
* feature flag working
* wip
* wip
* Fix
---------
Co-authored-by: Charles Bochet <charles@twenty.com >
2023-11-28 20:19:39 +01:00
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
9dabe44d0f
Fix KeyboardShortcut menu, person upload picture ( #2669 )
...
* Fix KeyboardShortcut menu, person upload picture
* Fixes
2023-11-23 13:44:54 +01:00
01172d44dd
Fix/boolean field v2 ( #2664 )
...
* wip
* Revert "wip"
This reverts commit 517d460f6cd0add2ab9226572f69ca69d2f69a6d.
2023-11-23 11:35:32 +01:00
ec3cfe6fdb
Add back pickers on all pages, fix command menu ( #2662 )
...
* Add back pickers on all pages, fix command menu
* Fix lint
2023-11-22 22:32:25 +01:00
ccaa96bc58
Fix workspace/user deletion ( #2648 )
...
* Fix workspace/user deletion
* remove logs
* add defaultWorkspace check
2023-11-22 17:12:46 +01:00
5c8c141556
feat: workspace cache version instead of event emitter ( #2637 )
2023-11-22 14:51:26 +01:00
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
a67199e0c3
Fix Tasks and Activities - Part 1 ( #2624 )
...
Fixed
2023-11-21 23:29:40 +01:00
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
dd125ddfcc
feat: add memory cache to boost performance ( #2620 )
...
* feat: add memory cache to boost performance
* fix: tests
* fix: logging
* fix: missing commented stuff
2023-11-21 18:29:31 +01:00
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
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
189586830e
Refactored useFindOneObjectMetadataItem and useFindManyObjectMetadataItems ( #2600 )
...
* Refactored useFindOneObjectMetadataItem and useFindManyObjectMetadataItems to rely on a recoil family selector
* Removed console.log
* Cleaned
* Removed unused hook
* Fixed seeds
2023-11-20 16:34:06 +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
aa2596c572
Update Seeds while pre-fi
...
lling a new workspace
2023-11-17 21:54:32 +01:00
d481da183f
V2 opportunities ( #2565 )
...
* changed isSystem to false
* wip
* wip
* wip
* add amount viewfield seed
* seed other viewFields
* upate tenant seeds
* Remove calls to old pipelines
---------
Co-authored-by: Charles Bochet <charles@twenty.com >
Co-authored-by: Charles Bochet <charlesBochet@users.noreply.github.com >
2023-11-17 19:12:22 +01:00
f62108d539
Add missing default values ( #2567 )
...
* add missing default values
* add missing default values
2023-11-17 19:11:25 +01:00
4870b0ac30
Add fullName field metadata type ( #2563 )
...
* Add fullName field metadata type
* update seeds
2023-11-17 16:52:51 +01:00
f58e4263bc
Fix favorite seeds and prefill
2023-11-17 16:44:26 +01:00
baf1260443
Fix Activities and Tasks modules ( #2561 )
...
* Fix activities
* Fix Timeline
* Refactor useCreateOne and useUpdateOne records
* Fix seeds
2023-11-17 16:24:58 +01:00
a6d8cdb116
Fix context menu and favorites ( #2564 )
2023-11-17 16:24:43 +01:00
e19e7a816f
Update seeds to take currency and link type into account
2023-11-17 12:01:56 +01:00
b86ada6d2b
feat: rename tenant into workspace ( #2553 )
...
* feat: rename tenant into workspace
* fix: missing some files and reset not working
* fix: wrong import
* Use link in company seeds
* Use link in company seeds
---------
Co-authored-by: Charles Bochet <charles@twenty.com >
2023-11-17 11:26:33 +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
e9827486c0
feat: add default value capability ( #2544 )
...
* feat: add default value capability
* feat: update seeds with default value
2023-11-16 18:25:11 +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
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
82142ab70e
Added working peopleV2 table ( #2527 )
2023-11-15 19:17:20 +01:00
1fc3124d1e
Update favorites query and state to work with new backend ( #2520 )
...
* wip
* wip
* adding favorite works in the database
* favorites are showing in the left drawer
* update favoorite NavItem link
* wip
* adding favorite works
* everything seems to work
* fix delete bug
* fix update favorite position
* update Favorite type
* Fix
---------
Co-authored-by: Charles Bochet <charles@twenty.com >
2023-11-15 16:17:50 +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
01ccc13e36
Seed workspace member in workspace schema ( #2504 )
...
* Seed workspace member in workspace schema
* Fix
2023-11-14 15:48:03 +01:00
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
6eb4e00ce1
Migrate WorkspaceMemberSetting into WorkspaceMember ( #2501 )
2023-11-14 12:34:48 +01:00
5566e6fba8
Complete all standard object migration to the new workspace schema ( #2492 )
...
* Complete all standard object migration to the new workspace schema
* Fixes
2023-11-14 10:24:36 +01:00
05dbde79cf
Add standard company table migrations ( #2484 )
2023-11-13 17:18:37 +01:00
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
9a109758c8
Migrate standard objects ( #2439 )
...
* Migrate standard objects
* Add migrations
* fix relation
* fix: register RelationMetadataType enum
* fix: correctly fix null relation
---------
Co-authored-by: corentin <corentin@twenty.com >
Co-authored-by: Jérémy Magrin <jeremy.magrin@gmail.com >
2023-11-13 16:08:27 +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
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
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