c7d61e183a
feat: simplify field preview logic in Settings ( #5541 )
...
Closes #5382
TODO:
- [x] Test all field previews in app
- [x] Fix tests
- [x] Fix JSON preview
2024-05-24 18:06:57 +02:00
36b467d301
Fix storybook tests ( #5487 )
...
Fixes #5486
---------
Co-authored-by: gitstart-twenty <gitstart-twenty@users.noreply.github.com >
Co-authored-by: v1b3m <vibenjamin6@gmail.com >
Co-authored-by: Charles Bochet <charles@twenty.com >
2024-05-21 20:24:08 +02:00
8590bd7227
Refactor default value for select ( #5343 )
...
In this PR, we are refactoring two things:
- leverage field.defaultValue for Select and MultiSelect settings form
(instead of option.isDefault)
- use quoted string (ex: "'USD'") for string default values to embrace
backend format
---------
Co-authored-by: Thaïs Guigon <guigon.thais@gmail.com >
2024-05-10 10:26:46 +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
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
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
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
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
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