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:
Chirag Madlani 2025-08-07 23:07:36 +05:30 committed by GitHub
parent 94ba5f1612
commit bc8583cd56
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 10 additions and 16 deletions

View File

@ -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 {

View File

@ -147,9 +147,6 @@
.glossary-term-page-tabs {
.ant-tabs-tabpane {
height: @glossary-term-page-height;
}
.grid-container {
overflow-y: auto;
}

View File

@ -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>
);
};

View File

@ -11,6 +11,9 @@
* limitations under the License.
*/
.user-tag {
display: flex;
align-items: center;
gap: 8px;
cursor: pointer;
&.bordered {

View File

@ -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 {

View File

@ -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',