Skip to content
This repository has been archived by the owner on Jan 12, 2023. It is now read-only.

Replace @konveyor/lib-ui with @migtools/lib-ui #984

Merged
merged 1 commit into from
Aug 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
"webpack-merge": "^5.8.0"
},
"dependencies": {
"@konveyor/lib-ui": "^8.3.2",
"@migtools/lib-ui": "^8.4.1",
"@patternfly/react-core": "^4.224.1",
"@patternfly/react-icons": "^4.75.1",
"@patternfly/react-styles": "^4.74.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
FormGroup,
} from '@patternfly/react-core';
import spacing from '@patternfly/react-styles/css/utilities/Spacing/spacing';
import { useFormField, useFormState, ValidatedTextInput } from '@konveyor/lib-ui';
import { useFormField, useFormState, ValidatedTextInput } from '@migtools/lib-ui';
import { SimpleSelect, OptionWithValue } from '@app/common/components/SimpleSelect';
import { MappingBuilder, IMappingBuilderItem, mappingBuilderItemsSchema } from './MappingBuilder';
import { getMappingFromBuilderItems } from './MappingBuilder/helpers';
Expand Down
2 changes: 1 addition & 1 deletion pkg/web/src/app/Mappings/components/MappingStatus.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { StatusIcon } from '@konveyor/lib-ui';
import { StatusIcon } from '@migtools/lib-ui';
import { QuerySpinnerMode, ResolvedQueries } from '@app/common/components/ResolvedQuery';
import { useResourceQueriesForMapping } from '@app/queries';
import { MappingType, Mapping } from '@app/queries/types';
Expand Down
2 changes: 1 addition & 1 deletion pkg/web/src/app/Mappings/components/MappingsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
truncate,
} from '@patternfly/react-table';
import tableStyles from '@patternfly/react-styles/css/components/Table/table';
import { useSelectionState } from '@konveyor/lib-ui';
import { useSelectionState } from '@migtools/lib-ui';
import { useSortState, usePaginationState } from '@app/common/hooks';
import { IMetaObjectMeta, Mapping, MappingType } from '@app/queries/types';
import { MappingsActionsDropdown } from './MappingsActionsDropdown';
Expand Down
2 changes: 1 addition & 1 deletion pkg/web/src/app/Plans/components/PlanDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
DescriptionListTerm,
} from '@patternfly/react-core';
import spacing from '@patternfly/react-styles/css/utilities/Spacing/spacing';
import { StatusIcon } from '@konveyor/lib-ui';
import { StatusIcon } from '@migtools/lib-ui';
import text from '@patternfly/react-styles/css/utilities/Text/text';

import { MappingDetailView } from '@app/Mappings/components/MappingDetailView';
Expand Down
2 changes: 1 addition & 1 deletion pkg/web/src/app/Plans/components/PlansTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import ArchiveIcon from '@patternfly/react-icons/dist/esm/icons/archive-icon';
import alignment from '@patternfly/react-styles/css/utilities/Alignment/alignment';
import spacing from '@patternfly/react-styles/css/utilities/Spacing/spacing';
import { Link } from 'react-router-dom';
import { StatusIcon, useSelectionState } from '@konveyor/lib-ui';
import { StatusIcon, useSelectionState } from '@migtools/lib-ui';

import { PlanActionsDropdown } from './PlanActionsDropdown';
import { useSortState, usePaginationState } from '@app/common/hooks';
Expand Down
2 changes: 1 addition & 1 deletion pkg/web/src/app/Plans/components/VMMigrationDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import {
} from '@patternfly/react-table';
import { centerCellTransform } from '@app/utils/utils';
import { Link } from 'react-router-dom';
import { useSelectionState } from '@konveyor/lib-ui';
import { useSelectionState } from '@migtools/lib-ui';
import spacing from '@patternfly/react-styles/css/utilities/Spacing/spacing';
import alignment from '@patternfly/react-styles/css/utilities/Alignment/alignment';

