7728c09dba
fix: fix several field bugs ( #5339 )
...
After discussing with @charlesBochet, several fixes are needed on
fields:
- [x] Disable Boolean field `defaultValue` edition for now (On
`defaultValue` update, newly created records are not taking the updated
`defaultValue` into account. Setting the `defaultValue` on creation is
fine.)
- [x] Disable Phone field creation for now
- [x] For the Person object, display the "Phone" field as a field of
type Phone (right now its type is Text; later we'll migrate it to a
proper Phone field).
- [x] Fix RawJson field display (displaying `[object Object]` in Record
Table cells).
- [x] In Settings/Data Model, on Relation field creation/edition,
"Object destination" select is not working properly if an object was not
manually selected (displays Companies by default but creates a relation
to another random object than Companies).
2024-05-09 01:56:15 +02:00
bb995d5488
refactor: use react-hook-form for Field type config forms ( #5326 )
...
Closes #4295
Note: for the sake of an easier code review, I did not rename/move some
files and added "todo" comments instead so Github is able to match those
files with their previous version.
2024-05-07 21:07:56 +02:00
d0759ad7cc
refactor: use react-hook-form to validate Settings/DataModel/Field ( #4916 )
...
Closes #4295
2024-05-07 11:44:46 +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
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
a7fcc5d47e
4778 multi select field front implement multi select type ( #4887 )
2024-04-11 12:57:08 +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
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
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
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
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
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
a58b4cf437
refactor: apply relation optimistic effects on record update ( #3556 )
...
* refactor: apply relation optimistic effects on record update
Related to #3509
* refactor: remove need to pass relation id field to create and update mutations
* fix: fix tests
* fix: fix SingleEntitySelect glitch
* fix: fix usePersistField tests
* fix: fix wrong import after rebase
* fix: fix several tests
* fix: fix test types
2024-01-29 08:00:00 -03:00
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
d6f117c688
Display RecordBoardCards on new board ( #3657 )
...
* Before remove saveEditModeValue logic
* Fixes
* Fix tests
* Fix tests
2024-01-27 15:55:45 +01:00
16a24c5f0c
Rework relations ( #3431 )
...
* Rework relations
* Fix tests
2024-01-15 12:07:23 +01:00
ebe8698910
Increase test coverage for /modules/ui ( #3314 )
...
* Increase test coverage for `/modules/ui`
Co-authored-by: v1b3m <vibenjamin6@gmail.com >
Co-authored-by: FellipeMTX <fellipefacdir@gmail.com >
Co-authored-by: Fellipe Montes <102544529+FellipeMTX@users.noreply.github.com >
* Merge main
Co-authored-by: v1b3m <vibenjamin6@gmail.com >
Co-authored-by: FellipeMTX <fellipefacdir@gmail.com >
Co-authored-by: Fellipe Montes <102544529+FellipeMTX@users.noreply.github.com >
* Fix tests
* Fix tests
* Fix
---------
Co-authored-by: gitstart-twenty <gitstart-twenty@users.noreply.github.com >
Co-authored-by: v1b3m <vibenjamin6@gmail.com >
Co-authored-by: FellipeMTX <fellipefacdir@gmail.com >
Co-authored-by: Fellipe Montes <102544529+FellipeMTX@users.noreply.github.com >
Co-authored-by: Charles Bochet <charles@twenty.com >
2024-01-11 08:51:36 +01:00
2713285a0f
Migrate dropdown to scope map ( #3338 )
...
* Migrate dropdown to scope map
* Run lintr
* Move Dropdown Scope internally
* Fix
* Fix lint
---------
Co-authored-by: Thomas Trompette <thomast@twenty.com >
Co-authored-by: Charles Bochet <charles@twenty.com >
2024-01-10 15:46:37 +01:00
47ac97dd25
Fix Select ( #3327 )
2024-01-09 14:58:14 +01:00
b0d3e6d8d3
3157 refactor scoped states to move to v3 ( #3180 )
...
* renaming
* renaming
* create getDropdownScopeInjectors
* update useDropdown
* create internal hooks folder
* update record-table states to be scoped states
* update record-table selectors to be scoped selectors
* create utils scope injector
* refactor record-table wip
* refactor record-table wip
* wip
* inject scopeId in selectors
* update intenal hooks
* update intenal hooks
* update intenal hooks
* update intenal hooks
* update intenal hooks
* update intenal hooks
* update internal hooks
* update internal hooks
* update internal hooks
* update internal hooks
* update useTableColumns
* update states and hooks
* refactoring
* refactoring
* refactoring
* refactoring
* refactoring
* refactoring
* refactoring
* refactoring
* refactoring
* fix scopeId not in context
* fix lint errors
* fix error in story
* fix errors: wip
* fix errors
* fix error
* fix jest test
* fix scopeId not defined
* fix jest test
* Bug fixes
---------
Co-authored-by: Charles Bochet <charles@twenty.com >
2024-01-03 19:45:14 +01:00
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
41f45c953b
GH-3105 Fix Object name icon weight is too light ( #3116 )
...
GH-3105 make preview object name icon to have regular stroke
2023-12-21 21:44:35 +01:00
801177531b
Fix and enhance storybook:modules:tests ( #3107 )
...
* Fix and enhance storybook:modules:tests
Co-authored-by: v1b3m <vibenjamin6@gmail.com >
Co-authored-by: Thiago Nascimbeni <tnascimbeni@gmail.com >
* Fix and enhance storybook:modules:tests
Co-authored-by: v1b3m <vibenjamin6@gmail.com >
Co-authored-by: Thiago Nascimbeni <tnascimbeni@gmail.com >
* Fix and enhance storybook:modules:tests
Co-authored-by: v1b3m <vibenjamin6@gmail.com >
Co-authored-by: Thiago Nascimbeni <tnascimbeni@gmail.com >
* Remove unnecessary changes
Co-authored-by: v1b3m <vibenjamin6@gmail.com >
Co-authored-by: Thiago Nascimbeni <tnascimbeni@gmail.com >
* Fix email thread story
* Re-enable storybook:modules
* Fix
---------
Co-authored-by: gitstart-twenty <gitstart-twenty@users.noreply.github.com >
Co-authored-by: v1b3m <vibenjamin6@gmail.com >
Co-authored-by: Thiago Nascimbeni <tnascimbeni@gmail.com >
Co-authored-by: Charles Bochet <charles@twenty.com >
2023-12-21 19:45:47 +01:00
7f66eb9459
Filter out system object for relation object destination ( #3108 )
...
filter out system object for relation object destination
2023-12-21 16:32:49 +01:00
b416b0f98f
Update new/edit object according to figma ( #3093 )
...
* made changes according to figma
* remove click custom in test
2023-12-21 11:33:52 +01:00
984fc76b94
Fix and enhance storybook:pages tests ( #3085 )
...
* Fix and enhance storybook:pages tests
Co-authored-by: gitstart-app[bot] <57568882+gitstart-app[bot]@users.noreply.github.com>
* Fix and enhance storybook:pages tests
Co-authored-by: v1b3m <vibenjamin6@gmail.com >
Co-authored-by: gitstart-app[bot] <57568882+gitstart-app[bot]@users.noreply.github.com>
* fix SettingsObjectFieldPreview
Co-authored-by: v1b3m <vibenjamin6@gmail.com >
Co-authored-by: gitstart-app[bot] <57568882+gitstart-app[bot]@users.noreply.github.com>
* Fix lint
Co-authored-by: v1b3m <vibenjamin6@gmail.com >
Co-authored-by: gitstart-app[bot] <57568882+gitstart-app[bot]@users.noreply.github.com>
* Fix jest
Co-authored-by: v1b3m <vibenjamin6@gmail.com >
Co-authored-by: gitstart-app[bot] <57568882+gitstart-app[bot]@users.noreply.github.com>
* Add more fixes
Co-authored-by: v1b3m <vibenjamin6@gmail.com >
Co-authored-by: gitstart-app[bot] <57568882+gitstart-app[bot]@users.noreply.github.com>
* Fix App.stories.tsx
Co-authored-by: v1b3m <vibenjamin6@gmail.com >
Co-authored-by: gitstart-app[bot] <57568882+gitstart-app[bot]@users.noreply.github.com>
* Fix tests
* Fix according to review
---------
Co-authored-by: gitstart-twenty <gitstart-twenty@users.noreply.github.com >
Co-authored-by: gitstart-app[bot] <57568882+gitstart-app[bot]@users.noreply.github.com>
Co-authored-by: v1b3m <vibenjamin6@gmail.com >
Co-authored-by: Charles Bochet <charles@twenty.com >
2023-12-20 18:36:58 +01:00
1eb5bebaf7
feat: select default Unit for Currency field ( #2996 )
...
Closes #2347
Co-authored-by: Thais GUIGON <thaisguigon@macbook-pro.home >
2023-12-15 11:01:06 +01:00
8916dee352
Fix Icon Lazy Loading ( #2984 )
...
Fix Icon picker
2023-12-14 12:13:02 +01:00
0048216abf
feat: add Settings/Accounts Connected Accounts section accounts list ( #2953 )
...
Closes #2887
2023-12-12 16:03:39 +01:00
5bdca9de6c
Migrate to a monorepo structure ( #2909 )
2023-12-10 18:10:54 +01:00