7c3e82870c
[fix] Increment cache version after object/field/relation update ( #5316 )
...
Fixes #5276 .
Updates were not triggering a cache version incrementation because they
do not trigger migrations while that is where the caching version logic
was.
We have decided to move the cache incrementation logic to the services.
2024-05-07 16:30:25 +02:00
d0759ad7cc
refactor: use react-hook-form to validate Settings/DataModel/Field ( #4916 )
...
Closes #4295
2024-05-07 11:44:46 +02:00
268c6b44d9
Enable phone field type ( #5052 )
...
### Description
Enable phone field type
### Refs
https://github.com/twentyhq/twenty/issues/2700
### Demo
https://github.com/twentyhq/twenty/assets/140154534/e9810718-9916-4ad4-a080-4d718777de15
Fixes #2700
---------
Co-authored-by: gitstart-twenty <gitstart-twenty@users.noreply.github.com >
Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com >
2024-05-01 15:47:19 +02:00
8853226d17
feat: add Links field type ( #5176 )
...
Closes #5113
---------
Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com >
2024-05-01 11:56:14 +02:00
ccd1100773
Fix tests ( #5228 )
...
Fixing typecheck + storybook:modules!
2024-04-30 17:54:07 +02:00
6a14b1c6d6
Fix tasks ( #5199 )
...
## Query depth deprecation
I'm deprecating depth parameter in our graphql query / cache tooling.
They were obsolete since we introduce the possibility to provide
RecordGqlFields
## Refactor combinedFindManyRecordHook
The hook can now take an array of operationSignatures
## Fix tasks issues
Fix optimistic rendering issue. Note that we still haven't handle
optimisticEffect on creation properly
2024-04-29 23:33:23 +02:00
ff39ba5a15
[fix] Support non latin characters in schema names ( #5063 )
...
Fixes #4943
## How was it tested?
Local (front + /metadata)
Unit tests for utils
---------
Co-authored-by: Weiko <corentin@twenty.com >
2024-04-23 13:37:29 +02:00
a52f2e5bd9
Fix Storybook stories (Datamodel edition / preview / signOut) ( #5019 )
...
As per title ; some small changes on broken stories
2024-04-17 18:48:41 +02:00
75fd430149
Increase storybook pages coverage ( #4885 )
...
On FE:
- refreshing metadata mocks
- updating jest tests
- fixing storybook pages coverage
- fixing storybook modules coverage
2024-04-17 16:24:04 +02:00
64cc6ecc3b
Fix relation field type ( #4992 )
2024-04-17 14:56:27 +02:00
d7d9f0c16b
Fix ParticipantChip and stories imports ( #4974 )
...
- Fix ParticipantChip
- Fix stories imports after some component have been moved to twenty UI
2024-04-15 18:09:05 +02:00
b6d0b8a895
refactor: move Checkmark, Avatar, Chip and Tooltip to twenty-ui ( #4946 )
...
Split from https://github.com/twentyhq/twenty/pull/4518
Part of #4766
2024-04-15 12:05:06 +02:00
efcb5dc6d4
New Datetime field picker ( #4907 )
...
### Description
New Datetime field picker
### Refs
https://github.com/twentyhq/twenty/issues/4376
### Demo
https://github.com/twentyhq/twenty/assets/140154534/32656323-972c-413a-9986-a78efffae1b4
Fixes #4376
---------
Co-authored-by: gitstart-twenty <gitstart-twenty@users.noreply.github.com >
Co-authored-by: v1b3m <vibenjamin6@gmail.com >
Co-authored-by: Matheus <matheus_benini@hotmail.com >
Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com >
Co-authored-by: Charles Bochet <charles@twenty.com >
2024-04-13 19:07:51 +02:00
9f83cc1426
refactor: move @/ui/display/icon to twenty-ui ( #4820 )
...
Split from https://github.com/twentyhq/twenty/pull/4518
Part of https://github.com/twentyhq/twenty/issues/4766
2024-04-12 15:30:48 +02:00
f332213e0d
Fix remote object read-only + remove relations ( #4921 )
...
- Set `readOnly` boolean in table row context. Preventing updates and
deletion
- Show page is null for remote objects. No need for complicated design
since this is temporary?
- Relation creations are now behind a feature flag for remote objects
- Refetch objects and views after syncing objects
---------
Co-authored-by: Thomas Trompette <thomast@twenty.com >
2024-04-11 17:58:02 +02:00
7211730570
New field type: DATE ( #4876 )
...
### Description
New field type: DATE
### Refs
https://github.com/twentyhq/twenty/issues/4377
### Demo
https://jam.dev/c/d0b59883-593c-4ca3-966b-c12d5d2e1c32
Fixes #4377
---------
Co-authored-by: gitstart-twenty <gitstart-twenty@users.noreply.github.com >
Co-authored-by: v1b3m <vibenjamin6@gmail.com >
Co-authored-by: Toledodev <rafael.toledo@engenharia.ufjf.br >
Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com >
2024-04-11 17:29:29 +02:00
c69a3f01da
Use defaultValue in currency input ( #4911 )
...
- Fix default value sent to backend, using single quotes by default
- Use default value in field definition and column definition so that
field inputs can access it
- Used currency default value in CurrencyFieldInput
---------
Co-authored-by: Charles Bochet <charles@twenty.com >
2024-04-11 16:49:00 +02:00
a7fcc5d47e
4778 multi select field front implement multi select type ( #4887 )
2024-04-11 12:57:08 +02:00
584d90ec89
Create new field type JSON ( #4729 )
...
### Description
Create new field type JSON
### Refs
https://github.com/twentyhq/twenty/issues/3900
### Demo
https://github.com/twentyhq/twenty/assets/140154534/9ebdf4d4-f332-4940-b9d8-d9cf91935b67
Fixes #3900
---------
Co-authored-by: gitstart-twenty <gitstart-twenty@users.noreply.github.com >
Co-authored-by: v1b3m <vibenjamin6@gmail.com >
Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com >
Co-authored-by: Marie Stoppa <marie.stoppa@essec.edu >
2024-04-11 11:41:36 +02:00
f4017119ab
Various cosmetic fixes for 0.4.0 ( #4844 )
...
In this PR:
- fix empty list placeholder positionning
- prevent user from erasing custom address field as composite types
removal is not supported yet @ijreilly FYI
- fix show page relation error
- Implement address filter
2024-04-05 17:32:14 +02:00
f184541293
feat: add Database Connection Summary Card to Settings/Integrations/D… ( #4791 )
...
…atabase/Connection page
Closes #4558
<img width="542" alt="image"
src="https://github.com/twentyhq/twenty/assets/3098428/16d7d8ce-57db-4e48-ba72-a2318a2d34a4 ">
---------
Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com >
2024-04-04 15:56:52 +02:00
2e419091cc
Prevent remote object updates ( #4804 )
...
Backend: Adding a new util function that throw an error if the
objectMetadata is remote
Frontend: hiding the save button when remote
Also renaming `useObjectMetadataItemForSettings` since this hook is used
in other places than settings and is not in the settings repo. Name can
definitely be challenged!
---------
Co-authored-by: Thomas Trompette <thomast@twenty.com >
2024-04-04 15:47:08 +02:00
357882c395
[feat][FE] Enable deletion of custom fields in workspace ( #4802 )
...
**Context**
Fixes https://github.com/twentyhq/twenty/issues/4597
Enables deletion of custom fields that aren't active nor of type
relation ([BE PR](https://github.com/twentyhq/twenty/pull/4780 ))
**How was it tested?**
Locally tested
<img width="541" alt="Capture d’écran 2024-04-04 à 13 33 18"
src="https://github.com/twentyhq/twenty/assets/51697796/bc462b86-b494-409e-9836-69bdaeb812cb ">
<img width="661" alt="Capture d’écran 2024-04-04 à 13 34 25"
src="https://github.com/twentyhq/twenty/assets/51697796/8fe47114-545e-48b5-a107-34be531b7ea5 ">
2024-04-04 13:45:15 +02:00
bf8ee99ebb
chore: use common eslint config for most packages ( #4705 )
...
Split from https://github.com/twentyhq/twenty/pull/4518
Related to #4766
Mutualizes eslint config between projects.
I didn't include `twenty-server` in this PR as this was causing too many
lint errors.
2024-04-04 12:05:26 +02:00
bbffde1ca0
New field currency ( #4338 )
...
Closes #4122
---------
Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com >
2024-04-02 15:29:57 +02:00
5d07b6347e
refactor: move Tabler Icon exports to twenty-ui ( #4727 )
...
Split from https://github.com/twentyhq/twenty/pull/4518
2024-04-01 13:15:47 +02:00
da8f1b0a66
Fix display empty value if boolean instead of false on show page ( #4468 )
...
* default value boolean fixed
* fixed creation, fixed updating a value to false
* fixed default value for default value if boolean
* fixed tests
---------
Co-authored-by: Félix Malfait <felix.malfait@gmail.com >
2024-03-30 11:38:08 +01:00
3171d0c87b
feat: address composite field ( #4492 )
...
Added new Address field input type.
---------
Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com >
2024-03-28 16:50:38 +01:00
61e5d5bcb9
fix: fix Select field preview ( #4507 )
...
* fix: fix Select field preview
Closes #4084
* fix: fix field preview utils tests
2024-03-25 16:37:41 +01:00
b77d589497
refactor: merge FieldType and FieldMetadataType ( #4504 )
...
* refactor: merge FieldType and FieldMetadataType
* fix: fix args passed to assertFieldMetadata
* fix: omit RawJson from supported types in settings
2024-03-25 15:45:28 +01:00
1639b2ad0e
refactor: improve Settings supported field types validation ( #4496 )
...
* refactor: improve Settings supported field types validation
Related to: #4084 , #4295
* fix: fix wrong import
2024-03-25 12:27:00 +01:00
52f1b3ac98
Fixed select field input height ( #4493 )
2024-03-15 13:41:32 +01:00
4704ef829e
fix: Standardize labels casing ( #4388 )
...
Standardize labels casing
2024-03-11 17:15:22 +01:00
581dfafe11
Renamed nullable utils into isDefined and isUndefinedOrNull ( #4402 )
...
* Renamed nullable utils into isDefined and isUndefinedOrNull
2024-03-11 14:28:57 +01:00
17511be0cf
TWNTY-3794 - ESLint rule: only take explicit boolean predicates in if statements ( #4354 )
...
* ESLint rule: only take explicit boolean predicates in if statements
Co-authored-by: v1b3m <vibenjamin6@gmail.com >
Co-authored-by: Toledodev <rafael.toledo@engenharia.ufjf.br >
* Merge main
Co-authored-by: v1b3m <vibenjamin6@gmail.com >
Co-authored-by: Toledodev <rafael.toledo@engenharia.ufjf.br >
* Fix frontend linter errors
Co-authored-by: v1b3m <vibenjamin6@gmail.com >
Co-authored-by: Toledodev <rafael.toledo@engenharia.ufjf.br >
* Fix jest
Co-authored-by: v1b3m <vibenjamin6@gmail.com >
Co-authored-by: Toledodev <rafael.toledo@engenharia.ufjf.br >
* Refactor according to review
Co-authored-by: v1b3m <vibenjamin6@gmail.com >
Co-authored-by: Toledodev <rafael.toledo@engenharia.ufjf.br >
* Refactor according to review
Co-authored-by: v1b3m <vibenjamin6@gmail.com >
Co-authored-by: Toledodev <rafael.toledo@engenharia.ufjf.br >
* Fix lint on new code
Co-authored-by: v1b3m <vibenjamin6@gmail.com >
Co-authored-by: Toledodev <rafael.toledo@engenharia.ufjf.br >
---------
Co-authored-by: gitstart-twenty <gitstart-twenty@users.noreply.github.com >
Co-authored-by: v1b3m <vibenjamin6@gmail.com >
Co-authored-by: Toledodev <rafael.toledo@engenharia.ufjf.br >
2024-03-09 10:48:19 +01:00
40bea0d95e
feat: add Settings Object Edit identifiers form ( #4300 )
...
* feat: add Settings Object Edit identifiers form
Closes #3836
* fix: fix wrong imports after renaming directories
2024-03-08 21:55:30 +01:00
91e5e7598b
refactor: use react-hook-form in Settings Data Model Object pages ( #4271 )
...
Related issue: #3836
2024-03-05 07:52:19 -03:00
a9f4a66c4f
refactor: validate objectMetadataItem with Zod on creation and update… ( #4270 )
...
* refactor: validate objectMetadataItem with Zod on creation and update & remove logic from useObjectMetadataItemForSettings
* refactor: review
2024-03-05 11:32:30 +01:00
38a0aae030
Update SettingsObjectAboutSection.tsx changed "Disable" CTA to "Deact… ( #4175 )
...
* Update SettingsObjectAboutSection.tsx changed "Disable" CTA to "Deactivate"
* Update SettingsObjects.tsx
Additional changes: Disabled sections to inactive
* Update SettingsObjectAboutSection.tsx
I think you meant changing Disable to Deactivate
* Update and rename SettingsObjectDisabledMenuDropDown.tsx to SettingsObjectInactiveMenuDropDown.tsx
additional changes to #4153
* Update SettingsObjects.tsx
* Update and rename SettingsObjectDisabledMenuDropDown.stories.tsx to SettingsObjectInactiveMenuDropDown.stories.tsx
* fix typescript errors
* respect issue requirements
---------
Co-authored-by: bosiraphael <raphael.bosi@gmail.com >
2024-03-04 14:59:31 +01:00
b69fed9023
Fix broken storybook tests on SettingsPreview
2024-03-01 12:55:48 +01:00
a892d0f653
feat: add Object Edit Settings section with Object preview ( #4216 )
...
* feat: add Object Edit Settings section with Object preview
Closes #3834
* fix: fix preview card stories
* test: improve getFieldDefaultPreviewValue tests
* test: add getFieldPreviewValueFromRecord tests
* test: add useFieldPreview tests
* refactor: rename and move components
* fix: restore RecordStoreDecorator
2024-02-29 11:23:56 -03:00
6ad3880696
feat: apply RecordDetailSection style on RecordDuplicatesSection and … ( #4241 )
...
feat: apply RecordDetailSection style on RecordDuplicatesSection and add stories
Closes #3963 , Closes #4240
2024-02-29 14:10:07 +01:00
f543191552
TWNTY-3825 - ESLint rule: const naming ( #4171 )
...
* ESLint rule: const naming
Co-authored-by: v1b3m <vibenjamin6@gmail.com >
Co-authored-by: KlingerMatheus <klinger.matheus@gitstart.dev >
* Refactor according to review
Co-authored-by: v1b3m <vibenjamin6@gmail.com >
Co-authored-by: KlingerMatheus <klinger.matheus@gitstart.dev >
* refactor: Reverts changes on `twenty-server`
Co-authored-by: KlingerMatheus <klinger.matheus@gitstart.dev >
Co-authored-by: v1b3m <vibenjamin6@gmail.com >
---------
Co-authored-by: gitstart-twenty <gitstart-twenty@users.noreply.github.com >
Co-authored-by: v1b3m <vibenjamin6@gmail.com >
Co-authored-by: KlingerMatheus <klinger.matheus@gitstart.dev >
2024-02-25 13:52:48 +01:00
e69c462b70
feat: allow backend to rename field of custom object ( #4097 )
...
* feat: allow backend to rename field of custom object
* feat: allow custom field label edition in Settings
Closes #4080
* fix: avoid renaming standard fields
---------
Co-authored-by: Thaïs Guigon <guigon.thais@gmail.com >
2024-02-21 18:59:51 +01:00
f977164fee
feat: create Settings/Accounts/Calendars/Calendar Settings page ( #4092 )
...
* feat: create Settings/Accounts/Calendars/Calendar Settings page
Closes #4063
* docs: add SettingsAccountsCalendarsSettings stories
2024-02-21 15:37:42 +01:00
a06b6c9078
3757 update frontend to show correct view count ( #3967 )
...
* Add totalCount to fetch record request
* Add totalCount to object board
* WIP Add totalCount to object table
* Update query total count on update / delete optimistic effects
* Remove console log
* Load fewer data for totalcount
---------
Co-authored-by: Charles Bochet <charles@twenty.com >
2024-02-16 14:33:51 +01:00
47d7e19570
Update custom object placeholder ( #3876 )
...
* #3874 update custom object placeholder
* #3876 removed object-edit folder and file
* #3833 update loading image
* remove image file
2024-02-13 23:24:21 +01:00
9ceff84bbf
Set opportunity stage as editable ( #3838 )
...
* Set opportunity stage as editable
* Fix comments
* Add command for migration
* Fixes
---------
Co-authored-by: Thomas Trompette <thomast@twenty.com >
Co-authored-by: Charles Bochet <charles@twenty.com >
2024-02-09 14:44:11 +01:00
201a2c8acc
feat: display record identifier field as first column in table ( #3788 )
...
* feat: display record identifier field as first column in table
& forbid hiding and moving record identifier column
Closes #3303
* refactor: add availableTableColumnKeysSelectorScopeMap
* feat: show plus icon button for label identifier column and dropdown menu for other columns
* fix: use label identifier field value in RecordShowPage title
* refactor: remove availableColumnKeys selector
* refactor: review - compute label identifier logic in mapViewFieldsToColumnDefinitions + remove selectors
* fix: several fixes
* fix: fix board fields isVisible
* fix: fix board fields reordering
* fix: more board fields fixes
* fix: fix hiddenTableColumnsSelectorScopeMap
2024-02-09 12:36:08 +01:00
39f4ec9e7b
Fix storybook tests on Field Preview (Settings) ( #3761 )
2024-02-01 17:44:36 +01:00