-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Feature/add notes to patients #1896
Feature/add notes to patients #1896
Conversation
Merged from HospitalRun/hospitalrun-frontend
Merge from HospitalRun/hospitalrun-frontend
Merged from HospitalRun/hospitalrun-frontend
Merge from Origin
This pull request is being automatically deployed with ZEIT Now (learn more). 🔍 Inspect: https://zeit.co/hospitalrun/hospitalrun-frontend/1mddvva9w |
onSave: (note: Note) => void | ||
} | ||
|
||
const NewNoteModal = (props: Props) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to add tests for this modal.
patient: Patient | ||
} | ||
|
||
const NoteTab = (props: Props) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to add tests for the notes tab:
- renders an add new button for someone with permissions
- doesn't render the button if no permissions
- renders a warning message if no notes
- renders a list of notes
- Clicking button displays modal
- Saving calls the update patient action
- On successful save, a toast appears
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @wwbarros. Thanks for your PR. Please, add more tests :)
closing in favor of #1961 |
Fixes #1771 .
Changes proposed in this pull request: