From 674deb352ae0b2418e03751fec8d8a3992ffec72 Mon Sep 17 00:00:00 2001 From: CynthiaKamau Date: Tue, 21 May 2024 19:57:17 +0300 Subject: [PATCH] (chore) Removed unused imports and routes after homepage migration --- packages/esm-covid-app/src/index.ts | 19 ++------ packages/esm-covid-app/src/routes.json | 15 ------- packages/esm-hiv-app/src/index.ts | 56 ------------------------ packages/esm-hiv-app/src/routes.json | 46 ------------------- packages/esm-ohri-pmtct-app/src/index.ts | 19 -------- packages/esm-tb-app/src/index.ts | 38 +--------------- packages/esm-tb-app/src/routes.json | 31 ------------- 7 files changed, 5 insertions(+), 219 deletions(-) diff --git a/packages/esm-covid-app/src/index.ts b/packages/esm-covid-app/src/index.ts index 1e3795dba..b9b1c1391 100644 --- a/packages/esm-covid-app/src/index.ts +++ b/packages/esm-covid-app/src/index.ts @@ -1,9 +1,7 @@ -import { defineConfigSchema, getAsyncLifecycle, getSyncLifecycle } from '@openmrs/esm-framework'; +import { defineConfigSchema, getSyncLifecycle } from '@openmrs/esm-framework'; import CovidVaccinations from './views/covid-vaccinations.component'; import CovidLabResults from './views/lab-results.component'; import CovidAssessment from './views/case-assessment.component'; -import CovidHomePatientTabs from './views/dashboard/patient-list-tabs/covid-patient-list-tabs.component'; -import CovidSummaryTiles from './views/dashboard/summary-tiles/covid-summary-tiles.component'; import { covidAssessmentsDashboardMeta, covidLabTestsDashboardMeta, @@ -12,7 +10,7 @@ import { covid19CasesDashboardMeta, covidPatientChartMeta, } from './dashboard.meta'; -import { createOHRIDashboardLink, createOHRIGroupedLink, OHRIHome, OHRIWelcomeSection } from '@ohri/openmrs-esm-ohri-commons-lib'; +import { createOHRIDashboardLink, createOHRIGroupedLink } from '@ohri/openmrs-esm-ohri-commons-lib'; import { createDashboardGroup, createDashboardLink } from '@openmrs/esm-patient-common-lib'; import { configSchema } from './config-schema'; import rootComponent from './root.component'; @@ -51,18 +49,7 @@ export const covidLabResultsDashboardLink = getSyncLifecycle( createDashboardLink({ ...covidLabTestsDashboardMeta, moduleName }), options, ); -export const covidDashboardHeader = getSyncLifecycle(OHRIWelcomeSection, { - featureName: 'covid-home-header', - moduleName, -}); -export const covidDashboardTiles = getSyncLifecycle(CovidSummaryTiles, { - featureName: 'covid-home-tiles', - moduleName, -}); -export const covidDashboardTabs = getSyncLifecycle(CovidHomePatientTabs, { - featureName: 'covid-home-tabs', - moduleName, -}); + export const covidAssessmentsDashboard = getSyncLifecycle(CovidAssessment, { featureName: 'covid-assessment', moduleName, diff --git a/packages/esm-covid-app/src/routes.json b/packages/esm-covid-app/src/routes.json index e6dbba5f7..f7a8a6f3f 100644 --- a/packages/esm-covid-app/src/routes.json +++ b/packages/esm-covid-app/src/routes.json @@ -16,21 +16,6 @@ "title": "COVID" } }, - { - "name": "covid-home-header-ext", - "slot": "covid-home-header-slot", - "component": "covidDashboardHeader" - }, - { - "name": "covid-home-tiles-ext", - "slot": "covid-home-tiles-slot", - "component": "covidDashboardTiles" - }, - { - "name": "covid-home-tabs-ext", - "slot": "covid-home-tabs-slot", - "component": "covidDashboardTabs" - }, { "name": "ohri-covid", "slot": "patient-chart-dashboard-slot", diff --git a/packages/esm-hiv-app/src/index.ts b/packages/esm-hiv-app/src/index.ts index 68bc900ea..15ed58f73 100644 --- a/packages/esm-hiv-app/src/index.ts +++ b/packages/esm-hiv-app/src/index.ts @@ -1,11 +1,5 @@ import { defineConfigSchema, getSyncLifecycle } from '@openmrs/esm-framework'; import ServiceSummaryOverviewList from './views/service-summary/encounter-list/service-summary-encounter-list.component'; -import HTSSummaryTiles from './views/hts/home/summary-tiles/hts-summary-tiles.component'; -import OHRIPatientTabs from './views/hts/home/patient-tabs/ohri-patient-tabs.component'; -import CTSummaryTiles from './views/hts/care-and-treatment/summary-tiles/ct-summary-tiles.component'; -import CTHomePatientTabs from './views/hts/patient-list-tabs/ct-patient-list-tabs.component'; -import LabResultsSummaryTiles from './views/hts/lab-results/lab-results-summary-tiles.component'; -import LabResultsSummary from './views/hts/lab-results/lab-results-summary.component'; import HTSPreventionSummary from './views/hiv-testing-services/hts-prevention-summary.component'; import ProgramManagementSummary from './views/program-management/program-management-summary.component'; import VisitsSummary from './views/visits/visits-summary.component'; @@ -14,16 +8,12 @@ import PartnerNotificationServices from './views/partner-notification-services/p import { createOHRIDashboardLink, PatientStatusBannerTag, - OHRIHome, - OHRIWelcomeSection, createOHRIGroupedLink, } from '@ohri/openmrs-esm-ohri-commons-lib'; import { createDashboardGroup, createDashboardLink } from '@openmrs/esm-patient-common-lib'; import { hivCareAndTreatmentFolderDashboardMeta, - careAndTreatmentDashboardMeta, - htsDashboardMeta, htsSummaryDashboardMeta, hivPreventionDashboardMeta, hivCareAndTreatmentDashboardDMeta, @@ -61,36 +51,6 @@ export const htsServiceSummaryList = getSyncLifecycle(ServiceSummaryOverviewList moduleName, }); -export const htsHomeHeader = getSyncLifecycle(OHRIWelcomeSection, { - featureName: 'hts-home-header', - moduleName, -}); - -export const htsHomeTiles = getSyncLifecycle(HTSSummaryTiles, { - featureName: 'hts-home-tiles', - moduleName, -}); - -export const htsHomeTabs = getSyncLifecycle(OHRIPatientTabs, { - featureName: 'hts-home-tabs', - moduleName, -}); - -export const ctHomeHeader = getSyncLifecycle(OHRIWelcomeSection, { - featureName: 'ct-home-header', - moduleName, -}); - -export const ctHomeTiles = getSyncLifecycle(CTSummaryTiles, { - featureName: 'ct-home-tiles', - moduleName, -}); - -export const ctHomeTabs = getSyncLifecycle(CTHomePatientTabs, { - featureName: 'ct-home-tabs', - moduleName, -}); - export const hivCareAndTreatmentFolderLink = getSyncLifecycle( createOHRIDashboardLink(hivCareAndTreatmentFolderDashboardMeta), options, @@ -111,22 +71,6 @@ export const hivPreventionDashboardLink = getSyncLifecycle( ); export const hivPreventionDashboard = getSyncLifecycle(htsRootComponent, options); -// Lab Results -export const labResultsHomeHeader = getSyncLifecycle(OHRIWelcomeSection, { - featureName: 'lab-results-home-header', - moduleName, -}); - -export const labResultsHomeTiles = getSyncLifecycle(LabResultsSummaryTiles, { - featureName: 'lab-results-home-tiles', - moduleName, -}); - -export const labResultsHomeTabs = getSyncLifecycle(LabResultsSummary, { - featureName: 'lab-results-tabs', - moduleName, -}); - // Patient Chart export const patientChartHIVPreventionDashboard = getSyncLifecycle( createDashboardGroup(hivPreventionDashboardMeta), diff --git a/packages/esm-hiv-app/src/routes.json b/packages/esm-hiv-app/src/routes.json index 98a109545..2726107e8 100644 --- a/packages/esm-hiv-app/src/routes.json +++ b/packages/esm-hiv-app/src/routes.json @@ -37,21 +37,6 @@ "slot": "hts-dashboard-slot", "component": "hivPreventionDashboard" }, - { - "name": "hts-home-header-ext", - "slot": "hts-home-header-slot", - "component": "htsHomeHeader" - }, - { - "name": "hts-home-tiles-ext", - "slot": "hts-home-tiles-slot", - "component": "htsHomeTiles" - }, - { - "name": "hts-home-tabs-ext", - "slot": "hts-home-tabs-slot", - "component": "htsHomeTabs" - }, { "name": "hiv-care-and-treatment-dashboard-link", "slot": "dashboard-slot", @@ -78,37 +63,6 @@ "slot": "ct-dashboard-slot", "component": "hivCareAndTreatmentDashboard" }, - { - "name": "ct-home-header-ext", - "slot": "ct-home-header-slot", - "component": "ctHomeHeader" - }, - { - "name": "ct-home-tiles-ext", - "slot": "ct-home-tiles-slot", - "component": "ctHomeTiles" - }, - { - "name": "ct-home-tabs-ext", - "slot": "ct-home-tabs-slot", - "component": "ctHomeTabs" - }, - { - "name": "lab-results-home-header-ext", - "slot": "lab-results-home-header-slot", - "component": "labResultsHomeHeader" - }, - { - "name": "lab-results-home-tiles-ext", - "slot": "lab-results-home-tiles-slot", - "component": "labResultsHomeTiles" - }, - { - "name": "lab-results-tabs-ext", - "slot": "lab-results-home-tabs-slot", - "component": "labResultsHomeTabs" - }, - { "name": "ohri-hiv-care-and-treatment", "slot": "patient-chart-dashboard-slot", diff --git a/packages/esm-ohri-pmtct-app/src/index.ts b/packages/esm-ohri-pmtct-app/src/index.ts index 7097e1e25..0eaf0eea4 100644 --- a/packages/esm-ohri-pmtct-app/src/index.ts +++ b/packages/esm-ohri-pmtct-app/src/index.ts @@ -1,9 +1,6 @@ import { defineConfigSchema, getAsyncLifecycle, getSyncLifecycle } from '@openmrs/esm-framework'; -import MaternalSummary from './views/mch-summary/mch-summary.component'; import MaternalHealthList from './views/maternal-health/maternal-health.component'; import ChildHealthList from './views/child-health/child-health.component'; -import MaternalChildSummaryTiles from './views/summary-tabs/maternal-child-summary-tiles.component'; -import LabResultsSummary from './views/summary-tabs/mother-child-summary-tabs.component'; import { mchSummaryDashboardMeta, maternalVisitsDashboardMeta, @@ -16,10 +13,8 @@ import { createConditionalDashboardLink, createNewOHRIDashboardLink, OHRIHome, - OHRIWelcomeSection, createConditionalDashboardGroup, } from '@ohri/openmrs-esm-ohri-commons-lib'; -import { generateInfantPTrackerId } from './utils/pmtct-helpers'; import { configSchema } from './config-schema'; import rootComponent from './root.component'; import { createDashboardLink } from '@openmrs/esm-patient-common-lib'; @@ -97,17 +92,3 @@ export const maternalChildDashboard = getSyncLifecycle(OHRIHome, { featureName: 'mother child health results dashboard', moduleName, }); -export const pmtctDashboardHeader = getSyncLifecycle(OHRIWelcomeSection, { - featureName: 'pmtct-home-header', - moduleName, -}); - -export const pmtctDashboardTiles = getSyncLifecycle(MaternalChildSummaryTiles, { - featureName: 'pmtct-home-tiles', - moduleName, -}); - -export const pmtctDashboardTabs = getSyncLifecycle(LabResultsSummary, { - featureName: 'pmtct-home-tabs', - moduleName, -}); diff --git a/packages/esm-tb-app/src/index.ts b/packages/esm-tb-app/src/index.ts index b187b5b60..43c24f3f2 100644 --- a/packages/esm-tb-app/src/index.ts +++ b/packages/esm-tb-app/src/index.ts @@ -1,10 +1,5 @@ -import { defineConfigSchema, getAsyncLifecycle, getSyncLifecycle } from '@openmrs/esm-framework'; -import { - createOHRIDashboardLink, - OHRIHome, - OHRIWelcomeSection, - createOHRIGroupedLink, -} from '@ohri/openmrs-esm-ohri-commons-lib'; +import { defineConfigSchema, getSyncLifecycle } from '@openmrs/esm-framework'; +import { createOHRIDashboardLink, createOHRIGroupedLink } from '@ohri/openmrs-esm-ohri-commons-lib'; import { createDashboardGroup, createDashboardLink } from '@openmrs/esm-patient-common-lib'; import { tbPatientChartMeta, @@ -24,12 +19,8 @@ import TBSummaryOverviewList from './views/patient-summary/tb-patient-summary.co import ProgramManagementSummary from './views/program-management/maternal-health.component'; import TbTreatmentFollowUpList from './views/treatment-and-follow-up/tb-treatment-follow-up.component'; import TbContactTracingList from './views/tb-contact-listing/tb-contact-list.component'; -import TbSummaryTiles from './views/dashboard/summary-tiles/tb-summary-tiles.component'; -import TbHomePatientTabs from './views/dashboard/patient-list-tabs/tb-patient-list-tabs.component'; import tptProgramManagementSummary from './views/tpt/program-management/tpt-program-management'; import tptPatientSummary from './views/tpt/patient-summary/patient-summary.component'; -import TptPreventionSummaryTiles from './views/dashboard/summary-tiles/tpt-summary-tiles.component'; -import TptPatientListTabs from './views/dashboard/patient-list-tabs/tpt-patient-list-tabs.component'; import rootComponent from './root.component'; import TptHomeComponent from './tpt-home.component'; @@ -87,31 +78,6 @@ export const tbContactListingDashboard = getSyncLifecycle(TbContactTracingList, featureName: 'tb-contact-listing-summary', moduleName, }); -export const tbDashboardHeader = getSyncLifecycle(OHRIWelcomeSection, { - featureName: 'tb-home-header', - moduleName, -}); - -export const tbDashboardTiles = getSyncLifecycle(TbSummaryTiles, { - featureName: 'tb-home-tiles', - moduleName, -}); -export const tbDashboardTabs = getSyncLifecycle(TbHomePatientTabs, { - featureName: 'tb-home-tabs', - moduleName, -}); -export const tptDashboardHeader = getSyncLifecycle(OHRIWelcomeSection, { - featureName: 'tpt-home-header', - moduleName, -}); -export const tptDashboardTiles = getSyncLifecycle(TptPreventionSummaryTiles, { - featureName: 'tpt-home-tiles', - moduleName, -}); -export const tptDashboardTabs = getSyncLifecycle(TptPatientListTabs, { - featureName: 'tpt-home-tabs', - moduleName, -}); export const tptPatientSummaryDashboardLink = getSyncLifecycle( createDashboardLink({ ...tptPatientSummaryMeta, moduleName }), diff --git a/packages/esm-tb-app/src/routes.json b/packages/esm-tb-app/src/routes.json index 741077094..4970eb4c2 100644 --- a/packages/esm-tb-app/src/routes.json +++ b/packages/esm-tb-app/src/routes.json @@ -150,37 +150,6 @@ "title": "Tuberculosis" } }, - - { - "name": "tb-home-header-ext", - "slot": "tb-home-header-slot", - "component": "tbDashboardHeader" - }, - { - "name": "tb-home-tiles-ext", - "slot": "tb-home-tiles-slot", - "component": "tbDashboardTiles" - }, - { - "name": "tb-home-tabs-ext", - "slot": "tb-home-tabs-slot", - "component": "tbDashboardTabs" - }, - { - "name": "tpt-home-header-ext", - "slot": "tpt-home-header-slot", - "component": "tptDashboardHeader" - }, - { - "name": "tpt-home-tiles-ext", - "slot": "tpt-home-tiles-slot", - "component": "tptDashboardTiles" - }, - { - "name": "tpt-home-tabs-ext", - "slot": "tpt-home-tabs-slot", - "component": "tptDashboardTabs" - }, { "name": "tb-cases-dashboard-ext", "slot": "homepage-dashboard-slot",