Expand Down
2 changes: 1 addition & 1 deletion pkg/web/src/app/Plans/components/VMStatusPrecopyTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {

import { IVMStatus } from '@app/queries/types';
import { TickingElapsedTime } from '@app/common/components/TickingElapsedTime';
import { StatusIcon } from '@konveyor/lib-ui';
import { StatusIcon } from '@migtools/lib-ui';
import { CanceledIcon } from '@app/common/components/CanceledIcon';

interface IVMStatusPrecopyTableProps {
Expand Down
2 changes: 1 addition & 1 deletion pkg/web/src/app/Plans/components/VMWarmCopyStatus.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react';
import { IVMStatus } from '@app/queries/types';
import { StatusIcon, StatusType } from '@konveyor/lib-ui';
import { StatusIcon, StatusType } from '@migtools/lib-ui';
import { Button, Popover } from '@patternfly/react-core';
import { getMinutesUntil } from '@app/common/helpers';
import { CanceledIcon } from '@app/common/components/CanceledIcon';
Expand Down
2 changes: 1 addition & 1 deletion pkg/web/src/app/Plans/components/Wizard/FilterVMsForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
TreeViewSearch,
} from '@patternfly/react-core';
import spacing from '@patternfly/react-styles/css/utilities/Spacing/spacing';
import { useSelectionState } from '@konveyor/lib-ui';
import { useSelectionState } from '@migtools/lib-ui';
import { IndexedTree, useSourceVMsQuery } from '@app/queries';
import {
IPlan,
Expand Down
2 changes: 1 addition & 1 deletion pkg/web/src/app/Plans/components/Wizard/GeneralForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
Popover,
} from '@patternfly/react-core';
import spacing from '@patternfly/react-styles/css/utilities/Spacing/spacing';
import { getFormGroupProps, ValidatedTextInput } from '@konveyor/lib-ui';
import { getFormGroupProps, ValidatedTextInput } from '@migtools/lib-ui';

import { POD_NETWORK } from '@app/queries/types';
import {
Expand Down
2 changes: 1 addition & 1 deletion pkg/web/src/app/Plans/components/Wizard/MappingForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
Divider,
} from '@patternfly/react-core';
import spacing from '@patternfly/react-styles/css/utilities/Spacing/spacing';
import { ValidatedTextInput } from '@konveyor/lib-ui';
import { ValidatedTextInput } from '@migtools/lib-ui';
import { OptionWithValue } from '@app/common/components/SimpleSelect';
import {
MappingType,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
useFormField,
useFormState,
ValidatedTextInput,
} from '@konveyor/lib-ui';
} from '@migtools/lib-ui';
import {
Modal,
Stack,
Expand Down
2 changes: 1 addition & 1 deletion pkg/web/src/app/Plans/components/Wizard/PlanWizard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
import { Link, Redirect, useHistory, useRouteMatch } from 'react-router-dom';
import { UseQueryResult } from 'react-query';
import spacing from '@patternfly/react-styles/css/utilities/Spacing/spacing';
import { useFormField, useFormState } from '@konveyor/lib-ui';
import { useFormField, useFormState } from '@migtools/lib-ui';
import { RouteGuard } from '@app/common/components/RouteGuard';
import { WizardStepContainer } from './WizardStepContainer';
import { GeneralForm } from './GeneralForm';
Expand Down
2 changes: 1 addition & 1 deletion pkg/web/src/app/Plans/components/Wizard/SelectVMsForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import {
InventoryTree,
InventoryTreeType,
} from '@app/queries/types';
import { useSelectionState } from '@konveyor/lib-ui';
import { useSelectionState } from '@migtools/lib-ui';

import { useSortState, usePaginationState, useFilterState } from '@app/common/hooks';
import { PlanWizardFormState } from './PlanWizard';
Expand Down
2 changes: 1 addition & 1 deletion pkg/web/src/app/Plans/components/Wizard/TypeForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import spacing from '@patternfly/react-styles/css/utilities/Spacing/spacing';
import { PlanWizardFormState } from './PlanWizard';
import { warmCriticalConcerns, someVMHasConcern } from './helpers';
import { SourceVM } from '@app/queries/types';
import { StatusIcon } from '@konveyor/lib-ui';
import { StatusIcon } from '@migtools/lib-ui';

interface ITypeFormProps {
form: PlanWizardFormState['type'];
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { StatusIcon } from '@konveyor/lib-ui';
import { StatusIcon } from '@migtools/lib-ui';
import { TextContent, Text, List, ListItem, Flex, FlexItem } from '@patternfly/react-core';
import spacing from '@patternfly/react-styles/css/utilities/Spacing/spacing';
import { PRODUCT_DOCO_LINK } from '@app/common/constants';
Expand Down
2 changes: 1 addition & 1 deletion pkg/web/src/app/Plans/components/Wizard/VMConcernsIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react';
import { SourceVM } from '@app/queries/types';
import { StatusIcon } from '@konveyor/lib-ui';
import { StatusIcon } from '@migtools/lib-ui';

import { getMostSevereVMConcern, getVMConcernStatusLabel, getVMConcernStatusType } from './helpers';
interface IVMConcernsIconProps {
Expand Down
2 changes: 1 addition & 1 deletion pkg/web/src/app/Plans/components/Wizard/helpers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ import {
IDisk,
} from '@app/queries';
import { UseQueryResult, QueryStatus } from 'react-query';
import { StatusType } from '@konveyor/lib-ui';
import { StatusType } from '@migtools/lib-ui';
import { PlanHookInstance } from './PlanAddEditHookModal';
import { IKubeList } from '@app/client/types';
import { getObjectRef } from '@app/common/helpers';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import {
getFormGroupProps,
ValidatedTextInput,
ValidatedPasswordInput,
} from '@konveyor/lib-ui';
} from '@migtools/lib-ui';

import { SimpleSelect, OptionWithValue } from '@app/common/components/SimpleSelect';
import {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react';
import { Alert, AlertActionCloseButton, Text } from '@patternfly/react-core';
import spacing from '@patternfly/react-styles/css/utilities/Spacing/spacing';
import { useLocalStorage } from '@konveyor/lib-ui';
import { useLocalStorage } from '@migtools/lib-ui';
import { CLOUD_MA_LINK, PROVIDER_TYPE_NAMES } from '@app/common/constants';

export const CloudAnalyticsInfoAlert: React.FunctionComponent = () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
getFormGroupProps,
ValidatedTextInput,
ValidatedPasswordInput,
} from '@konveyor/lib-ui';
} from '@migtools/lib-ui';

import { SimpleSelect, OptionWithValue } from '@app/common/components/SimpleSelect';
import { IHost, IHostConfig, IHostNetworkAdapter, IVMwareProvider } from '@app/queries/types';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
truncate,
} from '@patternfly/react-table';
import { usePaginationState, useSortState } from '@app/common/hooks';
import { StatusIcon, useSelectionState } from '@konveyor/lib-ui';
import { StatusIcon, useSelectionState } from '@migtools/lib-ui';
import { IHost, IVMwareProvider } from '@app/queries/types';
import { SelectNetworkModal } from './SelectNetworkModal';
import { useHostConfigsQuery } from '@app/queries';
Expand Down
2 changes: 1 addition & 1 deletion pkg/web/src/app/Welcome/WelcomePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
import spacing from '@patternfly/react-styles/css/utilities/Spacing/spacing';
import alignment from '@patternfly/react-styles/css/utilities/Alignment/alignment';
import flex from '@patternfly/react-styles/css/utilities/Flex/flex';
import { useLocalStorage } from '@konveyor/lib-ui';
import { useLocalStorage } from '@migtools/lib-ui';
import logoMA from './logoMA.svg';
import { APP_TITLE, PROVIDER_TYPE_NAMES } from '@app/common/constants';

