twenty/packages/twenty-front
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
..
__mocks__ Fix overlay scroll gaps (#4512) 2024-03-31 10:53:37 +02:00
.storybook refactor: move @/ui/display/icon to twenty-ui (#4820) 2024-04-12 15:30:48 +02:00
public chore: use common eslint config for most packages (#4705) 2024-04-04 12:05:26 +02:00
scripts feat: add SENTRY_RELEASE env (#4912) 2024-04-11 16:53:15 +02:00
src Fix enum defaultValue issues (#5307) 2024-05-06 17:00:38 +02:00
.env.example Delete auth/file front variables (#4455) 2024-03-19 22:19:40 +01:00
.eslintrc-ci.cjs chore: enable no-console eslint rule for tests and stories (#4816) 2024-04-04 18:36:39 +02:00
.eslintrc.cjs Increase storybook pages coverage (#4885) 2024-04-17 16:24:04 +02:00
.gitignore Feat/put target object identifier on use activities (#4682) 2024-04-01 13:12:37 +02:00
.prettierignore Update twenty-front commands (#4667) 2024-04-17 18:06:02 +02:00
.swcrc
codegen-metadata.cjs feat: fetch database connections (#4813) 2024-04-04 17:27:36 +02:00
codegen.cjs feat: fetch database connections (#4813) 2024-04-04 17:27:36 +02:00
index.html
jest.config.ts Update twenty-front commands (#4667) 2024-04-17 18:06:02 +02:00
nyc.config.cjs fix: fix storybook coverage task (#5256) 2024-05-03 14:59:09 +02:00
package.json Bump versions to 0.11 (#5289) 2024-05-03 19:11:03 +02:00
project.json fix: fix storybook coverage task (#5256) 2024-05-03 14:59:09 +02:00
README.md
setupTests.ts chore: setup twenty-ui absolute path alias (#4732) 2024-04-04 15:38:01 +02:00
tsconfig.app.json fix: fix root start script (#5032) 2024-04-19 18:28:02 +02:00
tsconfig.json 4900 multi select field front implement expanded cells (#5151) 2024-05-03 15:03:06 +02:00
tsconfig.spec.json fix: fix root start script (#5032) 2024-04-19 18:28:02 +02:00
tsconfig.storybook.json fix: fix root start script (#5032) 2024-04-19 18:28:02 +02:00
tsup.config.ts Update twenty-front commands (#4667) 2024-04-17 18:06:02 +02:00
tsup.ui.index.tsx 4900 multi select field front implement expanded cells (#5151) 2024-05-03 15:03:06 +02:00
vite.config.ts Update twenty-front commands (#4667) 2024-04-17 18:06:02 +02:00

Run yarn dev while server running on port 3000