Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MDA Lite Reporting #1536

Merged
merged 42 commits into from
Apr 13, 2021
Merged
Show file tree
Hide file tree
Changes from 38 commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
f0c0b16
Add MDA-Lite plans reporting page
ciremusyoka Mar 9, 2021
edb4a4c
Document and add envs to sample file
ciremusyoka Mar 9, 2021
07b3be6
Add MDA-Lite jurisdictions reporting view
ciremusyoka Mar 9, 2021
5a42291
Document and add MDA-Lite jurisdiction reporting envs to sample file
ciremusyoka Mar 9, 2021
63fb63d
Group MDA-Lite columns
ciremusyoka Mar 9, 2021
a616020
Merge branch 'master' into branch 'endfund-reports'
ciremusyoka Mar 11, 2021
e7ac908
Add MDA-Lite jurisdiction reporting column accessors
ciremusyoka Mar 11, 2021
512771c
Add Component for formating the drill down links
ciremusyoka Mar 11, 2021
0be6c2f
MDA-Lite add ward level columns
ciremusyoka Mar 11, 2021
1692382
Change color of returned to supervisor if less than remaining with CDD
ciremusyoka Mar 11, 2021
0735233
Add MDA-Lite CDD and Supervisor report columns
ciremusyoka Mar 12, 2021
336d82e
MDA-Lite add CDD reporting page
ciremusyoka Mar 12, 2021
f7524b6
MDA-Lite CDD reports get drillDownTable props from a function and add…
ciremusyoka Mar 12, 2021
5d373c3
Clean up
ciremusyoka Mar 12, 2021
d4846d3
Add MDA-Lite CDDs reducer and actions
ciremusyoka Mar 12, 2021
a42729d
Add MDA-Lite supervisors reducer and actions
ciremusyoka Mar 12, 2021
7160355
Connect MDA-Lite CDD report component with store
ciremusyoka Mar 12, 2021
00cedc8
MDA-Lite connect Supervisor reports component to store
ciremusyoka Mar 12, 2021
89d207e
Clean up and create links for CDD and supervisor views
ciremusyoka Mar 12, 2021
43c6652
Fix tests failling after add MDA-lite Reports
ciremusyoka Mar 15, 2021
33b6d6d
Add MDA-Lite plans tests
ciremusyoka Mar 15, 2021
6e12096
Add MDA-Lite jurisdictions report fixtures
ciremusyoka Mar 16, 2021
1aaae84
Add MDA-Lite jurisdiction reports tests
ciremusyoka Mar 16, 2021
95b7ea3
Update CDDs columns
ciremusyoka Apr 7, 2021
396c6db
Add MDA Lite wards reducer
ciremusyoka Apr 7, 2021
9a6a143
Add MDA Lite wards report page
ciremusyoka Apr 7, 2021
29ed5ef
Link all MDA Lite views correctly
ciremusyoka Apr 7, 2021
b98abb4
Add MDA Lite Map component
ciremusyoka Apr 8, 2021
2d831cc
Fix failling test
ciremusyoka Apr 8, 2021
dce92b9
Test MDA Lite wards Reducer
ciremusyoka Apr 8, 2021
5285f76
Test MDA Lite supervisors Reducer
ciremusyoka Apr 8, 2021
c81e430
Add MDA Lite cdd supervisor tests
ciremusyoka Apr 8, 2021
4bd2649
Add MDA Lite wards tests
ciremusyoka Apr 8, 2021
739d732
Add MDA Lite map tests
ciremusyoka Apr 8, 2021
e2dadba
Add MDA Lite CDDs reducre test
ciremusyoka Apr 8, 2021
b26f1f3
Add MDA Lite CDDs report page test
ciremusyoka Apr 8, 2021
c814575
Clean up
ciremusyoka Apr 9, 2021
adb6626
Marge branch 'master' into branch 'endfund_reports'
ciremusyoka Apr 12, 2021
f2b2183
Translate MDA Lite table headers
ciremusyoka Apr 12, 2021
5ba8756
Clean up: Update comments and remove unused code
ciremusyoka Apr 12, 2021
3a8babe
Tests use equality assertions instead of snapshot
ciremusyoka Apr 13, 2021
bf55e0f
Translate missed string
ciremusyoka Apr 13, 2021
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
11 changes: 11 additions & 0 deletions .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ REACT_APP_ENABLE_ASSIGN=true
REACT_APP_ENABLE_ABOUT=true
REACT_APP_ENABLE_TEAMS=true
REACT_APP_ENABLE_MDA_POINT=true
REACT_APP_ENABLE_MDA_LITE=true
REACT_APP_ENABLE_PRACTITIONERS=true
REACT_APP_ENABLE_JURISDICTION_METADATA_UPLOAD=true
REACT_APP_ENABLE_PLANNING=true
Expand Down Expand Up @@ -52,6 +53,11 @@ REACT_APP_SUPERSET_DYNAMIC_MDA_REPORTING_JURISDICTIONS_FOCUS_AREA_LEVEL=3
REACT_APP_SUPERSET_STRUCTURES_SLICE=0
REACT_APP_SUPERSET_TASKS_SLICE=0
REACT_APP_SUPERSET_PLAN_STRUCTURE_PIVOT_SLICE=0
REACT_APP_SUPERSET_MDA_LITE_REPORTING_PLANS_SLICE=0
REACT_APP_SUPERSET_MDA_LITE_REPORTING_JURISDICTIONS_DATA_SLICES=0
REACT_APP_SUPERSET_MDA_LITE_REPORTING_JURISDICTIONS_COLUMNS=mdaLiteJurisdictionsColumns
REACT_APP_SUPERSET_MDA_LITE_REPORTING_JURISDICTIONS_FOCUS_AREA_LEVEL=99

