Skip to content

Commit

Permalink
Minor: address ui feedback on data observability (open-metadata#16427)
Browse files Browse the repository at this point in the history
* Minor: address ui feedback on data observability

* fixed failing unit test
  • Loading branch information
ShaileshParmar11 authored May 28, 2024
1 parent a4c516d commit 0c974ed
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
* limitations under the License.
*/

import { Button, Space, Tooltip } from 'antd';
import Icon from '@ant-design/icons/lib/components/Icon';
import { Space, Tooltip } from 'antd';
import classNames from 'classnames';
import { startCase, toLower } from 'lodash';
import React, { useCallback, useMemo, useState } from 'react';
Expand Down Expand Up @@ -70,10 +71,11 @@ const Severity = ({ severity, onSubmit }: SeverityProps) => {
title={t('label.edit-entity', {
entity: t('label.severity'),
})}>
<Button
<Icon
{...ICON_DIMENSION}
component={EditIcon}
data-testid="edit-severity-icon"
icon={<EditIcon {...ICON_DIMENSION} color={DE_ACTIVE_COLOR} />}
type="text"
style={{ color: DE_ACTIVE_COLOR }}
onClick={onEditSeverity}
/>
</Tooltip>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@
* limitations under the License.
*/

import { Button, Space, Tooltip, Typography } from 'antd';
import Icon from '@ant-design/icons/lib/components/Icon';
import { Space, Tooltip, Typography } from 'antd';
import classNames from 'classnames';
import React, { useCallback, useMemo, useState } from 'react';
import { ReactComponent as EditIcon } from '../../../../assets/svg/edit-new.svg';
import {
DE_ACTIVE_COLOR,
ICON_DIMENSION,
NO_DATA_PLACEHOLDER,
} from '../../../../constants/constants';
import { usePermissionProvider } from '../../../../context/PermissionProvider/PermissionProvider';
Expand Down Expand Up @@ -70,12 +72,11 @@ const TestCaseIncidentManagerStatus = ({
label={statusType}
/>
{hasEditPermission && (
<Button
className="flex-center p-0"
<Icon
{...ICON_DIMENSION}
component={EditIcon}
data-testid="edit-resolution-icon"
icon={<EditIcon color={DE_ACTIVE_COLOR} width="14px" />}
size="small"
type="text"
style={{ color: DE_ACTIVE_COLOR }}
onClick={onEditStatus}
/>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ export const TestSuites = ({ summaryPanel }: { summaryPanel: ReactNode }) => {
/>
</Form.Item>
<Form.Item
className="m-0 w-52"
className="m-0"
label={t('label.owner')}
name="owner">
<UserTeamSelectableList
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ const IncidentManagerPage = () => {

return (
<PageLayoutV1 pageTitle="Incident Manager">
<Row className="p-x-lg p-t-md" gutter={[0, 16]}>
<Row className="p-x-lg p-b-lg p-t-md" gutter={[0, 16]}>
<Col span={24}>
<Typography.Title
className="m-b-md"
Expand Down

0 comments on commit 0c974ed

Please sign in to comment.