Skip to content

Commit

Permalink
Merge pull request #25 from EyeSeeTea/feature/incident-management-tea…
Browse files Browse the repository at this point in the history
…m-builder

Create Team Builder Program Stage as a Form
  • Loading branch information
bhavananarayanan authored Oct 15, 2024
2 parents 6a19d64 + 4f75206 commit ab15fe6
Show file tree
Hide file tree
Showing 53 changed files with 2,552 additions and 100 deletions.
27 changes: 24 additions & 3 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: 2024-10-06T18:13:02.378Z\n"
"PO-Revision-Date: 2024-10-06T18:13:02.378Z\n"
"POT-Creation-Date: 2024-10-09T10:56:24.909Z\n"
"PO-Revision-Date: 2024-10-09T10:56:24.909Z\n"

msgid "Low"
msgstr ""
Expand Down Expand Up @@ -90,6 +90,12 @@ msgstr ""
msgid "Notes"
msgstr ""

msgid "Edit Profile"
msgstr ""

msgid "Currently assigned:"
msgstr ""

msgid "Create Event"
msgstr ""

Expand Down Expand Up @@ -165,7 +171,7 @@ msgstr ""
msgid "Add another"
msgstr ""

msgid "Create Event form cannot be loaded"
msgid "Form cannot be loaded"
msgstr ""

msgid "Disease Outbreak saved successfully"
Expand All @@ -180,6 +186,9 @@ msgstr ""
msgid "Risk Assessment Questionnaire saved successfully"
msgstr ""

msgid "Incident Management Team Member saved successfully"
msgstr ""

msgid "Incident Action Plan"
msgstr ""

Expand All @@ -189,5 +198,17 @@ msgstr ""
msgid "Incident Management Team Builder"
msgstr ""

msgid "Edit Role"
msgstr ""

msgid "Assign Role"
msgstr ""

msgid "Delete Role"
msgstr ""

msgid "Delete team role"
msgstr ""

msgid "Resources"
msgstr ""
25 changes: 23 additions & 2 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: 2024-10-06T18:13:02.378Z\n"
"POT-Creation-Date: 2024-10-09T10:56:24.909Z\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 @@ -89,6 +89,12 @@ msgstr ""
msgid "Notes"
msgstr ""

msgid "Edit Profile"
msgstr ""

msgid "Currently assigned:"
msgstr ""

msgid "Create Event"
msgstr ""

Expand Down Expand Up @@ -164,7 +170,7 @@ msgstr ""
msgid "Add another"
msgstr ""

msgid "Create Event form cannot be loaded"
msgid "Form cannot be loaded"
msgstr ""

msgid "Disease Outbreak saved successfully"
Expand All @@ -179,6 +185,9 @@ msgstr ""
msgid "Risk Assessment Questionnaire saved successfully"
msgstr ""

msgid "Incident Management Team Member saved successfully"
msgstr ""

msgid "Incident Action Plan"
msgstr ""

Expand All @@ -188,6 +197,18 @@ msgstr ""
msgid "Incident Management Team Builder"
msgstr ""

msgid "Edit Role"
msgstr ""

msgid "Assign Role"
msgstr ""

msgid "Delete Role"
msgstr ""

msgid "Delete team role"
msgstr ""

msgid "Resources"
msgstr ""

Expand Down
24 changes: 20 additions & 4 deletions src/CompositionRoot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ import { AlertSyncDataStoreTestRepository } from "./data/repositories/test/Alert
import { AlertSyncRepository } from "./domain/repositories/AlertSyncRepository";
import { DataStoreClient } from "./data/DataStoreClient";
import { GetTotalCardCountsUseCase } from "./domain/usecases/GetTotalCardCountsUseCase";
import { RoleRepository } from "./domain/repositories/RoleRepository";
import { RoleD2Repository } from "./data/repositories/RoleD2Repository";
import { RoleTestRepository } from "./data/repositories/test/RoleTestRepository";
import { IncidentManagementTeamTestRepository } from "./data/repositories/test/IncidentManagementTeamTestRepository";
import { IncidentManagementTeamD2Repository } from "./data/repositories/IncidentManagementTeamD2Repository";
import { IncidentManagementTeamRepository } from "./domain/repositories/IncidentManagementTeamRepository";
import { GetIncidentManagementTeamByIdUseCase } from "./domain/usecases/GetIncidentManagementTeamByIdUseCase";
import { DeleteIncidentManagementTeamMemberRoleUseCase } from "./domain/usecases/DeleteIncidentManagementTeamMemberRoleUseCase";
import { ChartConfigRepository } from "./domain/repositories/ChartConfigRepository";
import { GetChartConfigByTypeUseCase } from "./domain/usecases/GetChartConfigByTypeUseCase";
import { ChartConfigTestRepository } from "./data/repositories/test/ChartConfigTestRepository";
Expand All @@ -65,17 +73,16 @@ type Repositories = {
riskAssessmentRepository: RiskAssessmentRepository;
mapConfigRepository: MapConfigRepository;
performanceOverviewRepository: PerformanceOverviewRepository;
roleRepository: RoleRepository;
incidentManagementTeamRepository: IncidentManagementTeamRepository;
chartConfigRepository: ChartConfigRepository;
systemRepository: SystemRepository;
};

function getCompositionRoot(repositories: Repositories) {
return {
getWithOptions: new GetEntityWithOptionsUseCase(repositories),
save: new SaveEntityUseCase(
repositories.diseaseOutbreakEventRepository,
repositories.riskAssessmentRepository
),
save: new SaveEntityUseCase(repositories),
users: {
getCurrent: new GetCurrentUserUseCase(repositories.usersRepository),
},
Expand All @@ -88,6 +95,11 @@ function getCompositionRoot(repositories: Repositories) {
repositories.optionsRepository
),
},
incidentManagementTeam: {
get: new GetIncidentManagementTeamByIdUseCase(repositories),
deleteIncidentManagementTeamMemberRole:
new DeleteIncidentManagementTeamMemberRoleUseCase(repositories),
},
performanceOverview: {
getPerformanceOverviewMetrics: new GetAllPerformanceOverviewMetricsUseCase(
repositories
Expand Down Expand Up @@ -125,6 +137,8 @@ export function getWebappCompositionRoot(api: D2Api) {
riskAssessmentRepository: new RiskAssessmentD2Repository(api),
mapConfigRepository: new MapConfigD2Repository(api),
performanceOverviewRepository: new PerformanceOverviewD2Repository(api, dataStoreClient),
roleRepository: new RoleD2Repository(api),
incidentManagementTeamRepository: new IncidentManagementTeamD2Repository(api),
chartConfigRepository: new ChartConfigD2Repository(dataStoreClient),
systemRepository: new SystemD2Repository(api),
};
Expand All @@ -144,6 +158,8 @@ export function getTestCompositionRoot() {
riskAssessmentRepository: new RiskAssessmentTestRepository(),
mapConfigRepository: new MapConfigTestRepository(),
performanceOverviewRepository: new PerformanceOverviewTestRepository(),
roleRepository: new RoleTestRepository(),
incidentManagementTeamRepository: new IncidentManagementTeamTestRepository(),
chartConfigRepository: new ChartConfigTestRepository(),
systemRepository: new SystemTestRepository(),
};
Expand Down
Loading

0 comments on commit ab15fe6

Please sign in to comment.