Add opinion delay, opinion banner, split technical recall checkboxes #237
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Adds two new features to the opinion and existing-read page to attempt to make it clearer when you've moved to a new case, and to prevent accidental normals. These will need further iteration and accessibility exploration, but we'd like to test them in UR.
Opinion banner
A 'toast' style banner shown briefly after an opinion is given. This is currently a bit clunky as I couldn't get req.flash working. Currently shown for 5s.
Delayed opinions
The ui for giving an opinion is disabled for a set period after a case is first loaded. This does not happen if returning to the page (eg editing an opinion). We might expect the real delay will want to be 15-30s - but this was too annoying whilst testing the prototype so I've gone with 5s for now.
Right left split for technical recalls
Splits the technical recall checkboxes in to a right left split like our other ui elements.
Reduced medical summary
Medical summary now only shows rows where we have data. If there's no data a placeholder message is shown instead.
