Skip to content

Commit

Permalink
Merge pull request #50 from EyeSeeTea/feature/alerts-performance-table
Browse files Browse the repository at this point in the history
Create Event List - Regional
  • Loading branch information
bhavananarayanan authored Jan 16, 2025
2 parents b23dbe5 + 7267fca commit 516de87
Show file tree
Hide file tree
Showing 28 changed files with 1,511 additions and 430 deletions.
94 changes: 86 additions & 8 deletions i18n/en.pot
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
"POT-Creation-Date: 2025-01-03T08:28:56.703Z\n"
"PO-Revision-Date: 2025-01-03T08:28:56.703Z\n"
"POT-Creation-Date: 2025-01-14T15:51:01.421Z\n"
"PO-Revision-Date: 2025-01-14T15:51:01.421Z\n"

msgid "Low"
msgstr ""
Expand Down Expand Up @@ -159,9 +159,6 @@ msgstr ""
msgid "Status: "
msgstr ""

msgid "Dashboard"
msgstr ""

msgid "Select duration"
msgstr ""

Expand All @@ -171,16 +168,97 @@ msgstr ""
msgid "All public health events"
msgstr ""

msgid "Alerts 7-1-7 performance"
msgid "7-1-7 performance"
msgstr ""

msgid "events"
msgstr ""

msgid "7-1-7 performance"
msgid "Performance overview"
msgstr ""

msgid "Performance overview"
msgid "Dashboard"
msgstr ""

msgid "Alerts"
msgstr ""

msgid "National"
msgstr ""

msgid "Disease - Hazard type"
msgstr ""

msgid "Province"
msgstr ""

msgid "Location"
msgstr ""

msgid "Organisation unit"
msgstr ""

msgid "Organisation unit type"
msgstr ""

msgid "Cases"
msgstr ""

msgid "Deaths"
msgstr ""

msgid "Manager"
msgstr ""

msgid "Detect 7d"
msgstr ""

msgid "Notify 1d"
msgstr ""

msgid "Respond 7d"
msgstr ""

msgid "Incident Status"
msgstr ""

msgid "Event"
msgstr ""

msgid "ERA1"
msgstr ""

msgid "ERA2"
msgstr ""

msgid "ERA3"
msgstr ""

msgid "ERA4"
msgstr ""

msgid "ERA5"
msgstr ""

msgid "ERA6"
msgstr ""

msgid "ERA7"
msgstr ""

msgid "Alert"
msgstr ""

msgid "Closed"
msgstr ""

msgid "Discarded"
msgstr ""

msgid "Respond"
msgstr ""

msgid "Watch"
msgstr ""

msgid "Event Tracker"
Expand Down
92 changes: 85 additions & 7 deletions i18n/es.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: i18next-conv\n"
"POT-Creation-Date: 2025-01-03T08:28:56.703Z\n"
"POT-Creation-Date: 2025-01-14T15:51:01.421Z\n"
"PO-Revision-Date: 2018-10-25T09:02:35.143Z\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand Down Expand Up @@ -158,9 +158,6 @@ msgstr ""
msgid "Status: "
msgstr ""

msgid "Dashboard"
msgstr ""

msgid "Select duration"
msgstr ""

Expand All @@ -170,16 +167,97 @@ msgstr ""
msgid "All public health events"
msgstr ""

msgid "Alerts 7-1-7 performance"
msgid "7-1-7 performance"
msgstr ""

msgid "events"
msgstr ""

msgid "7-1-7 performance"
msgid "Performance overview"
msgstr ""

msgid "Performance overview"
msgid "Dashboard"
msgstr ""

msgid "Alerts"
msgstr ""

msgid "National"
msgstr ""

msgid "Disease - Hazard type"
msgstr ""

msgid "Province"
msgstr ""

msgid "Location"
msgstr ""

msgid "Organisation unit"
msgstr ""

msgid "Organisation unit type"
msgstr ""

msgid "Cases"
msgstr ""

msgid "Deaths"
msgstr ""

msgid "Manager"
msgstr ""

