From 7fbb5f54aebe783c925b947357583cf3ab302c0a Mon Sep 17 00:00:00 2001
From: lavanya-bmw <106523828+lavanya-bmw@users.noreply.github.com>
Date: Wed, 28 Aug 2024 11:40:14 +0530
Subject: [PATCH] feat(application requests and connector management): update
skipped status (#1019)
---
CHANGELOG.md | 5 +++
DEPENDENCIES | 2 +-
src/assets/locales/de/main.json | 10 ++++-
src/assets/locales/en/main.json | 10 ++++-
.../CompanyDetailsHelper.tsx | 8 ++++
.../RegistrationRequests.scss | 1 -
.../CheckList/CheckListFullButtons.tsx | 15 +++++++
.../registrationTableColumns.tsx | 21 +++++++++
.../EdcConnector/edcConnectorTableColumns.tsx | 4 +-
.../shared/basic/Progress/index.tsx | 44 +++++++++++--------
.../admin/applicationRequestApiSlice.ts | 4 ++
11 files changed, 97 insertions(+), 27 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5797ed822..336ff487a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,11 @@
## Unreleased
+### Change
+
+- **Application Requests and Connector Management**
+ - update the status(skipped) in application requests and necessary changes with checkbox in connector management [#1019](https://github.com/eclipse-tractusx/portal-frontend/pull/1019)
+
### Bugfixes
- **IDP management**
diff --git a/DEPENDENCIES b/DEPENDENCIES
index 583db2173..af8360039 100644
--- a/DEPENDENCIES
+++ b/DEPENDENCIES
@@ -684,7 +684,7 @@ npm/npmjs/@mui/material/5.15.15, MIT AND CC-BY-3.0, approved, #13175
npm/npmjs/@mui/private-theming/5.15.14, MIT AND CC-BY-3.0, approved, #13174
npm/npmjs/@mui/styled-engine/5.15.14, MIT AND CC-BY-3.0, approved, #13173
npm/npmjs/@mui/system/5.15.15, MIT, approved, #13170
-npm/npmjs/@mui/types/7.2.14, MIT, approved, clearlydefined
+npm/npmjs/@mui/types/7.2.14, MIT, approved, #16017
npm/npmjs/@mui/utils/5.15.14, MIT AND OFL-1.1 AND CC-BY-3.0, approved, #13927
npm/npmjs/@mui/x-data-grid/6.19.11, MIT, approved, #14027
npm/npmjs/@mui/x-date-pickers/6.19.9, MIT, approved, #14025
diff --git a/src/assets/locales/de/main.json b/src/assets/locales/de/main.json
index 0430cd789..e1c1ff1d8 100644
--- a/src/assets/locales/de/main.json
+++ b/src/assets/locales/de/main.json
@@ -187,6 +187,7 @@
"buttonprogress": "in progress",
"buttonrejected": "rejected",
"buttoncompleted": "completed",
+ "buttonPartiallyCompleted": "teilweise abgeschlossen",
"buttonerror": "error",
"cellconfirmed": "bestätigt",
"celldeclined": "abgelehnt",
@@ -568,7 +569,7 @@
"location": "Location",
"tooltipText": "Connector's status is pending",
"sdDescription": "SD Registration",
- "sdRegistrationToolTip": "Die Selbstbeschreibung wurde ausgelöst. Der Vorgang kann bis zu ein paar Minuten dauern.",
+ "sdRegistrationToolTip": "Das SD-Dokument ist noch nicht geladen. Dies könnte auf die Deaktivierung der SD-Fabrik zurückzuführen sein. Dieser Prozess wird so bald wie möglich vom CX-Administrator neu ausgelöst.",
"hostCompanyName": "Host",
"providerCompanyName": "Customer",
"connectorUrl": "Connector-URL"
@@ -1615,7 +1616,8 @@
"DONE": "approved",
"IN_PROGRESS": "in progress",
"FAILED": "failed",
- "TO_DO": "to do"
+ "TO_DO": "to do",
+ "SKIPPED": "skipped"
},
"buttonApprove": "Approve",
"buttonConfirm": "Confirm",
@@ -1773,6 +1775,10 @@
"FAILED": {
"title": "Ihre Aktion ist erforderlich, um fortzufahren.",
"description": "The self-description creation was unsuccessful. Details regarding the unsuccessful process can get found below. Additionally you can retrigger the endpoint (by resetting the status) or close/reject the company registration."
+ },
+ "SKIPPED": {
+ "title": "Von Ihrer Seite sind keine Maßnahmen erforderlich",
+ "description": "Die Erstellung der Selbstbeschreibung wurde absichtlich übersprungen. Dieser Prozess wird vom CX-Operator so bald wie möglich wieder ausgelöst."
}
}
},
diff --git a/src/assets/locales/en/main.json b/src/assets/locales/en/main.json
index 5170555f0..3c3012b3f 100644
--- a/src/assets/locales/en/main.json
+++ b/src/assets/locales/en/main.json
@@ -186,6 +186,7 @@
"buttonprogress": "in progress",
"buttonrejected": "rejected",
"buttoncompleted": "completed",
+ "buttonPartiallyCompleted": "partially completed",
"buttonerror": "error",
"cellconfirmed": "confirmed",
"celldeclined": "declined",
@@ -567,7 +568,7 @@
"location": "Location",
"tooltipText": "Connector's status is pending",
"sdDescription": "SD Registration",
- "sdRegistrationToolTip": "The Self-Description is triggered. Process might take up to a couple of minutes.",
+ "sdRegistrationToolTip": "The SD Document is not yet loaded. This could be due to the deactivation of the Sd Factory. This process will be retriggered as soon as possible by the CX Admin",
"hostCompanyName": "Host",
"providerCompanyName": "Customer",
"connectorUrl": "Connector URL"
@@ -1582,7 +1583,8 @@
"DONE": "approved",
"IN_PROGRESS": "in progress",
"FAILED": "failed",
- "TO_DO": "to do"
+ "TO_DO": "to do",
+ "SKIPPED": "skipped"
},
"buttonApprove": "Approve",
"buttonConfirm": "Confirm",
@@ -1740,6 +1742,10 @@
"FAILED": {
"title": "Your action is needed.",
"description": "The self-description creation was unsuccessful. Details regarding the unsuccessful process can get found below. Additionally you can retrigger the endpoint (by resetting the status) or close/reject the company registration."
+ },
+ "SKIPPED": {
+ "title": "No action needed from your side",
+ "description": "The self-description creation was skipped on purpose. This process will be retriggered by the CX Operator as soon as possible."
}
}
},
diff --git a/src/components/pages/Admin/components/RegistrationRequests/CompanyDetailOverlay/CompanyDetailsHelper.tsx b/src/components/pages/Admin/components/RegistrationRequests/CompanyDetailOverlay/CompanyDetailsHelper.tsx
index 7e5e695f9..e311ac511 100644
--- a/src/components/pages/Admin/components/RegistrationRequests/CompanyDetailOverlay/CompanyDetailsHelper.tsx
+++ b/src/components/pages/Admin/components/RegistrationRequests/CompanyDetailOverlay/CompanyDetailsHelper.tsx
@@ -36,6 +36,14 @@ export const getTitle = (
) => {
const getStatus = () => {
if (
+ selectedRequest?.applicationStatus ===
+ ApplicationRequestStatus.CONFIRMED &&
+ selectedRequest?.applicationChecklist?.filter(
+ (checklist) => checklist.statusId === ProgressStatus.SKIPPED
+ ).length > 0
+ ) {
+ return t('content.admin.registration-requests.buttonPartiallyCompleted')
+ } else if (
selectedRequest?.applicationStatus === ApplicationRequestStatus.SUBMITTED
) {
const failedItems = selectedRequest.applicationChecklist.filter(
diff --git a/src/components/pages/Admin/components/RegistrationRequests/RegistrationRequests.scss b/src/components/pages/Admin/components/RegistrationRequests/RegistrationRequests.scss
index bb15cffac..584d28030 100644
--- a/src/components/pages/Admin/components/RegistrationRequests/RegistrationRequests.scss
+++ b/src/components/pages/Admin/components/RegistrationRequests/RegistrationRequests.scss
@@ -197,7 +197,6 @@
align-items: center;
border-radius: 30px;
padding: 5px;
- width: 140px;
.statusText {
margin: 0 auto;
diff --git a/src/components/pages/Admin/components/RegistrationRequests/components/CheckList/CheckListFullButtons.tsx b/src/components/pages/Admin/components/RegistrationRequests/components/CheckList/CheckListFullButtons.tsx
index f3ccec8ab..31d43e002 100644
--- a/src/components/pages/Admin/components/RegistrationRequests/components/CheckList/CheckListFullButtons.tsx
+++ b/src/components/pages/Admin/components/RegistrationRequests/components/CheckList/CheckListFullButtons.tsx
@@ -98,6 +98,19 @@ export default function CheckListFullButtons({
),
backgroundColor: '#FFF6FF',
}
+ case ProgressStatus.SKIPPED:
+ return {
+ icon: (
+
+ ),
+ backgroundColor: '#ffffff',
+ }
}
}
@@ -111,6 +124,8 @@ export default function CheckListFullButtons({
return 'confirmed'
case ProgressStatus.FAILED:
return 'declined'
+ case ProgressStatus.SKIPPED:
+ return 'label'
}
}
diff --git a/src/components/pages/Admin/components/RegistrationRequests/registrationTableColumns.tsx b/src/components/pages/Admin/components/RegistrationRequests/registrationTableColumns.tsx
index 6d34ea7de..dca2d2a2f 100644
--- a/src/components/pages/Admin/components/RegistrationRequests/registrationTableColumns.tsx
+++ b/src/components/pages/Admin/components/RegistrationRequests/registrationTableColumns.tsx
@@ -79,6 +79,13 @@ export const StatusProgress = ({
style={{
border: `2px solid ${style.border}`,
background: style.background,
+ width:
+ statusText ===
+ t(
+ 'content.admin.registration-requests.buttonPartiallyCompleted'
+ )
+ ? 'max-width'
+ : '140px',
}}
>