From 8c6ec5653bdb88bc0cc1b195ac01e483db522b9a Mon Sep 17 00:00:00 2001 From: Jagadeesh T Date: Thu, 11 Dec 2025 18:36:53 +0530 Subject: [PATCH 1/6] added send to perso api --- .../app/core/services/data-storage.service.ts | 7 ++++++ .../packet-status.component.html | 3 +++ .../packet-status/packet-status.component.ts | 25 +++++++++++++++++++ admin-ui/src/assets/i18n/eng.json | 1 + 4 files changed, 36 insertions(+) diff --git a/admin-ui/src/app/core/services/data-storage.service.ts b/admin-ui/src/app/core/services/data-storage.service.ts index 8c94a7b..a5423e0 100644 --- a/admin-ui/src/app/core/services/data-storage.service.ts +++ b/admin-ui/src/app/core/services/data-storage.service.ts @@ -356,6 +356,13 @@ export class DataStorageService { ); } + sentPacketToPerso(data: FormData) { + return this.http.post( + this.BASE_URL + 'admin' + '/packetstatusupdate/sentToPerso', + data + ); + } + getCreateUpdateSteps(entity: string) { return this.http.get(`./assets/create-update-steps/${entity}-steps.json`); } diff --git a/admin-ui/src/app/features/packet-status/packet-status/packet-status.component.html b/admin-ui/src/app/features/packet-status/packet-status/packet-status.component.html index dee76bf..a257118 100644 --- a/admin-ui/src/app/features/packet-status/packet-status/packet-status.component.html +++ b/admin-ui/src/app/features/packet-status/packet-status/packet-status.component.html @@ -10,6 +10,9 @@ + {{errorMessage | translate}} diff --git a/admin-ui/src/app/features/packet-status/packet-status/packet-status.component.ts b/admin-ui/src/app/features/packet-status/packet-status/packet-status.component.ts index b070c2e..cfa90d2 100644 --- a/admin-ui/src/app/features/packet-status/packet-status/packet-status.component.ts +++ b/admin-ui/src/app/features/packet-status/packet-status/packet-status.component.ts @@ -131,6 +131,31 @@ export class PacketStatusComponent implements OnInit { }); } + sentToPerso(){ + if (!this.id) { + this.error = true; + this.errorMessage = 'Invalid packet id'; + return; + } + + const formData = new FormData(); + formData.append('rid', this.id); + formData.append('langCode', this.headerService.getUserPreferredLanguage()); + + this.dataStorageService.sentPacketToPerso(formData).subscribe({ + next: (response) => { + console.log('Sent Packet to Perso API Response:', response); + this.error = false; + const res: any = response; + if (res && res.response && res.response.message && res.response.message == appConstants.Success) { + this.showPopup('Success', 'Packet send to Perso Successfully', 'Close', 'success'); + } else { + this.showPopup('Error', res.response.message, 'Close', 'error'); + } + } + }); + } + showPopup(title: string, message: string, buttonText: string, type: 'success' | 'error') { this.popupTitle = title; this.popupMessage = message; diff --git a/admin-ui/src/assets/i18n/eng.json b/admin-ui/src/assets/i18n/eng.json index c7af17b..6da8944 100644 --- a/admin-ui/src/assets/i18n/eng.json +++ b/admin-ui/src/assets/i18n/eng.json @@ -509,6 +509,7 @@ "viewMore": "View More", "viewLess": "View Less", "resume": "Resume", + "sentToPerso": "Send to Perso", "errorMessages": { "title": "Error", "message": "RID Not Found", From 9a2d845455474a14428c3449e21ef345eed80945 Mon Sep 17 00:00:00 2001 From: Jagadeesh-T440 Date: Thu, 11 Dec 2025 18:49:23 +0530 Subject: [PATCH 2/6] Update push-trigger.yml --- .github/workflows/push-trigger.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/push-trigger.yml b/.github/workflows/push-trigger.yml index 345cfca..9ffba70 100644 --- a/.github/workflows/push-trigger.yml +++ b/.github/workflows/push-trigger.yml @@ -21,6 +21,7 @@ on: - 1.* - MOSIP* - tf_nira_dev + - digital_card jobs: build-admin-ui: From 64e15daa184f53c0ab495b63c6619d6a9e795d93 Mon Sep 17 00:00:00 2001 From: Jagadeesh T Date: Fri, 12 Dec 2025 16:31:19 +0530 Subject: [PATCH 3/6] Updated only button visible after print stage --- .../packet-status/packet-status/packet-status.component.html | 2 +- .../packet-status/packet-status/packet-status.component.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/admin-ui/src/app/features/packet-status/packet-status/packet-status.component.html b/admin-ui/src/app/features/packet-status/packet-status/packet-status.component.html index a257118..041b266 100644 --- a/admin-ui/src/app/features/packet-status/packet-status/packet-status.component.html +++ b/admin-ui/src/app/features/packet-status/packet-status/packet-status.component.html @@ -10,7 +10,7 @@ - {{errorMessage | translate}} diff --git a/admin-ui/src/app/features/packet-status/packet-status/packet-status.component.ts b/admin-ui/src/app/features/packet-status/packet-status/packet-status.component.ts index cfa90d2..6ab3642 100644 --- a/admin-ui/src/app/features/packet-status/packet-status/packet-status.component.ts +++ b/admin-ui/src/app/features/packet-status/packet-status/packet-status.component.ts @@ -21,6 +21,7 @@ export class PacketStatusComponent implements OnInit { // status: 'Completed' // } ]; + showSendToPerso: boolean = false; roles: string[] = []; showDetails = false; showTimeline = false; @@ -97,6 +98,9 @@ export class PacketStatusComponent implements OnInit { this.error = false; this.showDetails = true; console.log("Final status is ", this.statusCheck) + + this.showSendToPerso = this.data.some(item =>item.transactionTypeCode === 'PRINT_SERVICE' && + item.statusCode === 'PROCESSED' || item.statusCode === 'COMPLETED'); } }); } From 7e78a57c080ee845562baa31fe437ab8591faf1b Mon Sep 17 00:00:00 2001 From: Jagadeesh T Date: Mon, 15 Dec 2025 12:08:58 +0530 Subject: [PATCH 4/6] Updated --- .../packet-status/packet-status.component.html | 2 +- .../packet-status/packet-status.component.ts | 11 +++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/admin-ui/src/app/features/packet-status/packet-status/packet-status.component.html b/admin-ui/src/app/features/packet-status/packet-status/packet-status.component.html index 041b266..9f39379 100644 --- a/admin-ui/src/app/features/packet-status/packet-status/packet-status.component.html +++ b/admin-ui/src/app/features/packet-status/packet-status/packet-status.component.html @@ -10,7 +10,7 @@ - {{errorMessage | translate}} diff --git a/admin-ui/src/app/features/packet-status/packet-status/packet-status.component.ts b/admin-ui/src/app/features/packet-status/packet-status/packet-status.component.ts index 6ab3642..d178483 100644 --- a/admin-ui/src/app/features/packet-status/packet-status/packet-status.component.ts +++ b/admin-ui/src/app/features/packet-status/packet-status/packet-status.component.ts @@ -151,11 +151,14 @@ export class PacketStatusComponent implements OnInit { console.log('Sent Packet to Perso API Response:', response); this.error = false; const res: any = response; - if (res && res.response && res.response.message && res.response.message == appConstants.Success) { - this.showPopup('Success', 'Packet send to Perso Successfully', 'Close', 'success'); - } else { + if (res && res.response && res.response.message) { + const message = res.response.message; + if(message.startsWith('Card details sent')){ + this.showPopup('Success', res.response.message, 'Close', 'success'); + } else { this.showPopup('Error', res.response.message, 'Close', 'error'); - } + } + } } }); } From 7f46b9903ad39727a3f7140a8c162d36955dc023 Mon Sep 17 00:00:00 2001 From: "jagadeesh.t" Date: Thu, 5 Mar 2026 12:44:08 +0530 Subject: [PATCH 5/6] overall status updated --- .../packet-status/packet-status/packet-status.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin-ui/src/app/features/packet-status/packet-status/packet-status.component.ts b/admin-ui/src/app/features/packet-status/packet-status/packet-status.component.ts index d178483..08bf13d 100644 --- a/admin-ui/src/app/features/packet-status/packet-status/packet-status.component.ts +++ b/admin-ui/src/app/features/packet-status/packet-status/packet-status.component.ts @@ -89,7 +89,7 @@ export class PacketStatusComponent implements OnInit { this.statusCheck = this.messages.statuscheckFailed; } else if(this.data[i].statusCode.includes('REJECTED')) { this.statusCheck = this.messages.statuscheckRejected; - } else if(this.data[i].statusCode.includes('COMPLETED') || this.data[i].statusCode.includes('PROCESSED')) { + } else if(this.data[i].statusCode.includes('COMPLETED') || this.data[i].statusCode.includes('PROCESSED') || this.data[i].transactionTypeCode.includes('INTERNAL_WORKFLOW_ACTION') && this.data[i].statusCode.includes('SUCCESS')) { this.statusCheck = this.messages.statuscheckCompleted; } else { this.statusCheck = this.messages.statuscheckInProgress; From 3c221fb92c8f377f8eb68b74856e97c19e2388f6 Mon Sep 17 00:00:00 2001 From: Jagadeesh-T440 Date: Thu, 5 Mar 2026 12:50:45 +0530 Subject: [PATCH 6/6] Update packet-status.component.ts --- .../packet-status/packet-status/packet-status.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin-ui/src/app/features/packet-status/packet-status/packet-status.component.ts b/admin-ui/src/app/features/packet-status/packet-status/packet-status.component.ts index 08bf13d..d178483 100644 --- a/admin-ui/src/app/features/packet-status/packet-status/packet-status.component.ts +++ b/admin-ui/src/app/features/packet-status/packet-status/packet-status.component.ts @@ -89,7 +89,7 @@ export class PacketStatusComponent implements OnInit { this.statusCheck = this.messages.statuscheckFailed; } else if(this.data[i].statusCode.includes('REJECTED')) { this.statusCheck = this.messages.statuscheckRejected; - } else if(this.data[i].statusCode.includes('COMPLETED') || this.data[i].statusCode.includes('PROCESSED') || this.data[i].transactionTypeCode.includes('INTERNAL_WORKFLOW_ACTION') && this.data[i].statusCode.includes('SUCCESS')) { + } else if(this.data[i].statusCode.includes('COMPLETED') || this.data[i].statusCode.includes('PROCESSED')) { this.statusCheck = this.messages.statuscheckCompleted; } else { this.statusCheck = this.messages.statuscheckInProgress;