Skip to content

Commit

Permalink
Merge pull request #26 from EyeSeeTea/feature/incident-action-plan
Browse files Browse the repository at this point in the history
[feature] Incident action forms
  • Loading branch information
bhavananarayanan authored Nov 6, 2024
2 parents ab15fe6 + ad88b67 commit 7a42023
Show file tree
Hide file tree
Showing 38 changed files with 2,262 additions and 34 deletions.
23 changes: 19 additions & 4 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-09T10:56:24.909Z\n"
"PO-Revision-Date: 2024-10-09T10:56:24.909Z\n"
"POT-Creation-Date: 2024-10-16T14:36:22.158Z\n"
"PO-Revision-Date: 2024-10-16T14:36:22.158Z\n"

msgid "Low"
msgstr ""
Expand Down Expand Up @@ -84,6 +84,9 @@ msgstr ""
msgid "Cancel"
msgstr ""

msgid "Edit Action Plan"
msgstr ""

msgid "Edit Details"
msgstr ""

Expand Down Expand Up @@ -186,13 +189,25 @@ msgstr ""
msgid "Risk Assessment Questionnaire saved successfully"
msgstr ""

msgid "Incident Action Plan saved successfully"
msgstr ""

msgid "Incident Response Actions saved successfully"
msgstr ""

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

msgid "Incident Action Plan"
msgid "Create an incident action plan"
msgstr ""

msgid "No plan has been created for this incident"
msgstr ""

msgid "Cholera in NW Province, June 2023"
msgid "Create IAP"
msgstr ""

msgid "Incident Action Plan"
msgstr ""

msgid "Incident Management Team Builder"
Expand Down
23 changes: 22 additions & 1 deletion 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-09T10:56:24.909Z\n"
"POT-Creation-Date: 2024-10-15T13:56:24.806Z\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 @@ -83,6 +83,9 @@ msgstr ""
msgid "Cancel"
msgstr ""

msgid "Edit Action Plan"
msgstr ""

msgid "Edit Details"
msgstr ""

Expand Down Expand Up @@ -185,12 +188,30 @@ msgstr ""
msgid "Risk Assessment Questionnaire saved successfully"
msgstr ""

msgid "Incident Action Plan saved successfully"
msgstr ""

msgid "Incident Response Actions saved successfully"
msgstr ""

msgid "Create an incident action plan"
msgstr ""

msgid "No plan has been created for this incident"
msgstr ""

msgid "Create IAP"
msgstr ""

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

msgid "Incident Action Plan"
msgstr ""

msgid "Incident Management Team Builder"
msgstr ""

msgid "Cholera in NW Province, June 2023"
msgstr ""

Expand Down
12 changes: 12 additions & 0 deletions src/CompositionRoot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ import { SaveEntityUseCase } from "./domain/usecases/SaveEntityUseCase";
import { RiskAssessmentRepository } from "./domain/repositories/RiskAssessmentRepository";
import { RiskAssessmentD2Repository } from "./data/repositories/RiskAssessmentD2Repository";
import { RiskAssessmentTestRepository } from "./data/repositories/test/RiskAssessmentTestRepository";
import { IncidentActionRepository } from "./domain/repositories/IncidentActionRepository";
import { IncidentActionD2Repository } from "./data/repositories/IncidentActionD2Repository";
import { IncidentActionTestRepository } from "./data/repositories/test/IncidentActionTestRepository";
import { MapConfigRepository } from "./domain/repositories/MapConfigRepository";
import { MapConfigD2Repository } from "./data/repositories/MapConfigD2Repository";
import { MapConfigTestRepository } from "./data/repositories/test/MapConfigTestRepository";
Expand All @@ -42,6 +45,8 @@ 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 { GetIncidentActionByIdUseCase } from "./domain/usecases/GetIncidentActionByIdUseCase";
import { UpdateIncidentResponseActionUseCase } from "./domain/usecases/UpdateIncidentResponseActionUseCase";
import { RoleRepository } from "./domain/repositories/RoleRepository";
import { RoleD2Repository } from "./data/repositories/RoleD2Repository";
import { RoleTestRepository } from "./data/repositories/test/RoleTestRepository";
Expand Down Expand Up @@ -71,6 +76,7 @@ type Repositories = {
teamMemberRepository: TeamMemberRepository;
orgUnitRepository: OrgUnitRepository;
riskAssessmentRepository: RiskAssessmentRepository;
incidentActionRepository: IncidentActionRepository;
mapConfigRepository: MapConfigRepository;
performanceOverviewRepository: PerformanceOverviewRepository;
roleRepository: RoleRepository;
Expand All @@ -95,6 +101,10 @@ function getCompositionRoot(repositories: Repositories) {
repositories.optionsRepository
),
},
incidentActionPlan: {
get: new GetIncidentActionByIdUseCase(repositories),
updateResponseAction: new UpdateIncidentResponseActionUseCase(repositories),
},
incidentManagementTeam: {
get: new GetIncidentManagementTeamByIdUseCase(repositories),
deleteIncidentManagementTeamMemberRole:
Expand Down Expand Up @@ -135,6 +145,7 @@ export function getWebappCompositionRoot(api: D2Api) {
teamMemberRepository: new TeamMemberD2Repository(api),
orgUnitRepository: new OrgUnitD2Repository(api),
riskAssessmentRepository: new RiskAssessmentD2Repository(api),
incidentActionRepository: new IncidentActionD2Repository(api),
mapConfigRepository: new MapConfigD2Repository(api),
performanceOverviewRepository: new PerformanceOverviewD2Repository(api, dataStoreClient),
roleRepository: new RoleD2Repository(api),
Expand All @@ -156,6 +167,7 @@ export function getTestCompositionRoot() {
teamMemberRepository: new TeamMemberTestRepository(),
orgUnitRepository: new OrgUnitTestRepository(),
riskAssessmentRepository: new RiskAssessmentTestRepository(),
incidentActionRepository: new IncidentActionTestRepository(),
mapConfigRepository: new MapConfigTestRepository(),
performanceOverviewRepository: new PerformanceOverviewTestRepository(),
roleRepository: new RoleTestRepository(),
Expand Down
Loading

0 comments on commit 7a42023

Please sign in to comment.