diff --git a/datahub-web-react/src/app/entity/glossaryTerm/profile/GlossaryRelatedTermsResult.tsx b/datahub-web-react/src/app/entity/glossaryTerm/profile/GlossaryRelatedTermsResult.tsx index b5c18d5d58ea0e..fce14b3dc80352 100644 --- a/datahub-web-react/src/app/entity/glossaryTerm/profile/GlossaryRelatedTermsResult.tsx +++ b/datahub-web-react/src/app/entity/glossaryTerm/profile/GlossaryRelatedTermsResult.tsx @@ -4,6 +4,7 @@ import React, { useState } from 'react'; import styled from 'styled-components/macro'; import { TermRelationshipType } from '../../../../types.generated'; import { Message } from '../../../shared/Message'; +import { EmptyTab } from '../../shared/components/styled/EmptyTab'; import { ANTD_GRAY } from '../../shared/constants'; import AddRelatedTermsModal from './AddRelatedTermsModal'; import RelatedTerm from './RelatedTerm'; @@ -62,6 +63,9 @@ export default function GlossaryRelatedTermsResult({ glossaryRelatedTermType, gl {glossaryRelatedTermUrns.map((urn) => ( ))} + {glossaryRelatedTermUrns.length === 0 && ( + + )} )} {isShowingAddModal && ( diff --git a/datahub-web-react/src/app/entity/shared/constants.ts b/datahub-web-react/src/app/entity/shared/constants.ts index 51d785c12fd4ae..a1412e4133437a 100644 --- a/datahub-web-react/src/app/entity/shared/constants.ts +++ b/datahub-web-react/src/app/entity/shared/constants.ts @@ -47,4 +47,12 @@ export const EMPTY_MESSAGES = { title: 'No domain set', description: 'Group related entities based on your organizational structure using by adding them to a Domain.', }, + contains: { + title: 'Contains no Terms', + description: 'Terms can contain other terms to represent an "Has A" style relationship.', + }, + inherits: { + title: 'Does not inherit from any terms', + description: 'Terms can inherit from other terms to represent an "Is A" style relationship.', + }, }; diff --git a/datahub-web-react/src/app/entity/shared/containers/profile/header/PlatformContent/PlatformContentView.tsx b/datahub-web-react/src/app/entity/shared/containers/profile/header/PlatformContent/PlatformContentView.tsx index aaba7d581869a9..6d044ae810199f 100644 --- a/datahub-web-react/src/app/entity/shared/containers/profile/header/PlatformContent/PlatformContentView.tsx +++ b/datahub-web-react/src/app/entity/shared/containers/profile/header/PlatformContent/PlatformContentView.tsx @@ -6,6 +6,7 @@ import { Maybe } from 'graphql/jsutils/Maybe'; import { Container } from '../../../../../../../types.generated'; import { ANTD_GRAY } from '../../../../constants'; import ContainerLink from './ContainerLink'; +import { capitalizeFirstLetter } from '../../../../../../shared/textUtil'; const LogoIcon = styled.span` display: flex; @@ -119,7 +120,7 @@ function PlatformContentView(props: Props) { return ( {typeIcon && {typeIcon}} - {entityType} + {capitalizeFirstLetter(entityType)} {(!!platformName || !!instanceId || !!parentContainers?.length) && } {platformName && (