Skip to content

Commit

Permalink
(chore) Removed unused imports and routes after homepage migration
Browse files Browse the repository at this point in the history
  • Loading branch information
CynthiaKamau committed May 21, 2024
1 parent 2092121 commit 674deb3
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 219 deletions.
19 changes: 3 additions & 16 deletions packages/esm-covid-app/src/index.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -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';
Expand Down Expand Up @@ -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,
Expand Down
15 changes: 0 additions & 15 deletions packages/esm-covid-app/src/routes.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
56 changes: 0 additions & 56 deletions packages/esm-hiv-app/src/index.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -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,
Expand Down Expand Up @@ -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,
Expand All @@ -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),
Expand Down
46 changes: 0 additions & 46 deletions packages/esm-hiv-app/src/routes.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
19 changes: 0 additions & 19 deletions packages/esm-ohri-pmtct-app/src/index.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -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';
Expand Down Expand Up @@ -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,
});
38 changes: 2 additions & 36 deletions packages/esm-tb-app/src/index.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -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';

Expand Down Expand Up @@ -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 }),
Expand Down
31 changes: 0 additions & 31 deletions packages/esm-tb-app/src/routes.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 674deb3

Please sign in to comment.