Charles Bochet
48b1be9917
Fix ViewPicker create mode: view type switcher ( #4821 )
...
In this PR, I'm fixing two things on the ViewPicker in Create mode:
- if the Dropdown has no max height, it should not be scrollable (which
is causing issue with inner dropdowns being cut by overflow: hidden
- if the user has changed the icon, the type or the name of the view,
consider the create form as isDirty and prevent its value to be
overriden by re-renders (cache updates for example)
2024-04-04 18:32:55 +02:00
Charles Bochet
b1a586d324
Fix View creation, view fields re-ordering, view filters and view sorts erratic behaviors ( #4800 )
...
We used to not type properly the return of getRecordFromCache before the
work from last week.
The getViewFromCache function was patching this temporarily in a "dirty"
way.
Now that this is cleaner, I'm removing the typescript patch. This fixing
several behaviors on viewBar
2024-04-04 13:24:58 +02:00
Charles Bochet
514417245a
Add JsDom to server dependencies ( #4740 )
...
We were missing `JsDom` dependencies in the package.json generated by nx
while running `twenty-server`: `yarn nx build:packageJson`
Detailed explanation:
- we are currently using nx paradigm which is to put dependencies of all
projets at root, which enables global package migrations for the whole
monorepo
- for production containers, we only want specific project dependency to
be added. This is done by running `yarn nx build:packageJson` on
`twenty-server`. Nx is statically analyzing twenty-server dependencies
and generating a tailored package.json that production containers can
later use.
- However, `nx` static analysis is not flawless and is missing some
packages. We are going to stop using it as the value is not there yet
but the burden for developers is high. The guideline is to put back
project dependencies into specific package `package.json`
- Therefore, I'm adding `jsdom` to twenty-server `package.json`
2024-04-02 12:07:12 +02:00
Charles Bochet
746747ba2b
Fix jest tests broken with apollo metadata client ( #4728 )
...
The tests were broken. It turns out that it is not easy to mock two
apolloClients as apollo only provides "MockedProvider" component to mock
apollo in tests.
MockedProvider Api does not allow us to mock on client level.
For now, I'm defaulting to the base ApolloClient in test mode to avoid
the issue
2024-04-01 14:55:28 +02:00
Charles Bochet and Lucas Bordeau
02673a82af
Feat/put target object identifier on use activities ( #4682 )
...
When writing to the normalized cache (record), it's crucial to use _refs
for relationships to avoid many problems. Essentially, we only deal with
level 0 and generate all fields to be comfortable with their defaults.
When writing in queries (which should be very rare, the only cases are
prefetch and the case of activities due to the nested query; I've
reduced this to a single file for activities
usePrepareFindManyActivitiesQuery 🙂 ), it's important to use queryFields
to avoid bugs. I've implemented them on the side of query generation and
record generation.
When doing an updateOne / createOne, etc., it's necessary to distinguish
between optimistic writing (which we actually want to do with _refs) and
the server response without refs. This allows for a clean write in the
optimistic cache without worrying about nesting (as the first point).
To simplify the whole activities part, write to the normalized cache
first. Then, base queries on it in an idempotent manner. This way,
there's no need to worry about the current page or action. The
normalized cache is up-to-date, so I update the queries. Same idea as
for optimisticEffects, actually.
Finally, I've triggered optimisticEffects rather than the manual update
of many queries.
---------
Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com >
2024-04-01 13:12:37 +02:00
Charles Bochet
c54acb35b6
Update Dev Seeds to use Ids ( #4663 )
2024-03-26 14:19:40 +01:00
Charles Bochet
e576fe0d67
Update yarn commands ( #4644 )
...
* Simplify commands
* Simplify commands
* Migrate all dev commands to project.json
* Fix tests
2024-03-25 12:31:18 +01:00
Charles Bochet
161137e87a
Add events on Custom objects ( #4625 )
2024-03-22 20:02:00 +01:00
Charles Bochet
3c5c9c2f31
Release 0.3.3 ( #4622 )
...
* Release 0.3.3
* Fix tests
2024-03-22 17:28:53 +01:00
Charles Bochet
4a493b6ecf
New view picker ( #4610 )
...
* Implement new view picker
* Complete feature
* Fixes according to review
2024-03-22 15:04:17 +01:00
Charles Bochet
3fa8c4bace
Add KanbanFieldMetadataId on View standard object ( #4604 )
...
* Add KanbanFieldMetadataId on View standard object
* Deprecate Pipeline step
* Fix
* Use Constants instead of raw ids
* Fix
* Fix query runner
* Fix according to review
* Fix tests
* Fix tests
* Fix tests
2024-03-21 18:08:27 +01:00
Charles Bochet
cfb0cce9b8
Refactor Views by cleaning the code, relying on apolloCache and improving performances ( #4516 )
...
* Wip refactoring view
* Post merge conflicts
* Fix review
* Add create view capability
* Fix create object missing view
* Fix tests
2024-03-20 14:21:58 +01:00
Charles Bochet
feebc45d31
Fix storybook tests on IconPicker ( #4510 )
2024-03-15 21:47:07 +01:00
Charles Bochet
e0ae12ffa1
Fix server deploy ( #4509 )
...
* Fix server deployment broken by nx
* Fix server deployment broken by nx
* Fix server deployment broken by nx
* Fix
* Fix
* Fix
* Fix
2024-03-15 21:15:14 +01:00
Charles Bochet and Lucas Bordeau
afb9b3e375
Prefetching views and favorites ( #4421 )
...
* wip
* Push
* Complete work on prefetch
* Add comment
* Fix
* Fix
* Fix
* Fix
* Remove dead code
* Simplify
* Fix tests
* Fix tests
* Fix according to review
* Fix according to review
---------
Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com >
2024-03-15 18:35:40 +01:00
Charles Bochet
4eae3b8290
Fix front production container build ( #4478 )
...
* Fix deploy main
* Fix deploy main
2024-03-14 16:13:27 +01:00
Charles Bochet
4e1e4e2c4c
Upgrade documentation UI component rendering ( #4445 )
...
Upgrade documenation UI component rendering
2024-03-13 13:26:46 +01:00
Charles Bochet
5287b7c4ab
Add icon, position and key on View ( #4413 )
...
* Add view key field
* Update Prefill demo, seed dev, prefill new workspace
2024-03-11 17:00:19 +01:00
Charles Bochet
ec384cc791
Implement eager load relations on graphqlQueries ( #4391 )
...
* Implement eager load relations on graphqlQueries
* Fix tests
* Fixes
* Fixes
2024-03-10 23:42:23 +01:00
Charles Bochet
86c0f311f5
Introduce ComponentState ( #4386 )
...
* Proof of concept ComponentState
* Migrate to createState and createFamilyState
* Refactor
* Fix
* Fix tests
* Fix lint
* Fix tests
* Re-enable coverage
2024-03-09 11:31:00 +01:00
Charles Bochet
d2e2e50d8a
Fix consistency issuesin relation onDelete behavior while creating a new relation ( #4372 )
...
* Fix consistency issuesin relation onDelete behavior while creating a new relation
* Fix according to review
2024-03-08 11:49:42 +01:00
Charles Bochet
9190bd8d7f
Deprecate old board ( #4352 )
...
* Deprecate old board
* Fix tests
* Fix tests
2024-03-07 10:02:45 +01:00
Charles Bochet
e5c09deae5
Improve performances of metadata endpoint ( #4347 )
2024-03-06 18:09:38 +01:00
Charles Bochet
b08b361dc0
Command menu search bar ( #4337 )
...
* Improve performance on findMany queries
* Fix
* Fix command menu not emptying the search on toggle
* Fix tests
2024-03-06 14:20:05 +01:00
Charles Bochet
e7857d7fa3
Improve performance on findMany queries ( #4334 )
...
* Improve performance on findMany queries
* Fix
2024-03-06 13:59:42 +01:00
Charles Bochet
706b5d3cf1
Release 0.3.2 ( #4324 )
...
* Release 0.3.2
* Fix Select search
2024-03-05 18:57:31 +01:00
Charles Bochet
614f3ed69e
Fix click outside on select field ( #4323 )
...
* Fix click outside on select field
* Fix
2024-03-05 18:43:52 +01:00
Charles Bochet
0c2c57ab9b
Fix blocklist standard object being unhealthy ( #4255 )
...
Fix blocklist standard object unhealthy
2024-03-01 10:39:22 +01:00
Charles Bochet
ad4b3d0d59
Fix enum defaultValue broken ( #4251 )
...
* Fix enum defaultValue broken
* Fix
* Fix
2024-02-29 19:35:00 +01:00
Charles Bochet
fb439e3045
Enable new record board and messaging for all workspaces except demo ( #4243 )
...
* Enable new record board and messaging for all workspaces except demo
* Fix according to PR
2024-02-29 18:22:32 +01:00
Charles Bochet
f52a4141c9
Fix nullable being set to null for text field ( #4239 )
2024-02-29 11:29:17 +01:00
Charles Bochet
e0bf8e43d1
Update relation cascade on standard objects favorite, attachment, activityTargets ( #4227 )
2024-02-28 17:49:45 +01:00
Charles Bochet
16fe79b044
Fix demo workspace seed ( #4211 )
2024-02-27 14:11:52 +01:00
Charles Bochet
6a1abba9ea
Ignore defaultValue update for select fields ( #4193 )
...
* Ignore defaultValue update for select fields
* Fix tests
2024-02-26 18:41:29 +01:00
Charles Bochet
a108d36040
Refactor sign-up into its own service ( #4173 )
...
* Refactor sign-up into its own service
* Fix tests
2024-02-25 11:51:17 +01:00
Charles Bochet
87f7c75057
Remove usage of toSorted as it is not fully supported ( #4168 )
2024-02-24 12:12:55 +01:00
Charles Bochet
ba050cd33d
Release 0.3.1 ( #4031 )
2024-02-16 20:11:38 +01:00
Charles Bochet
6f2b0f2068
Resolve bugs tied to record creations on table ( #4011 )
...
* Resolve bugs tied to record creations on table
* Fix according to PR
* Fix tests
2024-02-16 15:03:57 +01:00
Charles Bochet
a5ecbf7df5
Integrations: design fixes and remove feature flag ( #4003 )
...
* Integrations: design fixes and remove feature flag
* Fix
2024-02-16 13:35:45 +01:00
Charles Bochet
88990144cf
Fix website build ( #3986 )
...
* Fix website build
* Try fix
* Try fix
2024-02-15 11:03:29 +01:00
Charles Bochet
9777c5fbce
Fix website build ( #3983 )
2024-02-14 21:28:26 +01:00
Charles Bochet
4613f64910
Add proper ORM and postgres support ( #3978 )
...
* Add postgresql support
* Fixes
* Fix perfs
2024-02-14 17:53:50 +01:00
Charles Bochet
0185c2a36e
Fix logger behavior ( #3897 )
2024-02-09 14:43:36 +01:00
Charles Bochet
7eaf56f566
Fix IconPicker broken storybook tests ( #3884 )
2024-02-08 15:14:22 +01:00
Charles Bochet
8692e5d1ca
Release 0.3.0 ( #3793 )
2024-02-03 09:05:11 +01:00
Charles Bochet
7b084ba46e
Enable Rating Field ( #3792 )
2024-02-03 08:55:29 +01:00
Charles Bochet
39f4ec9e7b
Fix storybook tests on Field Preview (Settings) ( #3761 )
2024-02-01 17:44:36 +01:00
Charles Bochet
4290db3566
Fix new board bugs ( #3730 )
...
* Fix freeze on field visibility change on board
* Fix
* Fix lint
2024-01-31 17:21:17 +01:00
Charles Bochet
c8e4d0ab9a
Board compact view and Company Picker for opportunity special case ( #3713 )
...
* Re-enabled board compact mode
* Add specific case for opportunity to display company picker
* Add infinite scroll
* Remove useEffect
* Fix
* Fix
2024-01-31 11:37:03 +01:00
Charles Bochet
2e4f2d54aa
Refactor board and table options ( #3700 )
...
* Refactor board and table options
* Fix
* Fix
2024-01-30 18:38:31 +01:00
Charles Bochet
f68de1a299
Board improvements ( #3694 )
...
* New board improvements
* Improve board
* Fix
2024-01-30 15:24:03 +01:00
Charles Bochet
e951fb70f8
Add board Action bar and context menu ( #3680 )
...
* Add board Action bar and context menu
* Fix according to review
2024-01-30 09:21:02 +01:00
Charles Bochet
7fdd7119d2
Allow Card field update and card drag on new record board ( #3661 )
2024-01-29 08:59:13 +01:00
Charles Bochet
6eca6dc780
Fix Opportunities page ( #3660 )
...
* Fix Opportunities page
* Fix
* Fix tests
2024-01-28 23:33:36 +01:00
Charles Bochet
419f8adde6
Improve RecordTableCellperformances ( #3659 )
...
* Improve RecordTableCellperformances
* Fixes
2024-01-28 20:32:28 +01:00
Charles Bochet
ada8f55574
Refactor Field Inputs ( #3658 )
...
* Rename field to record-field folder
* Simplify FieldInput
* Fix perfs
* Fixes
* Fixes
* Fix tests
* Fix tests
2024-01-27 23:42:39 +01:00
Charles Bochet
d6f117c688
Display RecordBoardCards on new board ( #3657 )
...
* Before remove saveEditModeValue logic
* Fixes
* Fix tests
* Fix tests
2024-01-27 15:55:45 +01:00
Charles Bochet
070900e4eb
Remap items in board ( #3643 )
...
* Remap items in board
* Fix according to review
2024-01-26 17:09:30 +01:00
Charles Bochet
377fd23c90
Display columns on Record Board ( #3626 )
...
* Display columns on Record board
* Fix
* Fix according to review
* Fix
2024-01-25 18:21:15 +01:00
Charles Bochet
afbb87ae12
Add new Record board shell ( #3609 )
...
* Add new Record board shell
* Fix
2024-01-24 17:47:04 +01:00
Charles Bochet
ccbf773fd4
Load empty board if view type is kanban ( #3605 )
...
* Load empty board if view type is kanban
* Fix tests
* Revert
2024-01-24 16:17:47 +01:00
Charles Bochet
afc36c7329
Introduce new board feature flag ( #3602 )
2024-01-24 14:24:02 +01:00
Charles Bochet
f48814f6d9
Tag current board as deprecated to make room for the new record board implementation ( #3601 )
2024-01-24 12:36:42 +01:00
Charles Bochet
aa603f1ff4
Update contributing guidelines with PR precendence ( #3590 )
2024-01-23 17:29:10 +01:00
Charles Bochet
3f0743493b
Fix Continuous Deployment script after adding twenty-emails package ( #3589 )
...
* Fix cd
* Fix server
* Fix server
* Fix server
* Fix server
* Fix
* Fix docs
* Fix
2024-01-23 12:30:03 +01:00
Charles Bochet
a7265fa3b4
Remove flag relation select ( #3588 )
...
* Remove feature flag on relation and select
* Move packages back to twenty-server to enable smaller build without using nx
* Fix package.json
2024-01-23 09:59:00 +01:00
Charles Bochet
894f63a16f
Standard Object prefill updates ( #3570 )
2024-01-22 11:13:43 +01:00
Charles Bochet
2cf4bd746a
Improve health check command ( #3553 )
...
* Improve health check command
* Fix health check
* Fix health check
2024-01-19 16:54:43 +01:00
Charles Bochet
4316950cf9
Bump version to 0.2.3 ( #3506 )
2024-01-17 11:57:13 +01:00
Charles Bochet and Thaïs
f3f20ad974
Improve opportunity behavior ( #3487 )
...
* Fix opportunity relation
* Fix
* Fix
* Fix tests
* Fix
* Fix
* Fix opportunities
* Fix Opportunity standard object and apply maxWidth to text ellipsis
* Update packages/twenty-front/src/modules/ui/field/display/components/EllipsisDisplay.tsx
Co-authored-by: Thaïs <guigon.thais@gmail.com >
* Fix
---------
Co-authored-by: Thaïs <guigon.thais@gmail.com >
2024-01-16 15:43:19 +01:00
Charles Bochet
fb93bb69fb
Fix opportunity relation ( #3478 )
...
* Fix opportunity relation
* Fix
* Fix
* Fix tests
* Fix
* Fix
2024-01-16 14:39:48 +01:00
Charles Bochet
16a24c5f0c
Rework relations ( #3431 )
...
* Rework relations
* Fix tests
2024-01-15 12:07:23 +01:00
Charles Bochet
8893cbc05d
Stop switching to a different datasource per workspace ( #3425 )
...
* Stop switching to a different datasource per workspace
* Add console
* Remove call to metadata
2024-01-14 00:21:21 +01:00
Charles Bochet
4f306f8955
Fix bug hover on table ( #3404 )
2024-01-12 16:30:32 +01:00
Charles Bochet
6672b04733
Fix docker-compose commands ( #3403 )
2024-01-12 14:31:47 +01:00
Charles Bochet
10fd67ba32
Fix relation creation bug + enable favorite for custom objects ( #3392 )
...
* Fix relation creation bug
* Fix vale CI
* Fix comment bug
2024-01-11 22:46:43 +01:00
Charles Bochet
3ad032cdc1
Fix 3 bugs ( #3391 )
...
* Fix Favorites
* Fix opportunities
2024-01-11 21:34:56 +01:00
Charles Bochet
99247fb689
Fix activity target bug ( #3390 )
2024-01-11 20:18:54 +01:00
Charles Bochet
49f66fec70
Fix vite build config ( #3358 )
...
* Fix vite build config
* Fix vite build config
* Fix vite build config
* Fix
* Fix
* Fix
* Fix
* Fix
* Fix
2024-01-10 17:42:11 +01:00
Charles Bochet
176e840728
Fix vale ci ( #3353 )
...
* Fix vale ci
* try
* try
* try
* try
2024-01-10 17:05:23 +01:00
Charles Bochet
69b558e03d
Fix bug on relation on custom object ( #3336 )
2024-01-09 17:49:05 +01:00
Charles Bochet
47ac97dd25
Fix Select ( #3327 )
2024-01-09 14:58:14 +01:00
Charles Bochet
67b14824a4
Implement select v1 ( #3312 )
...
* Implement select v1
* Implement select v1
2024-01-08 20:55:45 +01:00
Charles Bochet
96264e264c
Refactor recoil v4 ( #3266 )
...
* Refactor recoil v4
* Fix ci
2024-01-05 19:18:22 +01:00
Charles Bochet
f7034d6e7d
Embrace nx monorepo structure with root package.json ( #3255 )
...
* Upgrade to node 18.17.1 and regroup dependencies in root package.json
* Sort package.json
* Fix lint
* Migrate zapier
2024-01-05 14:59:58 +01:00
Charles Bochet
c15e138d72
Fix nx lint setup ( #3234 )
...
* Fix nx lint setup
* Fixes
* Fixes
* Add missing metadata
Fixes
Fix
Fixes
* Fix
2024-01-04 16:39:57 +01:00
Charles Bochet
90f89e31a6
Render on latest image ( #3223 )
...
* Update render setup to use latest images
* Update render setup to use latest images
* Fixes
* Migrate demo seeds to json
* Update plans
* Update plans
2024-01-03 16:17:35 +01:00
Charles Bochet
41f3a74bf4
Build linux pg graphql ( #3206 )
...
* Build pg_graphql for linux
* Build for amd
* Fixes
2024-01-03 12:02:06 +01:00
Charles Bochet
3d16ad8efd
Fix docker install to have all projects ( #3200 )
...
* Fix docker install to have all projects
* Fix
* Fixes
2024-01-02 14:31:21 +01:00
Charles Bochet
756b30815e
Fix various bugs before 0.2.2 ( #3118 )
...
* Fix various bugs before 0.2.2 release
* Additional fixes
* More fixes
* Fixes
2023-12-21 23:48:52 +01:00
Charles Bochet
e9bc13b5fa
Refactor recoil scope states ( #3097 )
...
* Refactor recoil scope states
* Complete refactoring
* Fix
2023-12-21 14:25:18 +01:00
Charles Bochet
65f05ff43a
Fix documentation layout broken because of mixed rest api doc styles ( #3043 )
2023-12-18 08:32:35 +01:00
Charles Bochet
72929d1de6
Fix docusaurus style overriden by spotlight/element (rest api playground) ( #3033 )
...
* Fix docusaurus style overriden by spotlight/element (rest api playground)
* Fix spacing
* Fix spacing
2023-12-15 19:45:34 +01:00
Charles Bochet
800330df90
Disable Danger CI on push trigger ( #3024 )
...
Disable Danger CI on main
2023-12-15 16:22:35 +01:00
Charles Bochet
3659f12fba
Fix ExceptionHandler requiring httpAdapter ( #3021 )
2023-12-15 16:07:35 +01:00
Charles Bochet
064e47b59a
Fix CIs ( #3004 )
...
* Fix CIs
* Fix docs
* Fix eslint-build
* Move file
* Move back
* Fix server ci
* Fix server ci
* Fix server ci
* Fix server ci
* Deactivate e2e tests
* Fix front
* Fix front
* Fix front
* Add twenty-zapier and twenty-utils to the yarn project
* fix
* fix
* Remove pull_request trigger
2023-12-15 15:40:04 +01:00
Charles Bochet
b04c787540
Update Jest configuration for frontend ( #2994 )
2023-12-14 20:08:03 +01:00
Charles Bochet
8916dee352
Fix Icon Lazy Loading ( #2984 )
...
Fix Icon picker
2023-12-14 12:13:02 +01:00
Charles Bochet
9eddaffac4
Fix Tsup setup to fuel docs with twenty-ui components ( #2978 )
2023-12-13 16:40:31 +01:00
Charles Bochet
9182efc57a
Fix MSW and storybook setup ( #2976 )
...
* Fix MSW and storybook setup
* Fix
* Fix
* Fixes
* Fix
* Fix
* Fix
2023-12-13 14:37:55 +01:00