Expand Down
2 changes: 1 addition & 1 deletion pkg/web/src/app/client/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import KubeClient, {
NamespacedResource,
CoreNamespacedResourceKind,
CoreNamespacedResource,
} from '@konveyor/lib-ui';
} from '@migtools/lib-ui';
import { META, ProviderType, CLUSTER_API_VERSION } from '@app/common/constants';
import { IProviderObject, ISecret } from '@app/queries/types';
import { useNetworkContext } from '@app/common/context';
Expand Down
2 changes: 1 addition & 1 deletion pkg/web/src/app/client/types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { IMetaObjectMeta, IMetaTypeMeta } from '@app/queries/types';
import { ClusterClient } from '@konveyor/lib-ui';
import { ClusterClient } from '@migtools/lib-ui';
import { AxiosError } from 'axios';

export type KubeClientError = AxiosError<{ message: string }>;
Expand Down
2 changes: 1 addition & 1 deletion pkg/web/src/app/common/components/ProviderSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
IProviderObject,
SourceInventoryProvider,
} from '@app/queries/types';
import { getFormGroupProps, IValidatedFormField } from '@konveyor/lib-ui';
import { getFormGroupProps, IValidatedFormField } from '@migtools/lib-ui';
import {
Divider,
FormGroup,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
TextContent,
Text,
} from '@patternfly/react-core';
import { useFormState, useFormField, getFormGroupProps } from '@konveyor/lib-ui';
import { useFormState, useFormField, getFormGroupProps } from '@migtools/lib-ui';

import { SimpleSelect, OptionWithValue } from '@app/common/components/SimpleSelect';
import {
Expand Down
2 changes: 1 addition & 1 deletion pkg/web/src/app/common/components/StatusCondition.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { StatusIcon, StatusType } from '@konveyor/lib-ui';
import { StatusIcon, StatusType } from '@migtools/lib-ui';
import { getMostSeriousCondition } from '@app/common/helpers';
import { StatusCategoryType } from '@app/common/constants';
import { IStatusCondition } from '@app/queries/types';
Expand Down
2 changes: 1 addition & 1 deletion pkg/web/src/app/common/context/NetworkContext.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react';
import { AxiosError } from 'axios';
import { History } from 'history';
import { useLocalStorage } from '@konveyor/lib-ui';
import { useLocalStorage } from '@migtools/lib-ui';

export interface ICurrentUser {
access_token?: string;
Expand Down
2 changes: 1 addition & 1 deletion pkg/web/src/app/queries/fetchHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { QueryFunction } from 'react-query/types/core/types';
import { useHistory } from 'react-router-dom';
import { History, LocationState } from 'history';
import { useClientInstance } from '@app/client/helpers';
import { KubeResource } from '@konveyor/lib-ui';
import { KubeResource } from '@migtools/lib-ui';
import { IKubeResponse, IKubeStatus } from '@app/client/types';
import { ENV } from '@app/common/constants';

Expand Down