From 048be07295007efd73fee2dd30fb833437b4f63d Mon Sep 17 00:00:00 2001 From: Andrey Nenashev Date: Tue, 7 Nov 2023 15:30:18 +0100 Subject: [PATCH] feature(fe): monitored tables dashboard. Linter fixes --- .../AlertsList/AlertItem/AlertItemStyles.ts | 2 +- .../Alerts/AlertsList/AlertsList.tsx | 4 +- .../DataCollaborationStyles.ts | 2 +- .../ActivityItem/ActivityItem.tsx | 10 +- .../ActivityItem/ActivityItemStyles.ts | 4 +- .../DataEntityAlertItemStyles.ts | 2 +- .../DatasetStructureCompareListItem.styles.ts | 2 +- .../DatasetFieldTagsStyles.ts | 2 +- .../TagsEditForm/TagsEditFormStyles.ts | 2 +- .../DatasetStructureList.styles.ts | 2 +- .../Lineage/DEGLineage/DEGLineage.styles.ts | 2 +- .../EdgesRenderer/EdgesRenderer.styles.ts | 2 +- .../ZoomableDEGLineage.styles.ts | 4 +- .../DEGLineage/components/Node/Node.styles.ts | 2 +- .../Node/NodeTitle/NodeTitleStyles.ts | 2 +- .../OverviewDQSLAReportStyles.ts | 2 +- .../OverviewDataConsumerStats.tsx | 22 +- .../OverviewDataInputStats.tsx | 20 +- .../OverviewEntityGroupItems.styles.ts | 4 +- .../OverviewQualityTestStats.tsx | 20 +- .../OverviewTransformerStats.tsx | 40 +-- .../OverviewTags/OverviewTagsStyles.ts | 2 +- .../TagsEditForm/TagsEditFormStyles.ts | 2 +- .../components/DataQuality/DataQuality.tsx | 62 +++-- .../DirectoryItem/DirectoryItem.styles.ts | 2 +- .../src/components/Directory/shared/styles.ts | 2 +- .../EditableOwnerItemStyles.ts | 2 +- .../RolesList/RoleItem/RoleItemStyles.ts | 2 +- .../OwnerAssociationStyles.ts | 2 +- .../ActivityFieldStateStyles.ts | 2 +- .../AlertActivityField/AlertActivityField.tsx | 2 +- .../OwnerActivityField/OwnerActivityField.tsx | 13 +- .../AppCircularProgressStyles.ts | 2 +- .../elements/AppJSONEditor/AppJSONEditor.tsx | 2 +- .../AppLoadingPage/AppLoadingPageStyles.ts | 2 +- .../elements/AppPopover/AppPopoverStyles.ts | 2 +- .../shared/elements/Button/Button.styles.ts | 240 +++++++++--------- .../CollapsibleInfoContainer.styles.ts | 2 +- .../shared/elements/DonutChart/DonutChart.tsx | 15 +- .../elements/FileInput/FileInput.styles.ts | 4 +- .../dataEntityAttachments/dataEntityFiles.ts | 5 +- .../src/redux/interfaces/dataentityLineage.ts | 4 +- odd-platform-ui/src/redux/lib/helpers.ts | 4 +- 43 files changed, 280 insertions(+), 247 deletions(-) diff --git a/odd-platform-ui/src/components/Alerts/AlertsList/AlertItem/AlertItemStyles.ts b/odd-platform-ui/src/components/Alerts/AlertsList/AlertItem/AlertItemStyles.ts index 08c041720..1345141b8 100644 --- a/odd-platform-ui/src/components/Alerts/AlertsList/AlertItem/AlertItemStyles.ts +++ b/odd-platform-ui/src/components/Alerts/AlertsList/AlertItem/AlertItemStyles.ts @@ -15,5 +15,5 @@ export const Wrapper = styled(Grid)<{ $alignItems?: CSSObject['alignItems'] }>( flexWrap: 'nowrap', alignItems: $alignItems, justifyContent: 'flex-end', - } as CSSObject) + }) as CSSObject ); diff --git a/odd-platform-ui/src/components/Alerts/AlertsList/AlertsList.tsx b/odd-platform-ui/src/components/Alerts/AlertsList/AlertsList.tsx index d33b3c275..419eac00e 100644 --- a/odd-platform-ui/src/components/Alerts/AlertsList/AlertsList.tsx +++ b/odd-platform-ui/src/components/Alerts/AlertsList/AlertsList.tsx @@ -92,9 +92,7 @@ const AlertsList: React.FC = ({ fetchAlerts }) => { loader={isAlertsFetching && } scrollableTarget='alerts-list' > - {alerts?.map(alert => ( - - ))} + {alerts?.map(alert => )} diff --git a/odd-platform-ui/src/components/DataEntityDetails/DataCollaboration/DataCollaborationStyles.ts b/odd-platform-ui/src/components/DataEntityDetails/DataCollaboration/DataCollaborationStyles.ts index 7cc23eb1b..c01381d0a 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/DataCollaboration/DataCollaborationStyles.ts +++ b/odd-platform-ui/src/components/DataEntityDetails/DataCollaboration/DataCollaborationStyles.ts @@ -6,5 +6,5 @@ export const Container = styled(Grid)( ({ position: 'relative', flexWrap: 'nowrap', - } as CSSObject) + }) as CSSObject ); diff --git a/odd-platform-ui/src/components/DataEntityDetails/DataEntityActivity/ActivityResults/ActivityItem/ActivityItem.tsx b/odd-platform-ui/src/components/DataEntityDetails/DataEntityActivity/ActivityResults/ActivityItem/ActivityItem.tsx index 5491ca0a2..2125565b4 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/DataEntityActivity/ActivityResults/ActivityItem/ActivityItem.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/DataEntityActivity/ActivityResults/ActivityItem/ActivityItem.tsx @@ -88,9 +88,8 @@ const ActivityItem: React.FC = ({ activity, hideAllDetails }) )} {isTypeRelatedTo([ActivityEventType.DATASET_FIELD_DESCRIPTION_UPDATED]) && ( = ({ activity, hideAllDetails }) )} {isTypeRelatedTo([ActivityEventType.DATASET_FIELD_TAGS_UPDATED]) && ( ( diff --git a/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/DatasetStructureOverview/DatasetStructureView/DatasetFieldOverview/DatasetFieldTags/DatasetFieldTagsStyles.ts b/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/DatasetStructureOverview/DatasetStructureView/DatasetFieldOverview/DatasetFieldTags/DatasetFieldTagsStyles.ts index 8f38f60a9..713b2ca30 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/DatasetStructureOverview/DatasetStructureView/DatasetFieldOverview/DatasetFieldTags/DatasetFieldTagsStyles.ts +++ b/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/DatasetStructureOverview/DatasetStructureView/DatasetFieldOverview/DatasetFieldTags/DatasetFieldTagsStyles.ts @@ -8,5 +8,5 @@ export const TagsContainer = styled(Box)( alignItems: 'center', justifyContent: 'flex-start', flexWrap: 'wrap', - } as CSSObject) + }) as CSSObject ); diff --git a/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/DatasetStructureOverview/DatasetStructureView/DatasetFieldOverview/DatasetFieldTags/TagsEditForm/TagsEditFormStyles.ts b/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/DatasetStructureOverview/DatasetStructureView/DatasetFieldOverview/DatasetFieldTags/TagsEditForm/TagsEditFormStyles.ts index 9bb2dd9d1..f301c6786 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/DatasetStructureOverview/DatasetStructureView/DatasetFieldOverview/DatasetFieldTags/TagsEditForm/TagsEditFormStyles.ts +++ b/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/DatasetStructureOverview/DatasetStructureView/DatasetFieldOverview/DatasetFieldTags/TagsEditForm/TagsEditFormStyles.ts @@ -27,5 +27,5 @@ export const TagListContainer = styled(Box)( alignItems: 'center', justifyContent: 'flex-start', flexWrap: 'wrap', - } as CSSObject) + }) as CSSObject ); diff --git a/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/DatasetStructureOverview/DatasetStructureView/DatasetStructureList/DatasetStructureList.styles.ts b/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/DatasetStructureOverview/DatasetStructureView/DatasetStructureList/DatasetStructureList.styles.ts index 0d990496b..9050da4d3 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/DatasetStructureOverview/DatasetStructureView/DatasetStructureList/DatasetStructureList.styles.ts +++ b/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/DatasetStructureOverview/DatasetStructureView/DatasetStructureList/DatasetStructureList.styles.ts @@ -7,7 +7,7 @@ export const Scrollable = styled('div')( width: '100%', overflowY: 'auto', contain: 'strict', - } as CSSObject) + }) as CSSObject ); export const Container = styled('div')<{ $height: number }>(({ $height }) => ({ diff --git a/odd-platform-ui/src/components/DataEntityDetails/Lineage/DEGLineage/DEGLineage.styles.ts b/odd-platform-ui/src/components/DataEntityDetails/Lineage/DEGLineage/DEGLineage.styles.ts index 5b2d37e59..dd1823afc 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/Lineage/DEGLineage/DEGLineage.styles.ts +++ b/odd-platform-ui/src/components/DataEntityDetails/Lineage/DEGLineage/DEGLineage.styles.ts @@ -25,5 +25,5 @@ export const LineageViewContainer = styled('div')( width: '100%', height: '100%', position: 'relative', - } as CSSObject) + }) as CSSObject ); diff --git a/odd-platform-ui/src/components/DataEntityDetails/Lineage/DEGLineage/ZoomableDEGLineage/DEGLinegeGraph/EdgesRenderer/EdgesRenderer.styles.ts b/odd-platform-ui/src/components/DataEntityDetails/Lineage/DEGLineage/ZoomableDEGLineage/DEGLinegeGraph/EdgesRenderer/EdgesRenderer.styles.ts index e343915f8..f93ec7c93 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/Lineage/DEGLineage/ZoomableDEGLineage/DEGLinegeGraph/EdgesRenderer/EdgesRenderer.styles.ts +++ b/odd-platform-ui/src/components/DataEntityDetails/Lineage/DEGLineage/ZoomableDEGLineage/DEGLinegeGraph/EdgesRenderer/EdgesRenderer.styles.ts @@ -11,5 +11,5 @@ export const Container = styled('svg')( height: '100%', top: 0, left: 0, - } as CSSObject) + }) as CSSObject ); diff --git a/odd-platform-ui/src/components/DataEntityDetails/Lineage/DEGLineage/ZoomableDEGLineage/ZoomableDEGLineage.styles.ts b/odd-platform-ui/src/components/DataEntityDetails/Lineage/DEGLineage/ZoomableDEGLineage/ZoomableDEGLineage.styles.ts index 4ab84046a..93a5583a8 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/Lineage/DEGLineage/ZoomableDEGLineage/ZoomableDEGLineage.styles.ts +++ b/odd-platform-ui/src/components/DataEntityDetails/Lineage/DEGLineage/ZoomableDEGLineage/ZoomableDEGLineage.styles.ts @@ -16,7 +16,7 @@ export const ZoomWrapper = styled('div')( position: 'absolute', top: 0, left: 0, - } as CSSObject) + }) as CSSObject ); export const ZoomContainer = styled('div')( @@ -28,5 +28,5 @@ export const ZoomContainer = styled('div')( top: 0, left: 0, transformOrigin: '0 0', - } as CSSObject) + }) as CSSObject ); diff --git a/odd-platform-ui/src/components/DataEntityDetails/Lineage/DEGLineage/components/Node/Node.styles.ts b/odd-platform-ui/src/components/DataEntityDetails/Lineage/DEGLineage/components/Node/Node.styles.ts index 326e07471..64b041e45 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/Lineage/DEGLineage/components/Node/Node.styles.ts +++ b/odd-platform-ui/src/components/DataEntityDetails/Lineage/DEGLineage/components/Node/Node.styles.ts @@ -36,7 +36,7 @@ export const TitleContainer = styled(Typography)( ({ wordBreak: 'break-all', '&:hover': { cursor: 'pointer' }, - } as CSSObject) + }) as CSSObject ); export const SourceContainer = styled('div')(({ theme }) => ({ diff --git a/odd-platform-ui/src/components/DataEntityDetails/Lineage/HierarchyLineage/ZoomableLineage/LineageGraph/Node/NodeTitle/NodeTitleStyles.ts b/odd-platform-ui/src/components/DataEntityDetails/Lineage/HierarchyLineage/ZoomableLineage/LineageGraph/Node/NodeTitle/NodeTitleStyles.ts index 3af68c33f..af9f2684c 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/Lineage/HierarchyLineage/ZoomableLineage/LineageGraph/Node/NodeTitle/NodeTitleStyles.ts +++ b/odd-platform-ui/src/components/DataEntityDetails/Lineage/HierarchyLineage/ZoomableLineage/LineageGraph/Node/NodeTitle/NodeTitleStyles.ts @@ -18,7 +18,7 @@ export const TitleWrapper = styled('div')<{ $fullNames: boolean }>( overflow: $fullNames ? 'initial' : 'hidden', textOverflow: $fullNames ? 'initial' : 'ellipsis', whiteSpace: $fullNames ? 'initial' : 'nowrap', - } as CSSObject) + }) as CSSObject ); export const UnknownEntityNameCircle = styled('circle')(({ theme }) => ({ diff --git a/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewDataQualityReport/OverviewDQSLAReport/OverviewDQSLAReportStyles.ts b/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewDataQualityReport/OverviewDQSLAReport/OverviewDQSLAReportStyles.ts index 99b9f5375..17d536f3f 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewDataQualityReport/OverviewDQSLAReport/OverviewDQSLAReportStyles.ts +++ b/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewDataQualityReport/OverviewDQSLAReport/OverviewDQSLAReportStyles.ts @@ -23,7 +23,7 @@ export const TooltipStyles = { }; export const BarContainer = styled(Grid)( - () => ({ flexWrap: 'nowrap', marginTop: '3px', columnGap: '2px' } as CSSObject) + () => ({ flexWrap: 'nowrap', marginTop: '3px', columnGap: '2px' }) as CSSObject ); export const Bar = styled(LinearProgress)<{ diff --git a/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewStats/OverviewDataConsumerStats/OverviewDataConsumerStats.tsx b/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewStats/OverviewDataConsumerStats/OverviewDataConsumerStats.tsx index 77d12ef13..2e12e0d3f 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewStats/OverviewDataConsumerStats/OverviewDataConsumerStats.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewStats/OverviewDataConsumerStats/OverviewDataConsumerStats.tsx @@ -35,16 +35,18 @@ const OverviewDataConsumerStats: React.FC = ({ - {inputs?.slice(0, displayedEntitiesNumber).map(input => ( -