From 2ef46fc478e3d2a5a631ac43418700385fd16dab Mon Sep 17 00:00:00 2001
From: Anil_Kumar_Majji <106086523+Anil-kumar-Majji@users.noreply.github.com>
Date: Thu, 5 Dec 2024 10:46:40 +0530
Subject: [PATCH] MOSIP-37737: UI Development of View Device Details (#991)
Signed-off-by: Anil_Kumar_Majji <106086523+Anil-kumar-Majji@users.noreply.github.com>
---
pmp-reactjs-ui/public/i18n/ara.json | 2 +-
pmp-reactjs-ui/public/i18n/eng.json | 2 +-
pmp-reactjs-ui/public/i18n/fra.json | 2 +-
pmp-reactjs-ui/src/AppRoutes.js | 5 +
.../AdminDevicesList.js | 5 +
.../ViewAdminDeviceDetails.js | 131 ++++++++++++++++++
.../ViewAdminSbiDetails.js | 4 +-
.../ViewDeviceDetails.js | 2 +-
8 files changed, 146 insertions(+), 7 deletions(-)
create mode 100644 pmp-reactjs-ui/src/pages/admin/deviceProviderServices/ViewAdminDeviceDetails.js
diff --git a/pmp-reactjs-ui/public/i18n/ara.json b/pmp-reactjs-ui/public/i18n/ara.json
index 5a02c24eb..8b8d82e1e 100644
--- a/pmp-reactjs-ui/public/i18n/ara.json
+++ b/pmp-reactjs-ui/public/i18n/ara.json
@@ -848,7 +848,7 @@
},
"viewSbiDetails": {
"viewSbiDetails": "عرض تفاصيل الهيئة الفرعية للتنفيذ",
- "listOfSbisAndDevices": "قائمة الهيئة الفرعية للتنفيذ",
+ "listOfSbi": "قائمة الهيئة الفرعية للتنفيذ",
"sbiVersion":"نسخة الهيئة الفرعية للتنفيذ",
"sbiCreatedDateTime": "تاريخ ووقت إنشاء الهيئة الفرعية للتنفيذ",
"sbiExpiryDateTime": "تاريخ ووقت انتهاء صلاحية الهيئة الفرعية للتنفيذ"
diff --git a/pmp-reactjs-ui/public/i18n/eng.json b/pmp-reactjs-ui/public/i18n/eng.json
index 22568bfd8..cc0b7b737 100644
--- a/pmp-reactjs-ui/public/i18n/eng.json
+++ b/pmp-reactjs-ui/public/i18n/eng.json
@@ -844,7 +844,7 @@
},
"viewSbiDetails": {
"viewSbiDetails": "View SBI Details",
- "listOfSbisAndDevices": "List Of SBI",
+ "listOfSbi": "List Of SBI",
"sbiVersion":"SBI Version",
"sbiCreatedDateTime": "SBI Created Date & Time",
"sbiExpiryDateTime": "SBI Expiry Date & Time"
diff --git a/pmp-reactjs-ui/public/i18n/fra.json b/pmp-reactjs-ui/public/i18n/fra.json
index c59e61288..68c6f2a46 100644
--- a/pmp-reactjs-ui/public/i18n/fra.json
+++ b/pmp-reactjs-ui/public/i18n/fra.json
@@ -848,7 +848,7 @@
},
"viewSbiDetails": {
"viewSbiDetails": "Voir les détails du Sbi",
- "listOfSbisAndDevices": "Liste des SBI",
+ "listOfSbi": "Liste des SBI",
"sbiVersion":"Version SBI",
"sbiCreatedDateTime": "Date et heure de création du SBI",
"sbiExpiryDateTime": "Date et heure d’expiration du SBI"
diff --git a/pmp-reactjs-ui/src/AppRoutes.js b/pmp-reactjs-ui/src/AppRoutes.js
index cdbe83c57..ad4844eb5 100644
--- a/pmp-reactjs-ui/src/AppRoutes.js
+++ b/pmp-reactjs-ui/src/AppRoutes.js
@@ -46,6 +46,7 @@ import ViewAdminFtmChipDetails from './pages/admin/ftmProviderServices/ViewAdmin
import AdminSbiList from './pages/admin/deviceProviderServices/AdminSbiList.js';
import AdminDevicesList from './pages/admin/deviceProviderServices/AdminDevicesList.js';
import ViewAdminSbiDetails from './pages/admin/deviceProviderServices/ViewAdminSbiDetails.js';
+import ViewAdminDeviceDetails from './pages/admin/deviceProviderServices/ViewAdminDeviceDetails.js';
function AppRoutes() {
@@ -250,6 +251,10 @@ function AppRoutes() {
path: 'admin/device-provider-services/view-sbi-details',
element:
{t('devicesList.unexpectedError')}
+ ++ {deviceDetails.make} - {deviceDetails.model} +
++ {t("devicesList.deviceType")} +
++ {/* {deviceDetails.deviceType} */} +
++ {t("devicesList.deviceSubType")} +
++ {/* {deviceDetails.deviceSubType} */} +
++ {t("devicesList.make")} +
++ {/* {deviceDetails.make} */} +
++ {t("devicesList.model")} +
++ {/* {deviceDetails.model} */} +
++ {t("devicesList.createdDate")} +
++ {formatDate(deviceDetails.createdDate, "dateTime", false)} +
+