Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/push-trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ on:
- 1.*
- MOSIP*
- tf_nira_dev
- MAmatch

jobs:
build-admin-ui:
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
5 changes: 5 additions & 0 deletions admin-ui/src/app/core/services/data-storage.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
<button mat-raised-button (click)="resume()" *ngIf="id && roles.includes('GLOBAL_ADMIN')" style="margin-left: 50px; background-color: #FF4081; color: white; height: 30px; width: 80px;">
{{ 'packet-status.resume' | translate }}
</button>
<button mat-raised-button (click)="getMatchedRid()" *ngIf="id && showMatchedRid && roles.includes('GLOBAL_ADMIN')" style="margin-left: 50px; background-color: #FF4081; color: white; height: 30px; width: 120px;">
{{ 'packet-status.matchedRid' | translate }}
</button>
<mat-error style="margin-left: 30px ;font-size: 9.5px" *ngIf="error">{{errorMessage | translate}}</mat-error>
</mat-card>
<mat-card *ngIf="showDetails" style="border-radius: 0;">
Expand Down Expand Up @@ -78,7 +81,7 @@ <h3><div *ngIf = "item.transactionTypeCode">{{item.transactionTypeCode.replace("
<h3 *ngIf="popupType === 'success'" class="popup-title">{{ popupTitle }}</h3>
<h3 *ngIf="popupType === 'error'" class="popup-error-title">{{ popupTitle }}</h3>
</div>
<div class="popup-body"><p>{{ popupMessage }}</p></div>
<div class="popup-body"><p [innerHTML]="popupMessage"></p></div>
<div class="popup-footer">
<button class="popup-close-btn" (click)="closePopup()">{{ popupButtonText }}</button>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export class PacketStatusComponent implements OnInit {
// status: 'Completed'
// }
];
showMatchedRid: boolean = false;
roles: string[] = [];
showDetails = false;
showTimeline = false;
Expand Down Expand Up @@ -96,7 +97,8 @@ 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' );
}
});
}
Expand Down Expand Up @@ -131,6 +133,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('<br>');
} else {
formattedMessage = "<b>Matched RID's:</b><br><br>" + message.map(rid => `'${rid}'`).join('<br>');
}
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;
Expand Down
3 changes: 2 additions & 1 deletion admin-ui/src/assets/i18n/eng.json
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,7 @@
"viewMore": "View More",
"viewLess": "View Less",
"resume": "Resume",
"matchedRid":"MA Matches",
"errorMessages": {
"title": "Error",
"message": "RID Not Found",
Expand Down Expand Up @@ -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",
Expand Down
Loading