Disable the bulk editor dropdown, textbox and submit button until the previous request has finished
Shorten the debounce time on updating the samples to make the form respond quicker
Add (green only) protein acronym to the fields that can be bulk edited
Sort the fields alphabetically by name rather than "field name"
Correct the message displayed when samples are updated successfully
Add an error notification if samples are not updated
To test:
Make a new puck with some samples in, save it, and then view it
Check the bulk editor appears with the dropdown in alphabetical order (ie Barcode before Cell A)
Select Comment and type a new comment, check it appears promptly next to each sample
Open the dev tools, click the Update Samples button a few times, check only one PUT request is sent
Select Protein Acronym, choose a new acronym, click Update Samples, then refresh the page to check the change has persisted
Check the success message appears and says "Sample(s) have been successfully updated"
Choose "Screening Method", then select "Better Than", but dont choose a minimum resolution. Click Update Samples, and check a notification appears at the top to say there was an error, and validation messages appear at the bottom.
Go to proposal mx31800, find a container to bulk edit (or make a new one), choose Protein Acronym, check that Diazocine does not appear in the list as it is a YELLOW sample
Go to a container that has had data collected on it, check the bulk editor is hidden
JIRA ticket: LIMS-700 JIRA ticket: LIMS-691 Github issue: https://github.com/DiamondLightSource/SynchWeb/issues/552
Summary:
Improve the behaviour of the bulk editor.
Changes:
To test: