diff --git a/odd-platform-ui/generate.sh b/odd-platform-ui/generate.sh old mode 100644 new mode 100755 index 0afa2cd3d..f46f1c790 --- a/odd-platform-ui/generate.sh +++ b/odd-platform-ui/generate.sh @@ -1,8 +1,8 @@ #!/bin/bash -GENERATOR_IMAGE="openapitools/openapi-generator-cli:v5.1.1" +GENERATOR_IMAGE="openapitools/openapi-generator-cli:v7.2.0" CONFIG_PATH="odd-platform-ui/openapi-config.yaml" WORKDIR="//mnt" # Using double-slash for compatibility with Windows HOST_DIRECTORY=/$(pwd)/.. -docker run -v $HOST_DIRECTORY:$WORKDIR -w $WORKDIR --rm $GENERATOR_IMAGE generate -c $CONFIG_PATH \ No newline at end of file +docker run -v "$HOST_DIRECTORY:$WORKDIR" -w "$WORKDIR" --rm "$GENERATOR_IMAGE" generate -c "$CONFIG_PATH" \ No newline at end of file diff --git a/odd-platform-ui/src/components/DataEntityDetails/Metadata/MetadataValueEditor/MetadataValueEditor.tsx b/odd-platform-ui/src/components/DataEntityDetails/Metadata/MetadataValueEditor/MetadataValueEditor.tsx index 8472c7831..6f6fac461 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/Metadata/MetadataValueEditor/MetadataValueEditor.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/Metadata/MetadataValueEditor/MetadataValueEditor.tsx @@ -34,6 +34,11 @@ const MetadataValueEditField: React.FC = ({ const defaultText = metadataType === MetadataFieldType.ARRAY ? 'item1,item2,...' : 'Value'; + const inputTypes: MetadataFieldType[] = [ + MetadataFieldType.INTEGER, + MetadataFieldType.FLOAT, + ]; + if (metadataType === MetadataFieldType.DATETIME) { return ( = ({ variant='main-m' label={labeled ? t('Value') : undefined} placeholder={labeled ? '' : defaultText} - type={ - metadataType && - [MetadataFieldType.INTEGER, MetadataFieldType.FLOAT].includes(metadataType) - ? 'number' - : 'text' - } + type={metadataType && inputTypes.includes(metadataType) ? 'number' : 'text'} step={metadataType === MetadataFieldType.FLOAT ? 'any' : '1'} /> )} diff --git a/odd-platform-ui/src/components/Search/Results/Results.styles.ts b/odd-platform-ui/src/components/Search/Results/Results.styles.ts index 615fb52e7..6c177502c 100644 --- a/odd-platform-ui/src/components/Search/Results/Results.styles.ts +++ b/odd-platform-ui/src/components/Search/Results/Results.styles.ts @@ -30,12 +30,12 @@ type MainColNames = 'nm' | 'nd' | 'ow' | 'gr' | 'cr' | 'up' | 'st'; type AddColNames = 'us' | 'rc' | 'sr' | 'tr' | 'en' | 'su' | 'ne'; export type SearchTabsNames = - | DataEntityClassNameEnum.SET - | DataEntityClassNameEnum.CONSUMER - | DataEntityClassNameEnum.TRANSFORMER - | DataEntityClassNameEnum.INPUT - | DataEntityClassNameEnum.ENTITY_GROUP - | DataEntityClassNameEnum.QUALITY_TEST + | typeof DataEntityClassNameEnum.SET + | typeof DataEntityClassNameEnum.CONSUMER + | typeof DataEntityClassNameEnum.TRANSFORMER + | typeof DataEntityClassNameEnum.INPUT + | typeof DataEntityClassNameEnum.ENTITY_GROUP + | typeof DataEntityClassNameEnum.QUALITY_TEST | 'all' | 'my'; export type ColGridSizes = Record &