Skip to content

Commit

Permalink
chore: rename Pages/Authorization - shared to Shared
Browse files Browse the repository at this point in the history
  • Loading branch information
Elessar1802 committed May 8, 2024
1 parent ea3f311 commit f7885f4
Show file tree
Hide file tree
Showing 55 changed files with 28 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import {
PermissionConfigurationForm,
PermissionConfigurationFormProvider,
usePermissionConfiguration,
} from '../shared-amrit/components/PermissionConfigurationForm'
} from '../Shared/components/PermissionConfigurationForm'
import { createUserPermissionPayload, isDirectPermissionFormComplete } from '../utils'
import { getDefaultUserStatusAndTimeout } from '../libUtils'
import { importComponentFromFELibrary } from '../../../../components/common'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import {
PermissionConfigurationForm,
PermissionConfigurationFormProvider,
usePermissionConfiguration,
} from '../shared-amrit/components/PermissionConfigurationForm'
} from '../Shared/components/PermissionConfigurationForm'
import { createUserPermissionPayload, isDirectPermissionFormComplete } from '../utils'
import { getDefaultUserStatusAndTimeout } from '../libUtils'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import React from 'react'
import { Link, useParams } from 'react-router-dom'
import { API_STATUS_CODES, URLS } from '../../../../../config'
import { getPermissionGroupById } from '../../authorization.service'
import { PermissionConfigurationFormProvider } from '../../shared-amrit/components/PermissionConfigurationForm'
import { PermissionConfigurationFormProvider } from '../../Shared/components/PermissionConfigurationForm'
import PermissionGroupForm from './PermissionGroupForm'

const PermissionGroupAddEdit = () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ import { createOrUpdatePermissionGroup, deletePermissionGroup } from '../../auth
import {
PermissionConfigurationForm,
usePermissionConfiguration,
} from '../../shared-amrit/components/PermissionConfigurationForm'
} from '../../Shared/components/PermissionConfigurationForm'
import { getIsSuperAdminPermission, getRoleFilters, isDirectPermissionFormComplete } from '../../utils'
import { excludeKeyAndClusterValue } from '../../shared-amrit/components/K8sObjectPermissions/utils'
import { excludeKeyAndClusterValue } from '../../Shared/components/K8sObjectPermissions/utils'

