Commit Graph

1525 Commits

Author SHA1 Message Date
martmull
dea1555031
Improvements for migrations (#2556)
* Fix wrong var name

* Add is null is not null filtering on dates

* Simplify
2023-11-17 14:20:33 +01:00
Charles Bochet
e19e7a816f Update seeds to take currency and link type into account 2023-11-17 12:01:56 +01:00
martmull
454f893eea
Fix objectMetadataId to objectRecordId incorrect naming (#2554)
Fix wrong var name
2023-11-17 11:26:45 +01:00
Jérémy M
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
Weiko
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
Charles Bochet
31e439681c Fix main post merge 2023-11-17 09:45:48 +01:00
Jérémy M
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
martmull
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
Charles Bochet
31adb24ffd Fix main post merge 2023-11-16 17:23:05 +01:00
Charles Bochet
dee38bb901
Migrate activities (#2545)
* Start

* Migrate activities to flexible schema
2023-11-16 17:10:22 +01:00
Lucas Bordeau
7da18a13e8
Feat/filter available field definition v2 (#2547)
* Added react-dev-inspector

* Add field relation type parsing and filter available fields for record table and show page

* Revert "Added react-dev-inspector"

This reverts commit 7a78964c2c.
2023-11-16 17:09:50 +01:00
bosiraphael
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
Félix Malfait
b1b6bbe7d3
Increase spreadsheet import limit (#2539)
* Initialize web application via create-cloudflare CLI

Details:
  C3 = create-cloudflare@2.6.2
  project name = twenty-blog
  framework = next
  framework cli = create-next-app@13.4.19
  package manager = npm@9.5.0
  wrangler = wrangler@3.15.0
  git = 2.39.2 (Apple Git-143)

* Increase CSV Import limit

* Revert "Initialize web application via create-cloudflare CLI"

This reverts commit 6a09759372.
2023-11-16 15:27:53 +01:00
Lucas Bordeau
4acb7f41e1
Fix/company picker v2 (#2535)
Fixed company picker V2
Fixed picker search hook filters / where clause
Fixed OrderBy / SortOrder type
Fixed set relation to null
2023-11-16 12:34:23 +01:00
Jérémy M
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
brendanlaschke
e5caa7a5df
Eslint prevent duplicate import (#2516)
- eslint: prevent duplicate import
2023-11-16 12:26:43 +01:00
bosiraphael
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
Charles Bochet
96661b5f56
Add support for UUID fields in tables (#2529) 2023-11-15 19:37:29 +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
Lucas Bordeau
82142ab70e
Added working peopleV2 table (#2527) 2023-11-15 19:17:20 +01:00
Jérémy M
c02717c1e3
fix: schema builder use same type definitions storage across tenant (#2525) 2023-11-15 17:23:30 +01:00
martmull
66051fa077
Fix api keys (#2513) 2023-11-15 16:57:05 +01:00
bosiraphael
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
Charles Bochet
f49ddec2f6 Fix optimistic effect breaking build 2023-11-15 15:57:43 +01:00
Charles Bochet
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
gitstart-twenty
1f49ed2acf
chore(server): convert User model to TypeORM entity (#2499)
* chore: convert basic RefreshToken model to TypeORM entity

Co-authored-by: v1b3m <vibenjamin6@gmail.com>

* Fix import

Co-authored-by: v1b3m <vibenjamin6@gmail.com>

* Refactor according to review

Co-authored-by: v1b3m <vibenjamin6@gmail.com>
Co-authored-by: Thiago Nascimbeni <tnascimbeni@gmail.com>

* Refactor according to review

Co-authored-by: v1b3m <vibenjamin6@gmail.com>
Co-authored-by: Thiago Nascimbeni <tnascimbeni@gmail.com>

* Refactor according to review

Co-authored-by: v1b3m <vibenjamin6@gmail.com>
Co-authored-by: Thiago Nascimbeni <tnascimbeni@gmail.com>

---------

Co-authored-by: v1b3m <vibenjamin6@gmail.com>
Co-authored-by: Thiago Nascimbeni <tnascimbeni@gmail.com>
2023-11-14 17:15:31 +01:00
Kanav Arora
970d9ee7f6
2320-fix(front): IconEye icon size and font fix (#2490)
* 2320-fix(front): IconEye icon size and font fix

* 2320-fix: StyledEye replaced with lighticonbutton
2023-11-14 17:07:54 +01:00
Charles Bochet
01ccc13e36
Seed workspace member in workspace schema (#2504)
* Seed workspace member in workspace schema

* Fix
2023-11-14 15:48:03 +01:00
Weiko
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
Benedikt Kleiner
d27f16d97a
docs: mention prebuilt images (#2493)
docs: mention prebuilt images, remove docker build instructions
2023-11-14 15:09:23 +01:00
Uwem Israel
f3dfd06571
feat: Unfocus cells when mouse leaves the table (#2442)
* feat: Unfocus cells when mouse leaves the table

* fix: only unfocus cells that are not in edit mode
2023-11-14 15:07:41 +01:00
gitstart-twenty
a69711429b
chore(backend): convert basic RefreshToken model to TypeORM entity (#2401)
* chore: convert basic RefreshToken model to TypeORM entity

Co-authored-by: v1b3m <vibenjamin6@gmail.com>

* Fix import

Co-authored-by: v1b3m <vibenjamin6@gmail.com>

---------

Co-authored-by: v1b3m <vibenjamin6@gmail.com>
2023-11-14 13:09:04 +01:00
Charles Bochet
6eb4e00ce1
Migrate WorkspaceMemberSetting into WorkspaceMember (#2501) 2023-11-14 12:34:48 +01:00
Jérémy M
65af954671
fix: relations issues (#2497)
* fix: relations issues

one-to-one relation not working
alias should not be used on the foreignKey side

* fix: naming
2023-11-14 12:07:17 +01:00
brendanlaschke
448f256a35
Add env variable docs (#2440)
* - add env variable docs

* - danger.js rule

* - fix value

* Fix Danger CI setup

* Add token in CI

---------

Co-authored-by: Félix Malfait <felix.malfait@gmail.com>
2023-11-14 10:41:09 +01:00
Charles Bochet
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
bosiraphael
f476129afa
Fix date dropdown width (#2486)
fix date dropdown width
2023-11-13 18:21:16 +01:00
bosiraphael
230459b23c
2454 update filter definition to work with new backend (#2482)
* wip

* filters are working

* updated functions

* remove comment

* improve readability
2023-11-13 18:05:49 +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
Charles Bochet
05dbde79cf
Add standard company table migrations (#2484) 2023-11-13 17:18:37 +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
Félix Malfait
9132845242
Remove CLA Assistant (#2479)
* Remove yarn.lock and package.json from root

* Remove CLA-Assistant
2023-11-13 16:09:59 +01:00
Charles Bochet
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
brendanlaschke
c7568ff28b
Fix single note in grid (#2437)
- fix single note in grid
2023-11-13 16:01:31 +01:00
Félix Malfait
44d046b363
Cleanup CI workflows, Remove Twenty CLI, Add Danger.js (#2452)
* Move dockerignore file away from root

* Delete Twenty CLI

* Create Twenty-utils

* Move release script

* Add danger.js to yarn

* Add danger

* Add Bot token

* Cancel previous steps CI

* Revert "Move dockerignore file away from root"

This reverts commit 7ed17bb2bc.
2023-11-13 14:10:11 +01:00
Shiv Tyagi
2befd0ff14
infra: add make commands for provisioning postgres in macos and linux (#2436)
* infra: add make commands for provisioning postgres in macos and linux

* docs: update commands for provisioning postgres on linux and macos
2023-11-12 10:26:12 +01:00
Lucas Bordeau
8906c23c63
Fixed callback firing on clickoutside but mousedown inside. (#2434)
Co-authored-by: Charles Bochet <charles@twenty.com>
2023-11-10 23:54:47 +01:00
Charles Bochet
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
bosiraphael
73db5eb35d
fix-svgr-issue-with-tsup (#2429) 2023-11-10 18:25:14 +01:00
Weiko
032e516a46
fix one to many relation dynamic query (#2430) 2023-11-10 18:20:36 +01:00