fix(ui): domain styling color in the title if provided (#13697)

* supported domain styling color in title if provided

* fix on data product page

* fix: allow dot in mentions allowed char

---------

Co-authored-by: karanh37 <karanh37@gmail.com>
This commit is contained in:
Ashish Gupta 2023-10-25 22:32:30 +05:30 committed by GitHub
parent a72fcec57f
commit c81c98286d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 18 additions and 9 deletions

View File

@ -469,9 +469,10 @@ const DataProductsDetailsPage = ({
) )
} }
serviceName="" serviceName=""
titleColor={dataProduct.style?.color}
/> />
</Col> </Col>
<Col className="p-x-md" flex="280px"> <Col className="p-x-md" flex="320px">
<div style={{ textAlign: 'right' }}> <div style={{ textAlign: 'right' }}>
{!isVersionsView && dataProductPermission.Create && ( {!isVersionsView && dataProductPermission.Create && (
<Button <Button

View File

@ -546,9 +546,10 @@ const DomainDetailsPage = ({
) )
} }
serviceName="" serviceName=""
titleColor={domain.style?.color}
/> />
</Col> </Col>
<Col className="p-x-md" flex="280px"> <Col className="p-x-md" flex="320px">
<div style={{ textAlign: 'right' }}> <div style={{ textAlign: 'right' }}>
{!isVersionsView && domainPermission.Create && ( {!isVersionsView && domainPermission.Create && (
<Dropdown <Dropdown

View File

@ -36,7 +36,7 @@ export const confirmStateInitialValue = {
isThread: false, isThread: false,
}; };
export const MENTION_ALLOWED_CHARS = /^[A-Za-z0-9_]*$/; export const MENTION_ALLOWED_CHARS = /^[A-Za-z0-9_.]*$/;
export const MENTION_DENOTATION_CHARS = ['@', '#']; export const MENTION_DENOTATION_CHARS = ['@', '#'];
export const TOOLBAR_ITEMS = [ export const TOOLBAR_ITEMS = [

View File

@ -90,6 +90,7 @@ const BasicSignUp = () => {
name="firstName" name="firstName"
rules={[{ whitespace: true, required: true }]}> rules={[{ whitespace: true, required: true }]}>
<Input <Input
autoFocus
placeholder={t('label.enter-entity-name', { placeholder={t('label.enter-entity-name', {
entity: t('label.first-lowercase'), entity: t('label.first-lowercase'),
})} })}

View File

@ -125,6 +125,7 @@ const SignUp = () => {
}, },
]}> ]}>
<Input <Input
autoFocus
data-testid="full-name-input" data-testid="full-name-input"
placeholder={t('label.your-entity', { placeholder={t('label.your-entity', {
entity: t('label.full-name'), entity: t('label.full-name'),

View File

@ -628,15 +628,19 @@ const TagsPage = () => {
className=" text-primary" className=" text-primary"
data-testid="add-classification" data-testid="add-classification"
disabled={!createClassificationPermission} disabled={!createClassificationPermission}
icon={<PlusIcon className="anticon" />}
onClick={() => { onClick={() => {
setIsAddingClassification((prevState) => !prevState); setIsAddingClassification((prevState) => !prevState);
}}> }}>
<span> <div className="d-flex items-center justify-center">
{t('label.add-entity', { <PlusIcon className="anticon" />
entity: t('label.classification'), <Typography.Text
})} className="p-l-xss"
</span> ellipsis={{ tooltip: true }}>
{t('label.add-entity', {
entity: t('label.classification'),
})}
</Typography.Text>
</div>
</Button> </Button>
</Tooltip> </Tooltip>
</Space> </Space>

View File

@ -225,6 +225,7 @@ const SigninPage = () => {
requiredMark={false} requiredMark={false}
rules={[{ required: true }]}> rules={[{ required: true }]}>
<Input <Input
autoFocus
placeholder={ placeholder={
isAuthProviderLDAP isAuthProviderLDAP
? t('label.email') ? t('label.email')