From 2f27720157ca2ca918777152bff63ff4f4e526a7 Mon Sep 17 00:00:00 2001 From: "jagadeesh.t" Date: Tue, 26 May 2026 16:53:43 +0530 Subject: [PATCH 1/5] added MA match button --- .../app/core/services/data-storage.service.ts | 5 +++ .../packet-status.component.html | 5 ++- .../packet-status.component.scss | 3 +- .../packet-status/packet-status.component.ts | 33 ++++++++++++++++++- admin-ui/src/assets/i18n/eng.json | 3 +- 5 files changed, 45 insertions(+), 4 deletions(-) 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..2760c39 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,11 @@ export class DataStorageService { ); } + getMatchedPacketRid(registrationId: string, langCode: string) { + const params = new HttpParams().set('rid', registrationId).set('langCode', langCode); + return this.http.get(this.BASE_URL + 'admin/packetstatusupdate/manual-verification', {params}); + } + 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..c4df1c8 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}} @@ -78,7 +81,7 @@

{{item.transactionTypeCode.replace("
- + diff --git a/admin-ui/src/app/features/packet-status/packet-status/packet-status.component.scss b/admin-ui/src/app/features/packet-status/packet-status/packet-status.component.scss index 45a08b1..f5fce59 100644 --- a/admin-ui/src/app/features/packet-status/packet-status/packet-status.component.scss +++ b/admin-ui/src/app/features/packet-status/packet-status/packet-status.component.scss @@ -197,7 +197,8 @@ caption { .popup-box { background: #ffffff; width: 700px; - height: 180px; + min-height: 220px; + max-height: 500px; border-radius: 0; box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3); display: flex; 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 5d09172..9ed7f62 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' // } ]; + showMatchedRid: boolean = false; roles: string[] = []; showDetails = false; showTimeline = false; @@ -96,7 +97,10 @@ export class PacketStatusComponent implements OnInit { console.log("status for ", this.data[i].transactionTypeCode, "is ", this.statusCheck); this.error = false; this.showDetails = true; - console.log("Final status is ", this.statusCheck) + + this.showMatchedRid = this.data.some(item =>item.transactionTypeCode === 'MANUAL_ADJUDICATION' + && item.statusCode === 'FAILED' && item.statusComment === 'Match Found by Manual Verifier' + ); } }); } @@ -131,6 +135,33 @@ export class PacketStatusComponent implements OnInit { }); } + getMatchedRid() { + if (!this.id) { + this.error = true; + this.errorMessage = 'Invalid packet id'; + return; + } + this.dataStorageService.getMatchedPacketRid(this.id, this.headerService.getUserPreferredLanguage()).subscribe({ + next: (response) => { + console.log('Get Matched RID API Response:', response); + this.error = false; + const res: any = response; + let message = res.response.message; + if (!message[0].startsWith('No')) { + let formattedMessage = ''; + if (message[0].startsWith('Biometric')) { + formattedMessage = message.join('
'); + } else { + formattedMessage = "Matched RID's:

" + message.map(rid => `'${rid}'`).join('
'); + } + this.showPopup('Success', formattedMessage , 'Close', 'success'); + } else { + this.showPopup('Error', 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 87972ff..b833319 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", + "matchedRid":"MA Matches", "errorMessages": { "title": "Error", "message": "RID Not Found", @@ -1448,7 +1449,7 @@ "RPR-MVS-FAILED-002": "Manual verification from MVS failed", "RPR-DDP-FAILED-002": "Potential Demo Match was Found", "RPR-MNV-SUCCESS-001": "Match Not Found by Manual Verifier", - "RPR-MNV-FAILED-001": "Match Found by Manual Verifier", + "RPR-MNV-FAILED-002": "Match Found by Manual Verifier", "RPR-UIN-SUCCESS-001": "UIN Generated Successfully", "RPR-UIN-SUCCESS-002": "UIN Data is Updated Successfully", "RPR-UIN-FAILED-001": "UIN is already Activated", From 2c90f103ac7128eb5b9da7488ec9841d205eb4f6 Mon Sep 17 00:00:00 2001 From: Jagadeesh-T440 Date: Tue, 26 May 2026 16:56:37 +0530 Subject: [PATCH 2/5] 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..7593bd2 100644 --- a/.github/workflows/push-trigger.yml +++ b/.github/workflows/push-trigger.yml @@ -21,6 +21,7 @@ on: - 1.* - MOSIP* - tf_nira_dev + - MAmatch jobs: build-admin-ui: From fc51ac411c9bc69ddcc551421bea2726f3293263 Mon Sep 17 00:00:00 2001 From: Jagadeesh-T440 Date: Tue, 26 May 2026 18:42:08 +0530 Subject: [PATCH 3/5] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 7836283..344b970 100644 --- a/README.md +++ b/README.md @@ -31,5 +31,6 @@ Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protrac To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md). + ## License This project is licensed under the terms of [Mozilla Public License 2.0](../LICENSE). From 5680542327e2ae82af3e175bd7940a57bc7d6e3e Mon Sep 17 00:00:00 2001 From: "jagadeesh.t" Date: Tue, 26 May 2026 19:01:27 +0530 Subject: [PATCH 4/5] 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 9ed7f62..76582a8 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 @@ -99,7 +99,7 @@ export class PacketStatusComponent implements OnInit { this.showDetails = true; this.showMatchedRid = this.data.some(item =>item.transactionTypeCode === 'MANUAL_ADJUDICATION' - && item.statusCode === 'FAILED' && item.statusComment === 'Match Found by Manual Verifier' + && item.statusCode === 'FAILED' ); } }); From 478004ea1c14e423ca99b9038e28ee086e180296 Mon Sep 17 00:00:00 2001 From: "jagadeesh.t" Date: Wed, 27 May 2026 10:53:09 +0530 Subject: [PATCH 5/5] updated --- .../packet-status/packet-status/packet-status.component.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 76582a8..2d60239 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 @@ -98,9 +98,7 @@ export class PacketStatusComponent implements OnInit { this.error = false; this.showDetails = true; - this.showMatchedRid = this.data.some(item =>item.transactionTypeCode === 'MANUAL_ADJUDICATION' - && item.statusCode === 'FAILED' - ); + this.showMatchedRid = this.data.some(item =>item.transactionTypeCode === 'MANUAL_ADJUDICATION' ); } }); }