Allow input and display of floats for Number fields (#7340)
### Description - We added a decimal field for a Number Field type in the settings - We updated the Number Field type create a form with decimals input - We are not implementing the dropdown present on the Figma because it seems not related ### Demo <https://www.loom.com/share/18a8d4b712a14f6d8b66806764f8467f?sid=3fc79b46-ae32-46e3-8635-d0eee02e53b2> Fixes #6987 --------- Co-authored-by: gitstart-twenty <gitstart-twenty@users.noreply.github.com> Co-authored-by: Marie Stoppa <marie.stoppa@essec.edu>
This commit is contained in:
committed by
GitHub
parent
e3ed574420
commit
97eff774bd
@ -51,6 +51,7 @@ export const queries = {
|
||||
${baseFields}
|
||||
defaultValue
|
||||
options
|
||||
settings
|
||||
}
|
||||
}
|
||||
`,
|
||||
|
||||
@ -17,7 +17,7 @@ export type FieldMetadataItemOption = {
|
||||
|
||||
export type FieldMetadataItem = Omit<
|
||||
Field,
|
||||
'__typename' | 'defaultValue' | 'options' | 'settings' | 'relationDefinition'
|
||||
'__typename' | 'defaultValue' | 'options' | 'relationDefinition'
|
||||
> & {
|
||||
__typename?: string;
|
||||
defaultValue?: any;
|
||||
|
||||
@ -54,5 +54,6 @@ export const formatFieldMetadataItemAsFieldDefinition = ({
|
||||
metadata: fieldDefintionMetadata,
|
||||
type: field.type,
|
||||
}),
|
||||
settings: field.settings,
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user