Skip to content

chore: upgrade Angular and package dependencies to latest (MMU-UI)#356

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

chore: upgrade Angular and package dependencies to latest (MMU-UI)#356
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#11

This PR upgrades MMU-UI to the latest compatible Angular and dependency stack (Angular 21.2.x line).

Summary of changes:

  • Angular/dependency upgrades with lockfile refresh.
  • TypeScript pinned to ~5.9.3; module resolution migrated to bundler.
  • Added explicit standalone: false metadata for NgModule-declared units.
  • Applied strict typing/API compatibility fixes required by upgraded compiler/libraries.
  • Added ESLint 10 compatibility bridge and chunked lint-staged config for reliable pre-commit execution.

Motivation:

  • Aligns project with current supported ecosystem versions and resolves migration blockers introduced by modern compiler + lint tooling behavior.

✅ 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 181 files, which is 31 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: c592bbe6-bce3-4e02-963a-d57cee149bc5

📥 Commits

Reviewing files that changed from the base of the PR and between 54f5c68 and cdb5fe9.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (181)
  • .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/data-sync-login/data-sync-login.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/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/provisional-search/provisional-search.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/spinner/spinner.component.ts
  • src/app/app-modules/core/components/view-radiology-uploaded-files/view-radiology-uploaded-files.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/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/open-modal.directive.ts
  • src/app/app-modules/core/directives/password/myPassword.directive.ts
  • src/app/app-modules/core/directives/stringValidator.directive.ts
  • src/app/app-modules/data-sync/dashboard/dashboard.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/lab.module.ts
  • src/app/app-modules/lab/view-file/view-file.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/case-sheet/prescribe-tm-medicine/prescribe-tm-medicine.component.ts
  • src/app/app-modules/nurse-doctor/dashboard/dashboard.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-doctor.module.ts
  • src/app/app-modules/nurse-doctor/nurse-worklist-tabs/nurse-reffered-worklist/nurse-reffered-worklist.component.ts
  • src/app/app-modules/nurse-doctor/nurse-worklist-tabs/nurse-worklist-tabs.component.ts
  • src/app/app-modules/nurse-doctor/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/reports/reports.component.ts
  • src/app/app-modules/nurse-doctor/shared/utility/autocomplete-scroller.directive.ts
  • src/app/app-modules/nurse-doctor/sms-notification/sms-notification.component.ts
  • src/app/app-modules/nurse-doctor/tm-visit-details/tm-visit-details.component.ts
  • src/app/app-modules/nurse-doctor/tm-visit-details/tmcconfirmation/tmcconfirmation.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/pharmacist.module.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/dashboard/dashboard.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-edit-location/register-edit-location.component.ts
  • src/app/app-modules/registrar/registration/register-other-details/register-other-details.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/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
5.8% 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
5.9% Duplication on New Code (required ≤ 3%)
C Reliability 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

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