ISISComputingGroup / IBEX

Top level repository for IBEX stories
5 stars 2 forks source link

Reflectometry: Confirm redefining positions #7070

Closed ThomasLohnert closed 1 year ago

ThomasLohnert commented 2 years ago

As a reflectometry scientist, I would like some adequate controls to be in place to protect me from errors on redefining positions. At the moment, as soon as you enter a new value on the redefine dialog and press "enter", the motor position is redefined. This could lead to user error, especially as it is different to the rest of the reflectometry server, where you still have to push the "move" button to actually set a new value on an axis, which gives users of the OPI an extra opportunity to verify the new value and protect against typos, typing in the wrong field etc. Recovering from such an error is slightly awkward as you either have to remember the previous value, or go look it up in the archive.

Acceptance Criteria

There is a validation step after entering a new position to which you want to redefine an axis. e.g.:

or

How to Test

verbose instructions for reviewer to test changes (Add before making a PR)

ThomasLohnert commented 1 year ago

Looks good overall! I have got a couple of suggestions for making the interactions a bit more robust:

Some other minor comments on individual PRs