chore(ui): mark impala service as beta (#11252)

This commit is contained in:
Chirag Madlani 2023-04-25 20:58:44 +05:30 committed by GitHub
parent 3498b44537
commit f0384a6739
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 28 additions and 1 deletions

View File

@ -11,8 +11,9 @@
* limitations under the License.
*/
import { Button, Col, Row, Select, Space } from 'antd';
import { Badge, Button, Col, Row, Select, Space } from 'antd';
import classNames from 'classnames';
import { DatabaseServiceType } from 'generated/entity/data/table';
import { startCase } from 'lodash';
import React, { useEffect, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
@ -76,6 +77,8 @@ const SelectServiceType = ({
[selectedConnectors]
);
console.log(filteredConnectors);
return (
<Row>
<Col span={24}>
@ -133,6 +136,15 @@ const SelectServiceType = ({
</div>
<p className="break-word text-center">
{type.includes('Custom') ? startCase(type) : type}
{type === DatabaseServiceType.Impala ? (
<Badge
className="service-beta-tag"
color="#7147E8"
count={t('label.beta')}
/>
) : (
''
)}
</p>
</Space>
</Col>

View File

@ -84,6 +84,7 @@
"back-to-login-lowercase": "back to login",
"basic-configuration": "Basic Configuration",
"batch-size": "Batch Size",
"beta": "Beta",
"bot": "Bot",
"bot-detail": "Bot detail",
"bot-lowercase": "bot",

View File

@ -84,6 +84,7 @@
"back-to-login-lowercase": "volver a iniciar sesión",
"basic-configuration": "Configuración básica",
"batch-size": "Tamaño del lote",
"beta": "Beta",
"bot": "Bot",
"bot-detail": "Detalles del bot",
"bot-lowercase": "bot",

View File

@ -84,6 +84,7 @@
"back-to-login-lowercase": "back to login",
"basic-configuration": "Configuration de Base",
"batch-size": "Taille du Lot",
"beta": "Beta",
"bot": "Agent Numérique",
"bot-detail": "Bot detail",
"bot-lowercase": "agent numérique",

View File

@ -84,6 +84,7 @@
"back-to-login-lowercase": "ログインに戻る",
"basic-configuration": "Basic Configuration",
"batch-size": "バッチサイズ",
"beta": "Beta",
"bot": "ボット",
"bot-detail": "ボットの詳細",
"bot-lowercase": "ボット",

View File

@ -84,6 +84,7 @@
"back-to-login-lowercase": "voltar para login",
"basic-configuration": "Configuração básica",
"batch-size": "Tamanho do batch",
"beta": "Beta",
"bot": "Bot",
"bot-detail": "Detalhe do bot",
"bot-lowercase": "bot",

View File

@ -84,6 +84,7 @@
"back-to-login-lowercase": "back to login",
"basic-configuration": "基本配置",
"batch-size": "批大小",
"beta": "Beta",
"bot": "Bot",
"bot-detail": "Bot detail",
"bot-lowercase": "bot",

View File

@ -388,3 +388,12 @@
display: none;
}
}
// beta tag for service page
.service-beta-tag {
sup {
padding: 0 4px;
margin-left: 2px;
font-size: 10px;
}
}