diff --git a/odd-platform-ui/src/components/Activity/ActivityResults/ActivityTabs/ActivityTabs.tsx b/odd-platform-ui/src/components/Activity/ActivityResults/ActivityTabs/ActivityTabs.tsx index 330f01b07..ca5dadd61 100644 --- a/odd-platform-ui/src/components/Activity/ActivityResults/ActivityTabs/ActivityTabs.tsx +++ b/odd-platform-ui/src/components/Activity/ActivityResults/ActivityTabs/ActivityTabs.tsx @@ -1,4 +1,5 @@ import React from 'react'; +import { useTranslation } from 'react-i18next'; import { type AppTabItem, AppTabs } from 'components/shared/elements'; import { type ActivityCountInfo, ActivityType } from 'generated-sources'; import { useQueryParams } from 'lib/hooks'; @@ -6,7 +7,6 @@ import { type ActivityQuery, defaultActivityQuery, } from 'components/shared/elements/Activity/common'; -import { useTranslation } from 'react-i18next'; interface ActivityTabsProps { counts: ActivityCountInfo; diff --git a/odd-platform-ui/src/components/Activity/Filters/Filters.tsx b/odd-platform-ui/src/components/Activity/Filters/Filters.tsx index d1ee19480..c03fa1847 100644 --- a/odd-platform-ui/src/components/Activity/Filters/Filters.tsx +++ b/odd-platform-ui/src/components/Activity/Filters/Filters.tsx @@ -1,5 +1,6 @@ import React from 'react'; import { Grid, Typography } from '@mui/material'; +import { useTranslation } from 'react-i18next'; import { Button } from 'components/shared/elements'; import { fetchDataSourcesList, fetchNamespaceList } from 'redux/thunks'; import { useAppDispatch, useAppSelector } from 'redux/lib/hooks'; @@ -15,7 +16,6 @@ import { type ActivityQuery, defaultActivityQuery, } from 'components/shared/elements/Activity/common'; -import { useTranslation } from 'react-i18next'; import * as S from './FiltersStyles'; const Filters: React.FC = () => { diff --git a/odd-platform-ui/src/components/Activity/Filters/FiltersStyles.ts b/odd-platform-ui/src/components/Activity/Filters/FiltersStyles.ts index 4ab48944f..34d2adcd1 100644 --- a/odd-platform-ui/src/components/Activity/Filters/FiltersStyles.ts +++ b/odd-platform-ui/src/components/Activity/Filters/FiltersStyles.ts @@ -1,5 +1,5 @@ -import { toolbarHeight } from 'lib/constants'; import styled from 'styled-components'; +import { toolbarHeight } from 'lib/constants'; export const Container = styled('div')(({ theme }) => ({ padding: theme.spacing(2, 1, 1.5, 1), diff --git a/odd-platform-ui/src/components/Alerts/Alerts.tsx b/odd-platform-ui/src/components/Alerts/Alerts.tsx index 57021d53e..51b80f674 100644 --- a/odd-platform-ui/src/components/Alerts/Alerts.tsx +++ b/odd-platform-ui/src/components/Alerts/Alerts.tsx @@ -1,10 +1,10 @@ import React from 'react'; import { Typography } from '@mui/material'; +import { useTranslation } from 'react-i18next'; import { useAppDispatch, useAppSelector } from 'redux/lib/hooks'; import { fetchAlertsTotals } from 'redux/thunks'; import { getAlertsTotals, getOwnership } from 'redux/selectors'; import { ListLayout } from 'components/shared/elements'; -import { useTranslation } from 'react-i18next'; import AlertsTabs from './AlertsTabs/AlertsTabs'; import AlertsRoutes from './AlertsRoutes/AlertsRoutes'; diff --git a/odd-platform-ui/src/components/Alerts/AlertsList/AlertItem/AlertItem.tsx b/odd-platform-ui/src/components/Alerts/AlertsList/AlertItem/AlertItem.tsx index feb170458..c7bd91de9 100644 --- a/odd-platform-ui/src/components/Alerts/AlertsList/AlertItem/AlertItem.tsx +++ b/odd-platform-ui/src/components/Alerts/AlertsList/AlertItem/AlertItem.tsx @@ -1,10 +1,10 @@ import React from 'react'; +import { Collapse, Grid, Typography } from '@mui/material'; import type { Alert } from 'redux/interfaces'; import { AlertStatus, Permission, PermissionResourceType } from 'generated-sources'; import { useAppDispatch, useAppSelector } from 'redux/lib/hooks'; import { fetchResourcePermissions, updateAlertStatus } from 'redux/thunks'; import { useAppDateTime, useAppPaths } from 'lib/hooks'; -import { Collapse, Grid, Typography } from '@mui/material'; import { GearIcon, UserIcon } from 'components/shared/icons'; import { AlertStatusItem, Button, EntityClassItem } from 'components/shared/elements'; import { alertTitlesMap } from 'lib/constants'; diff --git a/odd-platform-ui/src/components/Alerts/AlertsList/AlertsList.tsx b/odd-platform-ui/src/components/Alerts/AlertsList/AlertsList.tsx index a1a4fb921..d33b3c275 100644 --- a/odd-platform-ui/src/components/Alerts/AlertsList/AlertsList.tsx +++ b/odd-platform-ui/src/components/Alerts/AlertsList/AlertsList.tsx @@ -1,5 +1,7 @@ import React from 'react'; import InfiniteScroll from 'react-infinite-scroll-component'; +import { Grid } from '@mui/material'; +import { type AsyncThunk } from '@reduxjs/toolkit'; import { type AlertApiGetAllAlertsRequest, type AlertApiGetAssociatedUserAlertsRequest, @@ -16,8 +18,6 @@ import { getAlerts, } from 'redux/selectors'; import { AppErrorPage, EmptyContentPlaceholder } from 'components/shared/elements'; -import { Grid } from '@mui/material'; -import { type AsyncThunk } from '@reduxjs/toolkit'; import { useAppDispatch, useAppSelector } from 'redux/lib/hooks'; import type { AlertsResponse } from 'redux/interfaces'; import DataEntityAlertsSkeleton from '../../DataEntityDetails/DataEntityAlerts/DataEntityAlertItem/DataEntityAlertsSkeleton'; diff --git a/odd-platform-ui/src/components/Alerts/AlertsTabs/AlertsTabs.tsx b/odd-platform-ui/src/components/Alerts/AlertsTabs/AlertsTabs.tsx index 2f1403e91..bdd8fb410 100644 --- a/odd-platform-ui/src/components/Alerts/AlertsTabs/AlertsTabs.tsx +++ b/odd-platform-ui/src/components/Alerts/AlertsTabs/AlertsTabs.tsx @@ -1,10 +1,10 @@ import React from 'react'; +import { useTranslation } from 'react-i18next'; import { type AppTabItem, AppTabs } from 'components/shared/elements'; import { changeAlertsFilterAction } from 'redux/slices/alerts.slice'; import { useAppParams, useAppPaths } from 'lib/hooks'; import { useAppDispatch } from 'redux/lib/hooks'; import type { AlertTotals } from 'generated-sources'; -import { useTranslation } from 'react-i18next'; interface AlertsTabsProps { totals: AlertTotals; diff --git a/odd-platform-ui/src/components/DataEntityDetails/DataCollaboration/CurrentMessage/Thread/Thread.tsx b/odd-platform-ui/src/components/DataEntityDetails/DataCollaboration/CurrentMessage/Thread/Thread.tsx index 31550c826..bab656c30 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/DataCollaboration/CurrentMessage/Thread/Thread.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/DataCollaboration/CurrentMessage/Thread/Thread.tsx @@ -1,4 +1,5 @@ import React from 'react'; +import { useNavigate } from 'react-router-dom'; import { useAppDispatch, useAppSelector } from 'redux/lib/hooks'; import { getDataEntityMessage, @@ -9,7 +10,6 @@ import { } from 'redux/selectors'; import { fetchRelatedMessages, messagesListSize as size } from 'redux/thunks'; import { useAppParams, useAppPaths } from 'lib/hooks'; -import { useNavigate } from 'react-router-dom'; import { clearThreadState } from 'redux/slices/dataCollaboration.slice'; import ThreadContent from './ThreadContent/ThreadContent'; diff --git a/odd-platform-ui/src/components/DataEntityDetails/DataCollaboration/CurrentMessage/Thread/ThreadContent/MainThreadMessage/MainThreadMessage.tsx b/odd-platform-ui/src/components/DataEntityDetails/DataCollaboration/CurrentMessage/Thread/ThreadContent/MainThreadMessage/MainThreadMessage.tsx index d090842c5..a332feea8 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/DataCollaboration/CurrentMessage/Thread/ThreadContent/MainThreadMessage/MainThreadMessage.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/DataCollaboration/CurrentMessage/Thread/ThreadContent/MainThreadMessage/MainThreadMessage.tsx @@ -1,9 +1,9 @@ import React from 'react'; import { Grid, Typography } from '@mui/material'; +import { useTranslation } from 'react-i18next'; import { AppAvatar, Button, WithFeature } from 'components/shared/elements'; import { type Message } from 'redux/interfaces'; import { Feature } from 'generated-sources'; -import { useTranslation } from 'react-i18next'; import * as S from './MainThreadMessageStyles'; interface MainThreadMessageProps { diff --git a/odd-platform-ui/src/components/DataEntityDetails/DataCollaboration/CurrentMessage/Thread/ThreadContent/ThreadContent.tsx b/odd-platform-ui/src/components/DataEntityDetails/DataCollaboration/CurrentMessage/Thread/ThreadContent/ThreadContent.tsx index ce165a270..2411de9b4 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/DataCollaboration/CurrentMessage/Thread/ThreadContent/ThreadContent.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/DataCollaboration/CurrentMessage/Thread/ThreadContent/ThreadContent.tsx @@ -1,11 +1,11 @@ import React from 'react'; -import { type Message } from 'redux/interfaces'; import { Grid, Typography } from '@mui/material'; +import InfiniteScroll from 'react-infinite-scroll-component'; +import { useTranslation } from 'react-i18next'; +import { type Message } from 'redux/interfaces'; import { Button, EmptyContentPlaceholder } from 'components/shared/elements'; import { ClearIcon } from 'components/shared/icons'; import { useAppPaths } from 'lib/hooks'; -import InfiniteScroll from 'react-infinite-scroll-component'; -import { useTranslation } from 'react-i18next'; import ThreadMessage from './ThreadMessage/ThreadMessage'; import MainThreadMessage from './MainThreadMessage/MainThreadMessage'; import ThreadMessageSkeleton from './ThreadMessage/ThreadMessageSkeleton'; diff --git a/odd-platform-ui/src/components/DataEntityDetails/DataEntityActivity/Filters/Filters.tsx b/odd-platform-ui/src/components/DataEntityDetails/DataEntityActivity/Filters/Filters.tsx index bf2c77b8d..62dbaae88 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/DataEntityActivity/Filters/Filters.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/DataEntityActivity/Filters/Filters.tsx @@ -1,5 +1,6 @@ import React from 'react'; import { Grid, Typography } from '@mui/material'; +import { useTranslation } from 'react-i18next'; import { Button } from 'components/shared/elements'; import { ActivityEventType } from 'generated-sources'; import { @@ -12,7 +13,6 @@ import { type ActivityQuery, defaultActivityQuery, } from 'components/shared/elements/Activity/common'; -import { useTranslation } from 'react-i18next'; import * as S from './FiltersStyles'; const Filters: React.FC = () => { diff --git a/odd-platform-ui/src/components/DataEntityDetails/DataEntityActivity/Filters/FiltersStyles.ts b/odd-platform-ui/src/components/DataEntityDetails/DataEntityActivity/Filters/FiltersStyles.ts index 20d0d400f..0fbb1b375 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/DataEntityActivity/Filters/FiltersStyles.ts +++ b/odd-platform-ui/src/components/DataEntityDetails/DataEntityActivity/Filters/FiltersStyles.ts @@ -1,6 +1,6 @@ import { Grid } from '@mui/material'; -import { activitySidebarWidth } from 'lib/constants'; import styled from 'styled-components'; +import { activitySidebarWidth } from 'lib/constants'; export const Container = styled(Grid)(({ theme }) => ({ width: '100%', diff --git a/odd-platform-ui/src/components/DataEntityDetails/DataEntityAlerts/DataEntityAlertItem/DataEntityAlertItem.tsx b/odd-platform-ui/src/components/DataEntityDetails/DataEntityAlerts/DataEntityAlertItem/DataEntityAlertItem.tsx index c44839ffa..6939a04a6 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/DataEntityAlerts/DataEntityAlertItem/DataEntityAlertItem.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/DataEntityAlerts/DataEntityAlertItem/DataEntityAlertItem.tsx @@ -1,15 +1,15 @@ import React from 'react'; +import { Collapse, Grid, Typography } from '@mui/material'; +import { useTranslation } from 'react-i18next'; import type { Alert } from 'redux/interfaces'; import { AlertStatus, Permission } from 'generated-sources'; import { useAppDateTime, useAppParams } from 'lib/hooks'; import { updateAlertStatus } from 'redux/thunks'; import { useAppDispatch } from 'redux/lib/hooks'; -import { Collapse, Grid, Typography } from '@mui/material'; import { AlertStatusItem, Button } from 'components/shared/elements'; import { WithPermissions } from 'components/shared/contexts'; import { GearIcon, UserIcon } from 'components/shared/icons'; import { alertTitlesMap } from 'lib/constants'; -import { useTranslation } from 'react-i18next'; import * as S from './DataEntityAlertItemStyles'; interface DataEntityAlertItemProps { diff --git a/odd-platform-ui/src/components/DataEntityDetails/DataEntityAlerts/DataEntityAlerts.tsx b/odd-platform-ui/src/components/DataEntityDetails/DataEntityAlerts/DataEntityAlerts.tsx index 64dc54728..fcd461cc1 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/DataEntityAlerts/DataEntityAlerts.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/DataEntityAlerts/DataEntityAlerts.tsx @@ -1,5 +1,7 @@ import React from 'react'; import { Grid } from '@mui/material'; +import InfiniteScroll from 'react-infinite-scroll-component'; +import { useTranslation } from 'react-i18next'; import { Permission } from 'generated-sources'; import { useAppDispatch, useAppSelector } from 'redux/lib/hooks'; import { @@ -16,8 +18,6 @@ import { import { WithPermissions } from 'components/shared/contexts'; import { fetchDataEntityAlerts } from 'redux/thunks'; import { useAppParams } from 'lib/hooks'; -import InfiniteScroll from 'react-infinite-scroll-component'; -import { useTranslation } from 'react-i18next'; import DataEntityAlertsSkeleton from './DataEntityAlertItem/DataEntityAlertsSkeleton'; import NotificationSettings from './NotificationSettings/NotificationSettings'; import DataEntityAlertItem from './DataEntityAlertItem/DataEntityAlertItem'; diff --git a/odd-platform-ui/src/components/DataEntityDetails/DataEntityAlerts/NotificationSettings/AlertTypeRange/AlertTypeRange.tsx b/odd-platform-ui/src/components/DataEntityDetails/DataEntityAlerts/NotificationSettings/AlertTypeRange/AlertTypeRange.tsx index 63daf6e4e..1f3ed534c 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/DataEntityAlerts/NotificationSettings/AlertTypeRange/AlertTypeRange.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/DataEntityAlerts/NotificationSettings/AlertTypeRange/AlertTypeRange.tsx @@ -1,7 +1,7 @@ import React from 'react'; import { FormControlLabel, Grid, RadioGroup, Typography } from '@mui/material'; -import { Button, AppRadio, AppSwitch } from 'components/shared/elements'; import { useController, type UseControllerProps } from 'react-hook-form'; +import { Button, AppRadio, AppSwitch } from 'components/shared/elements'; import { useAppSelector } from 'redux/lib/hooks'; import { getDataEntityAlertConfig } from 'redux/selectors'; import { useAppDateTime, useAppParams } from 'lib/hooks'; diff --git a/odd-platform-ui/src/components/DataEntityDetails/DataEntityAlerts/NotificationSettings/NotificationSettings.tsx b/odd-platform-ui/src/components/DataEntityDetails/DataEntityAlerts/NotificationSettings/NotificationSettings.tsx index 0ebf2d9dc..42e972512 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/DataEntityAlerts/NotificationSettings/NotificationSettings.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/DataEntityAlerts/NotificationSettings/NotificationSettings.tsx @@ -1,4 +1,6 @@ import React from 'react'; +import { useForm } from 'react-hook-form'; +import { Grid, Typography } from '@mui/material'; import { useAppDispatch, useAppSelector } from 'redux/lib/hooks'; import { useAppParams } from 'lib/hooks'; import { type DataEntityApiUpdateAlertConfigRequest } from 'generated-sources'; @@ -7,9 +9,7 @@ import { getDataEntityAlertsConfigUpdatingError, getDataEntityAlertsConfigUpdatingStatus, } from 'redux/selectors'; -import { useForm } from 'react-hook-form'; import { fetchDataEntityAlertsConfig, updateDataEntityAlertsConfig } from 'redux/thunks'; -import { Grid, Typography } from '@mui/material'; import { Button, AppCircularProgress, DialogWrapper } from 'components/shared/elements'; import type { SerializeDateToNumber } from 'redux/interfaces'; import AlertTypeRange from './AlertTypeRange/AlertTypeRange'; diff --git a/odd-platform-ui/src/components/DataEntityDetails/DataEntityDetailsHeader/DataEntityDetailsHeader.tsx b/odd-platform-ui/src/components/DataEntityDetails/DataEntityDetailsHeader/DataEntityDetailsHeader.tsx index 8048ee13c..905fb7976 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/DataEntityDetailsHeader/DataEntityDetailsHeader.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/DataEntityDetailsHeader/DataEntityDetailsHeader.tsx @@ -1,5 +1,6 @@ import React from 'react'; import { Grid, Typography } from '@mui/material'; +import { useTranslation } from 'react-i18next'; import { Button, EntityClassItem, @@ -15,7 +16,6 @@ import { AddIcon, EditIcon, SlackIcon, TimeGapIcon } from 'components/shared/ico import { useAppDateTime } from 'lib/hooks'; import { useAppSelector } from 'redux/lib/hooks'; import { getIsDataEntityBelongsToClass, getIsEntityStatusDeleted } from 'redux/selectors'; -import { useTranslation } from 'react-i18next'; import DataEntityGroupForm from '../DataEntityGroup/DataEntityGroupForm/DataEntityGroupForm'; import CreateMessageForm from '../DataCollaboration/CreateMessageForm/CreateMessageForm'; import InternalNameFormDialog from '../InternalNameFormDialog/InternalNameFormDialog'; diff --git a/odd-platform-ui/src/components/DataEntityDetails/DataEntityDetailsStyles.ts b/odd-platform-ui/src/components/DataEntityDetails/DataEntityDetailsStyles.ts index 6763542cb..e949c9b34 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/DataEntityDetailsStyles.ts +++ b/odd-platform-ui/src/components/DataEntityDetails/DataEntityDetailsStyles.ts @@ -1,5 +1,5 @@ -import { maxContentWidthWithoutSidebar } from 'lib/constants'; import styled from 'styled-components'; +import { maxContentWidthWithoutSidebar } from 'lib/constants'; export const Container = styled('div')(({ theme }) => ({ margin: '0 auto', diff --git a/odd-platform-ui/src/components/DataEntityDetails/DataEntityDetailsTabs/DataEntityDetailsTabs.tsx b/odd-platform-ui/src/components/DataEntityDetails/DataEntityDetailsTabs/DataEntityDetailsTabs.tsx index 2aba6a3ec..57bed0c4e 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/DataEntityDetailsTabs/DataEntityDetailsTabs.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/DataEntityDetailsTabs/DataEntityDetailsTabs.tsx @@ -1,4 +1,5 @@ import React from 'react'; +import { useTranslation } from 'react-i18next'; import { type AppTabItem, AppTabs } from 'components/shared/elements'; import { useAppParams, useAppPaths, useQueryParams } from 'lib/hooks'; import { @@ -13,7 +14,6 @@ import { type ActivityQuery, defaultActivityQuery, } from 'components/shared/elements/Activity/common'; -import { useTranslation } from 'react-i18next'; import { defaultLineageQuery } from '../Lineage/HierarchyLineage/lineageLib/constants'; import { defaultDEGLineageQuery } from '../Lineage/DEGLineage/lib/constants'; diff --git a/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/DatasetStructureCompare/DatasetStructureCompare.tsx b/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/DatasetStructureCompare/DatasetStructureCompare.tsx index 288d853db..ac3b7dfeb 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/DatasetStructureCompare/DatasetStructureCompare.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/DatasetStructureCompare/DatasetStructureCompare.tsx @@ -1,4 +1,5 @@ import React, { type FC } from 'react'; +import { useAtom } from 'jotai'; import { useAppParams, useQueryParams } from 'lib/hooks'; import { useAppSelector } from 'redux/lib/hooks'; import { getDatasetVersions } from 'redux/selectors'; @@ -9,7 +10,6 @@ import { EmptyContentPlaceholder, } from 'components/shared/elements'; import type { ErrorState } from 'redux/interfaces'; -import { useAtom } from 'jotai'; import { showOnlyChangesAtom } from './lib/atoms'; import DatasetStructureCompareList from './DatasetStructureCompareList/DatasetStructureCompareList'; import type { StructureCompareQueryParams } from './lib/interfaces'; diff --git a/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/DatasetStructureCompare/DatasetStructureCompareHeader/DatasetStructureCompareHeader.tsx b/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/DatasetStructureCompare/DatasetStructureCompareHeader/DatasetStructureCompareHeader.tsx index 1e1c0cdd4..f81a392d0 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/DatasetStructureCompare/DatasetStructureCompareHeader/DatasetStructureCompareHeader.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/DatasetStructureCompare/DatasetStructureCompareHeader/DatasetStructureCompareHeader.tsx @@ -1,11 +1,11 @@ import React, { type FC, useCallback } from 'react'; import type { SelectChangeEvent } from '@mui/material'; import { Box, FormControlLabel, Grid, Typography } from '@mui/material'; +import { useNavigate } from 'react-router-dom'; +import { useAtom } from 'jotai'; import { Button, Checkbox, AppMenuItem, AppSelect } from 'components/shared/elements'; import { useAppDateTime, useAppParams, useAppPaths, useQueryParams } from 'lib/hooks'; -import { useNavigate } from 'react-router-dom'; import type { DataSetVersion } from 'generated-sources'; -import { useAtom } from 'jotai'; import { showOnlyChangesAtom } from '../lib/atoms'; import { defaultStructureCompareQuery } from '../lib/constants'; import type { StructureCompareQueryParams } from '../lib/interfaces'; diff --git a/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/DatasetStructureOverview/DatasetStructureOverview.tsx b/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/DatasetStructureOverview/DatasetStructureOverview.tsx index 88587b00a..e11a10ccf 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/DatasetStructureOverview/DatasetStructureOverview.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/DatasetStructureOverview/DatasetStructureOverview.tsx @@ -1,5 +1,6 @@ import React, { useEffect } from 'react'; import { Box } from '@mui/material'; +import { useNavigate } from 'react-router-dom'; import { fetchDataSetStructure, fetchDataSetStructureLatest } from 'redux/thunks'; import { getDatasetStats, @@ -14,7 +15,6 @@ import { import { AppErrorPage, EmptyContentPlaceholder } from 'components/shared/elements'; import { useAppParams, useAppPaths } from 'lib/hooks'; import { useAppDispatch, useAppSelector } from 'redux/lib/hooks'; -import { useNavigate } from 'react-router-dom'; import DatasetStructureOverviewProvider from './lib/DatasetStructureOverviewProvider'; import DatasetStructureSkeleton from './DatasetStructureSkeleton/DatasetStructureSkeleton'; import DatasetStructureView from './DatasetStructureView/DatasetStructureView'; diff --git a/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/DatasetStructureOverview/DatasetStructureView/DatasetFieldOverview/DatasetFieldDescription/DatasetFieldDescriptionPreview/DatasetFieldDescriptionPreview.tsx b/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/DatasetStructureOverview/DatasetStructureView/DatasetFieldOverview/DatasetFieldDescription/DatasetFieldDescriptionPreview/DatasetFieldDescriptionPreview.tsx index 52d847bbb..18e039102 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/DatasetStructureOverview/DatasetStructureView/DatasetFieldOverview/DatasetFieldDescription/DatasetFieldDescriptionPreview/DatasetFieldDescriptionPreview.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/DatasetStructureOverview/DatasetStructureView/DatasetFieldOverview/DatasetFieldDescription/DatasetFieldDescriptionPreview/DatasetFieldDescriptionPreview.tsx @@ -1,6 +1,6 @@ import React, { type FC } from 'react'; -import { Markdown } from 'components/shared/elements'; import { Typography } from '@mui/material'; +import { Markdown } from 'components/shared/elements'; interface DatasetFieldDescriptionPreviewProps { isDescriptionEmpty: boolean; diff --git a/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/DatasetStructureOverview/DatasetStructureView/DatasetFieldOverview/DatasetFieldMetrics/DatasetFieldMetrics.tsx b/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/DatasetStructureOverview/DatasetStructureView/DatasetFieldOverview/DatasetFieldMetrics/DatasetFieldMetrics.tsx index 1c9ceaa86..049a3c5af 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/DatasetStructureOverview/DatasetStructureView/DatasetFieldOverview/DatasetFieldMetrics/DatasetFieldMetrics.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/DatasetStructureOverview/DatasetStructureView/DatasetFieldOverview/DatasetFieldMetrics/DatasetFieldMetrics.tsx @@ -1,8 +1,8 @@ import React from 'react'; -import type { MetricFamily as MetricFamilyType } from 'generated-sources'; import { Grid, Typography } from '@mui/material'; -import { AppCircularProgress, MetricFamily } from 'components/shared/elements'; import { useTranslation } from 'react-i18next'; +import type { MetricFamily as MetricFamilyType } from 'generated-sources'; +import { AppCircularProgress, MetricFamily } from 'components/shared/elements'; import * as S from '../DatasetFieldOverview.styles'; interface DatasetFieldMetricsProps { diff --git a/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/DatasetStructureOverview/DatasetStructureView/DatasetFieldOverview/DatasetFieldOverviewEnums/DatasetFieldOverviewEnums.tsx b/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/DatasetStructureOverview/DatasetStructureView/DatasetFieldOverview/DatasetFieldOverviewEnums/DatasetFieldOverviewEnums.tsx index a9da9102e..a40641f50 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/DatasetStructureOverview/DatasetStructureView/DatasetFieldOverview/DatasetFieldOverviewEnums/DatasetFieldOverviewEnums.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/DatasetStructureOverview/DatasetStructureView/DatasetFieldOverview/DatasetFieldOverviewEnums/DatasetFieldOverviewEnums.tsx @@ -1,5 +1,6 @@ import React from 'react'; import { Grid, Typography } from '@mui/material'; +import { useTranslation } from 'react-i18next'; import { WithPermissions } from 'components/shared/contexts'; import type { DataSetField } from 'generated-sources'; import { Permission } from 'generated-sources'; @@ -9,7 +10,6 @@ import { useAppDispatch, useAppSelector } from 'redux/lib/hooks'; import { getDatasetFieldEnums, getDatasetFieldEnumsFetchingError } from 'redux/selectors'; import { resetLoaderByAction } from 'redux/slices/loader.slice'; import { fetchDataSetFieldEnumActionType } from 'redux/actions'; -import { useTranslation } from 'react-i18next'; import * as S from '../DatasetFieldOverview.styles'; import DatasetFieldEnumsForm from '../DatasetFieldEnumsForm/DatasetFieldEnumsForm'; diff --git a/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/DatasetStructureOverview/DatasetStructureView/DatasetFieldOverview/DatasetFieldStats/DatasetFieldStats.tsx b/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/DatasetStructureOverview/DatasetStructureView/DatasetFieldOverview/DatasetFieldStats/DatasetFieldStats.tsx index 7052912f5..767797ce2 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/DatasetStructureOverview/DatasetStructureView/DatasetFieldOverview/DatasetFieldStats/DatasetFieldStats.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/DatasetStructureOverview/DatasetStructureView/DatasetFieldOverview/DatasetFieldStats/DatasetFieldStats.tsx @@ -1,13 +1,13 @@ import React from 'react'; import { Grid, Typography } from '@mui/material'; +import round from 'lodash/round'; +import { useTranslation } from 'react-i18next'; import type { DataSetFormattedStats, DataSetFormattedStatsKeys } from 'redux/interfaces'; import { DatasetStatsLabelMap } from 'redux/interfaces'; import { LabeledInfoItem, NumberFormatted } from 'components/shared/elements'; import type { DataSetField, DataSetStats } from 'generated-sources'; import { DataSetFieldTypeTypeEnum } from 'generated-sources'; -import round from 'lodash/round'; import { useAppDateTime } from 'lib/hooks'; -import { useTranslation } from 'react-i18next'; import * as S from './DatasetField.styles'; interface DatasetFieldStatsProps { diff --git a/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/DatasetStructureOverview/DatasetStructureView/DatasetFieldOverview/DatasetFieldTerms/DatasetFieldTerms.tsx b/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/DatasetStructureOverview/DatasetStructureView/DatasetFieldOverview/DatasetFieldTerms/DatasetFieldTerms.tsx index 1d9a5d9f3..11f3cea99 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/DatasetStructureOverview/DatasetStructureView/DatasetFieldOverview/DatasetFieldTerms/DatasetFieldTerms.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/DatasetStructureOverview/DatasetStructureView/DatasetFieldOverview/DatasetFieldTerms/DatasetFieldTerms.tsx @@ -1,5 +1,6 @@ import React, { type FC, useCallback } from 'react'; import { Grid, Typography } from '@mui/material'; +import { useTranslation } from 'react-i18next'; import { Button } from 'components/shared/elements'; import { WithPermissions } from 'components/shared/contexts'; import type { DataSetField, LinkedTerm } from 'generated-sources'; @@ -9,7 +10,6 @@ import { addDatasetFieldTerm, deleteDatasetFieldTerm, } from 'redux/slices/datasetStructure.slice'; -import { useTranslation } from 'react-i18next'; import * as S from '../DatasetFieldOverview.styles'; import TermItem from './TermItem/TermItem'; import AssignFieldTermForm from './AssignFieldTermForm/AssignFieldTermForm'; diff --git a/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/DatasetStructureOverview/DatasetStructureView/DatasetFieldOverview/DatasetFieldTerms/TermItem/TermItem.tsx b/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/DatasetStructureOverview/DatasetStructureView/DatasetFieldOverview/DatasetFieldTerms/TermItem/TermItem.tsx index 60ac59a01..ddb1688b9 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/DatasetStructureOverview/DatasetStructureView/DatasetFieldOverview/DatasetFieldTerms/TermItem/TermItem.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/DatasetStructureOverview/DatasetStructureView/DatasetFieldOverview/DatasetFieldTerms/TermItem/TermItem.tsx @@ -1,10 +1,10 @@ import React, { type FC, useCallback } from 'react'; +import { Box } from '@mui/material'; import { Permission, type TermRef } from 'generated-sources'; import { WithPermissions } from 'components/shared/contexts'; import { Button, CollapsibleInfoContainer, InfoItem } from 'components/shared/elements'; import { DeleteIcon, LinkedTermIcon } from 'components/shared/icons'; import { useAppPaths, useDeleteDatasetFieldTerm } from 'lib/hooks'; -import { Box } from '@mui/material'; interface TermItemProps { name: TermRef['name']; diff --git a/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/DatasetStructureOverview/DatasetStructureView/DatasetStructureHeader/DatasetStructureHeader.tsx b/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/DatasetStructureOverview/DatasetStructureView/DatasetStructureHeader/DatasetStructureHeader.tsx index 36d634c23..df131d917 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/DatasetStructureOverview/DatasetStructureView/DatasetStructureHeader/DatasetStructureHeader.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/DatasetStructureOverview/DatasetStructureView/DatasetStructureHeader/DatasetStructureHeader.tsx @@ -75,10 +75,6 @@ const DatasetStructureHeader: FC = () => { handleSearch(searchQuery); }, [handleSearch, searchQuery]); - const clearSearchField = useCallback(() => { - setSearchQuery(''); - }, [setSearchQuery]); - return ( { diff --git a/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/DatasetStructureOverview/DatasetStructureView/DatasetStructureHeader/DatasetStructureTypeCounts/DatasetStructureTypeCountLabel/DatasetStructureTypeCountLabelStyles.ts b/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/DatasetStructureOverview/DatasetStructureView/DatasetStructureHeader/DatasetStructureTypeCounts/DatasetStructureTypeCountLabel/DatasetStructureTypeCountLabelStyles.ts index 92d2f953e..9606dcd0e 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/DatasetStructureOverview/DatasetStructureView/DatasetStructureHeader/DatasetStructureTypeCounts/DatasetStructureTypeCountLabel/DatasetStructureTypeCountLabelStyles.ts +++ b/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/DatasetStructureOverview/DatasetStructureView/DatasetStructureHeader/DatasetStructureTypeCounts/DatasetStructureTypeCountLabel/DatasetStructureTypeCountLabelStyles.ts @@ -1,6 +1,6 @@ import { Box } from '@mui/material'; -import type { DataSetFieldTypeTypeEnum } from 'generated-sources'; import styled from 'styled-components'; +import type { DataSetFieldTypeTypeEnum } from 'generated-sources'; export const Container = styled(Box)<{ $typeName: DataSetFieldTypeTypeEnum; diff --git a/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/DatasetStructureOverview/DatasetStructureView/DatasetStructureHeader/DatasetStructureTypeCounts/DatasetStructureTypeCounts.tsx b/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/DatasetStructureOverview/DatasetStructureView/DatasetStructureHeader/DatasetStructureTypeCounts/DatasetStructureTypeCounts.tsx index 0201afcfd..4e51bc573 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/DatasetStructureOverview/DatasetStructureView/DatasetStructureHeader/DatasetStructureTypeCounts/DatasetStructureTypeCounts.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/DatasetStructureOverview/DatasetStructureView/DatasetStructureHeader/DatasetStructureTypeCounts/DatasetStructureTypeCounts.tsx @@ -1,9 +1,9 @@ import React from 'react'; +import TruncateMarkup from 'react-truncate-markup'; +import { Grid } from '@mui/material'; import type { DataSetFieldTypeTypeEnum } from 'generated-sources'; import type { DataSetStructureTypesCount } from 'redux/interfaces'; -import TruncateMarkup from 'react-truncate-markup'; import { Button } from 'components/shared/elements'; -import { Grid } from '@mui/material'; import DatasetStructureTypeCountLabel from './DatasetStructureTypeCountLabel/DatasetStructureTypeCountLabel'; interface DatasetStructureTypeCountsProps { diff --git a/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/shared/TypeFieldLabel/TypeFieldLabel.styles.ts b/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/shared/TypeFieldLabel/TypeFieldLabel.styles.ts index 47ecf6484..adcc9df3c 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/shared/TypeFieldLabel/TypeFieldLabel.styles.ts +++ b/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/shared/TypeFieldLabel/TypeFieldLabel.styles.ts @@ -1,6 +1,6 @@ import { Box } from '@mui/material'; -import type { DataSetFieldTypeTypeEnum } from 'generated-sources'; import styled from 'styled-components'; +import type { DataSetFieldTypeTypeEnum } from 'generated-sources'; export const Content = styled(Box)<{ $typeName: DataSetFieldTypeTypeEnum; diff --git a/odd-platform-ui/src/components/DataEntityDetails/Lineage/DEGLineage/DEGLineage.tsx b/odd-platform-ui/src/components/DataEntityDetails/Lineage/DEGLineage/DEGLineage.tsx index cf3166832..e897de0d2 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/Lineage/DEGLineage/DEGLineage.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/Lineage/DEGLineage/DEGLineage.tsx @@ -1,7 +1,7 @@ import React, { useMemo } from 'react'; +import { useAtom } from 'jotai'; import { useAppParams } from 'lib/hooks'; import { useDataEntityGroupLineage } from 'lib/hooks/api'; -import { useAtom } from 'jotai'; import { AppCircularProgress, EmptyContentPlaceholder } from 'components/shared/elements'; import DEGLineageControls from './components/DEGLineageControls/DEGLineageControls'; import DEGLineageLayouter from './DEGLineageLayouter/DEGLineageLayouter'; diff --git a/odd-platform-ui/src/components/DataEntityDetails/Lineage/DEGLineage/components/DEGLineageControls/DEGLineageControls.tsx b/odd-platform-ui/src/components/DataEntityDetails/Lineage/DEGLineage/components/DEGLineageControls/DEGLineageControls.tsx index b3aca9867..1ac13055a 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/Lineage/DEGLineage/components/DEGLineageControls/DEGLineageControls.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/Lineage/DEGLineage/components/DEGLineageControls/DEGLineageControls.tsx @@ -1,9 +1,9 @@ import React, { type FC, useCallback } from 'react'; +import { useSetAtom } from 'jotai'; +import { useTranslation } from 'react-i18next'; import { AppTabs, Button } from 'components/shared/elements'; import { TargetIcon } from 'components/shared/icons'; import { useQueryParams } from 'lib/hooks'; -import { useSetAtom } from 'jotai'; -import { useTranslation } from 'react-i18next'; import type { DEGLineageQueryParams } from '../../lib/interfaces'; import { defaultDEGLineageQuery } from '../../lib/constants'; import { isFitClickedAtom, isLayoutedAtom } from '../../lib/atoms'; diff --git a/odd-platform-ui/src/components/DataEntityDetails/Lineage/DEGLineage/components/Node/Node.tsx b/odd-platform-ui/src/components/DataEntityDetails/Lineage/DEGLineage/components/Node/Node.tsx index fe047f0d5..c05489575 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/Lineage/DEGLineage/components/Node/Node.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/Lineage/DEGLineage/components/Node/Node.tsx @@ -1,10 +1,10 @@ import React, { forwardRef, memo, useCallback } from 'react'; import { Typography } from '@mui/material'; -import { useAppPaths } from 'lib/hooks'; import { useNavigate } from 'react-router-dom'; +import { useTranslation } from 'react-i18next'; +import { useAppPaths } from 'lib/hooks'; import { EntityClassItem, LabeledInfoItem } from 'components/shared/elements'; import { EmptyIcon } from 'components/shared/icons'; -import { useTranslation } from 'react-i18next'; import * as S from './Node.styles'; import type { Node as NodeType } from '../../lib/interfaces'; diff --git a/odd-platform-ui/src/components/DataEntityDetails/Lineage/DEGLineage/lib/hooks/useDEGZoom.ts b/odd-platform-ui/src/components/DataEntityDetails/Lineage/DEGLineage/lib/hooks/useDEGZoom.ts index 22059a2cb..68cb57fd4 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/Lineage/DEGLineage/lib/hooks/useDEGZoom.ts +++ b/odd-platform-ui/src/components/DataEntityDetails/Lineage/DEGLineage/lib/hooks/useDEGZoom.ts @@ -1,8 +1,8 @@ import { useCallback, useEffect, useMemo, useRef, useState } from 'react'; -import { useQueryParams } from 'lib/hooks'; import { useAtom } from 'jotai'; import { zoom as D3Zoom, zoomIdentity } from 'd3-zoom'; import { select } from 'd3-selection'; +import { useQueryParams } from 'lib/hooks'; import type { DEGLineageQueryParams } from '../interfaces'; import { defaultDEGLineageQuery, diff --git a/odd-platform-ui/src/components/DataEntityDetails/Lineage/DEGLineage/lib/interfaces.ts b/odd-platform-ui/src/components/DataEntityDetails/Lineage/DEGLineage/lib/interfaces.ts index 915b9df31..79436afa1 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/Lineage/DEGLineage/lib/interfaces.ts +++ b/odd-platform-ui/src/components/DataEntityDetails/Lineage/DEGLineage/lib/interfaces.ts @@ -1,5 +1,5 @@ -import type { DataEntityLineageNode } from 'generated-sources'; import type { ElkExtendedEdge, ElkNode } from 'elkjs/lib/elk.bundled'; +import type { DataEntityLineageNode } from 'generated-sources'; export type NodeData = Omit< DataEntityLineageNode, diff --git a/odd-platform-ui/src/components/DataEntityDetails/Lineage/HierarchyLineage/HierarchyLineage.tsx b/odd-platform-ui/src/components/DataEntityDetails/Lineage/HierarchyLineage/HierarchyLineage.tsx index 88dc781a7..9d22c2472 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/Lineage/HierarchyLineage/HierarchyLineage.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/Lineage/HierarchyLineage/HierarchyLineage.tsx @@ -1,4 +1,6 @@ import React from 'react'; +import { Zoom } from '@visx/zoom'; +import type { TransformMatrix } from '@visx/zoom/lib/types'; import { useAppDispatch, useAppSelector } from 'redux/lib/hooks'; import { getDataEntityLineage, @@ -9,7 +11,6 @@ import { } from 'redux/selectors'; import { useAppParams, useQueryParams } from 'lib/hooks'; import { AppCircularProgress, AppErrorPage } from 'components/shared/elements'; -import { Zoom } from '@visx/zoom'; import { fetchDataEntityDownstreamLineage, fetchDataEntityUpstreamLineage, @@ -18,7 +19,6 @@ import { expandEntitiesFromDownstreamGroup, expandEntitiesFromUpstreamGroup, } from 'redux/slices/dataEntityLineage/dataEntityLineage.slice'; -import type { TransformMatrix } from '@visx/zoom/lib/types'; import type { LineageQueryParams } from './lineageLib/interfaces'; import ZoomableLineage from './ZoomableLineage/ZoomableLineage'; import { diff --git a/odd-platform-ui/src/components/DataEntityDetails/Lineage/HierarchyLineage/ZoomableLineage/LineageControls/LineageControls.tsx b/odd-platform-ui/src/components/DataEntityDetails/Lineage/HierarchyLineage/ZoomableLineage/LineageControls/LineageControls.tsx index f7753a58f..db1fd198a 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/Lineage/HierarchyLineage/ZoomableLineage/LineageControls/LineageControls.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/Lineage/HierarchyLineage/ZoomableLineage/LineageControls/LineageControls.tsx @@ -1,11 +1,11 @@ import React from 'react'; +import { FormControlLabel, type SelectChangeEvent, Typography } from '@mui/material'; +import { useTranslation } from 'react-i18next'; import { Checkbox, AppSelect, AppTabs, Button } from 'components/shared/elements'; import { TargetIcon } from 'components/shared/icons'; -import { FormControlLabel, type SelectChangeEvent, Typography } from '@mui/material'; import { useQueryParams } from 'lib/hooks'; import { expandAllGroups } from 'redux/slices/dataEntityLineage/dataEntityLineage.slice'; import { useAppDispatch } from 'redux/lib/hooks'; -import { useTranslation } from 'react-i18next'; import type { LineageQueryParams } from '../../lineageLib/interfaces'; import * as S from './LineageControlsStyles'; import { defaultLineageQuery, lineageDepth } from '../../lineageLib/constants'; diff --git a/odd-platform-ui/src/components/DataEntityDetails/Lineage/HierarchyLineage/ZoomableLineage/LineageGraph/Link/Link.tsx b/odd-platform-ui/src/components/DataEntityDetails/Lineage/HierarchyLineage/ZoomableLineage/LineageGraph/Link/Link.tsx index cc4b45530..5a4e02e2e 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/Lineage/HierarchyLineage/ZoomableLineage/LineageGraph/Link/Link.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/Lineage/HierarchyLineage/ZoomableLineage/LineageGraph/Link/Link.tsx @@ -1,10 +1,10 @@ import React, { useMemo } from 'react'; -import { type TreeLinkDatum } from 'redux/interfaces'; import { linkHorizontal } from 'd3-shape'; import { MarkerArrow } from '@visx/marker'; import { curveBasis } from '@visx/curve'; import { LinePath } from '@visx/shape'; import type { DefaultLinkObject } from 'd3'; +import { type TreeLinkDatum } from 'redux/interfaces'; import LineageContext from '../../../lineageLib/LineageContext/LineageContext'; interface LinkProps { diff --git a/odd-platform-ui/src/components/DataEntityDetails/Lineage/HierarchyLineage/ZoomableLineage/LineageGraph/Node/Classes/Classes.tsx b/odd-platform-ui/src/components/DataEntityDetails/Lineage/HierarchyLineage/ZoomableLineage/LineageGraph/Node/Classes/Classes.tsx index 3e296fa45..053a8c914 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/Lineage/HierarchyLineage/ZoomableLineage/LineageGraph/Node/Classes/Classes.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/Lineage/HierarchyLineage/ZoomableLineage/LineageGraph/Node/Classes/Classes.tsx @@ -1,7 +1,7 @@ import React from 'react'; +import { Group } from '@visx/group'; import { DataEntityClassLabelMap } from 'lib/constants'; import type { DataEntityClass } from 'generated-sources'; -import { Group } from '@visx/group'; import * as S from './ClassesStyles'; import type { NodeSize } from '../../../../lineageLib/interfaces'; diff --git a/odd-platform-ui/src/components/DataEntityDetails/Lineage/HierarchyLineage/ZoomableLineage/LineageGraph/Node/Info/Info.tsx b/odd-platform-ui/src/components/DataEntityDetails/Lineage/HierarchyLineage/ZoomableLineage/LineageGraph/Node/Info/Info.tsx index bd07bbb68..f7e58ccfe 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/Lineage/HierarchyLineage/ZoomableLineage/LineageGraph/Node/Info/Info.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/Lineage/HierarchyLineage/ZoomableLineage/LineageGraph/Node/Info/Info.tsx @@ -1,5 +1,6 @@ import React from 'react'; import { Group } from '@visx/group'; +import { useTranslation } from 'react-i18next'; import type { DataEntityLineageNode, DataSource } from 'generated-sources'; import { TruncatedSVGText } from 'components/shared/elements'; import type { StreamType } from 'redux/interfaces'; @@ -11,7 +12,6 @@ import { import GroupedEntitiesListModal from 'components/DataEntityDetails/Lineage/HierarchyLineage/ZoomableLineage/LineageGraph/Node/Info/GroupedEntitiesListModal/GroupedEntitiesListModal'; import ItemsButton from 'components/DataEntityDetails/Lineage/HierarchyLineage/ZoomableLineage/LineageGraph/Node/Info/ItemsButton/ItemsButton'; import * as S from 'components/DataEntityDetails/Lineage/HierarchyLineage/ZoomableLineage/LineageGraph/Node/Info/InfoStyles'; -import { useTranslation } from 'react-i18next'; interface InfoProps { id: number; diff --git a/odd-platform-ui/src/components/DataEntityDetails/Lineage/HierarchyLineage/ZoomableLineage/LineageGraph/Node/LoadMoreButton/LoadMoreButton.tsx b/odd-platform-ui/src/components/DataEntityDetails/Lineage/HierarchyLineage/ZoomableLineage/LineageGraph/Node/LoadMoreButton/LoadMoreButton.tsx index 75dc36342..b9f2188da 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/Lineage/HierarchyLineage/ZoomableLineage/LineageGraph/Node/LoadMoreButton/LoadMoreButton.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/Lineage/HierarchyLineage/ZoomableLineage/LineageGraph/Node/LoadMoreButton/LoadMoreButton.tsx @@ -1,4 +1,5 @@ import React from 'react'; +import { Group } from '@visx/group'; import { useAppDispatch, useAppSelector } from 'redux/lib/hooks'; import { fetchDataEntityDownstreamLineage, @@ -9,7 +10,6 @@ import { getDownstreamLineageFetchingStatuses, getUpstreamLineageFetchingStatuses, } from 'redux/selectors'; -import { Group } from '@visx/group'; import { useQueryParams } from 'lib/hooks'; import LineageContext from 'components/DataEntityDetails/Lineage/HierarchyLineage/lineageLib/LineageContext/LineageContext'; import * as S from 'components/DataEntityDetails/Lineage/HierarchyLineage/ZoomableLineage/LineageGraph/Node/LoadMoreButton/LoadMoreButtonStyles'; diff --git a/odd-platform-ui/src/components/DataEntityDetails/Lineage/HierarchyLineage/ZoomableLineage/LineageGraph/Node/Node.tsx b/odd-platform-ui/src/components/DataEntityDetails/Lineage/HierarchyLineage/ZoomableLineage/LineageGraph/Node/Node.tsx index 1374e0d1e..2aef418f4 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/Lineage/HierarchyLineage/ZoomableLineage/LineageGraph/Node/Node.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/Lineage/HierarchyLineage/ZoomableLineage/LineageGraph/Node/Node.tsx @@ -1,11 +1,11 @@ import React from 'react'; import type { HierarchyPointLink, HierarchyPointNode } from 'd3-hierarchy'; import { useNavigate } from 'react-router-dom'; +import { Group } from '@visx/group'; import type { TreeNodeDatum } from 'redux/interfaces/graph'; import { DataEntityClassNameEnum } from 'generated-sources'; import { type StreamType } from 'redux/interfaces'; import { useAppPaths, useQueryParams } from 'lib/hooks'; -import { Group } from '@visx/group'; import type { NodeSize } from '../../../lineageLib/interfaces'; import { getHighLightedLinks } from '../../../lineageLib/helpers'; import NodeTitle from './NodeTitle/NodeTitle'; diff --git a/odd-platform-ui/src/components/DataEntityDetails/Lineage/HierarchyLineage/ZoomableLineage/ZoomableLineage.tsx b/odd-platform-ui/src/components/DataEntityDetails/Lineage/HierarchyLineage/ZoomableLineage/ZoomableLineage.tsx index 413c2708e..dd06e7c30 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/Lineage/HierarchyLineage/ZoomableLineage/ZoomableLineage.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/Lineage/HierarchyLineage/ZoomableLineage/ZoomableLineage.tsx @@ -1,8 +1,8 @@ import React from 'react'; import { Group } from '@visx/group'; import { Grid } from '@mui/material'; -import { type DataEntityLineageById } from 'redux/interfaces'; import { localPoint } from '@visx/event'; +import { type DataEntityLineageById } from 'redux/interfaces'; import { useQueryParams } from 'lib/hooks'; import { defaultLineageQuery, initialTransformMatrix } from '../lineageLib/constants'; import type { LineageQueryParams, Zoom } from '../lineageLib/interfaces'; diff --git a/odd-platform-ui/src/components/DataEntityDetails/Lineage/HierarchyLineage/lineageLib/LineageContext/LineageProvider.tsx b/odd-platform-ui/src/components/DataEntityDetails/Lineage/HierarchyLineage/lineageLib/LineageContext/LineageProvider.tsx index 17eda231e..278a4d20c 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/Lineage/HierarchyLineage/lineageLib/LineageContext/LineageProvider.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/Lineage/HierarchyLineage/lineageLib/LineageContext/LineageProvider.tsx @@ -1,6 +1,6 @@ import React from 'react'; -import { type TreeNodeDatum } from 'redux/interfaces'; import type { HierarchyPointLink, HierarchyPointNode } from 'd3-hierarchy'; +import { type TreeNodeDatum } from 'redux/interfaces'; import { useQueryParams } from 'lib/hooks'; import type { LineageQueryParams } from 'components/DataEntityDetails/Lineage/HierarchyLineage/lineageLib/interfaces'; import { diff --git a/odd-platform-ui/src/components/DataEntityDetails/Lineage/HierarchyLineage/lineageLib/generateGraph.ts b/odd-platform-ui/src/components/DataEntityDetails/Lineage/HierarchyLineage/lineageLib/generateGraph.ts index 08cfbdff1..8af07403e 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/Lineage/HierarchyLineage/lineageLib/generateGraph.ts +++ b/odd-platform-ui/src/components/DataEntityDetails/Lineage/HierarchyLineage/lineageLib/generateGraph.ts @@ -1,14 +1,14 @@ import { hierarchy, tree as d3tree } from 'd3-hierarchy'; +import maxBy from 'lodash/maxBy'; +import { v4 as uuidv4 } from 'uuid'; +import entries from 'lodash/entries'; +import type { DataEntityLineageNode } from 'generated-sources'; import type { DataEntityLineageById, DataEntityLineageStreamById, TreeLinkDatum, TreeNodeDatum, } from 'redux/interfaces'; -import maxBy from 'lodash/maxBy'; -import type { DataEntityLineageNode } from 'generated-sources'; -import { v4 as uuidv4 } from 'uuid'; -import entries from 'lodash/entries'; import type { GenerateGraphProps, LineageGraphState, diff --git a/odd-platform-ui/src/components/DataEntityDetails/Lineage/HierarchyLineage/lineageLib/helpers.ts b/odd-platform-ui/src/components/DataEntityDetails/Lineage/HierarchyLineage/lineageLib/helpers.ts index 3a981e6d1..ad6b98464 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/Lineage/HierarchyLineage/lineageLib/helpers.ts +++ b/odd-platform-ui/src/components/DataEntityDetails/Lineage/HierarchyLineage/lineageLib/helpers.ts @@ -1,5 +1,5 @@ -import type { StreamType, TreeLinkDatum, TreeNodeDatum } from 'redux/interfaces'; import type { HierarchyPointLink, HierarchyPointNode } from 'd3-hierarchy'; +import type { StreamType, TreeLinkDatum, TreeNodeDatum } from 'redux/interfaces'; import { INFO_MIN_ODDRN_HEIGHT, NODE_INDENT_LEFT, diff --git a/odd-platform-ui/src/components/DataEntityDetails/LinkedItemsList/LinkedItemsList.tsx b/odd-platform-ui/src/components/DataEntityDetails/LinkedItemsList/LinkedItemsList.tsx index 66491e502..b092a8971 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/LinkedItemsList/LinkedItemsList.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/LinkedItemsList/LinkedItemsList.tsx @@ -1,6 +1,7 @@ import React from 'react'; import { Typography } from '@mui/material'; import InfiniteScroll from 'react-infinite-scroll-component'; +import { useTranslation } from 'react-i18next'; import { EmptyContentPlaceholder } from 'components/shared/elements'; import { fetchDataEntityGroupLinkedList } from 'redux/thunks'; import { useAppParams } from 'lib/hooks'; @@ -10,7 +11,6 @@ import { getDEGLinkedListFetchingStatuses, } from 'redux/selectors'; import { useAppDispatch, useAppSelector } from 'redux/lib/hooks'; -import { useTranslation } from 'react-i18next'; import LinkedItem from './LinkedItem/LinkedItem'; import * as S from './LinkedItemsListStyles'; import LinkedListSkeleton from './LinkedListSkeleton/LinkedListSkeleton'; diff --git a/odd-platform-ui/src/components/DataEntityDetails/LinkedItemsList/LinkedItemsListStyles.ts b/odd-platform-ui/src/components/DataEntityDetails/LinkedItemsList/LinkedItemsListStyles.ts index 836e151fc..5a7f65161 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/LinkedItemsList/LinkedItemsListStyles.ts +++ b/odd-platform-ui/src/components/DataEntityDetails/LinkedItemsList/LinkedItemsListStyles.ts @@ -1,6 +1,6 @@ import { Grid } from '@mui/material'; -import { primaryTabsHeight, tabsContainerMargin, toolbarHeight } from 'lib/constants'; import styled from 'styled-components'; +import { primaryTabsHeight, tabsContainerMargin, toolbarHeight } from 'lib/constants'; export type ColType = 'col' | 'colxs' | 'colsm' | 'colmd' | 'collg'; export const colWidthStyles = { diff --git a/odd-platform-ui/src/components/DataEntityDetails/Metadata/MetadataValueEditor/MetadataValueEditor.tsx b/odd-platform-ui/src/components/DataEntityDetails/Metadata/MetadataValueEditor/MetadataValueEditor.tsx index 8c94a5bb1..8472c7831 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/Metadata/MetadataValueEditor/MetadataValueEditor.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/Metadata/MetadataValueEditor/MetadataValueEditor.tsx @@ -2,6 +2,7 @@ import React from 'react'; import { FormControlLabel, Grid, RadioGroup, type TextFieldProps } from '@mui/material'; import { Controller, useFormContext } from 'react-hook-form'; import { isAfter, isBefore, isValid } from 'date-fns'; +import { useTranslation } from 'react-i18next'; import { MetadataFieldType } from 'generated-sources'; import { AppDatePicker, @@ -11,7 +12,6 @@ import { minDate, } from 'components/shared/elements'; import { useAppDateTime } from 'lib/hooks'; -import { useTranslation } from 'react-i18next'; interface MetadataValueEditFieldProps { metadataType: MetadataFieldType | ''; @@ -26,7 +26,6 @@ const MetadataValueEditField: React.FC = ({ metadataValue, fieldName = 'value', labeled, - size, }) => { const { t } = useTranslation(); const { control } = useFormContext(); diff --git a/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewAttachments/AttachmentItem/FileAttachment.tsx b/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewAttachments/AttachmentItem/FileAttachment.tsx index d834c88ed..29e2df953 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewAttachments/AttachmentItem/FileAttachment.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewAttachments/AttachmentItem/FileAttachment.tsx @@ -1,4 +1,5 @@ import React, { type FC } from 'react'; +import { useTranslation } from 'react-i18next'; import type { DataEntityLink } from 'generated-sources'; import { Permission } from 'generated-sources'; import { Button, ConfirmationDialog } from 'components/shared/elements'; @@ -10,7 +11,6 @@ import { } from 'lib/hooks'; import { isImageFile } from 'lib/helpers'; import { WithPermissions } from 'components/shared/contexts'; -import { useTranslation } from 'react-i18next'; import * as S from './AttachmentItem.styles'; interface FileAttachmentProps { diff --git a/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewAttachments/AttachmentItem/LinkAttachment.tsx b/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewAttachments/AttachmentItem/LinkAttachment.tsx index 60cd177ba..05015045b 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewAttachments/AttachmentItem/LinkAttachment.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewAttachments/AttachmentItem/LinkAttachment.tsx @@ -1,11 +1,11 @@ import React, { type FC, memo } from 'react'; +import { useTranslation } from 'react-i18next'; import type { DataEntityLink } from 'generated-sources'; import { Permission } from 'generated-sources'; import { DeleteIcon, EditIcon, LinkIcon } from 'components/shared/icons'; import { Button, ConfirmationDialog } from 'components/shared/elements'; import { useAppParams, useDeleteDataEntityLink } from 'lib/hooks'; import { WithPermissions } from 'components/shared/contexts'; -import { useTranslation } from 'react-i18next'; import EditLinkForm from '../EditLinkForm/EditLinkForm'; import * as S from './AttachmentItem.styles'; diff --git a/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewAttachments/AttachmentsHeader/AttachmentsHeader.tsx b/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewAttachments/AttachmentsHeader/AttachmentsHeader.tsx index e1657ebea..3b1454cd7 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewAttachments/AttachmentsHeader/AttachmentsHeader.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewAttachments/AttachmentsHeader/AttachmentsHeader.tsx @@ -1,5 +1,6 @@ import React, { type FC } from 'react'; import { Typography } from '@mui/material'; +import { useTranslation } from 'react-i18next'; import { AppMenu, AppMenuItem, Button } from 'components/shared/elements'; import { AddIcon } from 'components/shared/icons'; import { WithPermissions } from 'components/shared/contexts'; @@ -7,7 +8,6 @@ import { Permission } from 'generated-sources'; import { useAppParams, useGetUploadOptions } from 'lib/hooks'; import { useAppSelector } from 'redux/lib/hooks'; import { getIsEntityStatusDeleted } from 'redux/selectors'; -import { useTranslation } from 'react-i18next'; import SaveLinksForm from '../SaveLinksForm/SaveLinksForm'; import SaveFilesForm from '../SaveFilesForm/SaveFilesForm'; import * as S from './AttachmentsHeader.styles'; diff --git a/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewAttachments/AttachmentsList/AttachmentsList.tsx b/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewAttachments/AttachmentsList/AttachmentsList.tsx index c1909b908..8c826484d 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewAttachments/AttachmentsList/AttachmentsList.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewAttachments/AttachmentsList/AttachmentsList.tsx @@ -1,9 +1,9 @@ import React, { type FC, useMemo, useRef, useState } from 'react'; import { Collapse } from '@mui/material'; +import { useTranslation } from 'react-i18next'; import { Button } from 'components/shared/elements'; import { ChevronIcon } from 'components/shared/icons'; import type { DataEntityFile, DataEntityLink } from 'generated-sources'; -import { useTranslation } from 'react-i18next'; import FileAttachment from '../AttachmentItem/FileAttachment'; import LinkAttachment from '../AttachmentItem/LinkAttachment'; import * as S from './AttachmentsList.styles'; diff --git a/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewAttachments/OverviewAttachments.tsx b/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewAttachments/OverviewAttachments.tsx index 4ef9fc7b9..e680c9c47 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewAttachments/OverviewAttachments.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewAttachments/OverviewAttachments.tsx @@ -1,8 +1,8 @@ import React, { type FC } from 'react'; import { Grid, Typography } from '@mui/material'; +import { useTranslation } from 'react-i18next'; import { AppCircularProgress, AppErrorBlock } from 'components/shared/elements'; import { useAppParams, useDataEntityAttachments } from 'lib/hooks'; -import { useTranslation } from 'react-i18next'; import AttachmentsList from './AttachmentsList/AttachmentsList'; import AttachmentsHeader from './AttachmentsHeader/AttachmentsHeader'; diff --git a/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewDataQualityReport/OverviewDQTestReport/OverviewDQTestReport.tsx b/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewDataQualityReport/OverviewDQTestReport/OverviewDQTestReport.tsx index 332981fdf..105f16575 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewDataQualityReport/OverviewDQTestReport/OverviewDQTestReport.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewDataQualityReport/OverviewDQTestReport/OverviewDQTestReport.tsx @@ -1,5 +1,7 @@ import React from 'react'; import { Grid, Typography } from '@mui/material'; +import omit from 'lodash/omit'; +import { useTranslation } from 'react-i18next'; import { type DataEntityRunStatus } from 'generated-sources'; import { getDatasetTestReport, @@ -7,9 +9,7 @@ import { } from 'redux/selectors'; import { Button, NumberFormatted } from 'components/shared/elements'; import { useAppPaths } from 'lib/hooks'; -import omit from 'lodash/omit'; import { useAppSelector } from 'redux/lib/hooks'; -import { useTranslation } from 'react-i18next'; import OverviewDQReportSkeleton from './OverviewDQReportSkeleton/OverviewDQReportSkeleton'; import * as S from './OverviewDQTestReportStyles'; diff --git a/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewDescription/InternalDescription/InternalDescriptionEdit/InternalDescriptionEdit.tsx b/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewDescription/InternalDescription/InternalDescriptionEdit/InternalDescriptionEdit.tsx index 16f4ffe0e..924e06da4 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewDescription/InternalDescription/InternalDescriptionEdit/InternalDescriptionEdit.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewDescription/InternalDescription/InternalDescriptionEdit/InternalDescriptionEdit.tsx @@ -1,6 +1,6 @@ import React, { type FC } from 'react'; -import { Button, Markdown } from 'components/shared/elements'; import { Box, Typography } from '@mui/material'; +import { Button, Markdown } from 'components/shared/elements'; import * as S from './InternalDescriptionEdit.styles'; interface InternalDescriptionEditProps { diff --git a/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewDescription/InternalDescription/InternalDescriptionPreview/InternalDescriptionPreview.tsx b/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewDescription/InternalDescription/InternalDescriptionPreview/InternalDescriptionPreview.tsx index 827e66753..6d7797d4c 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewDescription/InternalDescription/InternalDescriptionPreview/InternalDescriptionPreview.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewDescription/InternalDescription/InternalDescriptionPreview/InternalDescriptionPreview.tsx @@ -1,6 +1,6 @@ import React, { type FC, memo } from 'react'; -import { Button, Markdown } from 'components/shared/elements'; import { Grid, Typography } from '@mui/material'; +import { Button, Markdown } from 'components/shared/elements'; import { WithPermissions } from 'components/shared/contexts'; import { Permission } from 'generated-sources'; diff --git a/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewExpectations/OverviewExpectations.tsx b/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewExpectations/OverviewExpectations.tsx index 804134f6e..b30c4e059 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewExpectations/OverviewExpectations.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewExpectations/OverviewExpectations.tsx @@ -1,10 +1,10 @@ import React, { useState } from 'react'; -import type { DataQualityTestExpectation, LinkedUrl } from 'generated-sources'; import { Grid, Typography } from '@mui/material'; +import { useTranslation } from 'react-i18next'; +import type { DataQualityTestExpectation, LinkedUrl } from 'generated-sources'; import { Button } from 'components/shared/elements'; import { ChevronIcon, DropdownIcon } from 'components/shared/icons'; import { useCollapse } from 'lib/hooks'; -import { useTranslation } from 'react-i18next'; import * as S from './OverviewExpectationsStyles'; interface OverviewExpectationsProps { diff --git a/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewGeneral/OwnersSection/OwnersSection.tsx b/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewGeneral/OwnersSection/OwnersSection.tsx index 28140c51c..4a823ed67 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewGeneral/OwnersSection/OwnersSection.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewGeneral/OwnersSection/OwnersSection.tsx @@ -1,5 +1,6 @@ import React, { type FC } from 'react'; import { Grid, Typography } from '@mui/material'; +import { useTranslation } from 'react-i18next'; import { Button, LabeledInfoItem, LabelItem } from 'components/shared/elements'; import { AddIcon, EditIcon } from 'components/shared/icons'; import { useAppSelector } from 'redux/lib/hooks'; @@ -11,7 +12,6 @@ import { import { useAppParams } from 'lib/hooks'; import { WithPermissions } from 'components/shared/contexts'; import { Permission } from 'generated-sources'; -import { useTranslation } from 'react-i18next'; import OwnershipDeleteForm from './OwnershipDeleteForm/OwnershipDeleteForm'; import * as S from './OwnersSectionStyles'; import OwnershipForm from './OwnershipForm/OwnershipForm'; diff --git a/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewGeneral/OwnersSection/OwnershipDeleteForm/OwnershipDeleteForm.tsx b/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewGeneral/OwnersSection/OwnershipDeleteForm/OwnershipDeleteForm.tsx index a28d62677..92f2826cf 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewGeneral/OwnersSection/OwnershipDeleteForm/OwnershipDeleteForm.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewGeneral/OwnersSection/OwnershipDeleteForm/OwnershipDeleteForm.tsx @@ -1,10 +1,10 @@ import React, { type FC, useState } from 'react'; +import { FormControlLabel } from '@mui/material'; +import { useTranslation } from 'react-i18next'; import { Button, Checkbox, ConfirmationDialog } from 'components/shared/elements'; import { DeleteIcon } from 'components/shared/icons'; import { useAppDispatch } from 'redux/lib/hooks'; import { deleteDataEntityOwnership } from 'redux/thunks'; -import { FormControlLabel } from '@mui/material'; -import { useTranslation } from 'react-i18next'; interface OwnershipDeleteFormProps { ownerName: string; diff --git a/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewGeneral/OwnersSection/OwnershipForm/OwnershipForm.tsx b/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewGeneral/OwnersSection/OwnershipForm/OwnershipForm.tsx index 732095fc6..936d4339a 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewGeneral/OwnersSection/OwnershipForm/OwnershipForm.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewGeneral/OwnersSection/OwnershipForm/OwnershipForm.tsx @@ -1,6 +1,7 @@ import React from 'react'; import { FormControlLabel, Typography } from '@mui/material'; import { Controller, useForm } from 'react-hook-form'; +import { useTranslation } from 'react-i18next'; import { type Ownership, type OwnershipFormData, Permission } from 'generated-sources'; import { Checkbox, @@ -17,7 +18,6 @@ import { getDataEntityOwnerUpdatingStatuses, } from 'redux/selectors'; import { WithPermissions } from 'components/shared/contexts'; -import { useTranslation } from 'react-i18next'; interface OwnershipFormProps { dataEntityId: number; diff --git a/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewGroups/AddDataEntityToGroupForm/AddDataEntityToGroupForm.tsx b/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewGroups/AddDataEntityToGroupForm/AddDataEntityToGroupForm.tsx index 01d5a9f88..a7fad1cff 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewGroups/AddDataEntityToGroupForm/AddDataEntityToGroupForm.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewGroups/AddDataEntityToGroupForm/AddDataEntityToGroupForm.tsx @@ -1,6 +1,7 @@ import React from 'react'; import { Typography } from '@mui/material'; import { Controller, useForm } from 'react-hook-form'; +import { useTranslation } from 'react-i18next'; import { type DataEntityRef } from 'generated-sources'; import { DialogWrapper, @@ -13,7 +14,6 @@ import { getDataEntityClassesList, } from 'redux/selectors'; import { addDataEntityToGroup } from 'redux/thunks'; -import { useTranslation } from 'react-i18next'; interface AddDataEntityToGroupFormProps { btnCreateEl: JSX.Element; diff --git a/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewGroups/OverviewGroups.tsx b/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewGroups/OverviewGroups.tsx index e8daeb87b..a201ed7ce 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewGroups/OverviewGroups.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewGroups/OverviewGroups.tsx @@ -1,10 +1,10 @@ import React from 'react'; import { Box, Collapse, Grid, Typography } from '@mui/material'; +import { useTranslation } from 'react-i18next'; import { type DataEntityRef, Permission } from 'generated-sources'; import { Button } from 'components/shared/elements'; import { AddIcon } from 'components/shared/icons'; import { WithPermissions } from 'components/shared/contexts'; -import { useTranslation } from 'react-i18next'; import { useAppSelector } from 'redux/lib/hooks'; import { getIsEntityStatusDeleted } from 'redux/selectors'; import AddDataEntityToGroupForm from './AddDataEntityToGroupForm/AddDataEntityToGroupForm'; diff --git a/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewMetadata/MetadataItem/MetadataItem.tsx b/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewMetadata/MetadataItem/MetadataItem.tsx index f5f42c6b9..07c3ed37f 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewMetadata/MetadataItem/MetadataItem.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewMetadata/MetadataItem/MetadataItem.tsx @@ -1,6 +1,7 @@ import React from 'react'; import { Grid } from '@mui/material'; import { FormProvider, useForm } from 'react-hook-form'; +import { useTranslation } from 'react-i18next'; import { MetadataFieldType, type MetadataFieldValue, @@ -23,7 +24,6 @@ import { } from 'redux/thunks'; import { WithPermissions } from 'components/shared/contexts'; import { useAppDateTime } from 'lib/hooks'; -import { useTranslation } from 'react-i18next'; import MetadataValueEditor from '../../../Metadata/MetadataValueEditor/MetadataValueEditor'; import * as S from './MetadataItemStyles'; 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 708fa5ec2..77d12ef13 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 @@ -1,9 +1,9 @@ import React from 'react'; -import { DataEntityClassNameEnum, type DataEntityDetails } from 'generated-sources'; import { Grid, Typography } from '@mui/material'; +import { useTranslation } from 'react-i18next'; +import { DataEntityClassNameEnum, type DataEntityDetails } from 'generated-sources'; import { EntitiesListModal, Button, EntityClassItem } from 'components/shared/elements'; import { useAppPaths } from 'lib/hooks'; -import { useTranslation } from 'react-i18next'; interface OverviewDataConsumerStatsProps { inputs: DataEntityDetails['inputList']; diff --git a/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewStats/OverviewDataInputStats/OverviewDataInputStats.tsx b/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewStats/OverviewDataInputStats/OverviewDataInputStats.tsx index d7128839d..a0d7b3a7d 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewStats/OverviewDataInputStats/OverviewDataInputStats.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewStats/OverviewDataInputStats/OverviewDataInputStats.tsx @@ -1,9 +1,9 @@ import React from 'react'; +import { Grid, Typography } from '@mui/material'; +import { useTranslation } from 'react-i18next'; import { DataEntityClassNameEnum, type DataEntityDetails } from 'generated-sources'; import { Button, EntitiesListModal, EntityClassItem } from 'components/shared/elements'; -import { Grid, Typography } from '@mui/material'; import { useAppPaths } from 'lib/hooks'; -import { useTranslation } from 'react-i18next'; interface OverviewDataInputStatsProps { outputs: DataEntityDetails['outputList']; diff --git a/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewStats/OverviewDatasetStats/OverviewDatasetStats.tsx b/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewStats/OverviewDatasetStats/OverviewDatasetStats.tsx index 8e4e59ee8..d06b48e1f 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewStats/OverviewDatasetStats/OverviewDatasetStats.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewStats/OverviewDatasetStats/OverviewDatasetStats.tsx @@ -1,9 +1,9 @@ import React from 'react'; import { Grid, Typography } from '@mui/material'; +import { useTranslation } from 'react-i18next'; import { DataEntityClassNameEnum } from 'generated-sources'; import { EntityClassItem, NumberFormatted } from 'components/shared/elements'; import { UserIcon, ColumnsIcon, RowsIcon } from 'components/shared/icons'; -import { useTranslation } from 'react-i18next'; interface OverviewDatasetStatsProps { stats: { diff --git a/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewStats/OverviewEntityGroupItems/EntityGroupItem/EntityGroupItem.tsx b/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewStats/OverviewEntityGroupItems/EntityGroupItem/EntityGroupItem.tsx index bf98bc233..1569c0f86 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewStats/OverviewEntityGroupItems/EntityGroupItem/EntityGroupItem.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewStats/OverviewEntityGroupItems/EntityGroupItem/EntityGroupItem.tsx @@ -1,7 +1,8 @@ import React, { type FC, useCallback } from 'react'; +import { Box, Grid, Typography } from '@mui/material'; +import { Link } from 'react-router-dom'; import type { DataEntity, DataEntityBaseObject } from 'generated-sources'; import { useAppDateTime, useAppPaths } from 'lib/hooks'; -import { Box, Grid, Typography } from '@mui/material'; import { Button, EntityClassItem, @@ -9,7 +10,6 @@ import { Table, TruncatedList, } from 'components/shared/elements'; -import { Link } from 'react-router-dom'; import { TriangularUnionIcon } from 'components/shared/icons'; import MetadataStale from 'components/shared/elements/MetadataStale/MetadataStale'; diff --git a/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewStats/OverviewEntityGroupItems/OverviewEntityGroupItems.tsx b/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewStats/OverviewEntityGroupItems/OverviewEntityGroupItems.tsx index 61fa9fea1..30d3ba4f7 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewStats/OverviewEntityGroupItems/OverviewEntityGroupItems.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewStats/OverviewEntityGroupItems/OverviewEntityGroupItems.tsx @@ -1,5 +1,7 @@ import React, { type ChangeEvent, type FC, useCallback, useMemo, useState } from 'react'; import { Box, Grid, Typography } from '@mui/material'; +import debounce from 'lodash/debounce'; +import InfiniteScroll from 'react-infinite-scroll-component'; import { AppCircularProgress, AppErrorBlock, @@ -8,8 +10,6 @@ import { Table, } from 'components/shared/elements'; import { useAppParams, useGetDataEntityGroupItems } from 'lib/hooks'; -import debounce from 'lodash/debounce'; -import InfiniteScroll from 'react-infinite-scroll-component'; import EntityGroupItem from './EntityGroupItem/EntityGroupItem'; import * as S from './OverviewEntityGroupItems.styles'; diff --git a/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewStats/OverviewQualityTestStats/OverviewQualityTestStats.tsx b/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewStats/OverviewQualityTestStats/OverviewQualityTestStats.tsx index c37f88151..60c0d4af1 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewStats/OverviewQualityTestStats/OverviewQualityTestStats.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewStats/OverviewQualityTestStats/OverviewQualityTestStats.tsx @@ -1,5 +1,6 @@ import React from 'react'; import { Grid, Typography } from '@mui/material'; +import { useTranslation } from 'react-i18next'; import { DataEntityClassNameEnum, type DataEntityDetails, @@ -14,7 +15,6 @@ import { TestRunStatusItem, TestRunStatusReasonModal, } from 'components/shared/elements'; -import { useTranslation } from 'react-i18next'; import * as S from './OverviewQualityTestStatsStyles'; interface OverviewQualityTestStatsProps { diff --git a/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewStats/OverviewTransformerStats/OverviewTransformerStats.tsx b/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewStats/OverviewTransformerStats/OverviewTransformerStats.tsx index 6a213cb07..13b8121e5 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewStats/OverviewTransformerStats/OverviewTransformerStats.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewStats/OverviewTransformerStats/OverviewTransformerStats.tsx @@ -1,10 +1,10 @@ import React from 'react'; import { Grid, Typography } from '@mui/material'; +import { useTranslation } from 'react-i18next'; import { DataEntityClassNameEnum, type DataEntityDetails } from 'generated-sources'; import { UpstreamIcon, DownstreamIcon } from 'components/shared/icons'; import { EntityClassItem, Button, EntitiesListModal } from 'components/shared/elements'; import { useAppPaths } from 'lib/hooks'; -import { useTranslation } from 'react-i18next'; import { StatIconContainer } from './OverviewTransformerStatsStyles'; interface OverviewTransformerStatsProps { diff --git a/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewStyles.ts b/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewStyles.ts index c3156e87d..ca83d3e6c 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewStyles.ts +++ b/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewStyles.ts @@ -1,5 +1,5 @@ -import AppPaper from 'components/shared/elements/AppPaper/AppPaper'; import styled from 'styled-components'; +import AppPaper from 'components/shared/elements/AppPaper/AppPaper'; export const SectionContainer = styled(AppPaper)(({ theme }) => ({ '& > *': { padding: theme.spacing(1.5, 2) }, diff --git a/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewTags/OverviewTags.tsx b/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewTags/OverviewTags.tsx index 1ed6e3e88..af0c74ff4 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewTags/OverviewTags.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewTags/OverviewTags.tsx @@ -1,10 +1,10 @@ import React from 'react'; import { Collapse, Grid, Typography } from '@mui/material'; +import { useTranslation } from 'react-i18next'; import { Permission, type Tag } from 'generated-sources'; import { Button, TagItem } from 'components/shared/elements'; import { WithPermissions } from 'components/shared/contexts'; import { AddIcon, EditIcon } from 'components/shared/icons'; -import { useTranslation } from 'react-i18next'; import { useAppSelector } from 'redux/lib/hooks'; import { getIsEntityStatusDeleted } from 'redux/selectors'; import { useAppParams } from 'lib/hooks'; diff --git a/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewTerms/OverviewTerms.tsx b/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewTerms/OverviewTerms.tsx index aa575abe7..7a33f4498 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewTerms/OverviewTerms.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/Overview/OverviewTerms/OverviewTerms.tsx @@ -1,11 +1,11 @@ import React from 'react'; import { Box, Collapse, Grid, Typography } from '@mui/material'; +import { useTranslation } from 'react-i18next'; import type { LinkedTerm } from 'generated-sources'; import { Permission } from 'generated-sources'; import { Button } from 'components/shared/elements'; import { AddIcon } from 'components/shared/icons'; import { WithPermissions } from 'components/shared/contexts'; -import { useTranslation } from 'react-i18next'; import { useAppSelector } from 'redux/lib/hooks'; import { getIsEntityStatusDeleted } from 'redux/selectors'; import { TermsCaptionContainer } from './OverviewTermsStyles'; diff --git a/odd-platform-ui/src/components/DataEntityDetails/QualityTestRunsHistory/TestRunItem/TestRunItem.tsx b/odd-platform-ui/src/components/DataEntityDetails/QualityTestRunsHistory/TestRunItem/TestRunItem.tsx index b3f10c815..a729a7678 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/QualityTestRunsHistory/TestRunItem/TestRunItem.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/QualityTestRunsHistory/TestRunItem/TestRunItem.tsx @@ -1,9 +1,9 @@ import React from 'react'; import { Typography } from '@mui/material'; +import { useTranslation } from 'react-i18next'; import { type DataEntityRun } from 'generated-sources'; import { useAppDateTime } from 'lib/hooks'; import { Button, TestRunStatusItem } from 'components/shared/elements'; -import { useTranslation } from 'react-i18next'; import TestRunStatusReasonModal from '../TestRunStatusReasonModal/TestRunStatusReasonModal'; import { Container, StatusReasonModalBtnContainer } from './TestRunItemStyles'; import { ColContainer } from '../TestRunsHistoryStyles'; diff --git a/odd-platform-ui/src/components/DataEntityDetails/QualityTestRunsHistory/TestRunStatusReasonModal/TestRunStatusReasonModal.tsx b/odd-platform-ui/src/components/DataEntityDetails/QualityTestRunsHistory/TestRunStatusReasonModal/TestRunStatusReasonModal.tsx index c974f0e69..245e6f61f 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/QualityTestRunsHistory/TestRunStatusReasonModal/TestRunStatusReasonModal.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/QualityTestRunsHistory/TestRunStatusReasonModal/TestRunStatusReasonModal.tsx @@ -1,5 +1,6 @@ import { Grid, Typography } from '@mui/material'; import React from 'react'; +import { useTranslation } from 'react-i18next'; import type { DataEntityRun } from 'generated-sources'; import { Button, @@ -8,7 +9,6 @@ import { TestRunStatusItem, } from 'components/shared/elements'; import { useAppDateTime, useAppPaths } from 'lib/hooks'; -import { useTranslation } from 'react-i18next'; import { StatsContainer, StatusReasonContainer } from './TestRunStatusReasonModalStyles'; interface TestRunStatusReasonModalProps { diff --git a/odd-platform-ui/src/components/DataEntityDetails/QualityTestRunsHistory/TestRunsHistory.tsx b/odd-platform-ui/src/components/DataEntityDetails/QualityTestRunsHistory/TestRunsHistory.tsx index 8a223c1e1..34d3bcd82 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/QualityTestRunsHistory/TestRunsHistory.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/QualityTestRunsHistory/TestRunsHistory.tsx @@ -1,4 +1,8 @@ import React from 'react'; +import capitalize from 'lodash/capitalize'; +import { Grid, Typography } from '@mui/material'; +import InfiniteScroll from 'react-infinite-scroll-component'; +import { useTranslation } from 'react-i18next'; import { DataEntityRunStatus } from 'generated-sources'; import { fetchDataEntityRuns } from 'redux/thunks'; import { useAppDispatch, useAppSelector } from 'redux/lib/hooks'; @@ -10,14 +14,10 @@ import { import { useAppParams } from 'lib/hooks'; import { getQualityTestNameByTestId } from 'redux/selectors/dataQualityTest.selectors'; import AppMenuItem from 'components/shared/elements/AppMenuItem/AppMenuItem'; -import capitalize from 'lodash/capitalize'; -import { Grid, Typography } from '@mui/material'; import EmptyContentPlaceholder from 'components/shared/elements/EmptyContentPlaceholder/EmptyContentPlaceholder'; import AppSelect from 'components/shared/elements/AppSelect/AppSelect'; import SkeletonWrapper from 'components/shared/elements/SkeletonWrapper/SkeletonWrapper'; -import InfiniteScroll from 'react-infinite-scroll-component'; import TestRunSkeletonItem from 'components/DataEntityDetails/QualityTestRunsHistory/TestRunSkeletonItem/TestRunSkeletonItem'; -import { useTranslation } from 'react-i18next'; import TestRunItem from './TestRunItem/TestRunItem'; import { ColContainer, RunsTableHeader } from './TestRunsHistoryStyles'; diff --git a/odd-platform-ui/src/components/DataEntityDetails/TestReport/TestReport.tsx b/odd-platform-ui/src/components/DataEntityDetails/TestReport/TestReport.tsx index 7f9b4d14c..9cf16469e 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/TestReport/TestReport.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/TestReport/TestReport.tsx @@ -1,4 +1,7 @@ import React from 'react'; +import { Grid, Typography } from '@mui/material'; +import omit from 'lodash/omit'; +import { useTranslation } from 'react-i18next'; import type { DataEntityRunStatus } from 'generated-sources'; import { getDatasetQualityTestsBySuiteNames, @@ -10,11 +13,8 @@ import { } from 'redux/selectors'; import { fetchDataSetQualityTestList } from 'redux/thunks'; import { useAppParams } from 'lib/hooks'; -import { Grid, Typography } from '@mui/material'; import { AppErrorPage, AppPaper, TestRunStatusItem } from 'components/shared/elements'; -import omit from 'lodash/omit'; import { useAppDispatch, useAppSelector } from 'redux/lib/hooks'; -import { useTranslation } from 'react-i18next'; import TestReportItem from './TestReportItem/TestReportItem'; import TestReportDetails from './TestReportDetails/TestReportDetails'; import TestReportItemSkeleton from './TestReportItem/TestReportItemSkeleton/TestReportItemSkeleton'; diff --git a/odd-platform-ui/src/components/DataEntityDetails/TestReport/TestReportDetails/TestReportDetails.tsx b/odd-platform-ui/src/components/DataEntityDetails/TestReport/TestReportDetails/TestReportDetails.tsx index a0d668482..9065918e5 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/TestReport/TestReportDetails/TestReportDetails.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/TestReport/TestReportDetails/TestReportDetails.tsx @@ -1,5 +1,7 @@ import React from 'react'; import { Grid, Typography } from '@mui/material'; +import { Navigate, Route, Routes } from 'react-router-dom'; +import { useTranslation } from 'react-i18next'; import { Button, AppCircularProgress, @@ -8,12 +10,10 @@ import { AppTooltip, } from 'components/shared/elements'; import { getQualityTestByTestId, getResourcePermissions } from 'redux/selectors'; -import { Navigate, Route, Routes } from 'react-router-dom'; import { useAppParams, useAppPaths } from 'lib/hooks'; import { useAppSelector } from 'redux/lib/hooks'; import { WithPermissionsProvider } from 'components/shared/contexts'; import { Permission, PermissionResourceType } from 'generated-sources'; -import { useTranslation } from 'react-i18next'; // lazy elements const TestReportDetailsOverview = React.lazy( diff --git a/odd-platform-ui/src/components/DataEntityDetails/TestReport/TestReportDetails/TestReportDetailsHistory/TestReportDetailsHistory.tsx b/odd-platform-ui/src/components/DataEntityDetails/TestReport/TestReportDetails/TestReportDetailsHistory/TestReportDetailsHistory.tsx index e92dd9631..2be0fa1fc 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/TestReport/TestReportDetails/TestReportDetailsHistory/TestReportDetailsHistory.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/TestReport/TestReportDetails/TestReportDetailsHistory/TestReportDetailsHistory.tsx @@ -1,4 +1,5 @@ import React from 'react'; +import { Grid, Typography } from '@mui/material'; import { fetchDataEntityRuns } from 'redux/thunks'; import { useAppDispatch, useAppSelector } from 'redux/lib/hooks'; import { @@ -7,7 +8,6 @@ import { getQualityTestNameByTestId, } from 'redux/selectors'; import { useAppDateTime, useAppParams } from 'lib/hooks'; -import { Grid, Typography } from '@mui/material'; import { SkeletonWrapper, TestRunStatusItem } from 'components/shared/elements'; import TestRunStatusReasonModal from '../../../QualityTestRunsHistory/TestRunStatusReasonModal/TestRunStatusReasonModal'; import TestReportDetailsHistoryItemSkeleton from './TestReportDetailsHistoryItemSkeleton/TestReportDetailsHistoryItemSkeleton'; diff --git a/odd-platform-ui/src/components/DataEntityDetails/TestReport/TestReportDetails/TestReportDetailsOverview/TestReportDetailsOverview.tsx b/odd-platform-ui/src/components/DataEntityDetails/TestReport/TestReportDetails/TestReportDetailsOverview/TestReportDetailsOverview.tsx index 0fa3b9e4e..ae8ec5db8 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/TestReport/TestReportDetails/TestReportDetailsOverview/TestReportDetailsOverview.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/TestReport/TestReportDetails/TestReportDetailsOverview/TestReportDetailsOverview.tsx @@ -1,6 +1,7 @@ import React from 'react'; import type { SelectChangeEvent } from '@mui/material'; import { Box, Grid, Typography } from '@mui/material'; +import { useTranslation } from 'react-i18next'; import { Button, AppMenuItem, @@ -21,7 +22,6 @@ import { ORDERED_SEVERITY } from 'lib/constants'; import { hasDataQualityTestExpectations } from 'lib/helpers'; import { useAppDispatch, useAppSelector } from 'redux/lib/hooks'; import { WithPermissions } from 'components/shared/contexts'; -import { useTranslation } from 'react-i18next'; import TestReportDetailsOverviewSkeleton from './TestReportDetailsOverviewSkeleton/TestReportDetailsOverviewSkeleton'; import TestReportDetailsOverviewExpectationsModal from './TestReportDetailsOverviewParametersModal/TestReportDetailsOverviewParametersModal'; import * as S from './TestReportDetailsOverviewStyles'; diff --git a/odd-platform-ui/src/components/DataEntityDetails/TestReport/TestReportDetails/TestReportDetailsOverview/TestReportDetailsOverviewParametersModal/TestReportDetailsOverviewParametersModal.tsx b/odd-platform-ui/src/components/DataEntityDetails/TestReport/TestReportDetails/TestReportDetailsOverview/TestReportDetailsOverviewParametersModal/TestReportDetailsOverviewParametersModal.tsx index 9b6456fa9..47710cf07 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/TestReport/TestReportDetails/TestReportDetailsOverview/TestReportDetailsOverviewParametersModal/TestReportDetailsOverviewParametersModal.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/TestReport/TestReportDetails/TestReportDetailsOverview/TestReportDetailsOverviewParametersModal/TestReportDetailsOverviewParametersModal.tsx @@ -1,8 +1,8 @@ import React from 'react'; -import { DialogWrapper } from 'components/shared/elements'; import { Typography } from '@mui/material'; -import type { DataQualityTestExpectation } from 'generated-sources'; import { useTranslation } from 'react-i18next'; +import { DialogWrapper } from 'components/shared/elements'; +import type { DataQualityTestExpectation } from 'generated-sources'; interface TestReportDetailsOverviewParametersModalProps { openBtnEl: JSX.Element; diff --git a/odd-platform-ui/src/components/DataEntityDetails/TestReport/TestReportItem/TestReportItem.tsx b/odd-platform-ui/src/components/DataEntityDetails/TestReport/TestReportItem/TestReportItem.tsx index 9b84e1ec9..977dc5efb 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/TestReport/TestReportItem/TestReportItem.tsx +++ b/odd-platform-ui/src/components/DataEntityDetails/TestReport/TestReportItem/TestReportItem.tsx @@ -1,9 +1,9 @@ import React from 'react'; -import type { DataEntityRunStatus, DataQualityTest } from 'generated-sources'; import { Collapse, Grid, Typography } from '@mui/material'; +import { Link } from 'react-router-dom'; +import type { DataEntityRunStatus, DataQualityTest } from 'generated-sources'; import { TestRunStatusItem, Button } from 'components/shared/elements'; import { MinusIcon, PlusIcon } from 'components/shared/icons'; -import { Link } from 'react-router-dom'; import type { DataSetQualityTestsStatusCount } from 'redux/interfaces'; import { useAppPaths } from 'lib/hooks'; import TestItem from './TestItem/TestItem'; diff --git a/odd-platform-ui/src/components/Directory/DataSourceList/DataSourceList.tsx b/odd-platform-ui/src/components/Directory/DataSourceList/DataSourceList.tsx index bf2fa0ff1..d381b0083 100644 --- a/odd-platform-ui/src/components/Directory/DataSourceList/DataSourceList.tsx +++ b/odd-platform-ui/src/components/Directory/DataSourceList/DataSourceList.tsx @@ -1,6 +1,13 @@ import React, { type FC, useMemo } from 'react'; -import { useAppParams, useGetDirectoryDataSources } from 'lib/hooks'; import { Typography } from '@mui/material'; +import startCase from 'lodash/startCase'; +import uniq from 'lodash/uniq'; +import keys from 'lodash/keys'; +import flatten from 'lodash/flatten'; +import omit from 'lodash/omit'; +import type { DataSourceDirectory } from 'generated-sources'; +import type { ErrorState } from 'redux/interfaces'; +import { pluralize } from 'lib/helpers'; import { AppErrorPage, AppLoadingPage, @@ -9,14 +16,7 @@ import { getCapitalizedDatasourceNameFromPrefix, ScrollableContainer, } from 'components/shared/elements'; -import { pluralize } from 'lib/helpers'; -import type { ErrorState } from 'redux/interfaces'; -import type { DataSourceDirectory } from 'generated-sources'; -import startCase from 'lodash/startCase'; -import uniq from 'lodash/uniq'; -import keys from 'lodash/keys'; -import flatten from 'lodash/flatten'; -import omit from 'lodash/omit'; +import { useAppParams, useGetDirectoryDataSources } from 'lib/hooks'; import DirectoryBreadCrumbs from '../DirectoryBreadCrumbs/DirectoryBreadCrumbs'; import * as S from '../shared/styles'; import type { Cell, FlexCell, Row } from './DataSourceTable/interfaces'; diff --git a/odd-platform-ui/src/components/Directory/Directory/Directory.tsx b/odd-platform-ui/src/components/Directory/Directory/Directory.tsx index ef4a52dd4..19adb4da0 100644 --- a/odd-platform-ui/src/components/Directory/Directory/Directory.tsx +++ b/odd-platform-ui/src/components/Directory/Directory/Directory.tsx @@ -1,6 +1,7 @@ import React, { type FC } from 'react'; -import { useGetDataSourceTypes } from 'lib/hooks/api'; import { Grid, Typography } from '@mui/material'; +import { useTranslation } from 'react-i18next'; +import { useGetDataSourceTypes } from 'lib/hooks/api'; import type { ErrorState } from 'redux/interfaces'; import { AppErrorPage, @@ -8,7 +9,6 @@ import { EmptyContentPlaceholder, ScrollableContainer, } from 'components/shared/elements'; -import { useTranslation } from 'react-i18next'; import DirectoryItem from './DirectoryItem/DirectoryItem'; const Directory: FC = () => { diff --git a/odd-platform-ui/src/components/Directory/Directory/DirectoryItem/DirectoryItem.tsx b/odd-platform-ui/src/components/Directory/Directory/DirectoryItem/DirectoryItem.tsx index 32422fcfd..9640fcfe6 100644 --- a/odd-platform-ui/src/components/Directory/Directory/DirectoryItem/DirectoryItem.tsx +++ b/odd-platform-ui/src/components/Directory/Directory/DirectoryItem/DirectoryItem.tsx @@ -1,9 +1,9 @@ import React, { type FC } from 'react'; +import { Typography } from '@mui/material'; +import { Link } from 'react-router-dom'; import type { DataSourceType } from 'generated-sources'; import { DatasourceLogo } from 'components/shared/elements'; -import { Typography } from '@mui/material'; import { pluralize } from 'lib/helpers'; -import { Link } from 'react-router-dom'; import * as S from './DirectoryItem.styles'; interface DirectoryItemProps { diff --git a/odd-platform-ui/src/components/Directory/Entities/Entities.tsx b/odd-platform-ui/src/components/Directory/Entities/Entities.tsx index 07984b85c..db1ba14cc 100644 --- a/odd-platform-ui/src/components/Directory/Entities/Entities.tsx +++ b/odd-platform-ui/src/components/Directory/Entities/Entities.tsx @@ -1,4 +1,6 @@ import React, { type FC, useMemo } from 'react'; +import { Typography } from '@mui/material'; +import { useTranslation } from 'react-i18next'; import { useAppParams, useGetDataSourceEntities, @@ -6,10 +8,8 @@ import { usePrevious, } from 'lib/hooks'; import { AppErrorPage, AppLoadingPage, DatasourceLogo } from 'components/shared/elements'; -import { Typography } from '@mui/material'; import { pluralize } from 'lib/helpers'; import type { ErrorState } from 'redux/interfaces'; -import { useTranslation } from 'react-i18next'; import DirectoryBreadCrumbs from '../DirectoryBreadCrumbs/DirectoryBreadCrumbs'; import EntitiesTabs from './EntitiesTabs/EntitiesTabs'; import EntitiesList from './EntitiesList/EntitiesList'; diff --git a/odd-platform-ui/src/components/Directory/Entities/EntitiesList/EntitiesList.tsx b/odd-platform-ui/src/components/Directory/Entities/EntitiesList/EntitiesList.tsx index 4758ea636..676c13c77 100644 --- a/odd-platform-ui/src/components/Directory/Entities/EntitiesList/EntitiesList.tsx +++ b/odd-platform-ui/src/components/Directory/Entities/EntitiesList/EntitiesList.tsx @@ -1,15 +1,15 @@ import React, { type FC } from 'react'; +import InfiniteScroll from 'react-infinite-scroll-component'; +import { Grid } from '@mui/material'; +import type { InfiniteQueryObserverResult } from '@tanstack/react-query'; import { AppCircularProgress, EmptyContentPlaceholder, ScrollableContainer, } from 'components/shared/elements'; -import InfiniteScroll from 'react-infinite-scroll-component'; import type { DataEntity } from 'generated-sources'; -import { Grid } from '@mui/material'; import type { ErrorState } from 'redux/interfaces'; import type { DataSourceEntityList } from 'lib/interfaces'; -import type { InfiniteQueryObserverResult } from '@tanstack/react-query'; import EntityItem from './EntityItem/EntityItem'; import TableHeader from './TableHeader/TableHeader'; diff --git a/odd-platform-ui/src/components/Directory/Entities/EntitiesList/EntityItem/EntityItem.tsx b/odd-platform-ui/src/components/Directory/Entities/EntitiesList/EntityItem/EntityItem.tsx index 8721d90d7..d9c427c83 100644 --- a/odd-platform-ui/src/components/Directory/Entities/EntitiesList/EntityItem/EntityItem.tsx +++ b/odd-platform-ui/src/components/Directory/Entities/EntitiesList/EntityItem/EntityItem.tsx @@ -1,4 +1,6 @@ import React, { type FC } from 'react'; +import { Box, Grid, Typography } from '@mui/material'; +import { Link } from 'react-router-dom'; import type { DataEntity } from 'generated-sources'; import { EntityClassItem, @@ -7,8 +9,6 @@ import { MetadataStale, } from 'components/shared/elements'; import { DataEntityClassTypeLabelMap } from 'lib/constants'; -import { Box, Grid, Typography } from '@mui/material'; -import { Link } from 'react-router-dom'; import { useAppDateTime, useAppParams, useAppPaths } from 'lib/hooks'; interface EntityItemProps { diff --git a/odd-platform-ui/src/components/Directory/Entities/EntitiesTabs/EntitiesTabs.tsx b/odd-platform-ui/src/components/Directory/Entities/EntitiesTabs/EntitiesTabs.tsx index 0e9632430..aa08aec35 100644 --- a/odd-platform-ui/src/components/Directory/Entities/EntitiesTabs/EntitiesTabs.tsx +++ b/odd-platform-ui/src/components/Directory/Entities/EntitiesTabs/EntitiesTabs.tsx @@ -1,8 +1,8 @@ import React, { type FC } from 'react'; +import { Grid } from '@mui/material'; import { useAppParams, useAppPaths } from 'lib/hooks'; import type { DataEntityType } from 'generated-sources'; import { AppTabs, type AppTabItem } from 'components/shared/elements'; -import { Grid } from '@mui/material'; import { DataEntityClassTypeLabelMap } from 'lib/constants'; interface EntitiesListTabsProps { diff --git a/odd-platform-ui/src/components/Management/Integrations/Integration/IntegrationContent/IntegrationCodeSnippet/IntegrationCodeSnippet.tsx b/odd-platform-ui/src/components/Management/Integrations/Integration/IntegrationContent/IntegrationCodeSnippet/IntegrationCodeSnippet.tsx index 988f9eca9..042226484 100644 --- a/odd-platform-ui/src/components/Management/Integrations/Integration/IntegrationContent/IntegrationCodeSnippet/IntegrationCodeSnippet.tsx +++ b/odd-platform-ui/src/components/Management/Integrations/Integration/IntegrationContent/IntegrationCodeSnippet/IntegrationCodeSnippet.tsx @@ -1,7 +1,7 @@ import React, { type FC } from 'react'; +import { Grid } from '@mui/material'; import type { IntegrationCodeSnippet as IntegrationCodeSnippetType } from 'generated-sources'; import { Markdown } from 'components/shared/elements'; -import { Grid } from '@mui/material'; interface IntegrationCodeSnippetProps { snippet: IntegrationCodeSnippetType; diff --git a/odd-platform-ui/src/components/Management/Integrations/Integration/IntegrationContent/IntegrationCodeSnippetWithForm/IntegrationCodeSnippetWithForm.tsx b/odd-platform-ui/src/components/Management/Integrations/Integration/IntegrationContent/IntegrationCodeSnippetWithForm/IntegrationCodeSnippetWithForm.tsx index e225d6c4d..d5c6a57c5 100644 --- a/odd-platform-ui/src/components/Management/Integrations/Integration/IntegrationContent/IntegrationCodeSnippetWithForm/IntegrationCodeSnippetWithForm.tsx +++ b/odd-platform-ui/src/components/Management/Integrations/Integration/IntegrationContent/IntegrationCodeSnippetWithForm/IntegrationCodeSnippetWithForm.tsx @@ -2,9 +2,9 @@ import React, { type FC, useCallback, useState } from 'react'; import { Controller, useForm } from 'react-hook-form'; import Handlebars from 'handlebars'; import { FormControlLabel, Grid, Typography } from '@mui/material'; +import { useTranslation } from 'react-i18next'; import { Button, Checkbox, Input, Markdown } from 'components/shared/elements'; import type { IntegrationCodeSnippet as IntegrationCodeSnippetType } from 'generated-sources'; -import { useTranslation } from 'react-i18next'; interface IntegrationCodeSnippetWithFormProps { snippet: IntegrationCodeSnippetType; diff --git a/odd-platform-ui/src/components/Management/Integrations/Integration/IntegrationHeader/IntegrationHeader.tsx b/odd-platform-ui/src/components/Management/Integrations/Integration/IntegrationHeader/IntegrationHeader.tsx index ff1c3bbce..8cb0abd39 100644 --- a/odd-platform-ui/src/components/Management/Integrations/Integration/IntegrationHeader/IntegrationHeader.tsx +++ b/odd-platform-ui/src/components/Management/Integrations/Integration/IntegrationHeader/IntegrationHeader.tsx @@ -1,9 +1,9 @@ import React, { type FC } from 'react'; import { Grid, Typography } from '@mui/material'; +import { useTranslation } from 'react-i18next'; import { Button, DatasourceLogo } from 'components/shared/elements'; import type { Integration } from 'lib/interfaces'; import { useAppPaths } from 'lib/hooks'; -import { useTranslation } from 'react-i18next'; interface IntegrationHeaderProps { id: Integration['id']; diff --git a/odd-platform-ui/src/components/Management/Integrations/Integration/IntegrationTabs/IntegrationTabs.tsx b/odd-platform-ui/src/components/Management/Integrations/Integration/IntegrationTabs/IntegrationTabs.tsx index 01a6abba4..ed8e149dd 100644 --- a/odd-platform-ui/src/components/Management/Integrations/Integration/IntegrationTabs/IntegrationTabs.tsx +++ b/odd-platform-ui/src/components/Management/Integrations/Integration/IntegrationTabs/IntegrationTabs.tsx @@ -1,8 +1,8 @@ import React from 'react'; -import { type AppTabItem, AppTabs } from 'components/shared/elements'; -import { useAppParams } from 'lib/hooks'; import { Grid } from '@mui/material'; import capitalize from 'lodash/capitalize'; +import { type AppTabItem, AppTabs } from 'components/shared/elements'; +import { useAppParams } from 'lib/hooks'; interface IntegrationTabsProps { titles: string[]; diff --git a/odd-platform-ui/src/components/Management/Integrations/IntegrationPreviewList/IntegrationPreviewItem/IntegrationPreviewItem.tsx b/odd-platform-ui/src/components/Management/Integrations/IntegrationPreviewList/IntegrationPreviewItem/IntegrationPreviewItem.tsx index 0cbd83981..57dd6e81e 100644 --- a/odd-platform-ui/src/components/Management/Integrations/IntegrationPreviewList/IntegrationPreviewItem/IntegrationPreviewItem.tsx +++ b/odd-platform-ui/src/components/Management/Integrations/IntegrationPreviewList/IntegrationPreviewItem/IntegrationPreviewItem.tsx @@ -1,12 +1,12 @@ import React, { type FC, memo, useCallback } from 'react'; -import type { IntegrationPreview } from 'generated-sources'; import { Typography } from '@mui/material'; import { useNavigate } from 'react-router-dom'; +import { useTranslation } from 'react-i18next'; +import type { IntegrationPreview } from 'generated-sources'; import { useAppPaths } from 'lib/hooks'; import { IntegratedIcon } from 'components/shared/icons'; import type { DatasourceName } from 'lib/interfaces'; import { DatasourceLogo } from 'components/shared/elements'; -import { useTranslation } from 'react-i18next'; import * as S from './IntegrationPreviewItem.styles'; interface IntegrationPreviewItemProps { diff --git a/odd-platform-ui/src/components/Management/ManagementStyles.ts b/odd-platform-ui/src/components/Management/ManagementStyles.ts index 3c2d862ed..efe8c423d 100644 --- a/odd-platform-ui/src/components/Management/ManagementStyles.ts +++ b/odd-platform-ui/src/components/Management/ManagementStyles.ts @@ -1,6 +1,6 @@ import { Grid } from '@mui/material'; -import { maxSidebarWidth } from 'lib/constants'; import styled from 'styled-components'; +import { maxSidebarWidth } from 'lib/constants'; export const Container = styled(Grid)(({ theme }) => ({ position: 'relative', diff --git a/odd-platform-ui/src/components/Management/NamespaceList/EditableNamespaceItem/EditableNamespaceItem.tsx b/odd-platform-ui/src/components/Management/NamespaceList/EditableNamespaceItem/EditableNamespaceItem.tsx index 8ea388b01..edd1af018 100644 --- a/odd-platform-ui/src/components/Management/NamespaceList/EditableNamespaceItem/EditableNamespaceItem.tsx +++ b/odd-platform-ui/src/components/Management/NamespaceList/EditableNamespaceItem/EditableNamespaceItem.tsx @@ -1,12 +1,12 @@ import React from 'react'; import { Grid, Typography } from '@mui/material'; +import { useTranslation } from 'react-i18next'; import { type Namespace, Permission } from 'generated-sources'; import { DeleteIcon, EditIcon } from 'components/shared/icons'; import { Button, ConfirmationDialog } from 'components/shared/elements'; import { deleteNamespace } from 'redux/thunks'; import { useAppDispatch } from 'redux/lib/hooks'; import { WithPermissions } from 'components/shared/contexts'; -import { useTranslation } from 'react-i18next'; import NamespaceForm from '../NamespaceForm/NamespaceForm'; import * as S from './EditableNamespaceItemStyles'; diff --git a/odd-platform-ui/src/components/Management/NamespaceList/NamespaceForm/NamespaceForm.tsx b/odd-platform-ui/src/components/Management/NamespaceList/NamespaceForm/NamespaceForm.tsx index 7f53dcfb3..b5c77012d 100644 --- a/odd-platform-ui/src/components/Management/NamespaceList/NamespaceForm/NamespaceForm.tsx +++ b/odd-platform-ui/src/components/Management/NamespaceList/NamespaceForm/NamespaceForm.tsx @@ -1,7 +1,8 @@ import React from 'react'; import { Controller, useForm } from 'react-hook-form'; -import type { Namespace, NamespaceFormData } from 'generated-sources'; import { Typography } from '@mui/material'; +import { useTranslation } from 'react-i18next'; +import type { Namespace, NamespaceFormData } from 'generated-sources'; import { Button, DialogWrapper, Input } from 'components/shared/elements'; import { useAppDispatch, useAppSelector } from 'redux/lib/hooks'; import { createNamespace, updateNamespace } from 'redux/thunks'; @@ -9,7 +10,6 @@ import { getNamespaceCreatingStatuses, getNamespaceUpdatingStatuses, } from 'redux/selectors'; -import { useTranslation } from 'react-i18next'; interface NamespaceFormProps { btnEl: JSX.Element; diff --git a/odd-platform-ui/src/components/Management/OwnerAssociations/OwnerAssociations.tsx b/odd-platform-ui/src/components/Management/OwnerAssociations/OwnerAssociations.tsx index 4c6928a04..c42c245c3 100644 --- a/odd-platform-ui/src/components/Management/OwnerAssociations/OwnerAssociations.tsx +++ b/odd-platform-ui/src/components/Management/OwnerAssociations/OwnerAssociations.tsx @@ -1,8 +1,8 @@ import React from 'react'; import { Grid } from '@mui/material'; import { Navigate, Route, Routes } from 'react-router-dom'; -import { fetchOwnerAssociationRequestList } from 'redux/thunks'; import { useAtom } from 'jotai'; +import { fetchOwnerAssociationRequestList } from 'redux/thunks'; import { getNewOwnerAssociationRequestsPageInfo, getResolvedOwnerAssociationRequestsPageInfo, diff --git a/odd-platform-ui/src/components/Management/OwnerAssociations/OwnerAssociationsHeader/OwnerAssociationsHeader.tsx b/odd-platform-ui/src/components/Management/OwnerAssociations/OwnerAssociationsHeader/OwnerAssociationsHeader.tsx index ce63433c3..afb852b7f 100644 --- a/odd-platform-ui/src/components/Management/OwnerAssociations/OwnerAssociationsHeader/OwnerAssociationsHeader.tsx +++ b/odd-platform-ui/src/components/Management/OwnerAssociations/OwnerAssociationsHeader/OwnerAssociationsHeader.tsx @@ -1,4 +1,4 @@ -import React from 'react'; +import React, { useCallback } from 'react'; import { Typography } from '@mui/material'; import { useAtom } from 'jotai'; import { useDebouncedCallback } from 'use-debounce'; @@ -25,14 +25,14 @@ const OwnerAssociationsHeader: React.FC = ({ const [query, setQuery] = useAtom(queryAtom); - const handleSearch = React.useCallback( + const handleSearch = useCallback( useDebouncedCallback(() => { dispatch(fetchOwnerAssociationRequestList({ page: 1, size, query, active })); }, 500), [query, active, size] ); - const handleInputChange = React.useCallback( + const handleInputChange = useCallback( (event: React.ChangeEvent) => { setQuery(event.target.value); handleSearch(); @@ -40,12 +40,7 @@ const OwnerAssociationsHeader: React.FC = ({ [handleSearch, setQuery] ); - const handleInputClear = React.useCallback(() => { - setQuery(''); - handleSearch(); - }, [handleSearch, setQuery]); - - const handleKeyDown = React.useCallback( + const handleKeyDown = useCallback( (event: React.KeyboardEvent) => { if (event.key === 'Enter') handleSearch(); }, diff --git a/odd-platform-ui/src/components/Management/OwnerAssociations/OwnerAssociationsList/OwnerAssociationsNew/ActiveAssociationRequest/ActiveAssociationRequest.tsx b/odd-platform-ui/src/components/Management/OwnerAssociations/OwnerAssociationsList/OwnerAssociationsNew/ActiveAssociationRequest/ActiveAssociationRequest.tsx index b074ab41a..63c320cda 100644 --- a/odd-platform-ui/src/components/Management/OwnerAssociations/OwnerAssociationsList/OwnerAssociationsNew/ActiveAssociationRequest/ActiveAssociationRequest.tsx +++ b/odd-platform-ui/src/components/Management/OwnerAssociations/OwnerAssociationsList/OwnerAssociationsNew/ActiveAssociationRequest/ActiveAssociationRequest.tsx @@ -1,5 +1,6 @@ import React from 'react'; import { Grid, Typography } from '@mui/material'; +import { useTranslation } from 'react-i18next'; import { type OwnerAssociationRequest, type OwnerAssociationRequestApiUpdateOwnerAssociationRequestRequest, @@ -11,7 +12,6 @@ import { AcceptIcon, RejectIcon } from 'components/shared/icons'; import { updateOwnerAssociationRequest } from 'redux/thunks'; import { useAppDispatch } from 'redux/lib/hooks'; import { usePermissions } from 'lib/hooks'; -import { useTranslation } from 'react-i18next'; import * as S from '../../OwnerAssociationsSharedStyles'; interface Props { diff --git a/odd-platform-ui/src/components/Management/OwnerAssociations/OwnerAssociationsList/OwnerAssociationsResolved/ResolvedAssociationRequest/RequestStatus/RequestStatusStyles.ts b/odd-platform-ui/src/components/Management/OwnerAssociations/OwnerAssociationsList/OwnerAssociationsResolved/ResolvedAssociationRequest/RequestStatus/RequestStatusStyles.ts index 813d8c056..f6b42efc8 100644 --- a/odd-platform-ui/src/components/Management/OwnerAssociations/OwnerAssociationsList/OwnerAssociationsResolved/ResolvedAssociationRequest/RequestStatus/RequestStatusStyles.ts +++ b/odd-platform-ui/src/components/Management/OwnerAssociations/OwnerAssociationsList/OwnerAssociationsResolved/ResolvedAssociationRequest/RequestStatus/RequestStatusStyles.ts @@ -1,6 +1,6 @@ import styled from 'styled-components'; -import { type OwnerAssociationRequestStatus } from 'generated-sources'; import { Typography } from '@mui/material'; +import { type OwnerAssociationRequestStatus } from 'generated-sources'; export const Container = styled(Typography)<{ $status: OwnerAssociationRequestStatus; diff --git a/odd-platform-ui/src/components/Management/OwnerAssociations/OwnerAssociationsTabs/OwnerAssociationsTabs.tsx b/odd-platform-ui/src/components/Management/OwnerAssociations/OwnerAssociationsTabs/OwnerAssociationsTabs.tsx index f8189ec4b..49e83be72 100644 --- a/odd-platform-ui/src/components/Management/OwnerAssociations/OwnerAssociationsTabs/OwnerAssociationsTabs.tsx +++ b/odd-platform-ui/src/components/Management/OwnerAssociations/OwnerAssociationsTabs/OwnerAssociationsTabs.tsx @@ -1,11 +1,11 @@ import React from 'react'; +import { useAtom } from 'jotai'; +import { useTranslation } from 'react-i18next'; import { type AppTabItem, AppTabs } from 'components/shared/elements'; import { useAppParams, useAppPaths } from 'lib/hooks'; -import { useAtom } from 'jotai'; import { useAppDispatch, useAppSelector } from 'redux/lib/hooks'; import { fetchOwnerAssociationRequestList } from 'redux/thunks'; import { getOwnerAssociationRequestsListFetchingStatuses } from 'redux/selectors'; -import { useTranslation } from 'react-i18next'; import { queryAtom } from '../OwnerAssociationsStore/OwnerAssociationsAtoms'; interface OwnerAssociationsTabsProps { diff --git a/odd-platform-ui/src/components/Management/PolicyList/PolicyDetails/PolicyDetails.tsx b/odd-platform-ui/src/components/Management/PolicyList/PolicyDetails/PolicyDetails.tsx index 52610976f..5f007b57b 100644 --- a/odd-platform-ui/src/components/Management/PolicyList/PolicyDetails/PolicyDetails.tsx +++ b/odd-platform-ui/src/components/Management/PolicyList/PolicyDetails/PolicyDetails.tsx @@ -1,7 +1,7 @@ import React from 'react'; +import { Grid } from '@mui/material'; import { useAppParams } from 'lib/hooks'; import { useAppDispatch, useAppSelector } from 'redux/lib/hooks'; -import { Grid } from '@mui/material'; import { fetchPolicyDetails, fetchPolicySchema } from 'redux/thunks'; import { AppLoadingPage, diff --git a/odd-platform-ui/src/components/Overview/DataEntitiesUsageInfo/DataEntityUsageInfoView/DataEntitiesUsageInfoView.tsx b/odd-platform-ui/src/components/Overview/DataEntitiesUsageInfo/DataEntityUsageInfoView/DataEntitiesUsageInfoView.tsx index 44525df18..50e57b414 100644 --- a/odd-platform-ui/src/components/Overview/DataEntitiesUsageInfo/DataEntityUsageInfoView/DataEntitiesUsageInfoView.tsx +++ b/odd-platform-ui/src/components/Overview/DataEntitiesUsageInfo/DataEntityUsageInfoView/DataEntitiesUsageInfoView.tsx @@ -1,8 +1,8 @@ import React from 'react'; import { Box, Grid, Typography } from '@mui/material'; -import type { DataEntityUsageInfo } from 'generated-sources'; import isEmpty from 'lodash/isEmpty'; import { useTranslation } from 'react-i18next'; +import type { DataEntityUsageInfo } from 'generated-sources'; import * as S from './DataEntitiesUsageInfoView.styles'; import DataEntitiesUsageInfoCard from './DataEntityUsageInfoCard/DataEntitiesUsageInfoCard'; import type { diff --git a/odd-platform-ui/src/components/Overview/DataEntitiesUsageInfo/DataEntityUsageInfoView/DataEntityUsageInfoCard/__tests__/DataEntitiesUsageInfoCard.test.tsx b/odd-platform-ui/src/components/Overview/DataEntitiesUsageInfo/DataEntityUsageInfoView/DataEntityUsageInfoCard/__tests__/DataEntitiesUsageInfoCard.test.tsx index 958283c2e..7e8318a72 100644 --- a/odd-platform-ui/src/components/Overview/DataEntitiesUsageInfo/DataEntityUsageInfoView/DataEntityUsageInfoCard/__tests__/DataEntitiesUsageInfoCard.test.tsx +++ b/odd-platform-ui/src/components/Overview/DataEntitiesUsageInfo/DataEntityUsageInfoView/DataEntityUsageInfoCard/__tests__/DataEntitiesUsageInfoCard.test.tsx @@ -1,8 +1,8 @@ import React from 'react'; import { describe, expect, it, vi } from 'vitest'; +import { waitFor } from '@testing-library/react'; import { getByRole, getByTextContent, render } from 'lib/tests/testHelpers'; import { dataEntityUsageInfoPayload } from 'lib/tests/mocks'; -import { waitFor } from '@testing-library/react'; import DataEntitiesUsageInfoCard, { type DataEntityUsageInfoCardProps, } from '../DataEntitiesUsageInfoCard'; diff --git a/odd-platform-ui/src/components/Overview/Directory/Directory.tsx b/odd-platform-ui/src/components/Overview/Directory/Directory.tsx index 099aa580f..b474db412 100644 --- a/odd-platform-ui/src/components/Overview/Directory/Directory.tsx +++ b/odd-platform-ui/src/components/Overview/Directory/Directory.tsx @@ -1,7 +1,7 @@ import React, { type FC } from 'react'; -import { useGetDataSourceTypes } from 'lib/hooks'; import { Typography } from '@mui/material'; import { useTranslation } from 'react-i18next'; +import { useGetDataSourceTypes } from 'lib/hooks'; import * as S from '../shared/ItemsList.styles'; import DirectoryItem from './DirectoryItem/DirectoryItem'; diff --git a/odd-platform-ui/src/components/Overview/Domains/DomainItem/DomainItem.tsx b/odd-platform-ui/src/components/Overview/Domains/DomainItem/DomainItem.tsx index 0517d3c4e..3daf7b088 100644 --- a/odd-platform-ui/src/components/Overview/Domains/DomainItem/DomainItem.tsx +++ b/odd-platform-ui/src/components/Overview/Domains/DomainItem/DomainItem.tsx @@ -1,6 +1,6 @@ import React, { type FC } from 'react'; -import type { DataEntityDomain } from 'generated-sources'; import { Box } from '@mui/material'; +import type { DataEntityDomain } from 'generated-sources'; import { useAppPaths } from 'lib/hooks'; import { IconicInfoBadge } from 'components/shared/elements'; import { FolderIcon } from 'components/shared/icons'; diff --git a/odd-platform-ui/src/components/Overview/Domains/Domains.tsx b/odd-platform-ui/src/components/Overview/Domains/Domains.tsx index d74a94c5c..592a98ecd 100644 --- a/odd-platform-ui/src/components/Overview/Domains/Domains.tsx +++ b/odd-platform-ui/src/components/Overview/Domains/Domains.tsx @@ -1,7 +1,7 @@ import React, { type FC } from 'react'; -import { useGetDomains } from 'lib/hooks'; import { Typography } from '@mui/material'; import { useTranslation } from 'react-i18next'; +import { useGetDomains } from 'lib/hooks'; import DomainItem from './DomainItem/DomainItem'; import * as S from '../shared/ItemsList.styles'; diff --git a/odd-platform-ui/src/components/Overview/OverviewStyles.ts b/odd-platform-ui/src/components/Overview/OverviewStyles.ts index 02042661c..3ee001d8c 100644 --- a/odd-platform-ui/src/components/Overview/OverviewStyles.ts +++ b/odd-platform-ui/src/components/Overview/OverviewStyles.ts @@ -1,6 +1,6 @@ import { Grid } from '@mui/material'; -import { maxContentWidthWithoutSidebar, maxTagsContainerWidth } from 'lib/constants'; import styled from 'styled-components'; +import { maxContentWidthWithoutSidebar, maxTagsContainerWidth } from 'lib/constants'; export const Container = styled('div')(({ theme }) => ({ overflowY: 'scroll', diff --git a/odd-platform-ui/src/components/Overview/OwnerAssociation/OwnerAssociation.tsx b/odd-platform-ui/src/components/Overview/OwnerAssociation/OwnerAssociation.tsx index b7c60a56e..1ef22f45a 100644 --- a/odd-platform-ui/src/components/Overview/OwnerAssociation/OwnerAssociation.tsx +++ b/odd-platform-ui/src/components/Overview/OwnerAssociation/OwnerAssociation.tsx @@ -1,4 +1,6 @@ import React, { type FC, useState } from 'react'; +import { Grid, Typography } from '@mui/material'; +import { useTranslation } from 'react-i18next'; import { getAssociationRequestStatus, getIdentity, @@ -7,11 +9,9 @@ import { getSupposedOwnerName, } from 'redux/selectors'; import { OwnerAssociationRequestStatus } from 'generated-sources'; -import { Grid, Typography } from '@mui/material'; import { WaitIcon } from 'components/shared/icons'; import { useAppSelector } from 'redux/lib/hooks'; import { Button } from 'components/shared/elements'; -import { useTranslation } from 'react-i18next'; import OwnerAssociationForm from './OwnerAssociationForm/OwnerAssociationForm'; import OwnerEntitiesList from './OwnerEntitiesList/OwnerEntitiesList'; import * as S from './OwnerAssociationStyles'; diff --git a/odd-platform-ui/src/components/Overview/OwnerAssociation/OwnerEntitiesList/OwnerEntitiesList.tsx b/odd-platform-ui/src/components/Overview/OwnerAssociation/OwnerEntitiesList/OwnerEntitiesList.tsx index 46dee81ec..7a1b50fa0 100644 --- a/odd-platform-ui/src/components/Overview/OwnerAssociation/OwnerEntitiesList/OwnerEntitiesList.tsx +++ b/odd-platform-ui/src/components/Overview/OwnerAssociation/OwnerEntitiesList/OwnerEntitiesList.tsx @@ -1,4 +1,6 @@ import React, { type FC, useEffect } from 'react'; +import { Typography } from '@mui/material'; +import { useTranslation } from 'react-i18next'; import { getIsOwnerEntitiesFetching, getMyDataEntitiesFetchingStatuses, @@ -24,8 +26,6 @@ import { } from 'components/shared/icons'; import { SkeletonWrapper } from 'components/shared/elements'; import { useAppDispatch, useAppSelector } from 'redux/lib/hooks'; -import { Typography } from '@mui/material'; -import { useTranslation } from 'react-i18next'; import OwnerEntitiesListSkeleton from './OwnerEntitiesListSkeleton/OwnerEntitiesListSkeleton'; import * as S from './OwnerEntitiesListStyles'; import DataEntityList from './DataEntityList/DataEntityList'; diff --git a/odd-platform-ui/src/components/Search/Filters/FiltersStyles.ts b/odd-platform-ui/src/components/Search/Filters/FiltersStyles.ts index 2d78c63a0..b1d49bf6d 100644 --- a/odd-platform-ui/src/components/Search/Filters/FiltersStyles.ts +++ b/odd-platform-ui/src/components/Search/Filters/FiltersStyles.ts @@ -1,6 +1,6 @@ import { Grid } from '@mui/material'; -import { toolbarHeight } from 'lib/constants'; import styled from 'styled-components'; +import { toolbarHeight } from 'lib/constants'; export const Container = styled('div')(({ theme }) => ({ padding: theme.spacing(2, 1, 1.5, 1), diff --git a/odd-platform-ui/src/components/Search/Results/ResultItem/ResultItem.tsx b/odd-platform-ui/src/components/Search/Results/ResultItem/ResultItem.tsx index 28cfd500a..2d90acfca 100644 --- a/odd-platform-ui/src/components/Search/Results/ResultItem/ResultItem.tsx +++ b/odd-platform-ui/src/components/Search/Results/ResultItem/ResultItem.tsx @@ -1,5 +1,6 @@ import React from 'react'; import { Box, Grid, Typography } from '@mui/material'; +import { useTranslation } from 'react-i18next'; import { DataEntityClassNameEnum } from 'generated-sources'; import { AppTooltip, @@ -16,7 +17,6 @@ import { useAppDateTime, useAppPaths } from 'lib/hooks'; import type { DataEntity } from 'redux/interfaces'; import { useAppSelector } from 'redux/lib/hooks'; import { getSearchQuery } from 'redux/selectors'; -import { useTranslation } from 'react-i18next'; import { type GridSizesByBreakpoints, SearchCol } from '../Results.styles'; import * as S from './ResultItemStyles'; import SearchHighlights from './SearchHighlights/SearchHighlights'; diff --git a/odd-platform-ui/src/components/Search/Results/Results.styles.ts b/odd-platform-ui/src/components/Search/Results/Results.styles.ts index 0dc3bf698..615fb52e7 100644 --- a/odd-platform-ui/src/components/Search/Results/Results.styles.ts +++ b/odd-platform-ui/src/components/Search/Results/Results.styles.ts @@ -1,7 +1,7 @@ import type { GridSize } from '@mui/material'; import { Grid } from '@mui/material'; -import { primaryTabsHeight, tabsContainerMargin, toolbarHeight } from 'lib/constants'; import styled from 'styled-components'; +import { primaryTabsHeight, tabsContainerMargin, toolbarHeight } from 'lib/constants'; import type { DataEntityClassNameEnum } from 'generated-sources'; const searchHeight = 40; diff --git a/odd-platform-ui/src/components/Search/Results/Results.tsx b/odd-platform-ui/src/components/Search/Results/Results.tsx index 52b556300..737158318 100644 --- a/odd-platform-ui/src/components/Search/Results/Results.tsx +++ b/odd-platform-ui/src/components/Search/Results/Results.tsx @@ -2,6 +2,9 @@ import React from 'react'; import { Grid } from '@mui/material'; import InfiniteScroll from 'react-infinite-scroll-component'; import get from 'lodash/get'; +import findKey from 'lodash/findKey'; +import omit from 'lodash/omit'; +import { useTranslation } from 'react-i18next'; import { DataEntityClassNameEnum, Permission } from 'generated-sources'; import { useAppDispatch, useAppSelector } from 'redux/lib/hooks'; import { @@ -28,10 +31,7 @@ import { EmptyContentPlaceholder, } from 'components/shared/elements'; import { AddIcon } from 'components/shared/icons'; -import findKey from 'lodash/findKey'; import { WithPermissions } from 'components/shared/contexts'; -import omit from 'lodash/omit'; -import { useTranslation } from 'react-i18next'; import TableHeader from './TableHeader/TableHeader'; import DataEntityGroupForm from '../../DataEntityDetails/DataEntityGroup/DataEntityGroupForm/DataEntityGroupForm'; import SearchResultsTabs from './SearchResultsTabs/SearchResultsTabs'; diff --git a/odd-platform-ui/src/components/Search/Results/TableHeader/TableHeader.tsx b/odd-platform-ui/src/components/Search/Results/TableHeader/TableHeader.tsx index c07e0a21d..1fd7024e1 100644 --- a/odd-platform-ui/src/components/Search/Results/TableHeader/TableHeader.tsx +++ b/odd-platform-ui/src/components/Search/Results/TableHeader/TableHeader.tsx @@ -1,8 +1,8 @@ import React from 'react'; import { Typography } from '@mui/material'; +import { useTranslation } from 'react-i18next'; import { DataEntityClassNameEnum } from 'generated-sources'; import { useScrollBarWidth } from 'lib/hooks'; -import { useTranslation } from 'react-i18next'; import * as S from '../Results.styles'; import type { GridSizesByBreakpoints } from '../Results.styles'; diff --git a/odd-platform-ui/src/components/Search/Search.tsx b/odd-platform-ui/src/components/Search/Search.tsx index 1793c32de..b1d7588da 100644 --- a/odd-platform-ui/src/components/Search/Search.tsx +++ b/odd-platform-ui/src/components/Search/Search.tsx @@ -2,6 +2,7 @@ import React from 'react'; import { useDebouncedCallback } from 'use-debounce'; import mapValues from 'lodash/mapValues'; import values from 'lodash/values'; +import { useTranslation } from 'react-i18next'; import { MainSearch, PageWithLeftSidebar } from 'components/shared/elements'; import { useAppParams, useCreateSearch } from 'lib/hooks'; import { getDataEntitiesSearch, updateDataEntitiesSearch } from 'redux/thunks'; @@ -16,7 +17,6 @@ import { import { useAppDispatch, useAppSelector } from 'redux/lib/hooks'; import { Permission } from 'generated-sources'; import { WithPermissionsProvider } from 'components/shared/contexts'; -import { useTranslation } from 'react-i18next'; import Filters from './Filters/Filters'; import Results from './Results/Results'; diff --git a/odd-platform-ui/src/components/Terms/TermDetails/Overview/OverviewGeneral/OverviewGeneral.tsx b/odd-platform-ui/src/components/Terms/TermDetails/Overview/OverviewGeneral/OverviewGeneral.tsx index 282da5ee3..fdac968f1 100644 --- a/odd-platform-ui/src/components/Terms/TermDetails/Overview/OverviewGeneral/OverviewGeneral.tsx +++ b/odd-platform-ui/src/components/Terms/TermDetails/Overview/OverviewGeneral/OverviewGeneral.tsx @@ -1,5 +1,6 @@ import React from 'react'; import { Grid } from '@mui/material'; +import { useTranslation } from 'react-i18next'; import { Button, ConfirmationDialog, @@ -14,7 +15,6 @@ import { getTermDetails } from 'redux/selectors/terms.selectors'; import { getTermOwnership } from 'redux/selectors'; import { WithPermissions } from 'components/shared/contexts'; import { Permission } from 'generated-sources'; -import { useTranslation } from 'react-i18next'; import OwnershipForm from '../../Ownership/OwnershipForm'; import { OwnerActionBtns, OwnerItem } from './OverviewGeneralStyles'; diff --git a/odd-platform-ui/src/components/Terms/TermDetails/Overview/OverviewTags/OverviewTags.tsx b/odd-platform-ui/src/components/Terms/TermDetails/Overview/OverviewTags/OverviewTags.tsx index d5c4e81fc..b09c09f1a 100644 --- a/odd-platform-ui/src/components/Terms/TermDetails/Overview/OverviewTags/OverviewTags.tsx +++ b/odd-platform-ui/src/components/Terms/TermDetails/Overview/OverviewTags/OverviewTags.tsx @@ -1,10 +1,10 @@ import React from 'react'; import { Box, Collapse, Grid, Typography } from '@mui/material'; +import { useTranslation } from 'react-i18next'; import { Permission, type Tag } from 'generated-sources'; import { AddIcon, EditIcon } from 'components/shared/icons'; import { Button, TagItem } from 'components/shared/elements'; import { WithPermissions } from 'components/shared/contexts'; -import { useTranslation } from 'react-i18next'; import TagsEditForm from './TagsEditForm/TagsEditForm'; import { CaptionContainer } from './OverviewTagsStyles'; diff --git a/odd-platform-ui/src/components/Terms/TermDetails/Ownership/OwnershipForm.tsx b/odd-platform-ui/src/components/Terms/TermDetails/Ownership/OwnershipForm.tsx index 1d2af2153..9fe5463e1 100644 --- a/odd-platform-ui/src/components/Terms/TermDetails/Ownership/OwnershipForm.tsx +++ b/odd-platform-ui/src/components/Terms/TermDetails/Ownership/OwnershipForm.tsx @@ -1,6 +1,7 @@ import React from 'react'; import { Typography } from '@mui/material'; import { Controller, useForm } from 'react-hook-form'; +import { useTranslation } from 'react-i18next'; import { type Ownership, type OwnershipFormData, Permission } from 'generated-sources'; import { Button, @@ -17,7 +18,6 @@ import { getTermDetailsOwnerUpdatingStatuses, } from 'redux/selectors'; import { WithPermissions } from 'components/shared/contexts'; -import { useTranslation } from 'react-i18next'; interface OwnershipFormProps { termDetailsOwnership?: Ownership; diff --git a/odd-platform-ui/src/components/Terms/TermDetails/TermDetailsHeader/TermDetailsHeader.tsx b/odd-platform-ui/src/components/Terms/TermDetails/TermDetailsHeader/TermDetailsHeader.tsx index 171e6d8d2..194ae3ccc 100644 --- a/odd-platform-ui/src/components/Terms/TermDetails/TermDetailsHeader/TermDetailsHeader.tsx +++ b/odd-platform-ui/src/components/Terms/TermDetails/TermDetailsHeader/TermDetailsHeader.tsx @@ -1,5 +1,6 @@ import React from 'react'; import { Grid, Typography } from '@mui/material'; +import { useTranslation } from 'react-i18next'; import { Button, AppMenuItem, @@ -12,7 +13,6 @@ import { Permission, type TermDetails } from 'generated-sources'; import TermsForm from 'components/Terms/TermSearch/TermForm/TermsForm'; import { EditIcon, KebabIcon, TimeGapIcon } from 'components/shared/icons'; import { useAppDateTime } from 'lib/hooks'; -import { useTranslation } from 'react-i18next'; interface TermDetailsHeaderProps { name: TermDetails['name']; diff --git a/odd-platform-ui/src/components/Terms/TermDetails/TermDetailsStyles.ts b/odd-platform-ui/src/components/Terms/TermDetails/TermDetailsStyles.ts index a5c83f32e..8d2be7ec8 100644 --- a/odd-platform-ui/src/components/Terms/TermDetails/TermDetailsStyles.ts +++ b/odd-platform-ui/src/components/Terms/TermDetails/TermDetailsStyles.ts @@ -1,5 +1,5 @@ -import { maxContentWidthWithoutSidebar, toolbarHeight } from 'lib/constants'; import styled from 'styled-components'; +import { maxContentWidthWithoutSidebar, toolbarHeight } from 'lib/constants'; export const TermDetailsComponentWrapper = styled('div')(({ theme }) => ({ margin: '0 auto', diff --git a/odd-platform-ui/src/components/Terms/TermDetails/TermDetailsTabs/TermDetailsTabs.tsx b/odd-platform-ui/src/components/Terms/TermDetails/TermDetailsTabs/TermDetailsTabs.tsx index 60a7e8e12..147894f71 100644 --- a/odd-platform-ui/src/components/Terms/TermDetails/TermDetailsTabs/TermDetailsTabs.tsx +++ b/odd-platform-ui/src/components/Terms/TermDetails/TermDetailsTabs/TermDetailsTabs.tsx @@ -1,9 +1,9 @@ import React from 'react'; +import { useTranslation } from 'react-i18next'; import { type AppTabItem, AppTabs } from 'components/shared/elements'; import { useAppParams, useAppPaths } from 'lib/hooks'; import { getTermDetails } from 'redux/selectors'; import { useAppSelector } from 'redux/lib/hooks'; -import { useTranslation } from 'react-i18next'; const TermDetailsTabs: React.FC = () => { const { t } = useTranslation(); diff --git a/odd-platform-ui/src/components/Terms/TermDetails/TermLinkedItemsList/LinkedItemsListStyles.ts b/odd-platform-ui/src/components/Terms/TermDetails/TermLinkedItemsList/LinkedItemsListStyles.ts index b26e80995..ce818ce1f 100644 --- a/odd-platform-ui/src/components/Terms/TermDetails/TermLinkedItemsList/LinkedItemsListStyles.ts +++ b/odd-platform-ui/src/components/Terms/TermDetails/TermLinkedItemsList/LinkedItemsListStyles.ts @@ -1,6 +1,6 @@ import { Grid } from '@mui/material'; -import { primaryTabsHeight, tabsContainerMargin, toolbarHeight } from 'lib/constants'; import styled from 'styled-components'; +import { primaryTabsHeight, tabsContainerMargin, toolbarHeight } from 'lib/constants'; import type { TermSearchResultsColType } from 'components/Terms/TermSearch/TermSearchResults/TermSearchResultsStyles'; import { termSearchResultsColWidthStyles } from 'components/Terms/TermSearch/TermSearchResults/TermSearchResultsStyles'; diff --git a/odd-platform-ui/src/components/Terms/TermSearch/TermSearchFilters/TermSearchFilters.tsx b/odd-platform-ui/src/components/Terms/TermSearch/TermSearchFilters/TermSearchFilters.tsx index 9ef512af3..07b182fe7 100644 --- a/odd-platform-ui/src/components/Terms/TermSearch/TermSearchFilters/TermSearchFilters.tsx +++ b/odd-platform-ui/src/components/Terms/TermSearch/TermSearchFilters/TermSearchFilters.tsx @@ -1,11 +1,11 @@ import React from 'react'; import { Grid, Typography } from '@mui/material'; +import { useTranslation } from 'react-i18next'; import { Button, AppCircularProgress } from 'components/shared/elements'; import { useAppDispatch, useAppSelector } from 'redux/lib/hooks'; import { getNamespaceList, getTermSearchUpdateStatuses } from 'redux/selectors'; import { fetchNamespaceList } from 'redux/thunks'; import { clearTermSearchFacets } from 'redux/slices/termSearch.slice'; -import { useTranslation } from 'react-i18next'; import MultipleFilterItem from './TermSearchFilterItem/MultipleFilterItem/MultipleFilterItem'; import SingleFilterItem from './TermSearchFilterItem/SingleFilterItem/SingleFilterItem'; import * as S from './TermSearchFiltersStyles'; diff --git a/odd-platform-ui/src/components/Terms/TermSearch/TermSearchFilters/TermSearchFiltersStyles.ts b/odd-platform-ui/src/components/Terms/TermSearch/TermSearchFilters/TermSearchFiltersStyles.ts index e36d12999..bffbf5d7a 100644 --- a/odd-platform-ui/src/components/Terms/TermSearch/TermSearchFilters/TermSearchFiltersStyles.ts +++ b/odd-platform-ui/src/components/Terms/TermSearch/TermSearchFilters/TermSearchFiltersStyles.ts @@ -1,6 +1,6 @@ import { Grid } from '@mui/material'; -import { toolbarHeight } from 'lib/constants'; import styled from 'styled-components'; +import { toolbarHeight } from 'lib/constants'; export const TermSearchFiltersContainer = styled('div')(({ theme }) => ({ padding: theme.spacing(2, 1, 1.5, 1), diff --git a/odd-platform-ui/src/components/Terms/TermSearch/TermSearchHeader/TermSearchHeader.tsx b/odd-platform-ui/src/components/Terms/TermSearch/TermSearchHeader/TermSearchHeader.tsx index c44706424..02b63cdf2 100644 --- a/odd-platform-ui/src/components/Terms/TermSearch/TermSearchHeader/TermSearchHeader.tsx +++ b/odd-platform-ui/src/components/Terms/TermSearch/TermSearchHeader/TermSearchHeader.tsx @@ -1,10 +1,10 @@ import React from 'react'; +import { Grid } from '@mui/material'; +import { useTranslation } from 'react-i18next'; import { WithPermissions } from 'components/shared/contexts'; import { Permission } from 'generated-sources'; import { Button } from 'components/shared/elements'; import { AddIcon } from 'components/shared/icons'; -import { Grid } from '@mui/material'; -import { useTranslation } from 'react-i18next'; import TermsForm from '../TermForm/TermsForm'; import TermSearchInput from '../TermSearchInput/TermSearchInput'; diff --git a/odd-platform-ui/src/components/Terms/TermSearch/TermSearchResults/TermSearchResults.tsx b/odd-platform-ui/src/components/Terms/TermSearch/TermSearchResults/TermSearchResults.tsx index df79ac85f..5856dfeb3 100644 --- a/odd-platform-ui/src/components/Terms/TermSearch/TermSearchResults/TermSearchResults.tsx +++ b/odd-platform-ui/src/components/Terms/TermSearch/TermSearchResults/TermSearchResults.tsx @@ -1,6 +1,7 @@ import React from 'react'; import { Grid, Typography } from '@mui/material'; import InfiniteScroll from 'react-infinite-scroll-component'; +import { useTranslation } from 'react-i18next'; import { useScrollBarWidth } from 'lib/hooks'; import { EmptyContentPlaceholder } from 'components/shared/elements'; import { @@ -15,7 +16,6 @@ import { } from 'redux/selectors'; import { fetchTermsSearchResults } from 'redux/thunks'; import { useAppDispatch, useAppSelector } from 'redux/lib/hooks'; -import { useTranslation } from 'react-i18next'; import TermSearchResultItem from './TermSearchResultItem/TermSearchResultItem'; import * as S from './TermSearchResultsStyles'; import TermSearchResultsSkeleton from './TermSearchResultsSkeleton/TermSearchResultsSkeleton'; diff --git a/odd-platform-ui/src/components/Terms/TermSearch/TermSearchResults/TermSearchResultsStyles.ts b/odd-platform-ui/src/components/Terms/TermSearch/TermSearchResults/TermSearchResultsStyles.ts index 27963ae80..5889efdf1 100644 --- a/odd-platform-ui/src/components/Terms/TermSearch/TermSearchResults/TermSearchResultsStyles.ts +++ b/odd-platform-ui/src/components/Terms/TermSearch/TermSearchResults/TermSearchResultsStyles.ts @@ -1,6 +1,6 @@ import { Grid, type GridProps } from '@mui/material'; -import { primaryTabsHeight, tabsContainerMargin, toolbarHeight } from 'lib/constants'; import styled from 'styled-components'; +import { primaryTabsHeight, tabsContainerMargin, toolbarHeight } from 'lib/constants'; export type TermSearchResultsColType = 'col' | 'colxs' | 'colsm' | 'colmd' | 'collg'; export const termSearchResultsColWidthStyles = { diff --git a/odd-platform-ui/src/components/shared/elements/Activity/ActivityFields/ActivityFieldHeader/ActivityFieldHeader.tsx b/odd-platform-ui/src/components/shared/elements/Activity/ActivityFields/ActivityFieldHeader/ActivityFieldHeader.tsx index afd799179..f08b60ab7 100644 --- a/odd-platform-ui/src/components/shared/elements/Activity/ActivityFields/ActivityFieldHeader/ActivityFieldHeader.tsx +++ b/odd-platform-ui/src/components/shared/elements/Activity/ActivityFields/ActivityFieldHeader/ActivityFieldHeader.tsx @@ -1,10 +1,10 @@ import React from 'react'; import { Typography } from '@mui/material'; +import { useTranslation } from 'react-i18next'; import type { EventType } from 'lib/interfaces'; import { useActivityHeaderIcon } from 'lib/hooks'; import * as S from 'components/shared/elements/Activity/ActivityFields/ActivityFieldHeader/ActivityFieldHeaderStyles'; import Button from 'components/shared/elements/Button/Button'; -import { useTranslation } from 'react-i18next'; interface ActivityFieldHeaderProps { startText: string; diff --git a/odd-platform-ui/src/components/shared/elements/Activity/ActivityFields/ActivityFieldState/ActivityFieldStateStyles.ts b/odd-platform-ui/src/components/shared/elements/Activity/ActivityFields/ActivityFieldState/ActivityFieldStateStyles.ts index 7b1a34394..2ed9dfa41 100644 --- a/odd-platform-ui/src/components/shared/elements/Activity/ActivityFields/ActivityFieldState/ActivityFieldStateStyles.ts +++ b/odd-platform-ui/src/components/shared/elements/Activity/ActivityFields/ActivityFieldState/ActivityFieldStateStyles.ts @@ -1,7 +1,7 @@ import styled, { type CSSObject } from 'styled-components'; -import { DropdownIcon } from 'components/shared/icons'; import { Grid } from '@mui/material'; import { type CSSProperties } from 'react'; +import { DropdownIcon } from 'components/shared/icons'; export const SeparatorIcon = styled(DropdownIcon)(({ theme }) => ({ marginLeft: theme.spacing(1), diff --git a/odd-platform-ui/src/components/shared/elements/Activity/ActivityFields/AlertActivityField/AlertActivityField.tsx b/odd-platform-ui/src/components/shared/elements/Activity/ActivityFields/AlertActivityField/AlertActivityField.tsx index e6a0bd73f..32084ac64 100644 --- a/odd-platform-ui/src/components/shared/elements/Activity/ActivityFields/AlertActivityField/AlertActivityField.tsx +++ b/odd-platform-ui/src/components/shared/elements/Activity/ActivityFields/AlertActivityField/AlertActivityField.tsx @@ -1,11 +1,11 @@ import React from 'react'; +import { Grid, Typography } from '@mui/material'; +import { useTranslation } from 'react-i18next'; import type { ActivityEventType, AlertHaltConfigActivityState } from 'generated-sources'; import type { Activity } from 'redux/interfaces'; -import { Grid, Typography } from '@mui/material'; import { stringFormatted } from 'lib/helpers'; import { alertTitlesMap } from 'lib/constants'; import { useAppDateTime } from 'lib/hooks'; -import { useTranslation } from 'react-i18next'; interface AlertActivityFieldProps { eventType: ActivityEventType; diff --git a/odd-platform-ui/src/components/shared/elements/Activity/ActivityFields/ArrayActivityField/ArrayActivityField.tsx b/odd-platform-ui/src/components/shared/elements/Activity/ActivityFields/ArrayActivityField/ArrayActivityField.tsx index c9e3c2b7a..0f962050f 100644 --- a/odd-platform-ui/src/components/shared/elements/Activity/ActivityFields/ArrayActivityField/ArrayActivityField.tsx +++ b/odd-platform-ui/src/components/shared/elements/Activity/ActivityFields/ArrayActivityField/ArrayActivityField.tsx @@ -1,7 +1,7 @@ import React, { type CSSProperties } from 'react'; import { Grid } from '@mui/material'; -import { type EventType } from 'lib/interfaces'; import isEmpty from 'lodash/isEmpty'; +import { type EventType } from 'lib/interfaces'; import ActivityFieldHeader from 'components/shared/elements/Activity/ActivityFields/ActivityFieldHeader/ActivityFieldHeader'; import ActivityFieldState from 'components/shared/elements/Activity/ActivityFields/ActivityFieldState/ActivityFieldState'; import * as S from 'components/shared/elements/Activity/ActivityFields/ArrayActivityField/ArrayActivityFieldStyles'; diff --git a/odd-platform-ui/src/components/shared/elements/Activity/ActivityFields/CustomGroupActivityField/CustomGroupActivityField.tsx b/odd-platform-ui/src/components/shared/elements/Activity/ActivityFields/CustomGroupActivityField/CustomGroupActivityField.tsx index da9085f99..2696bf7a0 100644 --- a/odd-platform-ui/src/components/shared/elements/Activity/ActivityFields/CustomGroupActivityField/CustomGroupActivityField.tsx +++ b/odd-platform-ui/src/components/shared/elements/Activity/ActivityFields/CustomGroupActivityField/CustomGroupActivityField.tsx @@ -1,14 +1,14 @@ import React from 'react'; import { Box, Grid, Typography } from '@mui/material'; +import isEmpty from 'lodash/isEmpty'; +import { useTranslation } from 'react-i18next'; import { type CustomGroupActivityState } from 'generated-sources'; import { type EventType } from 'lib/interfaces'; -import isEmpty from 'lodash/isEmpty'; import { useAppPaths } from 'lib/hooks'; import Button from 'components/shared/elements/Button/Button'; import ActivityFieldState from 'components/shared/elements/Activity/ActivityFields/ActivityFieldState/ActivityFieldState'; import ActivityFieldHeader from 'components/shared/elements/Activity/ActivityFields/ActivityFieldHeader/ActivityFieldHeader'; import * as S from 'components/shared/elements/Activity/ActivityFields/ArrayActivityField/ArrayActivityFieldStyles'; -import { useTranslation } from 'react-i18next'; interface GroupFieldData { id?: number; diff --git a/odd-platform-ui/src/components/shared/elements/Activity/ActivityFields/DatasetTermActivityField/DatasetTermActivityField.tsx b/odd-platform-ui/src/components/shared/elements/Activity/ActivityFields/DatasetTermActivityField/DatasetTermActivityField.tsx index ead2bb3cd..ed7e6c45d 100644 --- a/odd-platform-ui/src/components/shared/elements/Activity/ActivityFields/DatasetTermActivityField/DatasetTermActivityField.tsx +++ b/odd-platform-ui/src/components/shared/elements/Activity/ActivityFields/DatasetTermActivityField/DatasetTermActivityField.tsx @@ -1,4 +1,7 @@ import React, { type FC, useEffect } from 'react'; +import isEmpty from 'lodash/isEmpty'; +import { Box, Grid, Typography } from '@mui/material'; +import { useTranslation } from 'react-i18next'; import type { DatasetFieldTermsActivityState, TermActivityState, @@ -6,9 +9,6 @@ import type { import type { EventType } from 'lib/interfaces'; import ActivityFieldHeader from 'components/shared/elements/Activity/ActivityFields/ActivityFieldHeader/ActivityFieldHeader'; import ActivityFieldState from 'components/shared/elements/Activity/ActivityFields/ActivityFieldState/ActivityFieldState'; -import isEmpty from 'lodash/isEmpty'; -import { Box, Grid, Typography } from '@mui/material'; -import { useTranslation } from 'react-i18next'; import { LinkedTermIcon } from 'components/shared/icons'; import * as S from './DatasetTermActivityField.styles'; diff --git a/odd-platform-ui/src/components/shared/elements/Activity/ActivityFields/EntityStatusActivityField/EntityStatusActivityField.tsx b/odd-platform-ui/src/components/shared/elements/Activity/ActivityFields/EntityStatusActivityField/EntityStatusActivityField.tsx index 2bab9d300..82e6be177 100644 --- a/odd-platform-ui/src/components/shared/elements/Activity/ActivityFields/EntityStatusActivityField/EntityStatusActivityField.tsx +++ b/odd-platform-ui/src/components/shared/elements/Activity/ActivityFields/EntityStatusActivityField/EntityStatusActivityField.tsx @@ -1,7 +1,7 @@ import React, { type FC, useEffect, useState } from 'react'; +import { Box, Grid, Typography } from '@mui/material'; import ActivityFieldHeader from 'components/shared/elements/Activity/ActivityFields/ActivityFieldHeader/ActivityFieldHeader'; import ActivityFieldState from 'components/shared/elements/Activity/ActivityFields/ActivityFieldState/ActivityFieldState'; -import { Box, Grid, Typography } from '@mui/material'; import type { DataEntityStatusActivityState } from 'generated-sources'; import type { SerializeDateToNumber } from 'redux/interfaces'; import { EntityStatus } from 'components/shared/elements/index'; diff --git a/odd-platform-ui/src/components/shared/elements/Activity/ActivityFields/EnumsActivityField/EnumsActivityField.tsx b/odd-platform-ui/src/components/shared/elements/Activity/ActivityFields/EnumsActivityField/EnumsActivityField.tsx index 452ab70ee..c1910057f 100644 --- a/odd-platform-ui/src/components/shared/elements/Activity/ActivityFields/EnumsActivityField/EnumsActivityField.tsx +++ b/odd-platform-ui/src/components/shared/elements/Activity/ActivityFields/EnumsActivityField/EnumsActivityField.tsx @@ -1,15 +1,15 @@ import React from 'react'; import { Grid, Typography } from '@mui/material'; +import isEmpty from 'lodash/isEmpty'; +import { useTranslation } from 'react-i18next'; import type { DatasetFieldEnumValuesActivityState, DatasetFieldValuesActivityState, } from 'generated-sources'; import { type EventType } from 'lib/interfaces'; -import isEmpty from 'lodash/isEmpty'; import ActivityFieldHeader from 'components/shared/elements/Activity/ActivityFields/ActivityFieldHeader/ActivityFieldHeader'; import ActivityFieldState from 'components/shared/elements/Activity/ActivityFields/ActivityFieldState/ActivityFieldState'; import * as S from 'components/shared/elements/Activity/ActivityFields/EnumsActivityField/EnumsActivityFieldStyles'; -import { useTranslation } from 'react-i18next'; interface ActivityData extends DatasetFieldEnumValuesActivityState { typeOfChange?: EventType; diff --git a/odd-platform-ui/src/components/shared/elements/Activity/ActivityFields/OwnerActivityField/OwnerActivityField.tsx b/odd-platform-ui/src/components/shared/elements/Activity/ActivityFields/OwnerActivityField/OwnerActivityField.tsx index 7403276e1..a49a0fa1b 100644 --- a/odd-platform-ui/src/components/shared/elements/Activity/ActivityFields/OwnerActivityField/OwnerActivityField.tsx +++ b/odd-platform-ui/src/components/shared/elements/Activity/ActivityFields/OwnerActivityField/OwnerActivityField.tsx @@ -1,16 +1,16 @@ import React from 'react'; import { Grid } from '@mui/material'; +import isEmpty from 'lodash/isEmpty'; +import { useTranslation } from 'react-i18next'; import type { ActivityEventType, ActivityState, OwnershipActivityState, } from 'generated-sources'; import { type EventType } from 'lib/interfaces'; -import isEmpty from 'lodash/isEmpty'; import OwnerWithTitle from 'components/shared/elements/Activity/ActivityFields/OwnerActivityField/OwnerWithTitle/OwnerWithTitle'; import ActivityFieldHeader from 'components/shared/elements/Activity/ActivityFields/ActivityFieldHeader/ActivityFieldHeader'; import ActivityFieldState from 'components/shared/elements/Activity/ActivityFields/ActivityFieldState/ActivityFieldState'; -import { useTranslation } from 'react-i18next'; type OwnerItem = OwnershipActivityState & { typeOfChange?: EventType; diff --git a/odd-platform-ui/src/components/shared/elements/Activity/ActivityFields/TermActivityField/TermActivityField.tsx b/odd-platform-ui/src/components/shared/elements/Activity/ActivityFields/TermActivityField/TermActivityField.tsx index 4d23827e0..1d255a1dd 100644 --- a/odd-platform-ui/src/components/shared/elements/Activity/ActivityFields/TermActivityField/TermActivityField.tsx +++ b/odd-platform-ui/src/components/shared/elements/Activity/ActivityFields/TermActivityField/TermActivityField.tsx @@ -1,12 +1,12 @@ import React, { type CSSProperties } from 'react'; import { Box, Grid, Typography } from '@mui/material'; +import isEmpty from 'lodash/isEmpty'; +import { useTranslation } from 'react-i18next'; import { type TermActivityState } from 'generated-sources'; import { type EventType } from 'lib/interfaces'; -import isEmpty from 'lodash/isEmpty'; import ActivityFieldState from 'components/shared/elements/Activity/ActivityFields/ActivityFieldState/ActivityFieldState'; import ActivityFieldHeader from 'components/shared/elements/Activity/ActivityFields/ActivityFieldHeader/ActivityFieldHeader'; import { LinkedTermIcon } from 'components/shared/icons'; -import { useTranslation } from 'react-i18next'; import * as S from './TermActivityField.styles'; interface ActivityData extends TermActivityState { diff --git a/odd-platform-ui/src/components/shared/elements/Activity/ActivityFilterItems/CalendarFilter/CalendarFilter.tsx b/odd-platform-ui/src/components/shared/elements/Activity/ActivityFilterItems/CalendarFilter/CalendarFilter.tsx index 0e5cf2f57..cf4fa81f3 100644 --- a/odd-platform-ui/src/components/shared/elements/Activity/ActivityFilterItems/CalendarFilter/CalendarFilter.tsx +++ b/odd-platform-ui/src/components/shared/elements/Activity/ActivityFilterItems/CalendarFilter/CalendarFilter.tsx @@ -1,4 +1,5 @@ import React from 'react'; +import { useTranslation } from 'react-i18next'; import { useQueryParams } from 'lib/hooks'; import { type ActivityQuery, @@ -6,7 +7,6 @@ import { } from 'components/shared/elements/Activity/common'; import { toDate } from 'lib/helpers'; import AppDateRangePicker from 'components/shared/elements/AppDateRangePicker/AppDateRangePicker'; -import { useTranslation } from 'react-i18next'; const CalendarFilter: React.FC = () => { const { t } = useTranslation(); diff --git a/odd-platform-ui/src/components/shared/elements/Activity/ActivityFilterItems/MultipleFilter/MultipleFilterAutocomplete/MultipleFilterAutocomplete.tsx b/odd-platform-ui/src/components/shared/elements/Activity/ActivityFilterItems/MultipleFilter/MultipleFilterAutocomplete/MultipleFilterAutocomplete.tsx index 29726bc4a..d74c12273 100644 --- a/odd-platform-ui/src/components/shared/elements/Activity/ActivityFilterItems/MultipleFilter/MultipleFilterAutocomplete/MultipleFilterAutocomplete.tsx +++ b/odd-platform-ui/src/components/shared/elements/Activity/ActivityFilterItems/MultipleFilter/MultipleFilterAutocomplete/MultipleFilterAutocomplete.tsx @@ -2,11 +2,11 @@ import React, { type HTMLAttributes } from 'react'; import { type AutocompleteRenderOptionState } from '@mui/material'; import Autocomplete from '@mui/material/Autocomplete'; import { useDebouncedCallback } from 'use-debounce'; +import uniq from 'lodash/uniq'; +import { type AutocompleteInputChangeReason } from '@mui/material/useAutocomplete'; import { ClearIcon } from 'components/shared/icons'; import { useAppDispatch } from 'redux/lib/hooks'; -import uniq from 'lodash/uniq'; import { fetchOwnersList, fetchTagsList } from 'redux/thunks'; -import { type AutocompleteInputChangeReason } from '@mui/material/useAutocomplete'; import { useQueryParams } from 'lib/hooks'; import { type ActivityMultipleFilterNames, diff --git a/odd-platform-ui/src/components/shared/elements/Activity/common.ts b/odd-platform-ui/src/components/shared/elements/Activity/common.ts index df739027d..52fd05220 100644 --- a/odd-platform-ui/src/components/shared/elements/Activity/common.ts +++ b/odd-platform-ui/src/components/shared/elements/Activity/common.ts @@ -1,7 +1,7 @@ +import { addDays, startOfDay } from 'date-fns'; import type { Activity, RequiredField, SerializeDateToNumber } from 'redux/interfaces'; import type { ActivityApiGetActivityRequest } from 'generated-sources'; import { ActivityType } from 'generated-sources'; -import { addDays, startOfDay } from 'date-fns'; import { activityListSize } from 'redux/thunks'; export type ActivityQuery = RequiredField< diff --git a/odd-platform-ui/src/components/shared/elements/AlertIcon/AlertIcon.tsx b/odd-platform-ui/src/components/shared/elements/AlertIcon/AlertIcon.tsx index 12da4e468..b5ded576a 100644 --- a/odd-platform-ui/src/components/shared/elements/AlertIcon/AlertIcon.tsx +++ b/odd-platform-ui/src/components/shared/elements/AlertIcon/AlertIcon.tsx @@ -1,4 +1,5 @@ import React from 'react'; +import styled from 'styled-components'; import { AlertAnomalyIcon, AlertDQTestIcon, @@ -7,7 +8,6 @@ import { } from 'components/shared/icons'; import { AlertStatus, AlertType, type DataEntityAlertConfig } from 'generated-sources'; import type { Alert } from 'redux/interfaces'; -import styled from 'styled-components'; interface AlertIconProps { status?: Alert['status']; diff --git a/odd-platform-ui/src/components/shared/elements/AlertStatusItem/AlertStatusItemStyles.ts b/odd-platform-ui/src/components/shared/elements/AlertStatusItem/AlertStatusItemStyles.ts index 30bc8cd23..f13720367 100644 --- a/odd-platform-ui/src/components/shared/elements/AlertStatusItem/AlertStatusItemStyles.ts +++ b/odd-platform-ui/src/components/shared/elements/AlertStatusItem/AlertStatusItemStyles.ts @@ -1,5 +1,5 @@ -import { type AlertStatus } from 'generated-sources'; import styled from 'styled-components'; +import { type AlertStatus } from 'generated-sources'; interface FilledContainerProps { $status: AlertStatus; diff --git a/odd-platform-ui/src/components/shared/elements/AppDateTimePicker/AppDateTimePicker.tsx b/odd-platform-ui/src/components/shared/elements/AppDateTimePicker/AppDateTimePicker.tsx index d381e5f01..1828fa826 100644 --- a/odd-platform-ui/src/components/shared/elements/AppDateTimePicker/AppDateTimePicker.tsx +++ b/odd-platform-ui/src/components/shared/elements/AppDateTimePicker/AppDateTimePicker.tsx @@ -1,8 +1,8 @@ import React, { forwardRef } from 'react'; import { Box, type Theme } from '@mui/material'; import type { SxProps } from '@mui/system'; -import { CalendarIcon } from 'components/shared/icons'; import { DateTimePicker, type DateTimePickerProps } from '@mui/x-date-pickers'; +import { CalendarIcon } from 'components/shared/icons'; import Input from 'components/shared/elements/Input/Input'; import ChevronIcon from 'components/shared/icons/ChevronIcon'; import { dateTimePaperPropsStyles } from './style.overrides'; diff --git a/odd-platform-ui/src/components/shared/elements/AppErrorPage/AppErrorPage.tsx b/odd-platform-ui/src/components/shared/elements/AppErrorPage/AppErrorPage.tsx index 3140380f3..269529e9c 100644 --- a/odd-platform-ui/src/components/shared/elements/AppErrorPage/AppErrorPage.tsx +++ b/odd-platform-ui/src/components/shared/elements/AppErrorPage/AppErrorPage.tsx @@ -1,9 +1,9 @@ import { Grid, Typography } from '@mui/material'; import React from 'react'; +import { useTranslation } from 'react-i18next'; import type { ErrorState } from 'redux/interfaces/loader'; import { toolbarHeight } from 'lib/constants'; import Button from 'components/shared/elements/Button/Button'; -import { useTranslation } from 'react-i18next'; interface AppErrorPageProps { showError: boolean; diff --git a/odd-platform-ui/src/components/shared/elements/AppSelect/AppSelect.tsx b/odd-platform-ui/src/components/shared/elements/AppSelect/AppSelect.tsx index 3846a4737..65ff28c37 100644 --- a/odd-platform-ui/src/components/shared/elements/AppSelect/AppSelect.tsx +++ b/odd-platform-ui/src/components/shared/elements/AppSelect/AppSelect.tsx @@ -1,7 +1,7 @@ import React from 'react'; import { Grid, type SelectProps, type Theme } from '@mui/material'; -import { DropdownIcon } from 'components/shared/icons'; import { type SxProps } from '@mui/system'; +import { DropdownIcon } from 'components/shared/icons'; import type { AppSelectSizes } from 'components/shared/elements/AppSelect/AppSelectStyles'; import * as S from 'components/shared/elements/AppSelect/AppSelectStyles'; diff --git a/odd-platform-ui/src/components/shared/elements/AppTabs/AppTab/TabStyles.ts b/odd-platform-ui/src/components/shared/elements/AppTabs/AppTab/TabStyles.ts index 8b8ec190e..49a78762d 100644 --- a/odd-platform-ui/src/components/shared/elements/AppTabs/AppTab/TabStyles.ts +++ b/odd-platform-ui/src/components/shared/elements/AppTabs/AppTab/TabStyles.ts @@ -6,8 +6,8 @@ import { type TabsProps, } from '@mui/material'; import { type Theme } from '@mui/material/styles'; -import { type TabType } from 'components/shared/elements/AppTabs/interfaces'; import styled, { type CSSObject } from 'styled-components'; +import { type TabType } from 'components/shared/elements/AppTabs/interfaces'; const getTabStylesByType = (theme: Theme, type: TabType): CSSObject => { switch (type) { diff --git a/odd-platform-ui/src/components/shared/elements/AppTabs/AppTabLabel/AppTabLabelStyles.ts b/odd-platform-ui/src/components/shared/elements/AppTabs/AppTabLabel/AppTabLabelStyles.ts index b9003ead6..1d37471b6 100644 --- a/odd-platform-ui/src/components/shared/elements/AppTabs/AppTabLabel/AppTabLabelStyles.ts +++ b/odd-platform-ui/src/components/shared/elements/AppTabs/AppTabLabel/AppTabLabelStyles.ts @@ -1,8 +1,8 @@ import { Typography } from '@mui/material'; import { type Theme } from '@mui/material/styles'; -import { type HintType } from 'components/shared/elements/AppTabs/interfaces'; import { type ElementType } from 'react'; import styled, { type CSSObject } from 'styled-components'; +import { type HintType } from 'components/shared/elements/AppTabs/interfaces'; const getTabHintStylesByType = (theme: Theme, hintType: HintType): CSSObject => { switch (hintType) { diff --git a/odd-platform-ui/src/components/shared/elements/AppTabs/AppTabsStyles.ts b/odd-platform-ui/src/components/shared/elements/AppTabs/AppTabsStyles.ts index 13c27fcf7..f05ed24d5 100644 --- a/odd-platform-ui/src/components/shared/elements/AppTabs/AppTabsStyles.ts +++ b/odd-platform-ui/src/components/shared/elements/AppTabs/AppTabsStyles.ts @@ -1,6 +1,6 @@ import { tabClasses, Tabs, tabsClasses } from '@mui/material'; -import { primaryTabsHeight } from 'lib/constants'; import styled, { type CSSObject } from 'styled-components'; +import { primaryTabsHeight } from 'lib/constants'; import { type TabType } from 'components/shared/elements/AppTabs/interfaces'; export const TabsContainer = styled(Tabs)<{ $type: TabType }>(({ theme, $type }) => { diff --git a/odd-platform-ui/src/components/shared/elements/AppToolbar/AppInfoMenu/AppInfoMenu.tsx b/odd-platform-ui/src/components/shared/elements/AppToolbar/AppInfoMenu/AppInfoMenu.tsx index 9ff2df799..de52caf53 100644 --- a/odd-platform-ui/src/components/shared/elements/AppToolbar/AppInfoMenu/AppInfoMenu.tsx +++ b/odd-platform-ui/src/components/shared/elements/AppToolbar/AppInfoMenu/AppInfoMenu.tsx @@ -1,4 +1,6 @@ import React, { type MouseEvent } from 'react'; +import { Grid, Typography } from '@mui/material'; +import { Link } from 'react-router-dom'; import { FeedbackIcon, GitBookIcon, @@ -6,8 +8,6 @@ import { InformationIcon, SlackIcon, } from 'components/shared/icons'; -import { Grid, Typography } from '@mui/material'; -import { Link } from 'react-router-dom'; import AppMenu from 'components/shared/elements/AppMenu/AppMenu'; import { useAppInfo, useAppLinks } from 'lib/hooks/api'; import * as S from 'components/shared/elements/AppToolbar/AppInfoMenu/AppInfoMenuStyles'; diff --git a/odd-platform-ui/src/components/shared/elements/AppToolbar/AppToolbarStyles.ts b/odd-platform-ui/src/components/shared/elements/AppToolbar/AppToolbarStyles.ts index 763c9f1b0..0c693e1c2 100644 --- a/odd-platform-ui/src/components/shared/elements/AppToolbar/AppToolbarStyles.ts +++ b/odd-platform-ui/src/components/shared/elements/AppToolbar/AppToolbarStyles.ts @@ -1,7 +1,7 @@ import { AppBar, appBarClasses, Grid, Toolbar } from '@mui/material'; -import { maxContentWidth, maxSidebarWidth, toolbarHeight } from 'lib/constants'; import styled from 'styled-components'; import { Link } from 'react-router-dom'; +import { maxContentWidth, maxSidebarWidth, toolbarHeight } from 'lib/constants'; export const Bar = styled(AppBar)(({ theme }) => ({ [`&.${appBarClasses.root}`]: { backgroundColor: theme.palette.common.white }, diff --git a/odd-platform-ui/src/components/shared/elements/Autocomplete/DataEntityChannelsAutocomplete/DataEntityChannelsAutocomplete.tsx b/odd-platform-ui/src/components/shared/elements/Autocomplete/DataEntityChannelsAutocomplete/DataEntityChannelsAutocomplete.tsx index b73ac81c9..867af583b 100644 --- a/odd-platform-ui/src/components/shared/elements/Autocomplete/DataEntityChannelsAutocomplete/DataEntityChannelsAutocomplete.tsx +++ b/odd-platform-ui/src/components/shared/elements/Autocomplete/DataEntityChannelsAutocomplete/DataEntityChannelsAutocomplete.tsx @@ -6,17 +6,17 @@ import { type Theme, Typography, } from '@mui/material'; -import { type MessageChannel } from 'generated-sources'; import { createFilterOptions, type FilterOptionsState, } from '@mui/material/useAutocomplete'; +import { type SxProps } from '@mui/system'; +import { useTranslation } from 'react-i18next'; +import { type MessageChannel } from 'generated-sources'; import { ClearIcon } from 'components/shared/icons'; import { useAppDispatch } from 'redux/lib/hooks'; import { fetchDataEntityChannels } from 'redux/thunks'; -import { type SxProps } from '@mui/system'; import Input from 'components/shared/elements/Input/Input'; -import { useTranslation } from 'react-i18next'; interface DataEntityChannelsAutocompleteProps { dataEntityId: number; diff --git a/odd-platform-ui/src/components/shared/elements/Autocomplete/NamespaceAutocomplete/NamespaceAutocomplete.tsx b/odd-platform-ui/src/components/shared/elements/Autocomplete/NamespaceAutocomplete/NamespaceAutocomplete.tsx index 9df4a9eeb..6f6c08730 100644 --- a/odd-platform-ui/src/components/shared/elements/Autocomplete/NamespaceAutocomplete/NamespaceAutocomplete.tsx +++ b/odd-platform-ui/src/components/shared/elements/Autocomplete/NamespaceAutocomplete/NamespaceAutocomplete.tsx @@ -6,6 +6,8 @@ import { type FilterOptionsState, } from '@mui/material/useAutocomplete'; import { useDebouncedCallback } from 'use-debounce'; +import { type ControllerRenderProps } from 'react-hook-form'; +import { useTranslation } from 'react-i18next'; import type { CollectorFormData, DataEntityGroupFormData, @@ -13,13 +15,11 @@ import type { TermFormData, } from 'generated-sources'; import { ClearIcon } from 'components/shared/icons'; -import { type ControllerRenderProps } from 'react-hook-form'; import { useAppDispatch } from 'redux/lib/hooks'; import { fetchNamespaceList as searchNamespace } from 'redux/thunks'; import type { DataSourceFormDataValues } from 'components/Management/DataSourcesList/DataSourceForm/DataSourceForm'; import AutocompleteSuggestion from 'components/shared/elements/AutocompleteSuggestion/AutocompleteSuggestion'; import Input from 'components/shared/elements/Input/Input'; -import { useTranslation } from 'react-i18next'; type FilterOption = Omit & Partial; diff --git a/odd-platform-ui/src/components/shared/elements/Autocomplete/OwnerAutocomplete/OwnerAutocomplete.tsx b/odd-platform-ui/src/components/shared/elements/Autocomplete/OwnerAutocomplete/OwnerAutocomplete.tsx index eeb794c4f..9b30a6ac0 100644 --- a/odd-platform-ui/src/components/shared/elements/Autocomplete/OwnerAutocomplete/OwnerAutocomplete.tsx +++ b/odd-platform-ui/src/components/shared/elements/Autocomplete/OwnerAutocomplete/OwnerAutocomplete.tsx @@ -6,18 +6,18 @@ import { Typography, } from '@mui/material'; import type { ControllerRenderProps } from 'react-hook-form'; -import type { Owner, OwnershipFormData } from 'generated-sources'; import { type AutocompleteInputChangeReason, createFilterOptions, type FilterOptionsState, } from '@mui/material/useAutocomplete'; +import { useTranslation } from 'react-i18next'; +import type { Owner, OwnershipFormData } from 'generated-sources'; import { ClearIcon } from 'components/shared/icons'; import { useAppDispatch } from 'redux/lib/hooks'; import { fetchOwnersList } from 'redux/thunks'; import AutocompleteSuggestion from 'components/shared/elements/AutocompleteSuggestion/AutocompleteSuggestion'; import Input from 'components/shared/elements/Input/Input'; -import { useTranslation } from 'react-i18next'; interface OwnerAutocompleteProps { disableOwnerCreating?: boolean; diff --git a/odd-platform-ui/src/components/shared/elements/Autocomplete/OwnerTitleAutocomplete/OwnerTitleAutocomplete.tsx b/odd-platform-ui/src/components/shared/elements/Autocomplete/OwnerTitleAutocomplete/OwnerTitleAutocomplete.tsx index 3505cb5f7..f39c3fb5a 100644 --- a/odd-platform-ui/src/components/shared/elements/Autocomplete/OwnerTitleAutocomplete/OwnerTitleAutocomplete.tsx +++ b/odd-platform-ui/src/components/shared/elements/Autocomplete/OwnerTitleAutocomplete/OwnerTitleAutocomplete.tsx @@ -6,18 +6,18 @@ import { Typography, } from '@mui/material'; import { type ControllerRenderProps } from 'react-hook-form'; -import type { OwnershipFormData, Title } from 'generated-sources'; import { type AutocompleteInputChangeReason, createFilterOptions, type FilterOptionsState, } from '@mui/material/useAutocomplete'; +import { useTranslation } from 'react-i18next'; +import type { OwnershipFormData, Title } from 'generated-sources'; import { ClearIcon } from 'components/shared/icons'; import { useAppDispatch } from 'redux/lib/hooks'; import { fetchOwnershipTitleList } from 'redux/thunks'; import AutocompleteSuggestion from 'components/shared/elements/AutocompleteSuggestion/AutocompleteSuggestion'; import Input from 'components/shared/elements/Input/Input'; -import { useTranslation } from 'react-i18next'; interface OwnershipTitleAutocompleteProps { field: ControllerRenderProps; diff --git a/odd-platform-ui/src/components/shared/elements/Autocomplete/PolicyAutocomplete/PolicyAutocomplete.tsx b/odd-platform-ui/src/components/shared/elements/Autocomplete/PolicyAutocomplete/PolicyAutocomplete.tsx index 5e9732a23..9f026725a 100644 --- a/odd-platform-ui/src/components/shared/elements/Autocomplete/PolicyAutocomplete/PolicyAutocomplete.tsx +++ b/odd-platform-ui/src/components/shared/elements/Autocomplete/PolicyAutocomplete/PolicyAutocomplete.tsx @@ -6,17 +6,17 @@ import { type Theme, Typography, } from '@mui/material'; -import type { Policy, RoleFormData } from 'generated-sources'; import { type AutocompleteInputChangeReason, createFilterOptions, type FilterOptionsState, } from '@mui/material/useAutocomplete'; +import { type UseFieldArrayAppend } from 'react-hook-form/dist/types/fieldArray'; +import { type SxProps } from '@mui/system'; +import type { Policy, RoleFormData } from 'generated-sources'; import { ClearIcon } from 'components/shared/icons'; import { useAppDispatch } from 'redux/lib/hooks'; import { fetchPolicyList } from 'redux/thunks'; -import { type UseFieldArrayAppend } from 'react-hook-form/dist/types/fieldArray'; -import { type SxProps } from '@mui/system'; import Input from 'components/shared/elements/Input/Input'; interface PolicyAutocompleteProps { diff --git a/odd-platform-ui/src/components/shared/elements/Autocomplete/RoleAutocomplete/RoleAutocomplete.tsx b/odd-platform-ui/src/components/shared/elements/Autocomplete/RoleAutocomplete/RoleAutocomplete.tsx index acc0638dd..cc4399340 100644 --- a/odd-platform-ui/src/components/shared/elements/Autocomplete/RoleAutocomplete/RoleAutocomplete.tsx +++ b/odd-platform-ui/src/components/shared/elements/Autocomplete/RoleAutocomplete/RoleAutocomplete.tsx @@ -6,17 +6,17 @@ import { type Theme, Typography, } from '@mui/material'; -import { type OwnerFormData, type Role } from 'generated-sources'; import { type AutocompleteInputChangeReason, createFilterOptions, type FilterOptionsState, } from '@mui/material/useAutocomplete'; +import { type UseFieldArrayAppend } from 'react-hook-form/dist/types/fieldArray'; +import { type SxProps } from '@mui/system'; +import { type OwnerFormData, type Role } from 'generated-sources'; import { ClearIcon } from 'components/shared/icons'; import { useAppDispatch } from 'redux/lib/hooks'; import { fetchRolesList } from 'redux/thunks'; -import { type UseFieldArrayAppend } from 'react-hook-form/dist/types/fieldArray'; -import { type SxProps } from '@mui/system'; import Input from 'components/shared/elements/Input/Input'; interface RoleAutocompleteProps { diff --git a/odd-platform-ui/src/components/shared/elements/Autocomplete/SearchSuggestionsAutocomplete/SearchSuggestionsAutocomplete.tsx b/odd-platform-ui/src/components/shared/elements/Autocomplete/SearchSuggestionsAutocomplete/SearchSuggestionsAutocomplete.tsx index 486449369..9d92fd793 100644 --- a/odd-platform-ui/src/components/shared/elements/Autocomplete/SearchSuggestionsAutocomplete/SearchSuggestionsAutocomplete.tsx +++ b/odd-platform-ui/src/components/shared/elements/Autocomplete/SearchSuggestionsAutocomplete/SearchSuggestionsAutocomplete.tsx @@ -6,12 +6,15 @@ import { Grid, Typography, } from '@mui/material'; +import { useDebouncedCallback } from 'use-debounce'; +import { type UseFieldArrayAppend } from 'react-hook-form/dist/types/fieldArray'; +import { Link } from 'react-router-dom'; +import { useTranslation } from 'react-i18next'; import type { DataEntityGroupFormData, DataEntityRef, SearchApiGetSearchSuggestionsRequest, } from 'generated-sources'; -import { useDebouncedCallback } from 'use-debounce'; import { ClearIcon } from 'components/shared/icons'; import { useAppDispatch, useAppSelector } from 'redux/lib/hooks'; import { fetchSearchSuggestions } from 'redux/thunks'; @@ -19,13 +22,10 @@ import { getSearchSuggestions, getSearchSuggestionsFetchingStatuses, } from 'redux/selectors'; -import { type UseFieldArrayAppend } from 'react-hook-form/dist/types/fieldArray'; -import { Link } from 'react-router-dom'; import { useAppPaths } from 'lib/hooks'; import EntityClassItem from 'components/shared/elements/EntityClassItem/EntityClassItem'; import Button from 'components/shared/elements/Button/Button'; import Input, { type InputProps } from 'components/shared/elements/Input/Input'; -import { useTranslation } from 'react-i18next'; interface SearchSuggestionsAutocompleteProps { addEntities?: boolean; diff --git a/odd-platform-ui/src/components/shared/elements/Autocomplete/SlackChannelsAutocomplete/SlackChannelsAutocomplete.tsx b/odd-platform-ui/src/components/shared/elements/Autocomplete/SlackChannelsAutocomplete/SlackChannelsAutocomplete.tsx index b320e8e29..2c4be5d06 100644 --- a/odd-platform-ui/src/components/shared/elements/Autocomplete/SlackChannelsAutocomplete/SlackChannelsAutocomplete.tsx +++ b/odd-platform-ui/src/components/shared/elements/Autocomplete/SlackChannelsAutocomplete/SlackChannelsAutocomplete.tsx @@ -6,16 +6,16 @@ import { type Theme, Typography, } from '@mui/material'; -import type { MessageChannel, MessageRequest } from 'generated-sources'; import { createFilterOptions, type FilterOptionsState, } from '@mui/material/useAutocomplete'; +import { type SxProps } from '@mui/system'; +import { type ControllerRenderProps } from 'react-hook-form'; +import type { MessageChannel, MessageRequest } from 'generated-sources'; import { ClearIcon } from 'components/shared/icons'; import { useAppDispatch } from 'redux/lib/hooks'; import { fetchSlackChannels } from 'redux/thunks'; -import { type SxProps } from '@mui/system'; -import { type ControllerRenderProps } from 'react-hook-form'; import Input from 'components/shared/elements/Input/Input'; type MessageFormData = Omit; diff --git a/odd-platform-ui/src/components/shared/elements/Autocomplete/TermsAutocomplete/TermsAutocomplete.tsx b/odd-platform-ui/src/components/shared/elements/Autocomplete/TermsAutocomplete/TermsAutocomplete.tsx index 50f39a11b..1ebe147d1 100644 --- a/odd-platform-ui/src/components/shared/elements/Autocomplete/TermsAutocomplete/TermsAutocomplete.tsx +++ b/odd-platform-ui/src/components/shared/elements/Autocomplete/TermsAutocomplete/TermsAutocomplete.tsx @@ -1,22 +1,22 @@ import React from 'react'; import { Autocomplete, Grid, Typography } from '@mui/material'; -import type { - DataEntityTermFormData, - TermRef, - CollectorFormData, -} from 'generated-sources'; import { type AutocompleteInputChangeReason, createFilterOptions, type FilterOptionsState, } from '@mui/material/useAutocomplete'; import { useDebouncedCallback } from 'use-debounce'; -import ClearIcon from 'components/shared/icons/ClearIcon'; import { type ControllerRenderProps } from 'react-hook-form'; +import { useTranslation } from 'react-i18next'; +import type { + DataEntityTermFormData, + TermRef, + CollectorFormData, +} from 'generated-sources'; +import ClearIcon from 'components/shared/icons/ClearIcon'; import { useAppDispatch } from 'redux/lib/hooks'; import { fetchTermsList } from 'redux/thunks'; import Input from 'components/shared/elements/Input/Input'; -import { useTranslation } from 'react-i18next'; interface TermsAutocompleteProps { setSelectedTerm: (term: TermRef) => void; diff --git a/odd-platform-ui/src/components/shared/elements/AutocompleteSuggestion/AutocompleteSuggestion.tsx b/odd-platform-ui/src/components/shared/elements/AutocompleteSuggestion/AutocompleteSuggestion.tsx index d76242b5c..25d458b8b 100644 --- a/odd-platform-ui/src/components/shared/elements/AutocompleteSuggestion/AutocompleteSuggestion.tsx +++ b/odd-platform-ui/src/components/shared/elements/AutocompleteSuggestion/AutocompleteSuggestion.tsx @@ -1,11 +1,11 @@ import React from 'react'; import { type SxProps } from '@mui/system'; import { type Theme, Typography } from '@mui/material'; +import { useTranslation } from 'react-i18next'; import { NoResultText, CreateNewOptionText, } from 'components/shared/elements/AutocompleteSuggestion/AutocompleteSuggestionStyles'; -import { useTranslation } from 'react-i18next'; interface AutocompleteSuggestionProps { optionLabel: string; diff --git a/odd-platform-ui/src/components/shared/elements/BreadCrumbs/BreadCrumbs.tsx b/odd-platform-ui/src/components/shared/elements/BreadCrumbs/BreadCrumbs.tsx index 230d6d0c2..4524c7428 100644 --- a/odd-platform-ui/src/components/shared/elements/BreadCrumbs/BreadCrumbs.tsx +++ b/odd-platform-ui/src/components/shared/elements/BreadCrumbs/BreadCrumbs.tsx @@ -1,7 +1,7 @@ import React, { type FC } from 'react'; -import ChevronIcon from 'components/shared/icons/ChevronIcon'; import { Typography } from '@mui/material'; import { Link } from 'react-router-dom'; +import ChevronIcon from 'components/shared/icons/ChevronIcon'; import * as S from './BreadCrumbs.styles'; interface BreadCrumbsProps { diff --git a/odd-platform-ui/src/components/shared/elements/Button/Button.styles.ts b/odd-platform-ui/src/components/shared/elements/Button/Button.styles.ts index 1e7241b28..8c3b5e2c1 100644 --- a/odd-platform-ui/src/components/shared/elements/Button/Button.styles.ts +++ b/odd-platform-ui/src/components/shared/elements/Button/Button.styles.ts @@ -1,8 +1,8 @@ import { styled } from '@mui/material'; import { Link } from 'react-router-dom'; import type { CSSProperties } from 'react'; -import { mapKeysToValue } from 'lib/helpers'; import type { CSSObject } from 'styled-components'; +import { mapKeysToValue } from 'lib/helpers'; import { type ButtonColor, type ButtonSize, type Button } from './interfaces'; import { getButtonFontType, getButtonType } from './helpers'; diff --git a/odd-platform-ui/src/components/shared/elements/CopyButton/CopyButton.tsx b/odd-platform-ui/src/components/shared/elements/CopyButton/CopyButton.tsx index 259de7ae5..ceb7e44cb 100644 --- a/odd-platform-ui/src/components/shared/elements/CopyButton/CopyButton.tsx +++ b/odd-platform-ui/src/components/shared/elements/CopyButton/CopyButton.tsx @@ -1,7 +1,7 @@ import { CircularProgress } from '@mui/material'; import React from 'react'; -import { AlertIcon, CopyIcon, SuccessIcon } from 'components/shared/icons'; import { type SxProps, type Theme } from '@mui/system'; +import { AlertIcon, CopyIcon, SuccessIcon } from 'components/shared/icons'; import Button from 'components/shared/elements/Button/Button'; import type { Button as ButtonType } from 'components/shared/elements/Button/interfaces'; diff --git a/odd-platform-ui/src/components/shared/elements/DataEntityDetailsPreview/DataEntityDetailsPreview.tsx b/odd-platform-ui/src/components/shared/elements/DataEntityDetailsPreview/DataEntityDetailsPreview.tsx index f0a17945d..edee1d136 100644 --- a/odd-platform-ui/src/components/shared/elements/DataEntityDetailsPreview/DataEntityDetailsPreview.tsx +++ b/odd-platform-ui/src/components/shared/elements/DataEntityDetailsPreview/DataEntityDetailsPreview.tsx @@ -1,9 +1,9 @@ import React, { type FC, useCallback, useMemo, useState } from 'react'; -import { InformationIcon } from 'components/shared/icons'; import { Grid, Typography } from '@mui/material'; import MDEditor from '@uiw/react-md-editor'; -import { useDataEntityDetails } from 'lib/hooks'; import { useTranslation } from 'react-i18next'; +import { useDataEntityDetails } from 'lib/hooks'; +import { InformationIcon } from 'components/shared/icons'; import * as S from './DataEntityDetailsPreview.styles'; import AppCircularProgress from '../AppCircularProgress/AppCircularProgress'; import NumberFormatted from '../NumberFormatted/NumberFormatted'; diff --git a/odd-platform-ui/src/components/shared/elements/DatasourceLogo/DatasourceLogo.tsx b/odd-platform-ui/src/components/shared/elements/DatasourceLogo/DatasourceLogo.tsx index e654f1a00..5be52a86a 100644 --- a/odd-platform-ui/src/components/shared/elements/DatasourceLogo/DatasourceLogo.tsx +++ b/odd-platform-ui/src/components/shared/elements/DatasourceLogo/DatasourceLogo.tsx @@ -1,6 +1,6 @@ import React, { type FC } from 'react'; -import { type DatasourceName, DatasourceNames } from 'lib/interfaces'; import styled from 'styled-components'; +import { type DatasourceName, DatasourceNames } from 'lib/interfaces'; import { parseDatasourceName } from './helpers'; type BackgroundColor = 'tertiary' | 'default' | 'transparent'; diff --git a/odd-platform-ui/src/components/shared/elements/DatasourceLogo/helpers.ts b/odd-platform-ui/src/components/shared/elements/DatasourceLogo/helpers.ts index 7ec3e0313..6f4518085 100644 --- a/odd-platform-ui/src/components/shared/elements/DatasourceLogo/helpers.ts +++ b/odd-platform-ui/src/components/shared/elements/DatasourceLogo/helpers.ts @@ -1,5 +1,5 @@ -import type { DatasourceName } from 'lib/interfaces'; import capitalize from 'lodash/capitalize'; +import type { DatasourceName } from 'lib/interfaces'; export function parseDatasourceName(input: string): DatasourceName { if (input.includes('-')) { diff --git a/odd-platform-ui/src/components/shared/elements/EmptyContentPlaceholder/EmptyContentPlaceholder.tsx b/odd-platform-ui/src/components/shared/elements/EmptyContentPlaceholder/EmptyContentPlaceholder.tsx index ea88536fe..b1565d0a0 100644 --- a/odd-platform-ui/src/components/shared/elements/EmptyContentPlaceholder/EmptyContentPlaceholder.tsx +++ b/odd-platform-ui/src/components/shared/elements/EmptyContentPlaceholder/EmptyContentPlaceholder.tsx @@ -1,8 +1,8 @@ import React, { type FC } from 'react'; import { Grid, Typography } from '@mui/material'; -import { NoDataIcon } from 'components/shared/icons'; import type { SxProps, Theme } from '@mui/system'; import { useTranslation } from 'react-i18next'; +import { NoDataIcon } from 'components/shared/icons'; interface EmptyContentPlaceholderProps { position?: 'vertical' | 'horizontal'; diff --git a/odd-platform-ui/src/components/shared/elements/EntitiesListModal/EntitiesListModal.tsx b/odd-platform-ui/src/components/shared/elements/EntitiesListModal/EntitiesListModal.tsx index 1b0c6c8f6..765a264a9 100644 --- a/odd-platform-ui/src/components/shared/elements/EntitiesListModal/EntitiesListModal.tsx +++ b/odd-platform-ui/src/components/shared/elements/EntitiesListModal/EntitiesListModal.tsx @@ -1,12 +1,12 @@ import React from 'react'; import { Typography } from '@mui/material'; -import type { DataEntityRef } from 'generated-sources'; import { Link } from 'react-router-dom'; +import { useTranslation } from 'react-i18next'; +import type { DataEntityRef } from 'generated-sources'; import { useAppPaths } from 'lib/hooks'; import EntityClassItem from 'components/shared/elements/EntityClassItem/EntityClassItem'; import DialogWrapper from 'components/shared/elements/DialogWrapper/DialogWrapper'; import * as S from 'components/shared/elements/EntitiesListModal/EntitiesListModalStyles'; -import { useTranslation } from 'react-i18next'; type LabelForTypes = | 'Entities' diff --git a/odd-platform-ui/src/components/shared/elements/EntityClassItem/EntityClassItem.styles.ts b/odd-platform-ui/src/components/shared/elements/EntityClassItem/EntityClassItem.styles.ts index f0d23eaae..b23f703ff 100644 --- a/odd-platform-ui/src/components/shared/elements/EntityClassItem/EntityClassItem.styles.ts +++ b/odd-platform-ui/src/components/shared/elements/EntityClassItem/EntityClassItem.styles.ts @@ -1,6 +1,6 @@ import styled from 'styled-components'; -import { type DataEntityClassNameEnum } from 'generated-sources'; import { Box } from '@mui/material'; +import { type DataEntityClassNameEnum } from 'generated-sources'; export const Content = styled(Box)<{ $entityClassName?: DataEntityClassNameEnum; diff --git a/odd-platform-ui/src/components/shared/elements/EntityClassItem/EntityClassItem.tsx b/odd-platform-ui/src/components/shared/elements/EntityClassItem/EntityClassItem.tsx index 20462e5c6..13d208b08 100644 --- a/odd-platform-ui/src/components/shared/elements/EntityClassItem/EntityClassItem.tsx +++ b/odd-platform-ui/src/components/shared/elements/EntityClassItem/EntityClassItem.tsx @@ -1,6 +1,6 @@ import React from 'react'; -import { type DataEntityClassNameEnum } from 'generated-sources'; import { type BoxProps } from '@mui/material'; +import { type DataEntityClassNameEnum } from 'generated-sources'; import { DataEntityClassLabelMap } from 'lib/constants'; import * as S from './EntityClassItem.styles'; diff --git a/odd-platform-ui/src/components/shared/elements/EntityClassItem/EntityClassItemStyles.ts b/odd-platform-ui/src/components/shared/elements/EntityClassItem/EntityClassItemStyles.ts index f0d23eaae..b23f703ff 100644 --- a/odd-platform-ui/src/components/shared/elements/EntityClassItem/EntityClassItemStyles.ts +++ b/odd-platform-ui/src/components/shared/elements/EntityClassItem/EntityClassItemStyles.ts @@ -1,6 +1,6 @@ import styled from 'styled-components'; -import { type DataEntityClassNameEnum } from 'generated-sources'; import { Box } from '@mui/material'; +import { type DataEntityClassNameEnum } from 'generated-sources'; export const Content = styled(Box)<{ $entityClassName?: DataEntityClassNameEnum; diff --git a/odd-platform-ui/src/components/shared/elements/EntityStatus/DefaultEntityStatus/DefaultEntityStatus.tsx b/odd-platform-ui/src/components/shared/elements/EntityStatus/DefaultEntityStatus/DefaultEntityStatus.tsx index fd1029d4d..e0d774bf7 100644 --- a/odd-platform-ui/src/components/shared/elements/EntityStatus/DefaultEntityStatus/DefaultEntityStatus.tsx +++ b/odd-platform-ui/src/components/shared/elements/EntityStatus/DefaultEntityStatus/DefaultEntityStatus.tsx @@ -1,7 +1,7 @@ import React, { type FC } from 'react'; +import { Typography } from '@mui/material'; import { useAppDateTime } from 'lib/hooks'; import AppTooltip from 'components/shared/elements/AppTooltip/AppTooltip'; -import { Typography } from '@mui/material'; import type { DataEntityStatus } from 'generated-sources'; import type { SerializeDateToNumber } from 'redux/interfaces'; import * as S from '../EntityStatus.styles'; diff --git a/odd-platform-ui/src/components/shared/elements/EntityStatus/StatusSettingsForm/StatusSettingsForm.tsx b/odd-platform-ui/src/components/shared/elements/EntityStatus/StatusSettingsForm/StatusSettingsForm.tsx index b1fc43313..300938678 100644 --- a/odd-platform-ui/src/components/shared/elements/EntityStatus/StatusSettingsForm/StatusSettingsForm.tsx +++ b/odd-platform-ui/src/components/shared/elements/EntityStatus/StatusSettingsForm/StatusSettingsForm.tsx @@ -1,7 +1,7 @@ import React, { cloneElement, type FC, useCallback, useState } from 'react'; -import { useAppDateTime, useAppParams, useUpdateDataEntityStatus } from 'lib/hooks'; import { Controller, useForm } from 'react-hook-form'; import { Box, FormControlLabel, Typography } from '@mui/material'; +import { useAppDateTime, useAppParams, useUpdateDataEntityStatus } from 'lib/hooks'; import type { DataEntityStatusEnum, DataEntityApiUpdateStatusRequest, diff --git a/odd-platform-ui/src/components/shared/elements/EntityTypeItem/EntityTypeItem.tsx b/odd-platform-ui/src/components/shared/elements/EntityTypeItem/EntityTypeItem.tsx index 9da27d211..ea7dbe263 100644 --- a/odd-platform-ui/src/components/shared/elements/EntityTypeItem/EntityTypeItem.tsx +++ b/odd-platform-ui/src/components/shared/elements/EntityTypeItem/EntityTypeItem.tsx @@ -1,7 +1,7 @@ import React from 'react'; -import { type DataEntityTypeNameEnum } from 'generated-sources'; import { type SxProps } from '@mui/system'; import { type Theme } from '@mui/material'; +import { type DataEntityTypeNameEnum } from 'generated-sources'; import { stringFormatted } from 'lib/helpers'; import * as S from 'components/shared/elements/EntityTypeItem/EntityTypeItemStyles'; diff --git a/odd-platform-ui/src/components/shared/elements/LabelItem/LabelItem.tsx b/odd-platform-ui/src/components/shared/elements/LabelItem/LabelItem.tsx index a4fd761ab..267474685 100644 --- a/odd-platform-ui/src/components/shared/elements/LabelItem/LabelItem.tsx +++ b/odd-platform-ui/src/components/shared/elements/LabelItem/LabelItem.tsx @@ -1,7 +1,7 @@ import React from 'react'; -import { ClearIcon, SystemIcon } from 'components/shared/icons'; import type { Theme, TypographyProps } from '@mui/material'; import type { SxProps } from '@mui/system'; +import { ClearIcon, SystemIcon } from 'components/shared/icons'; import { Container } from 'components/shared/elements/LabelItem/LabelItemStyles'; import Button from 'components/shared/elements/Button/Button'; diff --git a/odd-platform-ui/src/components/shared/elements/LabeledInfoItem/LabeledInfoItem.tsx b/odd-platform-ui/src/components/shared/elements/LabeledInfoItem/LabeledInfoItem.tsx index 8cf2d5a75..8fda5da2e 100644 --- a/odd-platform-ui/src/components/shared/elements/LabeledInfoItem/LabeledInfoItem.tsx +++ b/odd-platform-ui/src/components/shared/elements/LabeledInfoItem/LabeledInfoItem.tsx @@ -1,7 +1,7 @@ import React, { type ElementType } from 'react'; import type { GridSize, TypographyProps } from '@mui/material'; -import type { DataEntityRunStatus } from 'generated-sources'; import type { SxProps } from '@mui/system'; +import type { DataEntityRunStatus } from 'generated-sources'; import { Container, Label, diff --git a/odd-platform-ui/src/components/shared/elements/LabeledInfoItem/LabeledInfoItemStyles.ts b/odd-platform-ui/src/components/shared/elements/LabeledInfoItem/LabeledInfoItemStyles.ts index f6cb7cbc6..13a7a43e7 100644 --- a/odd-platform-ui/src/components/shared/elements/LabeledInfoItem/LabeledInfoItemStyles.ts +++ b/odd-platform-ui/src/components/shared/elements/LabeledInfoItem/LabeledInfoItemStyles.ts @@ -1,7 +1,7 @@ import { Grid, Typography } from '@mui/material'; import styled from 'styled-components'; -import { type DataEntityRunStatus } from 'generated-sources'; import { type ElementType } from 'react'; +import { type DataEntityRunStatus } from 'generated-sources'; interface ValueProps { $runStatus?: DataEntityRunStatus; diff --git a/odd-platform-ui/src/components/shared/elements/ListLayout/ListLayout.styles.ts b/odd-platform-ui/src/components/shared/elements/ListLayout/ListLayout.styles.ts index a706455cc..5964e9324 100644 --- a/odd-platform-ui/src/components/shared/elements/ListLayout/ListLayout.styles.ts +++ b/odd-platform-ui/src/components/shared/elements/ListLayout/ListLayout.styles.ts @@ -1,5 +1,5 @@ -import { maxContentWidthWithoutSidebar } from 'lib/constants'; import styled from 'styled-components'; +import { maxContentWidthWithoutSidebar } from 'lib/constants'; export const Container = styled('div')(({ theme }) => ({ margin: '0 auto', diff --git a/odd-platform-ui/src/components/shared/elements/MainSearchInput/MainSearchInput.tsx b/odd-platform-ui/src/components/shared/elements/MainSearchInput/MainSearchInput.tsx index 2bd339cc8..cd7ba0a2f 100644 --- a/odd-platform-ui/src/components/shared/elements/MainSearchInput/MainSearchInput.tsx +++ b/odd-platform-ui/src/components/shared/elements/MainSearchInput/MainSearchInput.tsx @@ -1,12 +1,12 @@ import React, { type FC, useCallback, useEffect } from 'react'; +import { Box } from '@mui/material'; +import { useTranslation } from 'react-i18next'; import { useAppDispatch, useAppSelector } from 'redux/lib/hooks'; import { updateDataEntitiesSearch } from 'redux/thunks'; import { useCreateSearch } from 'lib/hooks'; import { getSearchId, getSearchQuery } from 'redux/selectors'; -import { Box } from '@mui/material'; import { updateSearchQuery } from 'redux/slices/dataEntitySearch.slice'; import SearchSuggestionsAutocomplete from 'components/shared/elements/Autocomplete/SearchSuggestionsAutocomplete/SearchSuggestionsAutocomplete'; -import { useTranslation } from 'react-i18next'; interface AppSearchProps { placeholder?: string; diff --git a/odd-platform-ui/src/components/shared/elements/MetadataItem/MetadataItem.tsx b/odd-platform-ui/src/components/shared/elements/MetadataItem/MetadataItem.tsx index 49eb008a1..7c97df78b 100644 --- a/odd-platform-ui/src/components/shared/elements/MetadataItem/MetadataItem.tsx +++ b/odd-platform-ui/src/components/shared/elements/MetadataItem/MetadataItem.tsx @@ -1,9 +1,9 @@ import React from 'react'; +import type { GridSize } from '@mui/material'; import { getMetadataValue } from 'lib/helpers'; import LabeledInfoItem from 'components/shared/elements/LabeledInfoItem/LabeledInfoItem'; import type { MetadataFieldValue } from 'generated-sources'; import { useAppDateTime } from 'lib/hooks'; -import type { GridSize } from '@mui/material'; interface MetadataItemProps { metadata: MetadataFieldValue; diff --git a/odd-platform-ui/src/components/shared/elements/MetricFamily/MetricFamily.tsx b/odd-platform-ui/src/components/shared/elements/MetricFamily/MetricFamily.tsx index cf0294584..43c8786cd 100644 --- a/odd-platform-ui/src/components/shared/elements/MetricFamily/MetricFamily.tsx +++ b/odd-platform-ui/src/components/shared/elements/MetricFamily/MetricFamily.tsx @@ -1,6 +1,6 @@ import React from 'react'; -import type { Metric, MetricFamily, MetricLabel } from 'generated-sources'; import { Grid, Typography } from '@mui/material'; +import type { Metric, MetricFamily, MetricLabel } from 'generated-sources'; import AppTooltip from 'components/shared/elements/AppTooltip/AppTooltip'; import NumberFormatted from 'components/shared/elements/NumberFormatted/NumberFormatted'; diff --git a/odd-platform-ui/src/components/shared/elements/TagItem/TagItem.tsx b/odd-platform-ui/src/components/shared/elements/TagItem/TagItem.tsx index eaee26e41..f8726a13a 100644 --- a/odd-platform-ui/src/components/shared/elements/TagItem/TagItem.tsx +++ b/odd-platform-ui/src/components/shared/elements/TagItem/TagItem.tsx @@ -1,10 +1,10 @@ import React, { type FC, type ReactElement } from 'react'; import { type Theme, Typography } from '@mui/material'; +import { type SxProps } from '@mui/system'; +import isUndefined from 'lodash/isUndefined'; import ClearIcon from 'components/shared/icons/ClearIcon'; import SystemIcon from 'components/shared/icons/SystemIcon'; -import { type SxProps } from '@mui/system'; import Button from 'components/shared/elements/Button/Button'; -import isUndefined from 'lodash/isUndefined'; import * as S from './TagItemStyles'; interface TagItemProps { diff --git a/odd-platform-ui/src/components/shared/elements/TestRunStatusItem/TestRunStatusItem.tsx b/odd-platform-ui/src/components/shared/elements/TestRunStatusItem/TestRunStatusItem.tsx index b90fe6dd2..e34de652c 100644 --- a/odd-platform-ui/src/components/shared/elements/TestRunStatusItem/TestRunStatusItem.tsx +++ b/odd-platform-ui/src/components/shared/elements/TestRunStatusItem/TestRunStatusItem.tsx @@ -1,7 +1,7 @@ import React from 'react'; -import { type DataEntityRunStatus } from 'generated-sources'; import { type SxProps } from '@mui/system'; import { type Theme } from '@mui/material'; +import { type DataEntityRunStatus } from 'generated-sources'; import * as S from 'components/shared/elements/TestRunStatusItem/TestRunStatusItemStyles'; interface TestRunStatusItemProps { diff --git a/odd-platform-ui/src/components/shared/elements/TestRunStatusItem/TestRunStatusItemStyles.ts b/odd-platform-ui/src/components/shared/elements/TestRunStatusItem/TestRunStatusItemStyles.ts index d24aa0adc..f38b2e311 100644 --- a/odd-platform-ui/src/components/shared/elements/TestRunStatusItem/TestRunStatusItemStyles.ts +++ b/odd-platform-ui/src/components/shared/elements/TestRunStatusItem/TestRunStatusItemStyles.ts @@ -1,6 +1,6 @@ -import { type DataEntityRunStatus } from 'generated-sources'; import styled from 'styled-components'; import { Box, Typography } from '@mui/material'; +import { type DataEntityRunStatus } from 'generated-sources'; export const Container = styled(Box)(() => ({ display: 'inline-flex', diff --git a/odd-platform-ui/src/components/shared/elements/TestRunStatusReasonModal/TestRunStatusReasonModal.tsx b/odd-platform-ui/src/components/shared/elements/TestRunStatusReasonModal/TestRunStatusReasonModal.tsx index ac8f11003..9145de7ac 100644 --- a/odd-platform-ui/src/components/shared/elements/TestRunStatusReasonModal/TestRunStatusReasonModal.tsx +++ b/odd-platform-ui/src/components/shared/elements/TestRunStatusReasonModal/TestRunStatusReasonModal.tsx @@ -1,7 +1,7 @@ import React, { type FC } from 'react'; import { Typography } from '@mui/material'; -import DialogWrapper from 'components/shared/elements/DialogWrapper/DialogWrapper'; import { useTranslation } from 'react-i18next'; +import DialogWrapper from 'components/shared/elements/DialogWrapper/DialogWrapper'; interface TestRunStatusReasonModalProps { openBtn: JSX.Element; diff --git a/odd-platform-ui/src/components/shared/elements/forms/AssignTermForm/AssignTermForm.tsx b/odd-platform-ui/src/components/shared/elements/forms/AssignTermForm/AssignTermForm.tsx index 592509ac9..b5d1a064b 100644 --- a/odd-platform-ui/src/components/shared/elements/forms/AssignTermForm/AssignTermForm.tsx +++ b/odd-platform-ui/src/components/shared/elements/forms/AssignTermForm/AssignTermForm.tsx @@ -1,11 +1,11 @@ import React, { cloneElement, type FC } from 'react'; import { Controller, useForm } from 'react-hook-form'; import { Grid, Typography } from '@mui/material'; +import { useTranslation } from 'react-i18next'; import Button from 'components/shared/elements/Button/Button'; import TermsAutocomplete from 'components/shared/elements/Autocomplete/TermsAutocomplete/TermsAutocomplete'; import type { TermRef } from 'generated-sources'; import DialogWrapper from 'components/shared/elements/DialogWrapper/DialogWrapper'; -import { useTranslation } from 'react-i18next'; interface AssignTermFormData { termId: number; diff --git a/odd-platform-ui/src/components/shared/icons/AcceptIcon.tsx b/odd-platform-ui/src/components/shared/icons/AcceptIcon.tsx index 8e0c49e0c..ab6368cc2 100644 --- a/odd-platform-ui/src/components/shared/icons/AcceptIcon.tsx +++ b/odd-platform-ui/src/components/shared/icons/AcceptIcon.tsx @@ -1,6 +1,6 @@ import React from 'react'; -import AppSvgIcon from 'components/shared/icons/AppSvgIcon'; import { type SvgIconProps } from '@mui/material/SvgIcon'; +import AppSvgIcon from 'components/shared/icons/AppSvgIcon'; const AcceptIcon: React.FC = ({ sx, ...props }) => ( diff --git a/odd-platform-ui/src/components/shared/icons/AlertIcon.tsx b/odd-platform-ui/src/components/shared/icons/AlertIcon.tsx index 515112413..8d1ac0880 100644 --- a/odd-platform-ui/src/components/shared/icons/AlertIcon.tsx +++ b/odd-platform-ui/src/components/shared/icons/AlertIcon.tsx @@ -1,6 +1,6 @@ import React from 'react'; -import AppSvgIcon from 'components/shared/icons/AppSvgIcon'; import { type SvgIconProps } from '@mui/material/SvgIcon'; +import AppSvgIcon from 'components/shared/icons/AppSvgIcon'; const AlertIcon: React.FC = ({ sx, ...props }) => ( diff --git a/odd-platform-ui/src/components/shared/icons/ClearIcon.tsx b/odd-platform-ui/src/components/shared/icons/ClearIcon.tsx index 2962f17c1..f15a5150f 100644 --- a/odd-platform-ui/src/components/shared/icons/ClearIcon.tsx +++ b/odd-platform-ui/src/components/shared/icons/ClearIcon.tsx @@ -1,6 +1,6 @@ import React from 'react'; -import AppSvgIcon from 'components/shared/icons/AppSvgIcon'; import { type SvgIconProps } from '@mui/material/SvgIcon'; +import AppSvgIcon from 'components/shared/icons/AppSvgIcon'; const ClearIcon: React.FC = ({ sx, ...props }) => ( diff --git a/odd-platform-ui/src/components/shared/icons/CloseIcon.tsx b/odd-platform-ui/src/components/shared/icons/CloseIcon.tsx index 819d6ae75..e6572b773 100644 --- a/odd-platform-ui/src/components/shared/icons/CloseIcon.tsx +++ b/odd-platform-ui/src/components/shared/icons/CloseIcon.tsx @@ -1,6 +1,6 @@ import React from 'react'; -import AppSvgIcon from 'components/shared/icons/AppSvgIcon'; import { type SvgIconProps } from '@mui/material/SvgIcon'; +import AppSvgIcon from 'components/shared/icons/AppSvgIcon'; const CloseIcon: React.FC = ({ sx, ...props }) => ( diff --git a/odd-platform-ui/src/components/shared/icons/CopyIcon.tsx b/odd-platform-ui/src/components/shared/icons/CopyIcon.tsx index 83ae51091..3da764b41 100644 --- a/odd-platform-ui/src/components/shared/icons/CopyIcon.tsx +++ b/odd-platform-ui/src/components/shared/icons/CopyIcon.tsx @@ -1,6 +1,6 @@ import React from 'react'; -import AppSvgIcon from 'components/shared/icons/AppSvgIcon'; import { type SvgIconProps } from '@mui/material/SvgIcon'; +import AppSvgIcon from 'components/shared/icons/AppSvgIcon'; const CopyIcon: React.FC = ({ sx, ...props }) => ( diff --git a/odd-platform-ui/src/components/shared/icons/InformationIcon.tsx b/odd-platform-ui/src/components/shared/icons/InformationIcon.tsx index 13df53548..02c78eb21 100644 --- a/odd-platform-ui/src/components/shared/icons/InformationIcon.tsx +++ b/odd-platform-ui/src/components/shared/icons/InformationIcon.tsx @@ -1,8 +1,8 @@ import React from 'react'; import type { SvgIconProps } from '@mui/material/SvgIcon'; -import AppSvgIcon from 'components/shared/icons/AppSvgIcon'; import styled from 'styled-components'; import type { Theme } from '@mui/material'; +import AppSvgIcon from 'components/shared/icons/AppSvgIcon'; const styles = ({ theme }: { theme?: Theme }) => ({ color: theme?.palette.texts.info, diff --git a/odd-platform-ui/src/components/shared/icons/QuestionIcon.tsx b/odd-platform-ui/src/components/shared/icons/QuestionIcon.tsx index fde8d9a59..7d8e76153 100644 --- a/odd-platform-ui/src/components/shared/icons/QuestionIcon.tsx +++ b/odd-platform-ui/src/components/shared/icons/QuestionIcon.tsx @@ -1,8 +1,8 @@ import React from 'react'; import type { SvgIconProps } from '@mui/material/SvgIcon'; -import AppSvgIcon from 'components/shared/icons/AppSvgIcon'; import styled from 'styled-components'; import type { Theme } from '@mui/material'; +import AppSvgIcon from 'components/shared/icons/AppSvgIcon'; const styles = ({ theme }: { theme?: Theme }) => ({ color: theme?.palette.texts.info, diff --git a/odd-platform-ui/src/components/shared/icons/RejectIcon.tsx b/odd-platform-ui/src/components/shared/icons/RejectIcon.tsx index b369f43ab..4d2678c2c 100644 --- a/odd-platform-ui/src/components/shared/icons/RejectIcon.tsx +++ b/odd-platform-ui/src/components/shared/icons/RejectIcon.tsx @@ -1,6 +1,6 @@ import React from 'react'; -import AppSvgIcon from 'components/shared/icons/AppSvgIcon'; import { type SvgIconProps } from '@mui/material/SvgIcon'; +import AppSvgIcon from 'components/shared/icons/AppSvgIcon'; const RejectIcon: React.FC = ({ sx, ...props }) => ( diff --git a/odd-platform-ui/src/lib/hooks/api/dataEntityAttachments/dataEntityFiles.ts b/odd-platform-ui/src/lib/hooks/api/dataEntityAttachments/dataEntityFiles.ts index 119ca74fc..fafad120e 100644 --- a/odd-platform-ui/src/lib/hooks/api/dataEntityAttachments/dataEntityFiles.ts +++ b/odd-platform-ui/src/lib/hooks/api/dataEntityAttachments/dataEntityFiles.ts @@ -1,6 +1,6 @@ +import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query'; import { dataEntityAttachmentApi, dataEntityFileUploadApi } from 'lib/api'; import { asyncPool } from 'lib/helpers'; -import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query'; import { showSuccessToast } from 'lib/errorHandling'; import type { DataEntityAttachmentApiDeleteFileRequest, diff --git a/odd-platform-ui/src/lib/hooks/useCreateSearch.ts b/odd-platform-ui/src/lib/hooks/useCreateSearch.ts index 34c4e5470..0242292cd 100644 --- a/odd-platform-ui/src/lib/hooks/useCreateSearch.ts +++ b/odd-platform-ui/src/lib/hooks/useCreateSearch.ts @@ -1,8 +1,8 @@ import { useCallback } from 'react'; +import { useNavigate } from 'react-router-dom'; import type { SearchFormData } from 'generated-sources'; import { createDataEntitiesSearch } from 'redux/thunks'; import { useAppDispatch } from 'redux/lib/hooks'; -import { useNavigate } from 'react-router-dom'; import useAppPaths from './useAppPaths/useAppPaths'; export default function useCreateSearch() { diff --git a/odd-platform-ui/src/lib/hooks/usePermissions.ts b/odd-platform-ui/src/lib/hooks/usePermissions.ts index 03f825bc2..393329d45 100644 --- a/odd-platform-ui/src/lib/hooks/usePermissions.ts +++ b/odd-platform-ui/src/lib/hooks/usePermissions.ts @@ -1,5 +1,5 @@ -import PermissionContext from 'components/shared/contexts/Permission/PermissionContext'; import { useContext } from 'react'; +import PermissionContext from 'components/shared/contexts/Permission/PermissionContext'; import type { Permission } from 'generated-sources'; interface UsePermissionReturn { diff --git a/odd-platform-ui/src/lib/hooks/useTermWiki.ts b/odd-platform-ui/src/lib/hooks/useTermWiki.ts index 1ac005ae4..ac03af900 100644 --- a/odd-platform-ui/src/lib/hooks/useTermWiki.ts +++ b/odd-platform-ui/src/lib/hooks/useTermWiki.ts @@ -1,5 +1,6 @@ import type React from 'react'; import { useCallback, useEffect, useState } from 'react'; +import type { AsyncThunkAction } from '@reduxjs/toolkit'; import type { DataEntityApiUpsertDataEntityInternalDescriptionRequest, DatasetFieldApiUpdateDatasetFieldDescriptionRequest, @@ -10,7 +11,6 @@ import useAppPaths from 'lib/hooks/useAppPaths/useAppPaths'; import useAppParams from 'lib/hooks/useAppParams/useAppParams'; import { TERM_PATTERN } from 'lib/constants'; import { useGetTermByNamespaceAndName } from 'lib/hooks/api'; -import type { AsyncThunkAction } from '@reduxjs/toolkit'; interface UseTermWikiProps { updateDescription: (params: any) => AsyncThunkAction; diff --git a/odd-platform-ui/src/lib/tests/testHelpers.tsx b/odd-platform-ui/src/lib/tests/testHelpers.tsx index da156298a..d7573bf80 100644 --- a/odd-platform-ui/src/lib/tests/testHelpers.tsx +++ b/odd-platform-ui/src/lib/tests/testHelpers.tsx @@ -2,7 +2,6 @@ import { act, fireEvent, render, renderHook, screen } from '@testing-library/rea import type { ByRoleOptions, RenderOptions } from '@testing-library/react'; import React, { type PropsWithChildren, type ReactElement } from 'react'; import { ThemeProvider } from 'styled-components'; -import theme from 'theme/mui.theme'; import { MemoryRouter, type MemoryRouterProps, Route, Routes } from 'react-router-dom'; import { QueryClient, @@ -12,6 +11,7 @@ import { import { Provider } from 'react-redux'; import type { AnyAction, Store } from '@reduxjs/toolkit'; import { configureStore } from '@reduxjs/toolkit'; +import theme from 'theme/mui.theme'; import type { RootState } from 'redux/interfaces'; import rootReducer from 'redux/slices'; diff --git a/odd-platform-ui/src/redux/selectors/appInfo.selectors.ts b/odd-platform-ui/src/redux/selectors/appInfo.selectors.ts index ce89f2003..5a062dd1e 100644 --- a/odd-platform-ui/src/redux/selectors/appInfo.selectors.ts +++ b/odd-platform-ui/src/redux/selectors/appInfo.selectors.ts @@ -1,5 +1,5 @@ -import type { AppInfoState, RootState } from 'redux/interfaces'; import { createSelector } from '@reduxjs/toolkit'; +import type { AppInfoState, RootState } from 'redux/interfaces'; import { emptyArr } from 'lib/constants'; const appInfoState = ({ appInfo }: RootState): AppInfoState => appInfo; diff --git a/odd-platform-ui/src/redux/selectors/dataQualityTest.selectors.ts b/odd-platform-ui/src/redux/selectors/dataQualityTest.selectors.ts index e18ab5ac8..84339dcc8 100644 --- a/odd-platform-ui/src/redux/selectors/dataQualityTest.selectors.ts +++ b/odd-platform-ui/src/redux/selectors/dataQualityTest.selectors.ts @@ -1,4 +1,5 @@ import { createSelector } from '@reduxjs/toolkit'; +import isEmpty from 'lodash/isEmpty'; import type { DataEntitiesState, DataQualityTestState, @@ -10,7 +11,6 @@ import { createStatusesSelector, } from 'redux/selectors/loader-selectors'; import * as actions from 'redux/actions'; -import isEmpty from 'lodash/isEmpty'; const getDataQualityTestState = ({ dataQualityTest }: RootState): DataQualityTestState => dataQualityTest; diff --git a/odd-platform-ui/src/redux/selectors/dataentitySearch.selectors.ts b/odd-platform-ui/src/redux/selectors/dataentitySearch.selectors.ts index cab866e28..f594f84b1 100644 --- a/odd-platform-ui/src/redux/selectors/dataentitySearch.selectors.ts +++ b/odd-platform-ui/src/redux/selectors/dataentitySearch.selectors.ts @@ -5,6 +5,7 @@ import values from 'lodash/values'; import mapValues from 'lodash/mapValues'; import pickBy from 'lodash/pickBy'; import transform from 'lodash/transform'; +import compact from 'lodash/compact'; import type { CurrentPageInfo, DataEntitySearchState, @@ -23,7 +24,6 @@ import { createStatusesSelector, } from 'redux/selectors/loader-selectors'; import * as actions from 'redux/actions'; -import compact from 'lodash/compact'; import { emptyArr } from 'lib/constants'; const searchState = ({ dataEntitySearch }: RootState): DataEntitySearchState => diff --git a/odd-platform-ui/src/redux/selectors/loader-selectors.ts b/odd-platform-ui/src/redux/selectors/loader-selectors.ts index d7c9fed64..9d19e6d24 100644 --- a/odd-platform-ui/src/redux/selectors/loader-selectors.ts +++ b/odd-platform-ui/src/redux/selectors/loader-selectors.ts @@ -1,5 +1,5 @@ -import type { AsyncRequestStatus, ErrorState, RootState } from 'redux/interfaces'; import { createSelector } from '@reduxjs/toolkit'; +import type { AsyncRequestStatus, ErrorState, RootState } from 'redux/interfaces'; export const createFetchingSelector = (action: string) => (state: RootState) => state.loader.statuses[action] || 'initial'; diff --git a/odd-platform-ui/src/redux/selectors/ownerAssociation.selectors.ts b/odd-platform-ui/src/redux/selectors/ownerAssociation.selectors.ts index 0049eb60d..2f712bec5 100644 --- a/odd-platform-ui/src/redux/selectors/ownerAssociation.selectors.ts +++ b/odd-platform-ui/src/redux/selectors/ownerAssociation.selectors.ts @@ -1,5 +1,5 @@ -import type { OwnerAssociationState, RootState, CurrentPageInfo } from 'redux/interfaces'; import { createSelector } from '@reduxjs/toolkit'; +import type { OwnerAssociationState, RootState, CurrentPageInfo } from 'redux/interfaces'; import { createErrorSelector, createStatusesSelector, diff --git a/odd-platform-ui/src/redux/selectors/termSearch.selectors.ts b/odd-platform-ui/src/redux/selectors/termSearch.selectors.ts index ce7314ed6..5c23499e1 100644 --- a/odd-platform-ui/src/redux/selectors/termSearch.selectors.ts +++ b/odd-platform-ui/src/redux/selectors/termSearch.selectors.ts @@ -1,6 +1,9 @@ import { createSelector } from '@reduxjs/toolkit'; -import { createStatusesSelector } from 'redux/selectors/loader-selectors'; -import * as actions from 'redux/actions'; +import mapValues from 'lodash/mapValues'; +import pickBy from 'lodash/pickBy'; +import values from 'lodash/values'; +import transform from 'lodash/transform'; +import compact from 'lodash/compact'; import type { CurrentPageInfo, RootState, @@ -9,11 +12,8 @@ import type { TermSearchOptionalFacetNames, TermSearchState, } from 'redux/interfaces'; -import mapValues from 'lodash/mapValues'; -import pickBy from 'lodash/pickBy'; -import values from 'lodash/values'; -import transform from 'lodash/transform'; -import compact from 'lodash/compact'; +import * as actions from 'redux/actions'; +import { createStatusesSelector } from 'redux/selectors/loader-selectors'; import { emptyArr } from 'lib/constants'; export const getTermSearchCreateStatuses = createStatusesSelector( diff --git a/odd-platform-ui/src/redux/slices/activity.slice.ts b/odd-platform-ui/src/redux/slices/activity.slice.ts index e01288bfa..b87daf777 100644 --- a/odd-platform-ui/src/redux/slices/activity.slice.ts +++ b/odd-platform-ui/src/redux/slices/activity.slice.ts @@ -1,5 +1,6 @@ -import { activitiesActionTypePrefix } from 'redux/actions'; import { createSlice } from '@reduxjs/toolkit'; +import uniqBy from 'lodash/uniqBy'; +import { activitiesActionTypePrefix } from 'redux/actions'; import type { ActivitiesState, Activity } from 'redux/interfaces'; import { fetchActivityCounts, @@ -8,7 +9,6 @@ import { } from 'redux/thunks/activity.thunks'; import { formatDate } from 'lib/helpers'; import { datedListFormat } from 'lib/constants'; -import uniqBy from 'lodash/uniqBy'; export const initialState: ActivitiesState = { activities: { diff --git a/odd-platform-ui/src/redux/slices/alerts.slice.ts b/odd-platform-ui/src/redux/slices/alerts.slice.ts index ccca0d71a..56e6e1be3 100644 --- a/odd-platform-ui/src/redux/slices/alerts.slice.ts +++ b/odd-platform-ui/src/redux/slices/alerts.slice.ts @@ -1,10 +1,10 @@ +import { createEntityAdapter, createSlice } from '@reduxjs/toolkit'; import type { AlertsState, Alert, AlertsConfig, PaginatedResponse, } from 'redux/interfaces'; -import { createEntityAdapter, createSlice } from '@reduxjs/toolkit'; import { alertsActionPrefix } from 'redux/actions'; import * as thunks from 'redux/thunks'; diff --git a/odd-platform-ui/src/redux/slices/appInfo.slice.ts b/odd-platform-ui/src/redux/slices/appInfo.slice.ts index 498a0c315..40378be08 100644 --- a/odd-platform-ui/src/redux/slices/appInfo.slice.ts +++ b/odd-platform-ui/src/redux/slices/appInfo.slice.ts @@ -1,5 +1,5 @@ -import type { AppInfoState } from 'redux/interfaces'; import { createSlice } from '@reduxjs/toolkit'; +import type { AppInfoState } from 'redux/interfaces'; import { appInfoActionPrefix } from 'redux/actions'; import * as thunks from 'redux/thunks'; diff --git a/odd-platform-ui/src/redux/slices/collectors.slice.ts b/odd-platform-ui/src/redux/slices/collectors.slice.ts index d64c57797..cbfc8e569 100644 --- a/odd-platform-ui/src/redux/slices/collectors.slice.ts +++ b/odd-platform-ui/src/redux/slices/collectors.slice.ts @@ -1,7 +1,7 @@ +import { createEntityAdapter, createSlice } from '@reduxjs/toolkit'; import type { Collector } from 'generated-sources'; import { collectorsActionTypePrefix } from 'redux/actions'; import * as thunks from 'redux/thunks'; -import { createEntityAdapter, createSlice } from '@reduxjs/toolkit'; import type { CollectorsState } from 'redux/interfaces'; export const collectorAdapter = createEntityAdapter({ diff --git a/odd-platform-ui/src/redux/slices/dataCollaboration.slice.ts b/odd-platform-ui/src/redux/slices/dataCollaboration.slice.ts index 8702b502c..109602866 100644 --- a/odd-platform-ui/src/redux/slices/dataCollaboration.slice.ts +++ b/odd-platform-ui/src/redux/slices/dataCollaboration.slice.ts @@ -1,9 +1,9 @@ -import { dataCollaborationActTypePrefix } from 'redux/actions'; import { createSlice } from '@reduxjs/toolkit'; +import uniqBy from 'lodash/uniqBy'; +import { dataCollaborationActTypePrefix } from 'redux/actions'; import * as thunks from 'redux/thunks'; import type { DataCollaborationState, Message } from 'redux/interfaces'; import { formatDate } from 'lib/helpers'; -import uniqBy from 'lodash/uniqBy'; import { datedListFormat } from 'lib/constants'; export const initialState: DataCollaborationState = { diff --git a/odd-platform-ui/src/redux/slices/dataEntityLineage/dataEntityLineageHelpers.ts b/odd-platform-ui/src/redux/slices/dataEntityLineage/dataEntityLineageHelpers.ts index 56e70d2b2..31ebd9ba8 100644 --- a/odd-platform-ui/src/redux/slices/dataEntityLineage/dataEntityLineageHelpers.ts +++ b/odd-platform-ui/src/redux/slices/dataEntityLineage/dataEntityLineageHelpers.ts @@ -1,3 +1,5 @@ +import uniqWith from 'lodash/uniqWith'; +import isEqual from 'lodash/isEqual'; import type { DataEntityLineageById, DataEntityLineageState, @@ -14,8 +16,6 @@ import type { StreamType, } from 'redux/interfaces'; import type { DataEntityLineageEdge, DataEntityLineageNode } from 'generated-sources'; -import uniqWith from 'lodash/uniqWith'; -import isEqual from 'lodash/isEqual'; export const isRootNodeIdsEqual = (rootNodeId: number, currentRootNodeId: number) => rootNodeId === currentRootNodeId; diff --git a/odd-platform-ui/src/redux/slices/dataEntityRuns.slice.ts b/odd-platform-ui/src/redux/slices/dataEntityRuns.slice.ts index f8d8c06f9..2c9068084 100644 --- a/odd-platform-ui/src/redux/slices/dataEntityRuns.slice.ts +++ b/odd-platform-ui/src/redux/slices/dataEntityRuns.slice.ts @@ -1,6 +1,6 @@ +import { createEntityAdapter, createSlice } from '@reduxjs/toolkit'; import type { DataEntityRun } from 'generated-sources'; import type { DataEntityRunState } from 'redux/interfaces'; -import { createEntityAdapter, createSlice } from '@reduxjs/toolkit'; import { dataEntityRunTypePrefix } from 'redux/actions'; import * as thunks from 'redux/thunks'; diff --git a/odd-platform-ui/src/redux/slices/dataEntitySearch.slice.ts b/odd-platform-ui/src/redux/slices/dataEntitySearch.slice.ts index 2a902a481..0613e770e 100644 --- a/odd-platform-ui/src/redux/slices/dataEntitySearch.slice.ts +++ b/odd-platform-ui/src/redux/slices/dataEntitySearch.slice.ts @@ -1,4 +1,8 @@ import { createSlice } from '@reduxjs/toolkit'; +import mapValues from 'lodash/mapValues'; +import reduce from 'lodash/reduce'; +import values from 'lodash/values'; +import get from 'lodash/get'; import { dataEntitiesSearchActionTypePrefix } from 'redux/actions'; import * as thunks from 'redux/thunks'; import type { @@ -13,11 +17,7 @@ import type { SearchFacetsData, SearchFilter, } from 'generated-sources'; -import mapValues from 'lodash/mapValues'; -import reduce from 'lodash/reduce'; import { assignWith } from 'redux/lib/helpers'; -import values from 'lodash/values'; -import get from 'lodash/get'; const initialState: DataEntitySearchState = { searchId: '', diff --git a/odd-platform-ui/src/redux/slices/dataQualityTest.slice.ts b/odd-platform-ui/src/redux/slices/dataQualityTest.slice.ts index 822c8f30e..5620d594f 100644 --- a/odd-platform-ui/src/redux/slices/dataQualityTest.slice.ts +++ b/odd-platform-ui/src/redux/slices/dataQualityTest.slice.ts @@ -1,5 +1,6 @@ -import type { DataQualityTestState } from 'redux/interfaces'; import { createSlice } from '@reduxjs/toolkit'; +import uniq from 'lodash/uniq'; +import type { DataQualityTestState } from 'redux/interfaces'; import * as thunks from 'redux/thunks'; import { dataQualityTestTypePrefix } from 'redux/actions'; import { @@ -7,7 +8,6 @@ import { type DataEntityList, DataEntityRunStatus, } from 'generated-sources'; -import uniq from 'lodash/uniq'; export const initialState: DataQualityTestState = { qualityTestsById: {}, diff --git a/odd-platform-ui/src/redux/slices/dataentities.slice.ts b/odd-platform-ui/src/redux/slices/dataentities.slice.ts index 6712729b6..d1b9b7633 100644 --- a/odd-platform-ui/src/redux/slices/dataentities.slice.ts +++ b/odd-platform-ui/src/redux/slices/dataentities.slice.ts @@ -1,11 +1,11 @@ import { createSlice } from '@reduxjs/toolkit'; +import keyBy from 'lodash/keyBy'; +import omit from 'lodash/omit'; +import filter from 'lodash/filter'; import * as thunks from 'redux/thunks'; import type { DataEntitiesState } from 'redux/interfaces'; -import keyBy from 'lodash/keyBy'; import type { DataEntityDetails, DataEntityStatus } from 'generated-sources'; -import omit from 'lodash/omit'; import { dataEntitiesActionTypePrefix } from 'redux/actions'; -import filter from 'lodash/filter'; export const initialState: DataEntitiesState = { classesAndTypesDict: { entityTypes: {}, entityClasses: {} }, diff --git a/odd-platform-ui/src/redux/slices/datasources.slice.ts b/odd-platform-ui/src/redux/slices/datasources.slice.ts index b1d982f02..21e082780 100644 --- a/odd-platform-ui/src/redux/slices/datasources.slice.ts +++ b/odd-platform-ui/src/redux/slices/datasources.slice.ts @@ -1,5 +1,5 @@ -import { datasourceActionTypePrefix } from 'redux/actions'; import { createEntityAdapter, createSlice } from '@reduxjs/toolkit'; +import { datasourceActionTypePrefix } from 'redux/actions'; import * as thunks from 'redux/thunks'; import type { DataSource } from 'generated-sources'; import type { DataSourcesState } from 'redux/interfaces'; diff --git a/odd-platform-ui/src/redux/slices/metadata.slice.ts b/odd-platform-ui/src/redux/slices/metadata.slice.ts index cb8e60e66..0eade1a8c 100644 --- a/odd-platform-ui/src/redux/slices/metadata.slice.ts +++ b/odd-platform-ui/src/redux/slices/metadata.slice.ts @@ -1,8 +1,8 @@ import { createSlice } from '@reduxjs/toolkit'; -import type { MetaDataState } from 'redux/interfaces'; -import * as thunks from 'redux/thunks'; import uniq from 'lodash/uniq'; import filter from 'lodash/filter'; +import type { MetaDataState } from 'redux/interfaces'; +import * as thunks from 'redux/thunks'; import { metadataActionTypePrefix } from 'redux/actions'; export const initialState: MetaDataState = { diff --git a/odd-platform-ui/src/redux/slices/namespace.slice.ts b/odd-platform-ui/src/redux/slices/namespace.slice.ts index 263400585..25d4dba88 100644 --- a/odd-platform-ui/src/redux/slices/namespace.slice.ts +++ b/odd-platform-ui/src/redux/slices/namespace.slice.ts @@ -1,7 +1,7 @@ +import { createEntityAdapter, createSlice } from '@reduxjs/toolkit'; import { namespaceActionTypePrefix } from 'redux/actions'; import type { NamespacesState } from 'redux/interfaces'; import { type Namespace } from 'generated-sources'; -import { createEntityAdapter, createSlice } from '@reduxjs/toolkit'; import * as thunks from 'redux/thunks'; export const namespaceAdapter = createEntityAdapter({ diff --git a/odd-platform-ui/src/redux/slices/owners.slice.ts b/odd-platform-ui/src/redux/slices/owners.slice.ts index 54b511001..edd009d4f 100644 --- a/odd-platform-ui/src/redux/slices/owners.slice.ts +++ b/odd-platform-ui/src/redux/slices/owners.slice.ts @@ -1,7 +1,7 @@ import { createSlice } from '@reduxjs/toolkit'; +import filter from 'lodash/filter'; import * as thunks from 'redux/thunks'; import type { OwnersState } from 'redux/interfaces'; -import filter from 'lodash/filter'; import { ownersActionTypePrefix } from 'redux/actions'; export const initialState: OwnersState = { diff --git a/odd-platform-ui/src/redux/slices/policy.slice.ts b/odd-platform-ui/src/redux/slices/policy.slice.ts index 58b978734..660c1bf62 100644 --- a/odd-platform-ui/src/redux/slices/policy.slice.ts +++ b/odd-platform-ui/src/redux/slices/policy.slice.ts @@ -1,7 +1,7 @@ +import { createEntityAdapter, createSlice } from '@reduxjs/toolkit'; import type { PoliciesState } from 'redux/interfaces'; import type { Policy, PolicyDetails } from 'generated-sources'; import { policyActTypePrefix } from 'redux/actions'; -import { createEntityAdapter, createSlice } from '@reduxjs/toolkit'; import * as thunks from 'redux/thunks'; export const policyAdapter = createEntityAdapter({ diff --git a/odd-platform-ui/src/redux/slices/roles.slice.ts b/odd-platform-ui/src/redux/slices/roles.slice.ts index 700f95ddd..48c7e0add 100644 --- a/odd-platform-ui/src/redux/slices/roles.slice.ts +++ b/odd-platform-ui/src/redux/slices/roles.slice.ts @@ -1,7 +1,7 @@ +import { createEntityAdapter, createSlice } from '@reduxjs/toolkit'; import type { RolesState } from 'redux/interfaces'; import type { Role } from 'generated-sources'; import { rolesActTypePrefix } from 'redux/actions'; -import { createEntityAdapter, createSlice } from '@reduxjs/toolkit'; import * as thunks from 'redux/thunks'; export const rolesAdapter = createEntityAdapter({ diff --git a/odd-platform-ui/src/redux/slices/tags.slice.ts b/odd-platform-ui/src/redux/slices/tags.slice.ts index 36d76d6b2..eaa79afca 100644 --- a/odd-platform-ui/src/redux/slices/tags.slice.ts +++ b/odd-platform-ui/src/redux/slices/tags.slice.ts @@ -1,7 +1,7 @@ +import { createEntityAdapter, createSlice } from '@reduxjs/toolkit'; import type { TagsState } from 'redux/interfaces'; import type { Tag } from 'generated-sources'; import { tagsActTypePrefix } from 'redux/actions'; -import { createEntityAdapter, createSlice } from '@reduxjs/toolkit'; import * as thunks from 'redux/thunks'; export const tagsAdapter = createEntityAdapter({ diff --git a/odd-platform-ui/src/redux/slices/termSearch.slice.ts b/odd-platform-ui/src/redux/slices/termSearch.slice.ts index 5c3dc4331..10bdd4d5a 100644 --- a/odd-platform-ui/src/redux/slices/termSearch.slice.ts +++ b/odd-platform-ui/src/redux/slices/termSearch.slice.ts @@ -1,4 +1,8 @@ import { createSlice } from '@reduxjs/toolkit'; +import mapValues from 'lodash/mapValues'; +import reduce from 'lodash/reduce'; +import values from 'lodash/values'; +import get from 'lodash/get'; import { termsSearchActTypePrefix } from 'redux/actions'; import * as thunks from 'redux/thunks'; import type { @@ -14,10 +18,6 @@ import type { SearchFilter, TermSearchFacetsData, } from 'generated-sources'; -import mapValues from 'lodash/mapValues'; -import reduce from 'lodash/reduce'; -import values from 'lodash/values'; -import get from 'lodash/get'; import { assignWith } from 'redux/lib/helpers'; const initialState: TermSearchState = {