From ef315e7e392f88c4619f7262596358f429853328 Mon Sep 17 00:00:00 2001 From: Anil_Kumar_Majji <106086523+Anil-kumar-Majji@users.noreply.github.com> Date: Tue, 10 Dec 2024 19:41:18 +0530 Subject: [PATCH] UI Development Partner Admin Tabular view of uploaded certificates Signed-off-by: Anil_Kumar_Majji <106086523+Anil-kumar-Majji@users.noreply.github.com> --- pmp-revamp-ui/public/i18n/ara.json | 16 ++++--- pmp-revamp-ui/public/i18n/eng.json | 10 +++-- pmp-revamp-ui/public/i18n/fra.json | 10 +++-- .../certificates/RootTrustCertificateList.js | 43 +++++++++++-------- .../RootTrustCertificateServicesTab.js | 43 +++++++++++++++++++ 5 files changed, 91 insertions(+), 31 deletions(-) create mode 100644 pmp-revamp-ui/src/pages/admin/certificates/RootTrustCertificateServicesTab.js diff --git a/pmp-revamp-ui/public/i18n/ara.json b/pmp-revamp-ui/public/i18n/ara.json index 1c7c21ec..381c0830 100644 --- a/pmp-revamp-ui/public/i18n/ara.json +++ b/pmp-revamp-ui/public/i18n/ara.json @@ -412,10 +412,10 @@ "sbiVersion": "إصدار SBI", "searchVersion": "البحث عن إصدار SBI", "linkedDevices": "الأجهزة المرتبطة", - "status":"حالة", + "status": "حالة", "action": "الإجراء", "partnerId": "معرف الشريك", - "orgName":"منظمة", + "orgName": "منظمة", "partnerType": "نوع الشريك", "device": "جهاز", "sbiCreatedDate": "تاريخ إنشاء SBI", @@ -502,7 +502,7 @@ "ftmChipProviderServices": "خدمات مزودي شريحة FTM", "addFtmBtn": "إضافة شريحة FTM", "partnerId": "معرف الشريك", - "orgName":"منظمة", + "orgName": "منظمة", "listOfFtm": "قائمة تفاصيل شريحة FTM", "make": "يصنع", "model": "نموذج", @@ -561,7 +561,8 @@ "description": "عند النقر فوق تأكيد، سيتم إلغاء تنشيط تفاصيل شريحة FTM الخاصة بك." }, "rootTrustCertificate": { - "organisation": "منظمة", + "certificateTrustStore": "مخزن الشهادات", + "certificateId": "معرف الشهادة", "partnerDomain": "مجال الشريك", "issuedTo": "صدر ل", "issuedBy": "صادرة عن", @@ -585,10 +586,13 @@ "dropdownPlaceholder": "حدد مجال الشريك", "successMsg": "تم تحميل شهادة جذر الثقة لـ {{partnerDomain}} بنجاح" }, - "viewRootOfTrustCertificate": { - "viewRootOfTrustCertificate": "عرض شهادة جذر الثقة", + "listOfRootTrustCertificates": { + "rootOfTrustCertificates": "شهادات الثقة الجذرية", "caCertificates": "شهادات كاليفورنيا" }, + "listOfIntermediateRootTrustCertificates": { + "intermediateRootTrustCertificates": "شهادات ثقة الجذر المتوسطة" + }, "partnerList": { "partnerTitle": "الشركاء", "listOfPartnerTitle": "قائمة الشركاء", diff --git a/pmp-revamp-ui/public/i18n/eng.json b/pmp-revamp-ui/public/i18n/eng.json index 928daff4..87063aa5 100644 --- a/pmp-revamp-ui/public/i18n/eng.json +++ b/pmp-revamp-ui/public/i18n/eng.json @@ -556,7 +556,8 @@ "description": "On clicking Confirm, your FTM Chip details will be deactivated." }, "rootTrustCertificate": { - "organisation": "Organisation", + "certificateTrustStore": "Certificate Trust Store", + "certificateId": "Certificate Id", "partnerDomain": "Partner Domain", "issuedTo": "Issued To", "issuedBy": "Issued By", @@ -581,10 +582,13 @@ "dropdownPlaceholder": "Select partner domain", "successMsg": "Root of Trust Certificate for {{partnerDomain}} is uploaded successfully" }, - "viewRootOfTrustCertificate": { - "viewRootOfTrustCertificate": "View Root of Trust Certificate", + "listOfRootTrustCertificates": { + "rootOfTrustCertificates": "Root Trust Certificates", "caCertificates": "Ca Certificates" }, + "listOfIntermediateRootTrustCertificates": { + "intermediateRootTrustCertificates": "Intermediate Root Trust Certificates" + }, "partnerList": { "partnerTitle": "Partners", "listOfPartnerTitle": "List of Partners", diff --git a/pmp-revamp-ui/public/i18n/fra.json b/pmp-revamp-ui/public/i18n/fra.json index e7338024..e86eca38 100644 --- a/pmp-revamp-ui/public/i18n/fra.json +++ b/pmp-revamp-ui/public/i18n/fra.json @@ -561,7 +561,8 @@ "description": "En cliquant sur Confirmer, les détails de votre puce FTM seront désactivés." }, "rootTrustCertificate": { - "organisation": "Organisation", + "certificateTrustStore": "Magasin de certificats de confiance", + "certificateId": "Identifiant du certificat", "partnerDomain": "Domaine partenaire", "issuedTo": "Délivré à", "issuedBy": "Délivré par", @@ -585,10 +586,13 @@ "dropdownPlaceholder": "Sélectionnez un domaine partenaire", "successMsg": "Le certificat racine de confiance pour {{partnerDomain}} a été téléchargé avec succès" }, - "viewRootOfTrustCertificate": { - "viewRootOfTrustCertificate": "Afficher le certificat racine de confiance", + "listOfRootTrustCertificates": { + "rootOfTrustCertificates": "Certificats de confiance racine", "caCertificates": "Certificats CA" }, + "listOfIntermediateRootTrustCertificates": { + "intermediateRootTrustCertificates": "Certificats de confiance racine intermédiaires" + }, "partnerList":{ "partnerTitle": "Partenaires", "listOfPartnerTitle": "Liste des partenaires", diff --git a/pmp-revamp-ui/src/pages/admin/certificates/RootTrustCertificateList.js b/pmp-revamp-ui/src/pages/admin/certificates/RootTrustCertificateList.js index 3b31abb3..aa8ba201 100644 --- a/pmp-revamp-ui/src/pages/admin/certificates/RootTrustCertificateList.js +++ b/pmp-revamp-ui/src/pages/admin/certificates/RootTrustCertificateList.js @@ -3,7 +3,7 @@ import { useNavigate } from 'react-router-dom'; import { useTranslation } from "react-i18next"; import { getUserProfile } from "../../../services/UserProfileService"; import { isLangRTL, onPressEnterKey } from "../../../utils/AppUtils"; -import { formatDate, getStatusCode, handleMouseClickForDropdown, toggleSortAscOrder, toggleSortDescOrder, bgOfStatus,} from "../../../utils/AppUtils"; +import { formatDate, getStatusCode, handleMouseClickForDropdown, toggleSortAscOrder, toggleSortDescOrder, bgOfStatus, } from "../../../utils/AppUtils"; import LoadingIcon from "../../common/LoadingIcon"; import ErrorMessage from "../../common/ErrorMessage"; import Title from "../../common/Title"; @@ -12,6 +12,7 @@ import FilterButtons from "../../common/FilterButtons"; import RootTrustCertificatesFilter from "./RootTrustCertificatesFilter"; import SortingIcon from "../../common/SortingIcon"; import Pagination from "../../common/Pagination"; +import RootTrustCertificateServicesTab from "./RootTrustCertificateServicesTab"; function RootTrustCertificateList() { const { t } = useTranslation(); @@ -174,19 +175,23 @@ function RootTrustCertificateList() { return (