twenty/packages
Charles Bochet 2c9f50ecb1
Fix enum defaultValue issues (#5307)
This PR fixes several issues:
- enum naming should be: {tableName}_{fieldName}_enum and respecting the
case
- defaultValue format handled in the FE should respect the one in the BE

In my opinion we should refactor the defaultValue:
- we should respect backend format: "'myDefault'" for constant default
and "0" for float, "now" for expressions, "true" for booleans. we can
rename it to defaultValueExpression if it is more clear but we should
not maintain a parallel system
- we should deprecate option: isDefaultValue which is confusing
- we should re-work backend to have a more unified approach between
fields and avoid having if everywhere about select, multiselect, and
currency cases. one unified "computeDefaultValue" function should do the
job

What is still broken:
- currency default Value on creation. I think we should do the refactor
first
- select default value edition.
These cases do not break the schema but are ignored currently
2024-05-06 17:00:38 +02:00
..
twenty-chrome-extension chore: add nx/project.json to twenty-chrome-extension (#5217) 2024-05-06 11:33:48 +02:00
twenty-docker Feat/add postgres spilo (#5049) 2024-04-29 17:09:41 +02:00
twenty-docs Bump versions to 0.11 (#5289) 2024-05-03 19:11:03 +02:00
twenty-emails Bump versions to 0.11 (#5289) 2024-05-03 19:11:03 +02:00
twenty-front Fix enum defaultValue issues (#5307) 2024-05-06 17:00:38 +02:00
twenty-postgres Fix postgres 15 & 16 conflict (#4860) 2024-04-11 11:42:48 +02:00
twenty-server Fix enum defaultValue issues (#5307) 2024-05-06 17:00:38 +02:00
twenty-ui fix: fix storybook:build memory allocation error in CI (#5284) 2024-05-03 19:19:21 +02:00
twenty-utils Improve website github sync (#4259) 2024-03-01 15:15:55 +01:00
twenty-website Bump versions to 0.11 (#5289) 2024-05-03 19:11:03 +02:00
twenty-zapier New field type: DATE (#4876) 2024-04-11 17:29:29 +02:00