msgid "Detect 7d"
msgstr ""

msgid "Notify 1d"
msgstr ""

msgid "Respond 7d"
msgstr ""

msgid "Incident Status"
msgstr ""

msgid "Event"
msgstr ""

msgid "ERA1"
msgstr ""

msgid "ERA2"
msgstr ""

msgid "ERA3"
msgstr ""

msgid "ERA4"
msgstr ""

msgid "ERA5"
msgstr ""

msgid "ERA6"
msgstr ""

msgid "ERA7"
msgstr ""

msgid "Alert"
msgstr ""

msgid "Closed"
msgstr ""

msgid "Discarded"
msgstr ""

msgid "Respond"
msgstr ""

msgid "Watch"
msgstr ""

msgid "Event Tracker"
Expand Down
7 changes: 5 additions & 2 deletions src/CompositionRoot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import { MapConfigTestRepository } from "./data/repositories/test/MapConfigTestR
import { GetMapConfigUseCase } from "./domain/usecases/GetMapConfigUseCase";
import { GetProvincesOrgUnits } from "./domain/usecases/GetProvincesOrgUnits";
import { PerformanceOverviewRepository } from "./domain/repositories/PerformanceOverviewRepository";
import { GetAllPerformanceOverviewMetricsUseCase } from "./domain/usecases/GetAllPerformanceOverviewMetricsUseCase";
import { GetAllNationalPerformanceOverviewMetricsUseCase } from "./domain/usecases/GetAllNationalPerformanceOverviewMetricsUseCase";
import { PerformanceOverviewD2Repository } from "./data/repositories/PerformanceOverviewD2Repository";
import { PerformanceOverviewTestRepository } from "./data/repositories/test/PerformanceOverviewTestRepository";
import { AlertSyncDataStoreRepository } from "./data/repositories/AlertSyncDataStoreRepository";
Expand Down Expand Up @@ -73,6 +73,7 @@ import { CasesFileTestRepository } from "./data/repositories/test/CasesFileTestR
import { UserGroupD2Repository } from "./data/repositories/UserGroupD2Repository";
import { UserGroupRepository } from "./domain/repositories/UserGroupRepository";
import { UserGroupTestRepository } from "./data/repositories/test/UserGroupTestRepository";
import { GetAllAlertsPerformanceOverviewMetricsUseCase } from "./domain/usecases/GetAllAlertsPerformanceOverviewMetricsUseCase";

export type CompositionRoot = ReturnType<typeof getCompositionRoot>;

Expand Down Expand Up @@ -128,7 +129,9 @@ function getCompositionRoot(repositories: Repositories) {
new DeleteIncidentManagementTeamMemberRolesUseCase(repositories),
},
performanceOverview: {
getPerformanceOverviewMetrics: new GetAllPerformanceOverviewMetricsUseCase(
getNationalPerformanceOverviewMetrics:
new GetAllNationalPerformanceOverviewMetricsUseCase(repositories),
getAlertsPerformanceOverviewMetrics: new GetAllAlertsPerformanceOverviewMetricsUseCase(
repositories
),
getTotalCardCounts: new GetTotalCardCountsUseCase(repositories),
Expand Down
7 changes: 1 addition & 6 deletions src/data/repositories/OrgUnitD2Repository.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
import { D2Api, MetadataPick } from "../../types/d2-api";
import { OrgUnit, OrgUnitLevelType } from "../../domain/entities/OrgUnit";
import { OrgUnit, orgUnitLevelTypeByLevelNumber } from "../../domain/entities/OrgUnit";
import { Id } from "../../domain/entities/Ref";
import { OrgUnitRepository } from "../../domain/repositories/OrgUnitRepository";
import { apiToFuture, FutureData } from "../api-futures";

const orgUnitLevelTypeByLevelNumber: Record<number, OrgUnitLevelType> = {
1: "National",
2: "Province",
3: "District",
};
export class OrgUnitD2Repository implements OrgUnitRepository {
constructor(private api: D2Api) {}

Expand Down
Loading

0 comments on commit 516de87

Please sign in to comment.