diff --git a/frontend/src/component/admin/users/UsersList/UsersList.tsx b/frontend/src/component/admin/users/UsersList/UsersList.tsx index c03aa2a32237..ce1c4cbf4a20 100644 --- a/frontend/src/component/admin/users/UsersList/UsersList.tsx +++ b/frontend/src/component/admin/users/UsersList/UsersList.tsx @@ -36,7 +36,6 @@ import { RoleCell } from 'component/common/Table/cells/RoleCell/RoleCell'; import { useSearch } from 'hooks/useSearch'; import Download from '@mui/icons-material/Download'; import { StyledUsersLinkDiv } from '../Users.styles'; -import { useUiFlag } from 'hooks/useUiFlag'; import useUiConfig from '../../../../hooks/api/getters/useUiConfig/useUiConfig'; import { useScimSettings } from 'hooks/api/getters/useScimSettings/useScimSettings'; @@ -56,7 +55,6 @@ const UsersList = () => { }>({ open: false, }); - const userAccessUIEnabled = useUiFlag('userAccessUIEnabled'); const { settings: { enabled: scimEnabled }, } = useScimSettings(); @@ -204,22 +202,16 @@ const UsersList = () => { onEdit={() => { navigate(`/admin/users/${user.id}/edit`); }} - onViewAccess={ - userAccessUIEnabled - ? () => { - navigate( - `/admin/users/${user.id}/access`, - ); - } - : undefined - } + onViewAccess={() => { + navigate(`/admin/users/${user.id}/access`); + }} onChangePassword={openPwDialog(user)} onResetPassword={openResetPwDialog(user)} onDelete={openDelDialog(user)} isScimUser={scimEnabled && Boolean(user.scimId)} /> ), - width: userAccessUIEnabled ? 240 : 200, + width: 240, disableSortBy: true, }, // Always hidden -- for search @@ -235,7 +227,7 @@ const UsersList = () => { searchable: true, }, ], - [roles, navigate, isBillingUsers, userAccessUIEnabled], + [roles, navigate, isBillingUsers, true], ); const initialState = useMemo(() => { diff --git a/frontend/src/interfaces/uiConfig.ts b/frontend/src/interfaces/uiConfig.ts index 65070583ec71..34bf63f936f6 100644 --- a/frontend/src/interfaces/uiConfig.ts +++ b/frontend/src/interfaces/uiConfig.ts @@ -75,7 +75,6 @@ export type UiFlags = { feedbackComments?: Variant; showInactiveUsers?: boolean; featureSearchFeedbackPosting?: boolean; - userAccessUIEnabled?: boolean; outdatedSdksBanner?: boolean; displayTrafficDataUsage?: boolean; estimateTrafficDataCost?: boolean; diff --git a/package.json b/package.json index c130c2bdf68f..9c1f28c37d49 100644 --- a/package.json +++ b/package.json @@ -248,4 +248,4 @@ ] }, "packageManager": "yarn@4.4.1" -} \ No newline at end of file +} diff --git a/src/lib/types/experimental.ts b/src/lib/types/experimental.ts index 09e56e2bc3eb..49934f65ef82 100644 --- a/src/lib/types/experimental.ts +++ b/src/lib/types/experimental.ts @@ -42,7 +42,6 @@ export type IFlagKey = | 'estimateTrafficDataCost' | 'useMemoizedActiveTokens' | 'queryMissingTokens' - | 'userAccessUIEnabled' | 'disableUpdateMaxRevisionId' | 'disablePublishUnannouncedEvents' | 'outdatedSdksBanner' @@ -223,10 +222,6 @@ const flags: IFlags = { process.env.UNLEASH_EXPERIMENTAL_ESTIMATE_TRAFFIC_DATA_COST, false, ), - userAccessUIEnabled: parseEnvVarBoolean( - process.env.UNLEASH_EXPERIMENTAL_USER_ACCESS_UI_ENABLED, - false, - ), disableUpdateMaxRevisionId: parseEnvVarBoolean( process.env.UNLEASH_EXPERIMENTAL_DISABLE_SCHEDULED_CACHES, false, diff --git a/src/server-dev.ts b/src/server-dev.ts index be7e586391db..949611f0fb36 100644 --- a/src/server-dev.ts +++ b/src/server-dev.ts @@ -43,7 +43,6 @@ process.nextTick(async () => { stripHeadersOnAPI: true, celebrateUnleash: true, featureSearchFeedbackPosting: true, - userAccessUIEnabled: true, outdatedSdksBanner: true, disableShowContextFieldSelectionValues: false, projectOverviewRefactorFeedback: true,