mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-01 05:03:10 +00:00
Supported Markdown preview in the test case description (#11112)
This commit is contained in:
parent
7cbe48971d
commit
fb838a8ee7
@ -22,11 +22,15 @@ import { getEntityName } from 'utils/EntityUtils';
|
|||||||
import { ReactComponent as IconDelete } from '../../../assets/svg/ic-delete.svg';
|
import { ReactComponent as IconDelete } from '../../../assets/svg/ic-delete.svg';
|
||||||
import { ReactComponent as IconEdit } from '../../../assets/svg/ic-edit.svg';
|
import { ReactComponent as IconEdit } from '../../../assets/svg/ic-edit.svg';
|
||||||
|
|
||||||
|
import RichTextEditorPreviewer from 'components/common/rich-text-editor/RichTextEditorPreviewer';
|
||||||
import { usePermissionProvider } from 'components/PermissionProvider/PermissionProvider';
|
import { usePermissionProvider } from 'components/PermissionProvider/PermissionProvider';
|
||||||
import { ResourceEntity } from 'components/PermissionProvider/PermissionProvider.interface';
|
import { ResourceEntity } from 'components/PermissionProvider/PermissionProvider.interface';
|
||||||
import { Operation } from 'generated/entity/policies/policy';
|
import { Operation } from 'generated/entity/policies/policy';
|
||||||
import { checkPermission } from 'utils/PermissionsUtils';
|
import { checkPermission } from 'utils/PermissionsUtils';
|
||||||
import { getTableTabPath } from '../../../constants/constants';
|
import {
|
||||||
|
getTableTabPath,
|
||||||
|
NO_DATA_PLACEHOLDER,
|
||||||
|
} from '../../../constants/constants';
|
||||||
import { NO_PERMISSION_FOR_ACTION } from '../../../constants/HelperTextUtil';
|
import { NO_PERMISSION_FOR_ACTION } from '../../../constants/HelperTextUtil';
|
||||||
import { TestCase, TestCaseResult } from '../../../generated/tests/testCase';
|
import { TestCase, TestCaseResult } from '../../../generated/tests/testCase';
|
||||||
import { getNameFromFQN } from '../../../utils/CommonUtils';
|
import { getNameFromFQN } from '../../../utils/CommonUtils';
|
||||||
@ -119,7 +123,12 @@ const DataQualityTab: React.FC<DataQualityTabProps> = ({
|
|||||||
dataIndex: 'description',
|
dataIndex: 'description',
|
||||||
key: 'description',
|
key: 'description',
|
||||||
width: 350,
|
width: 350,
|
||||||
render: (text) => (isEmpty(text) ? '--' : text),
|
render: (text) =>
|
||||||
|
!isEmpty(text) ? (
|
||||||
|
<RichTextEditorPreviewer markdown={text} />
|
||||||
|
) : (
|
||||||
|
NO_DATA_PLACEHOLDER
|
||||||
|
),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('label.test-suite'),
|
title: t('label.test-suite'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user