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=""
titleColor={dataProduct.style?.color}
/>
</Col>
<Col className="p-x-md" flex="280px">
<Col className="p-x-md" flex="320px">
<div style={{ textAlign: 'right' }}>
{!isVersionsView && dataProductPermission.Create && (
<Button

View File

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

View File

@ -36,7 +36,7 @@ export const confirmStateInitialValue = {
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 TOOLBAR_ITEMS = [

View File

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

View File

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

View File

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

View File

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