generated from bcgov/quickstart-openshift
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Mike Sears <[email protected]> Co-authored-by: afwilcox <[email protected]>
- Loading branch information
1 parent
7ce54d7
commit d15d595
Showing
26 changed files
with
982 additions
and
494 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
backend/src/types/models/case-files/base-case-file-input.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { UUID } from "crypto"; | ||
|
||
export interface BaseCaseFileInput { | ||
caseIdentifier: UUID; | ||
leadIdentifier: string; | ||
|
||
agencyCode: string; | ||
caseCode: string; | ||
|
||
actor: UUID; | ||
|
||
createUserId: string; | ||
updateUserId: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export interface CaseAction { | ||
actor: string; | ||
date: Date; | ||
actionCode: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
backend/src/types/models/case-files/supplemental-notes/create-supplemental-notes-input.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { BaseCaseFileInput } from "../base-case-file-input"; | ||
|
||
export interface CreateSupplementalNotesInput extends BaseCaseFileInput { | ||
note: string | ||
} |
6 changes: 6 additions & 0 deletions
6
backend/src/types/models/case-files/supplemental-notes/note.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { CaseAction } from "../case-action"; | ||
|
||
export interface Note { | ||
note: string; | ||
action: CaseAction; | ||
} |
5 changes: 5 additions & 0 deletions
5
backend/src/types/models/case-files/supplemental-notes/update-supplemental-note-input.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { BaseCaseFileInput } from "../base-case-file-input"; | ||
|
||
export interface UpdateSupplementalNotesInput extends BaseCaseFileInput { | ||
note: string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 27 additions & 18 deletions
45
frontend/src/app/components/containers/complaints/outcomes/hwcr-outcome-report.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,35 @@ | ||
import { FC } from "react"; | ||
import { FC, useEffect } from "react"; | ||
import { HWCRComplaintAssessment } from "./hwcr-complaint-assessment"; | ||
import { HWCREquipment } from "./hwcr-equipment"; | ||
import { HWCROutcomeByAnimal } from "./hwcr-outcome-by-animal"; | ||
import { HWCRFileReview } from "./hwcr-file-review"; | ||
import { HWCRSupplementalNotes } from "./hwcr-supplemental-notes"; | ||
import { HWCRFileAttachments } from "./hwcr-file-attachments"; | ||
import { HWCRComplaintPrevention } from "./hwcr-prevention-education"; | ||
import { useParams } from "react-router-dom"; | ||
import { ComplaintParams } from "../details/complaint-details-edit"; | ||
import { useAppDispatch } from "../../../../hooks/hooks"; | ||
import { getCaseFile } from "../../../../store/reducers/cases"; | ||
|
||
export const HWCROutcomeReport: FC = () => { | ||
return ( | ||
<div className="comp-hwcr-outcome-report"> | ||
<hr className="blue-seperator"/> | ||
<div className="comp-sub-header"> | ||
Outcome report | ||
</div> | ||
<HWCRComplaintAssessment/> | ||
<HWCRComplaintPrevention/> | ||
<HWCREquipment/> | ||
<HWCROutcomeByAnimal/> | ||
<HWCRSupplementalNotes/> | ||
<HWCRFileAttachments /> | ||
<HWCRFileReview/> | ||
</div> | ||
); | ||
}; | ||
export const HWCROutcomeReport: FC = () => { | ||
const { id = "" } = useParams<ComplaintParams>(); | ||
const dispatch = useAppDispatch(); | ||
|
||
useEffect(() => { | ||
dispatch(getCaseFile(id)) | ||
}, [id]); | ||
|
||
return ( | ||
<div className="comp-hwcr-outcome-report"> | ||
<hr className="blue-seperator" /> | ||
<div className="comp-sub-header">Outcome report</div> | ||
<HWCRComplaintAssessment /> | ||
<HWCRComplaintPrevention /> | ||
<HWCREquipment /> | ||
<HWCROutcomeByAnimal /> | ||
<HWCRSupplementalNotes /> | ||
<HWCRFileAttachments /> | ||
<HWCRFileReview /> | ||
</div> | ||
); | ||
}; |
Oops, something went wrong.