Skip to content
Open

Sn/es #116

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
9713717
fix: Amm-626 assamese language conversion fix (#83)
snehar-nd Sep 1, 2025
86f00b6
feat: amm-1337 Feedback module integration and 1668 removal of PII fr…
5Amogh Sep 12, 2025
a4790c9
Merge pull request #92 from PSMRI/AMM-1337
5Amogh Sep 18, 2025
f45420c
Update pom.xml
5Amogh Sep 25, 2025
d8c3efa
Update pom.xml
5Amogh Sep 25, 2025
b7480d3
Merge pull request #96 from PSMRI/sn/3.5.1
5Amogh Sep 30, 2025
af16acb
fix: 1899 signature enhancement
snehar-nd Oct 30, 2025
5762852
fix: 1899 added signexist apiendpoint for env
snehar-nd Oct 30, 2025
83cc0d8
fix: signature case sheet fix
snehar-nd Nov 4, 2025
700fc7e
fix: signature case sheet fix and revisit date was not able to access
snehar-nd Nov 4, 2025
dbf80a7
Merge pull request #111 from PSMRI/release-3.6.1
5Amogh Dec 3, 2025
17a6ec6
Merge branch 'release-3.6.0' into release-3.8.0
5Amogh Dec 3, 2025
7599727
Merge pull request #112 from PSMRI/release-3.8.0
5Amogh Dec 3, 2025
32157d1
Merge branch 'release-3.6.0' into release-3.5.0
5Amogh Dec 3, 2025
79fa27a
Merge pull request #113 from PSMRI/release-3.5.0
5Amogh Dec 3, 2025
db78b3e
fix: amm-1931 handling session expiry
snehar-nd Dec 8, 2025
494858e
fix: amm-1931 handling session expiry
snehar-nd Dec 8, 2025
8665b58
Merge pull request #114 from PSMRI/sn/wasa
snehar-nd Dec 9, 2025
9868246
fix: amm-2001 btn-close for feedback
5Amogh Dec 10, 2025
31c945e
Merge pull request #115 from PSMRI/amm-2001
snehar-nd Dec 10, 2025
a7a3ef9
Merge branch 'release-3.6.0' into nd/3.5.1/sn
snehar-nd Dec 11, 2025
d5ec325
Merge pull request #107 from PSMRI/nd/3.5.1/sn
snehar-nd Dec 12, 2025
31756d5
fix: elastic search changes added isEnableEs variable to avoid the el…
snehar-nd Dec 19, 2025
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
2 changes: 1 addition & 1 deletion Common-UI
Submodule Common-UI updated 34 files
+307 −0 matomo-documentation.md
+220 −0 matomo-local-setup.md
+ src/assets/images/tracking-high-level-diagram.png
+37 −0 src/feedback/feedback-routing.module.ts
+48 −0 src/feedback/feedback.module.ts
+72 −0 src/feedback/pages/feedback-public-page/feedback-public-page-component.ts
+63 −0 src/feedback/services/feedback.service.ts
+135 −0 src/feedback/shared/feedback-dialog/feedback-dialog.component.html
+72 −0 src/feedback/shared/feedback-dialog/feedback-dialog.component.scss
+185 −0 src/feedback/shared/feedback-dialog/feedback-dialog.component.ts
+1 −0 src/public-api.ts
+1 −1 ...egistrar/abha-components/abha-generation-success-component/abha-generation-success-component.component.html
+1 −1 src/registrar/abha-components/abha-verify-success-component/abha-verify-success-component.component.html
+1 −1 src/registrar/abha-components/download-search-abha/download-search-abha.component.html
+1 −1 src/registrar/abha-components/download-search-abha/download-search-abha.component.ts
+1 −1 src/registrar/abha-components/generate-abha-component/generate-abha-component.component.ts
+2 −2 src/registrar/abha-components/health-id-display-modal/health-id-display-modal.component.html
+4 −3 src/registrar/registration/abha-information/abha-information.component.html
+10 −2 src/registrar/registration/abha-information/abha-information.component.ts
+21 −18 src/registrar/registration/location-information/location-information.component.html
+44 −17 src/registrar/registration/location-information/location-information.component.ts
+6 −1 src/registrar/registration/personal-information/personal-information.component.html
+12 −20 src/registrar/registration/personal-information/personal-information.component.ts
+3 −2 src/registrar/registration/registration.component.ts
+94 −120 src/registrar/search-dialog/search-dialog.component.html
+154 −33 src/registrar/search-dialog/search-dialog.component.ts
+2 −2 src/registrar/search/search.component.ts
+6 −0 src/tracking/index.ts
+110 −0 src/tracking/lib/amrit-tracking.service.ts
+192 −0 src/tracking/lib/ga-tracking.service.ts
+150 −0 src/tracking/lib/matomo-tracking.service.ts
+11 −0 src/tracking/lib/tracking-provider.ts
+36 −0 src/tracking/lib/tracking.module.ts
+25 −0 src/tracking/lib/tracking.tokens.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<footer class="footer container-fluid">
<div class="row">
<div class="col-4 text-left">
<div class="col-3 text-left">
<span
class="footer-text"
*ngIf="currentLanguageSet === null || currentLanguageSet === undefined"
Expand All @@ -12,7 +12,7 @@
>{{ currentLanguageSet?.coreComponents?.poweredByWipro }}</span
>
</div>
<div class="col-4 text-center">
<div class="col-3 text-center">
<p
class="footer-text"
*ngIf="currentLanguageSet === null || currentLanguageSet === undefined"
Expand All @@ -26,7 +26,21 @@
{{ year }} © {{ currentLanguageSet?.coreComponents?.pSMRI }}
</p>
</div>
<div class="col-4 text-end">
<div
class="col-3 text-end"
style="cursor: pointer"
[routerLink]="['/feedback']"
[queryParams]="{ sl: 'TM' }"
role="link"
>
<mat-icon style="vertical-align: top; font-size: medium; margin-right: 2%"
>mail</mat-icon
>
<span class="footer-text"
>{{ currentLanguageSet?.platform_feedback?.feedback ?? "Feedback" }}
</span>
</div>
<div class="col-3 text-end">
<p class="footer-text">
<span
class="footer-text"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,13 +161,15 @@ export class AppHeaderComponent implements OnInit {

logout() {
this.auth.logout().subscribe((res) => {
this.router.navigate(['/login']).then((result) => {
if (result) {
this.changeLanguage('English');
this.sessionstorage.clear();
sessionStorage.clear();
}
});
this.router
.navigate(['/feedback'], { queryParams: { sl: 'TM' } })
.then((result) => {
if (result) {
this.changeLanguage('English');
this.sessionstorage.clear();
sessionStorage.clear();
}
});
});
}
rolenavigation() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,34 +19,6 @@
<tr style="color: #595959; font-size: 14px">
<td>{{ beneficiary?.beneficiaryName }}</td>
</tr>
<ng-container *ngIf="beneficiary?.fatherName">
<tr style="font-size: 14px; color: #000000">
<th id="fatherName">
{{ current_language_set?.bendetails?.fatherName }}:
</th>
</tr>
<tr style="color: #595959; font-size: 14px">
<td>{{ beneficiary?.fatherName }}</td>
</tr>
</ng-container>
<ng-container *ngIf="beneficiary?.lastName">
<tr style="font-size: 14px; color: #000000">
<th id="lastName">
{{ current_language_set?.bendetails?.lastName }}:
</th>
</tr>
<tr style="color: #595959; font-size: 14px">
<td>{{ beneficiary?.lastName }}</td>
</tr>
</ng-container>
<ng-container *ngIf="beneficiary?.preferredPhoneNum">
<tr style="font-size: 14px; color: #000000">
<th id="phoneNo">{{ current_language_set?.bendetails?.phoneNo }}:</th>
</tr>
<tr style="color: #595959; font-size: 14px">
<td>{{ beneficiary?.preferredPhoneNum }}</td>
</tr>
</ng-container>
<tr style="font-size: 14px; color: #000000">
<th id="gender">
{{ current_language_set?.bendetails?.gender }} /
Expand Down
1 change: 1 addition & 0 deletions src/app/app-modules/core/core.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ import { SharedModule } from './components/shared/shared.module';
WebcamModule,
MatTableModule,
SharedModule,
RouterModule,
],
declarations: [
CommonDialogComponent,
Expand Down
55 changes: 44 additions & 11 deletions src/app/app-modules/core/services/http-interceptor.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,21 +42,32 @@ export class HttpInterceptorService implements HttpInterceptor {
): Observable<HttpEvent<any>> {
const key: any = sessionStorage.getItem('key');
let modifiedReq = req;
if (req.body instanceof FormData) {
modifiedReq = req.clone({
headers: req.headers.set('Authorization', key || ''),
});
const isPlatformFeedback =
req.url && req.url.toLowerCase().includes('/platform-feedback');

if (isPlatformFeedback) {
// For platform-feedback: remove Authorization and force JSON content-type
const headers = req.headers
.delete('Authorization')
.set('Content-Type', 'application/json');
modifiedReq = req.clone({ headers });
} else {
if (key !== undefined && key !== null) {
if (req.body instanceof FormData) {
modifiedReq = req.clone({
headers: req.headers
.set('Authorization', key)
.set('Content-Type', 'application/json'),
headers: req.headers.set('Authorization', key || ''),
});
} else {
modifiedReq = req.clone({
headers: req.headers.set('Authorization', ''),
});
if (key !== undefined && key !== null) {
modifiedReq = req.clone({
headers: req.headers
.set('Authorization', key)
.set('Content-Type', 'application/json'),
});
} else {
modifiedReq = req.clone({
headers: req.headers.set('Authorization', ''),
});
}
}
}
return next.handle(modifiedReq).pipe(
Expand All @@ -73,11 +84,33 @@ export class HttpInterceptorService implements HttpInterceptor {
catchError((error: HttpErrorResponse) => {
console.error(error);
this.spinnerService.setLoading(false);

if(error.status === 401){
this.sessionstorage.clear();
this.confirmationService.alert(this.currentLanguageSet.sessionExpiredPleaseLogin, 'error');
setTimeout(() => this.router.navigate(['/login']), 0);
} else if (error.status === 403) {
this.confirmationService.alert(
this.currentLanguageSet.accessDenied,
'error',
);
} else if (error.status === 500) {
this.confirmationService.alert(
this.currentLanguageSet.internaleServerError,
'error',
);
} else {
this.confirmationService.alert(
error.message || this.currentLanguageSet.somethingWentWrong,
'error',
);
}
return throwError(error.error);
}),
);
}


private onSuccess(url: string, response: any): void {
if (this.timerRef) clearTimeout(this.timerRef);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -355,25 +355,24 @@ export class DoctorDiagnosisCaseSheetComponent
}
}
}
console.log(
'referDetailsForRefer',
JSON.stringify(this.referDetails, null, 4),
);
if (
this.casesheetData &&
this.casesheetData.doctorData.Refer &&
this.referDetails.revisitDate &&
!moment(this.referDetails.revisitDate, 'DD/MM/YYYY', true).isValid()
this.casesheetData.doctorData.Refer.revisitDate &&
!moment(this.casesheetData.doctorData.Refer.revisitDate, 'DD/MM/YYYY', true).isValid()
) {
const sDate = new Date(this.referDetails.revisitDate);
this.referDetails.revisitDate = [
const sDate = new Date(this.casesheetData.doctorData.Refer.revisitDate);
this.casesheetData.doctorData.Refer.revisitDate = [
this.padLeft.apply(sDate.getDate()),
this.padLeft.apply(sDate.getMonth() + 1),
this.padLeft.apply(sDate.getFullYear()),
].join('/');
}

this.downloadSign();
if (this.casesheetData?.BeneficiaryData?.doctorSignatureFlag) {

this.downloadSign();
}
this.getVaccinationTypeAndDoseMaster();
}
}
Expand All @@ -384,9 +383,11 @@ export class DoctorDiagnosisCaseSheetComponent
}

downloadSign() {

this.getUserId().subscribe((userId) => {
const tcSpecId = this.beneficiaryDetails?.tCSpecialistUserID;
const userIdToUse = tcSpecId && tcSpecId !== 0 ? tcSpecId : userId;
const userIdToUse = this.beneficiaryDetails?.tCSpecialistUserID ?? userId;
console.log("User", userIdToUse);

this.doctorService.downloadSign(userIdToUse).subscribe(
(response: any) => {
const blob = new Blob([response], { type: response.type });
Expand Down
Loading
Loading