Skip to content

chore: upgrade Angular and package dependencies to latest (TM-UI)#160

Open
IndAlok wants to merge 1 commit into
PSMRI:mainfrom
IndAlok:main
Open

chore: upgrade Angular and package dependencies to latest (TM-UI)#160
IndAlok wants to merge 1 commit into
PSMRI:mainfrom
IndAlok:main

Conversation

@IndAlok

@IndAlok IndAlok commented May 14, 2026

Copy link
Copy Markdown

📋 Description

JIRA ID: N/A

Related issue: PSMRI/AMRIT#16
Prerequisite reference: PSMRI/AMRIT#51 (closed)

This PR upgrades TM-UI to Angular 21 and updates dependencies to current compatible versions.

Summary of changes:

  • Angular/dependency migration and lockfile refresh.
  • TypeScript/module-resolution alignment for Angular 21.
  • standalone: false declaration compatibility migration.
  • Compatibility fixes across strict typing and datepicker/import behavior.
  • Logic correction for assignment-in-condition path flagged by modern TypeScript checks.
  • ESLint 10 + lint-staged hardening for pre-commit reliability on Windows.

Motivation:

  • Completes the previously blocked upgrade path and ensures CI/local build consistency under latest toolchain constraints.

✅ Type of Change

  • 🛠 Refactor (change that is neither a fix nor a new feature)
  • ⚙️ Config change (configuration file or build script updates)
  • 🧹 Chore (miscellaneous changes that don't modify src or test files)

ℹ️ Additional Information

Validation:

  • npm ci passed.
  • ng build --configuration=ci --aot passed.

Common-UI dependency:

@coderabbitai

coderabbitai Bot commented May 14, 2026

Copy link
Copy Markdown

Important

Review skipped

Too many files!

This PR contains 192 files, which is 42 over the limit of 150.

To get a review, narrow the scope:
• coderabbit review --type committed # exclude uncommitted changes
• coderabbit review --dir # limit to a subdirectory
• coderabbit review --base # compare against a closer base

Upgrade to a paid plan to raise the limit.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 2734e41a-bf09-4e3c-b9a1-117cfc66f08b

📥 Commits

Reviewing files that changed from the base of the PR and between 2cdaba3 and fb00e2c.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (192)
  • .husky/commit-msg
  • .husky/pre-commit
  • .nvmrc
  • Common-UI
  • angular.json
  • eslint.config.cjs
  • lint-staged.config.cjs
  • package.json
  • scripts/ci-prebuild.js
  • src/app/app-modules/captcha/captcha.component.ts
  • src/app/app-modules/core/components/allergen-search/allergen-search.component.ts
  • src/app/app-modules/core/components/app-footer/app-footer.component.ts
  • src/app/app-modules/core/components/app-header/app-header.component.ts
  • src/app/app-modules/core/components/beneficiary-details/beneficiary-details.component.ts
  • src/app/app-modules/core/components/calibration/calibration.component.ts
  • src/app/app-modules/core/components/camera-dialog/camera-dialog.component.ts
  • src/app/app-modules/core/components/common-dialog/common-dialog.component.ts
  • src/app/app-modules/core/components/diagnosis-search/diagnosis-search.component.ts
  • src/app/app-modules/core/components/health-id-display-modal/health-id-display-modal.component.ts
  • src/app/app-modules/core/components/iot-bluetooth/iot-bluetooth.component.ts
  • src/app/app-modules/core/components/iotcomponent/iotcomponent.component.ts
  • src/app/app-modules/core/components/mmu-rbs-details/mmu-rbs-details.component.ts
  • src/app/app-modules/core/components/open-previous-visit-details/open-previous-visit-details.component.ts
  • src/app/app-modules/core/components/previous-details/previous-details.component.ts
  • src/app/app-modules/core/components/set-language.component.ts
  • src/app/app-modules/core/components/show-commit-and-version-details/show-commit-and-version-details.component.ts
  • src/app/app-modules/core/components/specialist-login/specialist-login.component.ts
  • src/app/app-modules/core/components/spinner/spinner.component.ts
  • src/app/app-modules/core/core.module.ts
  • src/app/app-modules/core/directives/MobileNumber/myMobileNumber.directive.ts
  • src/app/app-modules/core/directives/confirmatory-diagnosis.directive.ts
  • src/app/app-modules/core/directives/disableFormControl.directive.ts
  • src/app/app-modules/core/directives/email/myEmail.directive.ts
  • src/app/app-modules/core/directives/myHealthId/myHealthId.directive.ts
  • src/app/app-modules/core/directives/name/myName.directive.ts
  • src/app/app-modules/core/directives/null-default-value.directive.ts
  • src/app/app-modules/core/directives/numberValidator.directive.ts
  • src/app/app-modules/core/directives/password/myPassword.directive.ts
  • src/app/app-modules/core/directives/provisionalDiagnosis.directive.ts
  • src/app/app-modules/core/directives/stringValidator.directive.ts
  • src/app/app-modules/core/services/http-interceptor.service.ts
  • src/app/app-modules/data-sync/dashboard/dashboard.component.ts
  • src/app/app-modules/data-sync/data-sync-login/data-sync-login.component.ts
  • src/app/app-modules/data-sync/master-download/master-download.component.ts
  • src/app/app-modules/data-sync/workarea/workarea.component.ts
  • src/app/app-modules/lab/dashboard/dashboard.component.ts
  • src/app/app-modules/lab/view-file/view-file.component.ts
  • src/app/app-modules/lab/view-radiology-uploaded-files/view-radiology-uploaded-files.component.ts
  • src/app/app-modules/lab/workarea/workarea.component.ts
  • src/app/app-modules/lab/worklist/worklist.component.ts
  • src/app/app-modules/login/login.component.ts
  • src/app/app-modules/nurse-doctor/anc/anc-details/anc-details.component.ts
  • src/app/app-modules/nurse-doctor/anc/anc-immunization/anc-immunization.component.ts
  • src/app/app-modules/nurse-doctor/anc/anc.component.ts
  • src/app/app-modules/nurse-doctor/anc/obstetric-formula/obstetric-formula.component.ts
  • src/app/app-modules/nurse-doctor/case-record/beneficiary-mcts-call-history/beneficiary-mcts-call-history.component.ts
  • src/app/app-modules/nurse-doctor/case-record/beneficiary-platform-history/beneficiary-platform-history.component.ts
  • src/app/app-modules/nurse-doctor/case-record/cancer-case-record/cancer-case-record.component.ts
  • src/app/app-modules/nurse-doctor/case-record/case-record.component.ts
  • src/app/app-modules/nurse-doctor/case-record/general-case-record/diagnosis/anc-diagnosis/anc-diagnosis.component.ts
  • src/app/app-modules/nurse-doctor/case-record/general-case-record/diagnosis/covid-diagnosis/covid-diagnosis.component.ts
  • src/app/app-modules/nurse-doctor/case-record/general-case-record/diagnosis/diagnosis.component.ts
  • src/app/app-modules/nurse-doctor/case-record/general-case-record/diagnosis/general-opd-diagnosis/general-opd-diagnosis.component.ts
  • src/app/app-modules/nurse-doctor/case-record/general-case-record/diagnosis/ncd-care-diagnosis/ncd-care-diagnosis.component.ts
  • src/app/app-modules/nurse-doctor/case-record/general-case-record/diagnosis/ncd-screening-diagnosis/ncd-screening-diagnosis.component.ts
  • src/app/app-modules/nurse-doctor/case-record/general-case-record/diagnosis/pnc-diagnosis/pnc-diagnosis.component.ts
  • src/app/app-modules/nurse-doctor/case-record/general-case-record/doctor-investigations/doctor-investigations.component.ts
  • src/app/app-modules/nurse-doctor/case-record/general-case-record/findings/findings.component.ts
  • src/app/app-modules/nurse-doctor/case-record/general-case-record/general-case-record.component.ts
  • src/app/app-modules/nurse-doctor/case-record/general-case-record/prescription/prescription.component.ts
  • src/app/app-modules/nurse-doctor/case-record/general-case-record/previous-significiant-findings/previous-significiant-findings.component.ts
  • src/app/app-modules/nurse-doctor/case-record/general-case-record/previous-visit-details/previous-visit-details.component.ts
  • src/app/app-modules/nurse-doctor/case-record/general-case-record/test-and-radiology/test-and-radiology.component.ts
  • src/app/app-modules/nurse-doctor/case-record/general-case-record/test-and-radiology/view-test-report/view-test-report.component.ts
  • src/app/app-modules/nurse-doctor/case-sheet/cancer-case-sheet/cancer-case-sheet.component.ts
  • src/app/app-modules/nurse-doctor/case-sheet/cancer-case-sheet/cancer-doctor-diagnosis-case-sheet/cancer-doctor-diagnosis-case-sheet.component.ts
  • src/app/app-modules/nurse-doctor/case-sheet/cancer-case-sheet/cancer-examination-case-sheet/cancer-examination-case-sheet.component.ts
  • src/app/app-modules/nurse-doctor/case-sheet/cancer-case-sheet/cancer-history-case-sheet/cancer-history-case-sheet.component.ts
  • src/app/app-modules/nurse-doctor/case-sheet/cancer-case-sheet/image-to-canvas/image-to-canvas.component.ts
  • src/app/app-modules/nurse-doctor/case-sheet/case-sheet.component.ts
  • src/app/app-modules/nurse-doctor/case-sheet/general-case-sheet/anc-case-sheet/anc-case-sheet.component.ts
  • src/app/app-modules/nurse-doctor/case-sheet/general-case-sheet/doctor-diagnosis-case-sheet/doctor-diagnosis-case-sheet.component.ts
  • src/app/app-modules/nurse-doctor/case-sheet/general-case-sheet/examination-case-sheet/examination-case-sheet.component.ts
  • src/app/app-modules/nurse-doctor/case-sheet/general-case-sheet/general-case-sheet.component.ts
  • src/app/app-modules/nurse-doctor/case-sheet/general-case-sheet/history-case-sheet/history-case-sheet.component.ts
  • src/app/app-modules/nurse-doctor/case-sheet/general-case-sheet/pnc-case-sheet/pnc-case-sheet.component.ts
  • src/app/app-modules/nurse-doctor/dashboard/dashboard.component.ts
  • src/app/app-modules/nurse-doctor/doctor-tm-future-worklist/tm-future-worklist.component.ts
  • src/app/app-modules/nurse-doctor/doctor-tm-worklist-wrapper/doctor-tm-worklist-wrapper.component.ts
  • src/app/app-modules/nurse-doctor/doctor-worklist/doctor-worklist.component.ts
  • src/app/app-modules/nurse-doctor/examination/cancer-examination/abdominal-examination/abdominal-examination.component.ts
  • src/app/app-modules/nurse-doctor/examination/cancer-examination/breast-examination/breast-examination.component.ts
  • src/app/app-modules/nurse-doctor/examination/cancer-examination/cancer-examination.component.ts
  • src/app/app-modules/nurse-doctor/examination/cancer-examination/gynecological-examination/gynecological-examination.component.ts
  • src/app/app-modules/nurse-doctor/examination/cancer-examination/oral-examination/oral-examination.component.ts
  • src/app/app-modules/nurse-doctor/examination/cancer-examination/signs-and-symptoms/signs-and-symptoms.component.ts
  • src/app/app-modules/nurse-doctor/examination/examination.component.ts
  • src/app/app-modules/nurse-doctor/examination/general-opd-examination/general-examination/general-examination.component.ts
  • src/app/app-modules/nurse-doctor/examination/general-opd-examination/general-opd-examination.component.ts
  • src/app/app-modules/nurse-doctor/examination/general-opd-examination/head-to-toe-examination/head-to-toe-examination.component.ts
  • src/app/app-modules/nurse-doctor/examination/general-opd-examination/systemic-examination/cardio-vascular-system/cardio-vascular-system.component.ts
  • src/app/app-modules/nurse-doctor/examination/general-opd-examination/systemic-examination/central-nervous-system/central-nervous-system.component.ts
  • src/app/app-modules/nurse-doctor/examination/general-opd-examination/systemic-examination/gastro-intestinal-system/gastro-intestinal-system.component.ts
  • src/app/app-modules/nurse-doctor/examination/general-opd-examination/systemic-examination/genito-urinary-system/genito-urinary-system.component.ts
  • src/app/app-modules/nurse-doctor/examination/general-opd-examination/systemic-examination/musculoskeletal-system/musculoskeletal-system.component.ts
  • src/app/app-modules/nurse-doctor/examination/general-opd-examination/systemic-examination/obstetric-examination/obstetric-examination.component.ts
  • src/app/app-modules/nurse-doctor/examination/general-opd-examination/systemic-examination/respiratory-system/respiratory-system.component.ts
  • src/app/app-modules/nurse-doctor/examination/general-opd-examination/systemic-examination/systemic-examination.component.ts
  • src/app/app-modules/nurse-doctor/history/cancer-history/cancer-history.component.ts
  • src/app/app-modules/nurse-doctor/history/cancer-history/family-disease-history/family-disease-history.component.ts
  • src/app/app-modules/nurse-doctor/history/cancer-history/obstetric-history/obstetric-history.component.ts
  • src/app/app-modules/nurse-doctor/history/cancer-history/personal-history/personal-history.component.ts
  • src/app/app-modules/nurse-doctor/history/general-opd-history/comorbidity-concurrent-conditions/comorbidity-concurrent-conditions.component.ts
  • src/app/app-modules/nurse-doctor/history/general-opd-history/development-history/development-history.component.ts
  • src/app/app-modules/nurse-doctor/history/general-opd-history/family-history-ncdscreening/family-history-ncdscreening.component.ts
  • src/app/app-modules/nurse-doctor/history/general-opd-history/family-history/family-history.component.ts
  • src/app/app-modules/nurse-doctor/history/general-opd-history/feeding-history/feeding-history.component.ts
  • src/app/app-modules/nurse-doctor/history/general-opd-history/general-opd-history.component.ts
  • src/app/app-modules/nurse-doctor/history/general-opd-history/immunization-history/immunization-history.component.ts
  • src/app/app-modules/nurse-doctor/history/general-opd-history/medication-history/medication-history.component.ts
  • src/app/app-modules/nurse-doctor/history/general-opd-history/menstrual-history/menstrual-history.component.ts
  • src/app/app-modules/nurse-doctor/history/general-opd-history/other-vaccines/other-vaccines.component.ts
  • src/app/app-modules/nurse-doctor/history/general-opd-history/past-history/past-history.component.ts
  • src/app/app-modules/nurse-doctor/history/general-opd-history/past-obsteric-history/past-obsteric-history.component.ts
  • src/app/app-modules/nurse-doctor/history/general-opd-history/perinatal-history/perinatal-history.component.ts
  • src/app/app-modules/nurse-doctor/history/general-opd-history/personal-history/personal-history.component.ts
  • src/app/app-modules/nurse-doctor/history/general-opd-history/physical-activity-history/physical-activity-history.component.ts
  • src/app/app-modules/nurse-doctor/history/history.component.ts
  • src/app/app-modules/nurse-doctor/idrs/idrs.component.ts
  • src/app/app-modules/nurse-doctor/ncd-screening/ncd-screening.component.ts
  • src/app/app-modules/nurse-doctor/nurse-worklist-wrapper/nurse-mmu-tm-referred-worklist/nurse-mmu-tm-referred-worklist.component.ts
  • src/app/app-modules/nurse-doctor/nurse-worklist-wrapper/nurse-tm-future-worklist/nurse-tm-future-worklist.component.ts
  • src/app/app-modules/nurse-doctor/nurse-worklist-wrapper/nurse-tm-worklist/nurse-tm-worklist.component.ts
  • src/app/app-modules/nurse-doctor/nurse-worklist-wrapper/nurse-worklist-wrapper.component.ts
  • src/app/app-modules/nurse-doctor/nurse-worklist-wrapper/nurse-worklist/nurse-worklist.component.ts
  • src/app/app-modules/nurse-doctor/oncologist-worklist/oncologist-worklist.component.ts
  • src/app/app-modules/nurse-doctor/pnc/pnc.component.ts
  • src/app/app-modules/nurse-doctor/print-page-select/print-page-select.component.ts
  • src/app/app-modules/nurse-doctor/quick-consult/quick-consult.component.html
  • src/app/app-modules/nurse-doctor/quick-consult/quick-consult.component.ts
  • src/app/app-modules/nurse-doctor/radiologist-worklist/radiologist-worklist.component.ts
  • src/app/app-modules/nurse-doctor/refer/cancer-refer/cancer-refer.component.ts
  • src/app/app-modules/nurse-doctor/refer/general-refer/general-refer.component.ts
  • src/app/app-modules/nurse-doctor/refer/refer.component.ts
  • src/app/app-modules/nurse-doctor/scheduler/scheduler.component.ts
  • src/app/app-modules/nurse-doctor/tc-specialist-future-worklist/tc-specialist-future-worklist.component.ts
  • src/app/app-modules/nurse-doctor/tc-specialist-worklist-wrapper/tc-specialist-worklist-wrapper.component.ts
  • src/app/app-modules/nurse-doctor/tc-specialist-worklist/tc-specialist-worklist.component.ts
  • src/app/app-modules/nurse-doctor/visit-details/adherence/adherence.component.ts
  • src/app/app-modules/nurse-doctor/visit-details/chief-complaints/chief-complaints.component.ts
  • src/app/app-modules/nurse-doctor/visit-details/contact-history/contact-history.component.ts
  • src/app/app-modules/nurse-doctor/visit-details/covid-vaccination-status/covid-vaccination-status.component.ts
  • src/app/app-modules/nurse-doctor/visit-details/diseaseconfirmation/diseaseconfirmation.component.ts
  • src/app/app-modules/nurse-doctor/visit-details/investigations/investigations.component.ts
  • src/app/app-modules/nurse-doctor/visit-details/symptoms/symptoms.component.ts
  • src/app/app-modules/nurse-doctor/visit-details/travel-history/travel-history.component.ts
  • src/app/app-modules/nurse-doctor/visit-details/upload-files/upload-files.component.ts
  • src/app/app-modules/nurse-doctor/visit-details/visit-details.component.ts
  • src/app/app-modules/nurse-doctor/visit-details/visit-details/visit-details.component.ts
  • src/app/app-modules/nurse-doctor/vitals/cancer-patient-vitals/cancer-patient-vitals.component.ts
  • src/app/app-modules/nurse-doctor/vitals/general-patient-vitals/general-patient-vitals.component.ts
  • src/app/app-modules/nurse-doctor/vitals/vitals.component.ts
  • src/app/app-modules/nurse-doctor/workarea/workarea.component.ts
  • src/app/app-modules/pharmacist/dashboard/dashboard.component.ts
  • src/app/app-modules/pharmacist/redir-fallback/redir-fallback.component.ts
  • src/app/app-modules/pharmacist/redir-in/redir-in.component.ts
  • src/app/app-modules/pharmacist/worklist/worklist.component.ts
  • src/app/app-modules/registrar/biometric-authentication/biometric-authentication.component.ts
  • src/app/app-modules/registrar/dashboard/dashboard.component.ts
  • src/app/app-modules/registrar/generate-abha/generate-abha.component.ts
  • src/app/app-modules/registrar/generate-mobile-otp-generation/generate-mobile-otp-generation.component.ts
  • src/app/app-modules/registrar/health-id-otp-generation/health-id-otp-generation.component.ts
  • src/app/app-modules/registrar/quick-search/quick-search.component.ts
  • src/app/app-modules/registrar/rdservice-client/rdservicebio/rdservicebio.component.ts
  • src/app/app-modules/registrar/registrar.module.ts
  • src/app/app-modules/registrar/registration/register-demographic-details/register-demographic-details.component.ts
  • src/app/app-modules/registrar/registration/register-other-details/register-other-details.component.ts
  • src/app/app-modules/registrar/registration/register-other-details/view-health-id-card/view-health-id-card.component.ts
  • src/app/app-modules/registrar/registration/register-personal-details/register-personal-details.component.ts
  • src/app/app-modules/registrar/registration/registration.component.ts
  • src/app/app-modules/registrar/search-dialog/search-dialog.component.ts
  • src/app/app-modules/registrar/search/search.component.ts
  • src/app/app-modules/registrar/set-password-for-abha/set-password-for-abha.component.ts
  • src/app/app-modules/reset-password/reset-password.component.ts
  • src/app/app-modules/service-point/service-point.component.ts
  • src/app/app-modules/service/service.component.ts
  • src/app/app-modules/set-password/set-password.component.ts
  • src/app/app-modules/set-security-questions/set-security-questions.component.ts
  • src/app/app-modules/tm-logout/tm-logout.component.ts
  • src/app/app.component.ts
  • src/app/app.module.ts
  • tsconfig.json

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
6.4% Duplication on New Code (required ≤ 3%)
B Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@sonarqubecloud

sonarqubecloud Bot commented Jul 8, 2026

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
7.0% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant