SORMAS-Foundation / SORMAS-Project

SORMAS (Surveillance, Outbreak Response Management and Analysis System) is an early warning and management system to fight the spread of infectious diseases.
https://sormas.org
GNU General Public License v3.0
293 stars 143 forks source link

Collapsible pathogen test forms when editing a sample while processing lab messages [3] #7378

Closed FredrikSchaefer closed 1 year ago

FredrikSchaefer commented 2 years ago

Situation Description

When processing lab messages, users sometimes get to editing a sample. The sample edit component shown in such situations displays the existing and the newly added pathogen tests derived from the lab message's test reports below a sample edit form.

The composition of forms below each other can become very long, and displays a lot of fields. This makes working with it quite difficult for the user, as a lot of scrolling up and down is required and it is hard to find relevant fields.

Feature Description

Additional Information

Collapsed pathogen tests

Collapsed pathogen tests new entry

kwa20 commented 2 years ago

@FredrikSchaeferVitagroup I updated the original description but didn't change anything that you had already entered. I hope thats fine.

leventegal-she commented 2 years ago

A similar feature is implemented in PhysiciansReportCaseImmunizationsComponent.java

FredrikSchaefer commented 2 years ago

@kwa20 I'm having a question regarding the CANCEL and DONE buttons. When initialializing the sample edit form, all changed and newly added pathogen tests shall be expanded. Does this mean they shall all have those buttons? Does the user need to click one of those buttons for each of those pathogen tests? What shall happen when the user clicks the SAVE button with one or several pathogen tests still expanded?

kwa20 commented 2 years ago

@FredrikSchaeferVitagroup Yes exactly, the buttons should be displayed per expanded pathogen test. The user should be able to click one of these buttons for each test but if the user clicks SAVE, we can simply save all of the data regardless whether they where expanded or not and proceed.

abrudanancuta commented 1 year ago

Validated on local env with the version: 1.77.0-SNAPSHOT (77114f6)