question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Incidents: add the ability to document notes on a reported incident

See original GitHub issue

🚀 Feature Proposal

Add the ability to document notes onto a reported incident.

Motivation

During the incident’s lifespan, there will be need to add multiple notes relating to the incident.

Technical Details

Incident Model

Add an optional notes field which hold multiple notes objects

notes?: Note[]

Note Model

Add an optional givenBy field which will store the currently logged in user writing the note.

givenBy?: string

Incident View/Edit

On the incident view/edit form, at the bottom

  • Add a Notes sections In the notes section:
    • Add a “+ Add New Note” button which opens a popup to add a new note to the incident
    • Display a table of already existing notes, showing the following fields: date, givenBy, note, actions
    • The Actions column will have buttons to Edit or Delete the note

image

NOTE: See patient view’s add note popup for an example of how this should look/work.

image

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
blestabcommented, Jan 4, 2021

Makes sense.

The patient module also has a notes section. Would you like us to also make the notes section for the patient module use the same Notes Table UI? Currently the patient notes tab is a list without support for edit/delete.

Good idea. That would be great for UX consistency; We will log a separate issue for it.

1reaction
jackcmeyercommented, Dec 18, 2020

You can get the current user from the redux store, which currently has mock data inside of it. You can see an example of how to do that in the report incident functionality.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Are You Filing Incident Reports Properly? - NSO
Filling Out an Effective Incident Report​​ Include the full names of those involved and any witnesses, as well as any information you have...
Read more >
Incident Report | Free Risks & Hazards Forms - SafetyCulture
An incident report is a tool that documents any event that may or may not have caused injuries to a person or damage...
Read more >
Incident Report: What is it & How to Write it the Right Way!
An incident report is a document that formally records all data related to all workplace accidents, illnesses, injuries, damages, and even near misses....
Read more >
How To Document An Incident Efficiently and Effectively
Email is the best way to document an incident, so that you will have a record of your documentation. It is also best...
Read more >
How to Write an Effective Incident Report [Templates]
This ultimate guide (with templates) explains what an incident report is, the information to include in an incident report and how to format ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found