REACT_APP_GISIDA_TIMEOUT=3000
REACT_APP_GISIDA_MAPBOX_TOKEN=hunter2
REACT_APP_GISIDA_ONADATA_API_TOKEN=hunter2
Expand Down Expand Up @@ -178,6 +184,11 @@ REACT_APP_ASSIGNED_TEAMS_REQUEST_PAGE_SIZE=1000

REACT_APP_OPENSRP_GENERATED_TASKS_INTERVENTIONS=Dynamic-FI,FI

REACT_APP_SHOW_MAP_AT_JURISDICTION_LEVEL=99
REACT_APP_SUPERSET_MDA_LITE_REPORTING_SUPERVISORS_DATA_SLICE=633
REACT_APP_SUPERSET_MDA_LITE_REPORTING_CDD_DATA_SLICE=630
REACT_APP_SUPERSET_MDA_LITE_REPORTING_WARD_SLICE=631
REACT_APP_SUPERSET_MDA_LITE_REPORTING_WARD_GEOJSON_SLICE=632
REACT_APP_CASE_TRIGGERED_DRAFT_EDIT_ADD_ACTIVITIES=false
REACT_APP_HIDE_PLAN_FORM_FIELDS_ON_EDIT=''

Expand Down
42 changes: 42 additions & 0 deletions docs/env.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,48 @@ Below is a list of currently supported environment variables:
- Optional parameter of plan intervention types whose tasks should be generated on opensrp
- Options: FI, IRS, IRS_Lite, MDA, MDA-Point, Dynamic-FI, Dynamic-IRS and Dynamic-MDA

- **REACT_APP_ENABLE_MDA_LITE**

- **not Required**; _(string)_
- to activate set the env to `true`, any other value will be interpreted as false
- enables the monitor MDA Lite reporting page

- **REACT_APP_SUPERSET_MDA_LITE_REPORTING_PLANS_SLICE**

- MDA-Lite plans Superset slice id
- **Required**

- **REACT_APP_SUPERSET_MDA_LITE_REPORTING_JURISDICTIONS_DATA_SLICES**

