From 619291171fddff4436862490068d17b656ca4f73 Mon Sep 17 00:00:00 2001 From: lavanya-bmw <106523828+lavanya-bmw@users.noreply.github.com> Date: Wed, 28 Aug 2024 17:32:40 +0530 Subject: [PATCH] feat(technical user management): remove inactive filter (#1046) --- CHANGELOG.md | 5 +++++ .../pages/TechnicalUserManagement/TechnicalUserTable.tsx | 5 ----- src/features/admin/serviceApiSlice.ts | 7 ------- 3 files changed, 5 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b2a7532f6..171c7c3d0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,11 @@ - Customer Detail Data Overlay - implement new UI design for customer detail data overlay +### Change + +- **Technical User Management** + - Removed 'Inactive' filter in technical user management [#1046](https://github.com/eclipse-tractusx/portal-frontend/pull/1046) + ## 2.2.0-RC1 ### Change diff --git a/src/components/pages/TechnicalUserManagement/TechnicalUserTable.tsx b/src/components/pages/TechnicalUserManagement/TechnicalUserTable.tsx index c87bcef15..ba16ae818 100644 --- a/src/components/pages/TechnicalUserManagement/TechnicalUserTable.tsx +++ b/src/components/pages/TechnicalUserManagement/TechnicalUserTable.tsx @@ -81,11 +81,6 @@ export const TechnicalUserTable = () => { buttonValue: ServiceAccountStatusFilter.ACTIVE, onButtonClick: setView, }, - { - buttonText: t('content.usermanagement.technicalUser.tabs.inactive'), - buttonValue: ServiceAccountStatusFilter.INACTIVE, - onButtonClick: setView, - }, { buttonText: t('content.usermanagement.technicalUser.tabs.managed'), buttonValue: ServiceAccountStatusFilter.MANAGED, diff --git a/src/features/admin/serviceApiSlice.ts b/src/features/admin/serviceApiSlice.ts index d07c52b03..ac7b07da5 100644 --- a/src/features/admin/serviceApiSlice.ts +++ b/src/features/admin/serviceApiSlice.ts @@ -98,7 +98,6 @@ export interface ServiceAccountsResponseType { export enum ServiceAccountStatusFilter { ACTIVE = 'ACTIVE', - INACTIVE = 'INACTIVE', MANAGED = 'MANAGED', OWNED = 'OWNED', } @@ -152,12 +151,6 @@ export const apiSlice = createApi({ fetchArgs.args.statusFilter === ServiceAccountStatusFilter.ACTIVE ) { return `${url}&clientId=${fetchArgs.args!.expr}` - } else if ( - !isFetchArgs && - fetchArgs.args.statusFilter && - fetchArgs.args.statusFilter === ServiceAccountStatusFilter.INACTIVE - ) { - return `${url}&filterForInactive=true` } else if ( !isFetchArgs && fetchArgs.args.statusFilter &&