const PermissionGroupForm = ({ isAddMode }: { isAddMode: boolean }) => {
const { serverMode } = useMainContext()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ import React, { useRef } from 'react'
import { importComponentFromFELibrary } from '../../../../../components/common'
import { API_STATUS_CODES } from '../../../../../config'
import { useAuthorizationContext } from '../../AuthorizationProvider'
import FiltersEmptyState from '../../shared-amrit/components/FilterEmptyState/FilterEmptyState.component'
import BulkSelectionActionWidget from '../../shared-amrit/components/BulkSelection/BulkSelectionActionWidget'
import BulkSelectionModal from '../../shared-amrit/components/BulkSelection/BulkSelectionModal'
import FiltersEmptyState from '../../Shared/components/FilterEmptyState/FilterEmptyState.component'
import BulkSelectionActionWidget from '../../Shared/components/BulkSelection/BulkSelectionActionWidget'
import BulkSelectionModal from '../../Shared/components/BulkSelection/BulkSelectionModal'
import NoPermissionGroups from './NoPermissionGroups'
import PermissionGroupListHeader from './PermissionGroupListHeader'
import PermissionGroupTable from './PermissionGroupTable'
import { PermissionGroupContainerProps } from './types'
import { BulkSelectionModalTypes, useAuthorizationBulkSelection } from '../../shared-amrit/components/BulkSelection'
import { BulkSelectionEntityTypes } from '../../shared-amrit/components/BulkSelection/constants'
import { BulkSelectionModalTypes, useAuthorizationBulkSelection } from '../../Shared/components/BulkSelection'
import { BulkSelectionEntityTypes } from '../../Shared/components/BulkSelection/constants'

const PermissionGroupInfoBar = importComponentFromFELibrary('PermissionGroupInfoBar', noop, 'function')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { getPermissionGroupList } from '../../authorization.service'
import { SortableKeys } from './constants'
import { PermissionGroup } from '../../types'
import PermissionGroupContainer from './PermissionGroupContainer'
import { BulkSelectionModalConfig, BulkSelectionModalTypes } from '../../shared-amrit/components/BulkSelection'
import { BulkSelectionModalConfig, BulkSelectionModalTypes } from '../../Shared/components/BulkSelection'

const PermissionGroupList = () => {
const [bulkSelectionModalConfig, setBulkSelectionModalConfig] = useState<BulkSelectionModalConfig>({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { ReactComponent as Trash } from '../../../../../assets/icons/ic-delete-i

import { PermissionGroupRowProps } from './types'
import { deletePermissionGroup } from '../../authorization.service'
import { useAuthorizationBulkSelection } from '../../shared-amrit/components/BulkSelection'
import { useAuthorizationBulkSelection } from '../../Shared/components/BulkSelection'

const PermissionGroupRow = ({
id,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { BulkSelection, Pagination, SortableTableHeaderCell } from '@devtron-labs/devtron-fe-common-lib'
import React from 'react'
import { useAuthorizationBulkSelection } from '../../shared-amrit/components/BulkSelection'
import { useAuthorizationBulkSelection } from '../../Shared/components/BulkSelection'
import { handleToggleCheckForBulkSelection } from '../../utils'
import { permissionGroupLoading, SortableKeys } from './constants'
import PermissionGroupRow from './PermissionGroupRow'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { SearchBarProps, ServerError, UseUrlFiltersReturnType } from '@devtron-labs/devtron-fe-common-lib'
import { getPermissionGroupList } from '../../authorization.service'
import { BulkSelectionModalConfig } from '../../shared-amrit/components/BulkSelection'
import { BulkSelectionModalConfig } from '../../Shared/components/BulkSelection'
import { PermissionGroup } from '../../types'
import { SortableKeys } from './constants'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ import { User } from '../../types'
import {
PermissionConfigurationForm,
usePermissionConfiguration,
} from '../../shared-amrit/components/PermissionConfigurationForm'
} from '../../Shared/components/PermissionConfigurationForm'
import { createUserPermissionPayload, isDirectPermissionFormComplete } from '../../utils'
import { excludeKeyAndClusterValue } from '../../shared-amrit/components/K8sObjectPermissions/utils'
import { excludeKeyAndClusterValue } from '../../Shared/components/K8sObjectPermissions/utils'
import { getCreatableChipStyle } from '../utils'
import { getDefaultUserStatusAndTimeout } from '../../libUtils'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { API_STATUS_CODES, URLS } from '../../../../../config'
import { getUserById } from '../../authorization.service'
import UserForm from './UserForm'
import { getIsAdminOrSystemUser } from '../utils'
import { PermissionConfigurationFormProvider } from '../../shared-amrit/components/PermissionConfigurationForm'
import { PermissionConfigurationFormProvider } from '../../Shared/components/PermissionConfigurationForm'
import { importComponentFromFELibrary } from '../../../../../components/common'

const showStatus = !!importComponentFromFELibrary('StatusHeaderCell', null, 'function')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ import {
} from '@devtron-labs/devtron-fe-common-lib'
import React, { useRef } from 'react'
import { API_STATUS_CODES } from '../../../../../config'
import FiltersEmptyState from '../../shared-amrit/components/FilterEmptyState/FilterEmptyState.component'
import FiltersEmptyState from '../../Shared/components/FilterEmptyState/FilterEmptyState.component'
import NoUsers from './NoUsers'
import { UserPermissionContainerProps } from './types'
import UserPermissionListHeader from './UserPermissionListHeader'
import BulkSelectionActionWidget from '../../shared-amrit/components/BulkSelection/BulkSelectionActionWidget'
import BulkSelectionModal from '../../shared-amrit/components/BulkSelection/BulkSelectionModal'
import BulkSelectionActionWidget from '../../Shared/components/BulkSelection/BulkSelectionActionWidget'
import BulkSelectionModal from '../../Shared/components/BulkSelection/BulkSelectionModal'
import UserPermissionTable from './UserPermissionTable'
import { BulkSelectionModalTypes, useAuthorizationBulkSelection } from '../../shared-amrit/components/BulkSelection'
import { BulkSelectionEntityTypes } from '../../shared-amrit/components/BulkSelection/constants'
import { BulkSelectionModalTypes, useAuthorizationBulkSelection } from '../../Shared/components/BulkSelection'
import { BulkSelectionEntityTypes } from '../../Shared/components/BulkSelection/constants'
import { importComponentFromFELibrary } from '../../../../../components/common'

const UserListFilterToolbar = importComponentFromFELibrary('UserListFilterToolbar', null, 'function')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { importComponentFromFELibrary } from '../../../../../components/common'
import { User } from '../../types'
import { getIsAdminOrSystemUser, parseSearchParams } from '../utils'
import UserPermissionContainer from './UserPermissionContainer'
import { BulkSelectionModalConfig, BulkSelectionModalTypes } from '../../shared-amrit/components/BulkSelection'
import { BulkSelectionModalConfig, BulkSelectionModalTypes } from '../../Shared/components/BulkSelection'
import { UserListFilter } from './types'

const StatusHeaderCell = importComponentFromFELibrary('StatusHeaderCell', null, 'function')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { deleteUser } from '../../authorization.service'
import { importComponentFromFELibrary } from '../../../../../components/common'
import { Moment12HourFormat } from '../../../../../config'
import { LAST_LOGIN_TIME_NULL_STATE } from '../constants'
import { useAuthorizationBulkSelection } from '../../shared-amrit/components/BulkSelection'
import { useAuthorizationBulkSelection } from '../../Shared/components/BulkSelection'

const StatusCell = importComponentFromFELibrary('StatusCell', null, 'function')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
} from '@devtron-labs/devtron-fe-common-lib'
import React from 'react'
import { importComponentFromFELibrary } from '../../../../../components/common'
import { useAuthorizationBulkSelection } from '../../shared-amrit/components/BulkSelection'
import { useAuthorizationBulkSelection } from '../../Shared/components/BulkSelection'
import { handleToggleCheckForBulkSelection } from '../../utils'
import { userListLoading } from './constants'
import { UserPermissionTableProps } from './types'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
UseUrlFiltersReturnType,
} from '@devtron-labs/devtron-fe-common-lib'
import { getUserList } from '../../authorization.service'
import { BulkSelectionActionWidgetProps, BulkSelectionModalConfig } from '../../shared-amrit/components/BulkSelection'
import { BulkSelectionActionWidgetProps, BulkSelectionModalConfig } from '../../Shared/components/BulkSelection'
import { User } from '../../types'

export type UserListFilter = Pick<UserListFilterParams, 'status'>
Expand Down
4 changes: 2 additions & 2 deletions src/Pages/GlobalConfigurations/Authorization/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import {
UserDto,
} from './types'
import { LAST_LOGIN_TIME_NULL_STATE } from './UserPermissions/constants'
import { useAuthorizationBulkSelection } from './shared-amrit/components/BulkSelection'
import { useAuthorizationBulkSelection } from './Shared/components/BulkSelection'
import {
CONFIG_APPROVER_ACTION,
ARTIFACT_PROMOTER_ACTION,
Expand All @@ -40,7 +40,7 @@ import {
ViewChartGroupPermission,
} from './constants'
import { AppIdWorkflowNamesMapping } from '../../../services/service.types'
import { ALL_EXISTING_AND_FUTURE_ENVIRONMENTS_VALUE } from './shared-amrit/components/AppPermissions/constants'
import { ALL_EXISTING_AND_FUTURE_ENVIRONMENTS_VALUE } from './Shared/components/AppPermissions/constants'
import { importComponentFromFELibrary } from '../../../components/common'
import { getFormattedTimeToLive } from './libUtils'

Expand Down

0 comments on commit f7885f4

Please sign in to comment.