- MDA-Lite jurisdictions report Superset slice id
- **Required**

- **REACT_APP_SUPERSET_MDA_LITE_REPORTING_JURISDICTIONS_COLUMNS**

- MDA-Lite jurisdictions report table columns
- **Required**

- **REACT_APP_SUPERSET_MDA_LITE_REPORTING_JURISDICTIONS_FOCUS_AREA_LEVEL**

- MDA-Lite level were focus areas start
- **Required**

- **REACT_APP_SHOW_MAP_AT_JURISDICTION_LEVEL**

- Jurisdiction level on which to show map
- Default value: 99
- **Not Required**

- **REACT_APP_SUPERSET_MDA_LITE_REPORTING_CDD_DATA_SLICE**

- MDA-Lite CDD Superset slice id
- **Required**

- **REACT_APP_SUPERSET_MDA_LITE_REPORTING_SUPERVISORS_DATA_SLICE**

- MDA-Lite supervisors Superset slice id
- **Required**

- **REACT_APP_HIDE_PLAN_FORM_FIELDS_ON_EDIT**

- **not Required**; _(string)_
Expand Down
59 changes: 59 additions & 0 deletions src/App/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ import {
REACT_LOGIN_URL,
REPORT_IRS_LITE_PLAN_URL,
REPORT_IRS_PLAN_URL,
REPORT_MDA_LITE_CDD_REPORT_URL,
REPORT_MDA_LITE_PLAN_URL,
REPORT_MDA_LITE_WARD_URL,
REPORT_MDA_PLAN_URL,
REPORT_MDA_POINT_PLAN_URL,
REPORT_SMC_PLAN_URL,
Expand Down Expand Up @@ -123,6 +126,12 @@ import ConnectedAutoSelectView from '../containers/pages/JurisdictionAssignment/
import { ConnectedEntryView } from '../containers/pages/JurisdictionAssignment/EntryView';
import ConnectedJurisdictionAssignmentView from '../containers/pages/JurisdictionAssignment/ManualSelectJurisdiction';
import JurisdictionMetadata from '../containers/pages/JurisdictionMetadata';
import ConnectedMDALiteCddReports from '../containers/pages/MDALite/cddReports/cdds';
import ConnectedMDALiteSupervisorReports from '../containers/pages/MDALite/cddReports/supervisors';
import ConnectedMdaLiteJurisdictionReport from '../containers/pages/MDALite/jurisdictionsReport';
import ConnectedMDALiteMapReport from '../containers/pages/MDALite/map';
import ConnectedMDALitePlansList from '../containers/pages/MDALite/plans';
import ConnectedMDALiteWardsReport from '../containers/pages/MDALite/wardReports';
import ConnectedChildReports from '../containers/pages/MDAPoint/ChildReports';
import ConnectedClientListView from '../containers/pages/MDAPoint/ClientListView';
import ConnectedMdaPointJurisdictionReport from '../containers/pages/MDAPoint/jurisdictionsReport';
Expand Down Expand Up @@ -281,6 +290,56 @@ const App = () => {
path={`${REPORT_SMC_PLAN_URL}/:planId/:jurisdictionId/${MAP}`}
component={ConnectedSMCReportingMap}
/>
{/* MDA Lite Reporting plan table view */}
<ConnectedPrivateRoute
redirectPath={APP_CALLBACK_URL}
disableLoginProtection={DISABLE_LOGIN_PROTECTION}
exact={true}
path={REPORT_MDA_LITE_PLAN_URL}
component={ConnectedMDALitePlansList}
/>
<ConnectedPrivateRoute
redirectPath={APP_CALLBACK_URL}
disableLoginProtection={DISABLE_LOGIN_PROTECTION}
exact={true}
path={`${REPORT_MDA_LITE_PLAN_URL}/:planId`}
component={ConnectedMdaLiteJurisdictionReport}
/>
<ConnectedPrivateRoute
redirectPath={APP_CALLBACK_URL}
disableLoginProtection={DISABLE_LOGIN_PROTECTION}
exact={true}
path={`${REPORT_MDA_LITE_PLAN_URL}/:planId/:jurisdictionId`}
component={ConnectedMdaLiteJurisdictionReport}
/>
<ConnectedPrivateRoute
redirectPath={APP_CALLBACK_URL}
disableLoginProtection={DISABLE_LOGIN_PROTECTION}
exact={true}
path={`${REPORT_MDA_LITE_PLAN_URL}/:planId/:jurisdictionId/${MAP}`}
component={ConnectedMDALiteMapReport}
/>
<ConnectedPrivateRoute
redirectPath={APP_CALLBACK_URL}
disableLoginProtection={DISABLE_LOGIN_PROTECTION}
exact={true}
path={`${REPORT_MDA_LITE_WARD_URL}/:planId/:jurisdictionId`}
component={ConnectedMDALiteWardsReport}
/>
<ConnectedPrivateRoute
redirectPath={APP_CALLBACK_URL}
disableLoginProtection={DISABLE_LOGIN_PROTECTION}
exact={true}
path={`${REPORT_MDA_LITE_CDD_REPORT_URL}/:planId/:jurisdictionId`}
component={ConnectedMDALiteSupervisorReports}
/>
<ConnectedPrivateRoute
redirectPath={APP_CALLBACK_URL}
disableLoginProtection={DISABLE_LOGIN_PROTECTION}
exact={true}
path={`${REPORT_MDA_LITE_CDD_REPORT_URL}/:planId/:jurisdictionId/:supervisorId`}
component={ConnectedMDALiteCddReports}
/>
{/* IRS Reporting plan table view */}
<ConnectedPrivateRoute
redirectPath={APP_CALLBACK_URL}
Expand Down
1 change: 1 addition & 0 deletions src/App/tests/AppNoBackend.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jest.mock('../../configs/env', () => ({
SUPERSET_IRS_LITE_REPORTING_JURISDICTIONS_DATA_SLICES: '11, 12',
SUPERSET_IRS_MOPUP_REPORTING_JURISDICTIONS_DATA_SLICES: '0',
SUPERSET_IRS_REPORTING_JURISDICTIONS_DATA_SLICES: '11, 12',
SUPERSET_MDA_LITE_REPORTING_JURISDICTIONS_DATA_SLICES: '1',
SUPERSET_MDA_POINT_REPORTING_JURISDICTIONS_DATA_SLICES: '12',
SUPERSET_SMC_REPORTING_JURISDICTIONS_DATA_SLICES: '1',
}));
Expand Down
1 change: 1 addition & 0 deletions src/components/GisidaLite/helpers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export const fillLayerTemplate = {

export const gsLiteStyle: Style | string = DIGITAL_GLOBE_CONNECT_ID
? {
glyphs: 'mapbox://fonts/mapbox/{fontstack}/{range}.pbf',
layers: [
{
id: 'earthwatch-basemap',
Expand Down
49 changes: 49 additions & 0 deletions src/components/MDALiteCellTable/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { DropDownCellProps } from '@onaio/drill-down-table';
import { Dictionary } from '@onaio/utils';
import React from 'react';
import { Link } from 'react-router-dom';
import { Col, Row } from 'reactstrap';
import { SHOW_MAP_AT_JURISDICTION_LEVEL } from '../../configs/env';
import { MAP, REPORT_MDA_LITE_WARD_URL } from '../../constants';

/** Interface for linked cell props */
export interface LinkedCellProps extends DropDownCellProps {
urlPath?: string;
}

/** Component that will be rendered in drop-down table cells showing a link
* that moves you to the next hierarchical level.
*/
const MDALiteTableCell: React.ElementType<LinkedCellProps> = (props: LinkedCellProps) => {
const { cell, cellValue, hasChildren, urlPath } = props;
const original: Dictionary = cell.row.original;
const { jurisdiction_id, jurisdiction_depth, plan_id } = original;
const url = `${urlPath}/${jurisdiction_id}`;
const wardUrl = `${REPORT_MDA_LITE_WARD_URL}/${plan_id}/${jurisdiction_id}`;
const jurLink = <Link to={url}>{cellValue}</Link>;
if (SHOW_MAP_AT_JURISDICTION_LEVEL === +jurisdiction_depth) {
return (
<div style={{ minWidth: '100%' }}>
<Row>
<Col sm={8}>
<Link to={wardUrl}>{cellValue}</Link>
</Col>
<Col sm={4}>
<Link style={{ paddingLeft: '20px' }} to={`${url}/${MAP}`}>
<FontAwesomeIcon icon={['fas', MAP]} />
</Link>
</Col>
</Row>
</div>
);
}
const val = hasChildren ? (
jurLink
) : (
<span className="plan-jurisdiction-name name-label">{cellValue}</span>
);
return <div>{val}</div>;
};

export default MDALiteTableCell;
20 changes: 19 additions & 1 deletion src/components/page/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import {
ENABLE_IRS_MOPUP_REPORTING,
ENABLE_IRS_PERFORMANCE_REPORT,
ENABLE_JURISDICTION_METADATA_UPLOAD,
ENABLE_MDA_LITE,
ENABLE_MDA_POINT,
ENABLE_PLANNING,
ENABLE_POPULATION_SERVER_SETTINGS,
Expand All @@ -51,6 +52,7 @@ import {
JURISDICTION_METADATA,
LOGIN,
MANIFEST_RELEASES,
MDA_LITE_REPORTING_TITLE,
MDA_POINT_REPORTING_TITLE,
MDA_REPORTING_TITLE,
MONITOR,
Expand Down Expand Up @@ -84,6 +86,7 @@ import {
REACT_LOGIN_URL,
REPORT_IRS_LITE_PLAN_URL,
REPORT_IRS_PLAN_URL,
REPORT_MDA_LITE_PLAN_URL,
REPORT_MDA_PLAN_URL,
REPORT_MDA_POINT_PLAN_URL,
REPORT_SMC_PLAN_URL,
Expand Down Expand Up @@ -147,7 +150,8 @@ export class HeaderComponent extends React.Component<HeaderProps, State> {
ENABLE_IRS_PERFORMANCE_REPORT ||
ENABLE_IRS_MOPUP_REPORTING ||
ENABLE_IRS_LITE ||
ENABLE_SMC;
ENABLE_SMC ||
ENABLE_MDA_LITE;

return (
<div>
Expand Down Expand Up @@ -288,6 +292,20 @@ export class HeaderComponent extends React.Component<HeaderProps, State> {
</DropdownItem>
</div>
)}

{ENABLE_MDA_LITE && (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the enable/disable also work at the route level? i.e Can you access the route if the menu link is disabled?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah the link will be accessible. Fixing that.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kelvin-muchiri this is affecting all routes in reveal and have created an issue here to address it.

<div>
<DropdownItem>
<NavLink
to={REPORT_MDA_LITE_PLAN_URL}
className="nav-link"
activeClassName="active"
>
{MDA_LITE_REPORTING_TITLE}
</NavLink>
</DropdownItem>
</div>
)}
{ENABLE_DYNAMIC_MDA && (
<div>
<DropdownItem>
Expand Down
7 changes: 7 additions & 0 deletions src/configs/__mocks__/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,13 @@ export const SUPERSET_SMC_REPORTING_INDICATOR_STOPS = 'nigeria2020';
export const CHECK_SESSION_EXPIRY_STATUS = false;

export const OPENSRP_GENERATED_TASKS_INTERVENTIONS = [];
export const SUPERSET_MDA_LITE_REPORTING_JURISDICTIONS_DATA_SLICES = '1,2';
export const SUPERSET_MDA_LITE_REPORTING_PLANS_SLICE = '1';
export const SUPERSET_MDA_LITE_REPORTING_SUPERVISORS_DATA_SLICE = '1';
export const SUPERSET_MDA_LITE_REPORTING_WARD_SLICE = '1';
export const SUPERSET_MDA_LITE_REPORTING_WARD_GEOJSON_SLICE = '1';
export const SUPERSET_MDA_LITE_REPORTING_CDD_DATA_SLICE = '1';
export const SUPERSET_MDA_LITE_REPORTING_JURISDICTIONS_COLUMNS = 'mdaLiteJurisdictionsColumns';

export const HIDE_PLAN_FORM_FIELDS_ON_EDIT = [];
export const CASE_TRIGGERED_DRAFT_EDIT_ADD_ACTIVITIES = false;
Expand Down
40 changes: 40 additions & 0 deletions src/configs/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ export type ENABLE_DYNAMIC_MDA = typeof ENABLE_DYNAMIC_MDA;
export const ENABLE_SMC = process.env.REACT_APP_ENABLE_SMC === 'true';
export type ENABLE_SMC = typeof ENABLE_SMC;

/** Do you want to enable the MDA Lite plan features? */
export const ENABLE_MDA_LITE = process.env.REACT_APP_ENABLE_MDA_LITE === 'true';
export type ENABLE_MDA_LITE = typeof ENABLE_MDA_LITE;

/** Do you want to enable the MDA Point plan features? */
export const CLIENT_LABEL = process.env.REACT_APP_CLIENT_LABEL || 'client';
export type CLIENT_LABEL = typeof CLIENT_LABEL;
Expand Down Expand Up @@ -588,6 +592,42 @@ export const OPENSRP_GENERATED_TASKS_INTERVENTIONS = (
).split(',');
export type OPENSRP_GENERATED_TASKS_INTERVENTIONS = typeof OPENSRP_GENERATED_TASKS_INTERVENTIONS;

export const SUPERSET_MDA_LITE_REPORTING_PLANS_SLICE =
process.env.REACT_APP_SUPERSET_MDA_LITE_REPORTING_PLANS_SLICE || '0';
export type SUPERSET_MDA_LITE_REPORTING_PLANS_SLICE = typeof SUPERSET_MDA_LITE_REPORTING_PLANS_SLICE;

export const SUPERSET_MDA_LITE_REPORTING_JURISDICTIONS_DATA_SLICES =
process.env.REACT_APP_SUPERSET_MDA_LITE_REPORTING_JURISDICTIONS_DATA_SLICES || '0';
export type SUPERSET_MDA_LITE_REPORTING_JURISDICTIONS_DATA_SLICES = typeof SUPERSET_MDA_LITE_REPORTING_JURISDICTIONS_DATA_SLICES;

export const SUPERSET_MDA_LITE_REPORTING_JURISDICTIONS_COLUMNS =
process.env.REACT_APP_SUPERSET_MDA_LITE_REPORTING_JURISDICTIONS_COLUMNS ||
'mdaLiteJurisdictionsColumns';
export type SUPERSET_MDA_LITE_REPORTING_JURISDICTIONS_COLUMNS = typeof SUPERSET_MDA_LITE_REPORTING_JURISDICTIONS_COLUMNS;

export const SUPERSET_MDA_LITE_REPORTING_JURISDICTIONS_FOCUS_AREA_LEVEL =
process.env.REACT_APP_SUPERSET_MDA_LITE_REPORTING_JURISDICTIONS_FOCUS_AREA_LEVEL || '99';
export type SUPERSET_MDA_LITE_REPORTING_JURISDICTIONS_FOCUS_AREA_LEVEL = typeof SUPERSET_MDA_LITE_REPORTING_JURISDICTIONS_FOCUS_AREA_LEVEL;

export const SHOW_MAP_AT_JURISDICTION_LEVEL =
Number(process.env.REACT_APP_SHOW_MAP_AT_JURISDICTION_LEVEL) || 99;
export type SHOW_MAP_AT_JURISDICTION_LEVEL = typeof SHOW_MAP_AT_JURISDICTION_LEVEL;

export const SUPERSET_MDA_LITE_REPORTING_SUPERVISORS_DATA_SLICE =
process.env.REACT_APP_SUPERSET_MDA_LITE_REPORTING_SUPERVISORS_DATA_SLICE || '0';
export type SUPERSET_MDA_LITE_REPORTING_SUPERVISORS_DATA_SLICE = typeof SUPERSET_MDA_LITE_REPORTING_SUPERVISORS_DATA_SLICE;

export const SUPERSET_MDA_LITE_REPORTING_CDD_DATA_SLICE =
process.env.REACT_APP_SUPERSET_MDA_LITE_REPORTING_CDD_DATA_SLICE || '0';
export type SUPERSET_MDA_LITE_REPORTING_CDD_DATA_SLICE = typeof SUPERSET_MDA_LITE_REPORTING_CDD_DATA_SLICE;

export const SUPERSET_MDA_LITE_REPORTING_WARD_SLICE =
process.env.REACT_APP_SUPERSET_MDA_LITE_REPORTING_WARD_SLICE || '0';
export type SUPERSET_MDA_LITE_REPORTING_WARD_SLICE = typeof SUPERSET_MDA_LITE_REPORTING_WARD_SLICE;

export const SUPERSET_MDA_LITE_REPORTING_WARD_GEOJSON_SLICE =
process.env.REACT_APP_SUPERSET_MDA_LITE_REPORTING_WARD_GEOJSON_SLICE || '0';
export type SUPERSET_MDA_LITE_REPORTING_WARD_GEOJSON_SLICE = typeof SUPERSET_MDA_LITE_REPORTING_WARD_GEOJSON_SLICE;
export const HIDE_PLAN_FORM_FIELDS_ON_EDIT = (
process.env.REACT_APP_HIDE_PLAN_FORM_FIELDS_ON_EDIT || ''
).split(',');
Expand Down
4 changes: 4 additions & 0 deletions src/configs/lang.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ export const IRS_PLANS = translate('IRS_PLANS', 'IRS Plans');
export const IRS_LITE_PLANS = translate('IRS_LITE_PLANS', 'IRS Lite Plans');
export const MDA_PLANS = translate('MDA_PLANS', 'MDA Plans');
export const MDA_POINT_PLANS = translate('MDA_POINT_PLANS', 'MDA Point Plans');
export const MDA_LITE_PLANS = translate('MDA_LITE_PLANS', 'MDA Lite Plans');
export const SMC_PLANS = translate('SMC_PLANS', 'SMC Plans');
export const COUNTRY = translate('COUNTRY', 'Country');
export const JURISDICTION_HIERARCHY_TEMPLATE = translate(
Expand Down Expand Up @@ -602,6 +603,7 @@ export const MDA_POINT_REPORTING_TITLE = translate(
'MDA_POINT_REPORTING_TITLE',
'MDA Point Reporting'
);
export const MDA_LITE_REPORTING_TITLE = translate('MDA_LITE_REPORTING_TITLE', 'MDA Lite Reporting');
export const SMC_REPORTING_TITLE = translate('SMC_REPORTING_TITLE', 'SMC Reporting');

export const FILTER = translate('FILTER', 'Filter');
Expand Down Expand Up @@ -1011,4 +1013,6 @@ export const LOWEST_JURISDICTION = translate(
'LOWEST_JURISDICTION',
'This is the lowest jurisdiction'
);

export const SUBCOUNTY_LABEL = translate('SUBCOUNTY_LABEL', 'Subcounty');
export const NOT_AVAILABLE_LABEL = translate('NOT_AVAILABLE_LABEL', 'Not Available');
Loading