mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-10-10 08:16:25 +00:00
fix(ui): contract results sort order (#22820)
* fix(ui): contract results sort order fix rule for domain field * fix the team icon placement * fix glossary styling --------- Co-authored-by: Ashish Gupta <ashish@getcollate.io>
This commit is contained in:
parent
94ba5f1612
commit
bc8583cd56
@ -12,7 +12,7 @@
|
||||
*/
|
||||
import { Tooltip, Typography } from 'antd';
|
||||
import { AxiosError } from 'axios';
|
||||
import { isEqual, pick } from 'lodash';
|
||||
import { isEqual, pick, sortBy } from 'lodash';
|
||||
import { DateRangeObject } from 'Models';
|
||||
import { useEffect, useMemo, useState } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
@ -72,7 +72,7 @@ const ContractExecutionChart = ({ contract }: { contract: DataContract }) => {
|
||||
const results = await getAllContractResults(contract.id, {
|
||||
...pick(dateRangeObj, ['startTs', 'endTs']),
|
||||
});
|
||||
setContractExecutionResultList(results.data);
|
||||
setContractExecutionResultList(sortBy(results.data, 'timestamp'));
|
||||
} catch (err) {
|
||||
showErrorToast(err as AxiosError);
|
||||
} finally {
|
||||
|
@ -147,9 +147,6 @@
|
||||
.glossary-term-page-tabs {
|
||||
.ant-tabs-tabpane {
|
||||
height: @glossary-term-page-height;
|
||||
}
|
||||
|
||||
.grid-container {
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
*/
|
||||
|
||||
import Icon from '@ant-design/icons';
|
||||
import { Space, Typography } from 'antd';
|
||||
import { Typography } from 'antd';
|
||||
import classNames from 'classnames';
|
||||
import { isUndefined, toString } from 'lodash';
|
||||
import { ReactComponent as CloseOutlined } from '../../../assets/svg/close.svg';
|
||||
@ -48,8 +48,7 @@ export const UserTag = ({
|
||||
};
|
||||
|
||||
return (
|
||||
<Space
|
||||
align="center"
|
||||
<div
|
||||
className={classNames(
|
||||
{
|
||||
bordered: bordered,
|
||||
@ -58,8 +57,7 @@ export const UserTag = ({
|
||||
UserTagSize[size],
|
||||
className
|
||||
)}
|
||||
data-testid="user-tag"
|
||||
size={8}>
|
||||
data-testid="user-tag">
|
||||
<ProfilePicture
|
||||
avatarType={avatarType}
|
||||
isTeam={isTeam}
|
||||
@ -75,6 +73,6 @@ export const UserTag = ({
|
||||
onClick={onRemove}
|
||||
/>
|
||||
)}
|
||||
</Space>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
@ -11,6 +11,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
.user-tag {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
cursor: pointer;
|
||||
|
||||
&.bordered {
|
||||
|
@ -21,15 +21,11 @@
|
||||
|
||||
.select-owners {
|
||||
.assignee-tag {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-right: 8px;
|
||||
background: @white;
|
||||
padding: 2px 12px;
|
||||
height: 28px;
|
||||
|
||||
border-radius: 6px;
|
||||
gap: 4px;
|
||||
border: 1px solid @grey-300;
|
||||
|
||||
.ant-typography {
|
||||
|
@ -98,7 +98,7 @@ export enum EntityReferenceFields {
|
||||
DISPLAY_NAME = 'displayName',
|
||||
TAG = 'tags',
|
||||
TIER = 'tier.tagFQN',
|
||||
DOMAIN = 'domain',
|
||||
DOMAIN = 'domains',
|
||||
DATA_PRODUCT = 'dataProduct',
|
||||
TABLE_TYPE = 'tableType',
|
||||
EXTENSION = 'extension',
|
||||
|
Loading…
x
Reference in New Issue
Block a user