-
Notifications
You must be signed in to change notification settings - Fork 44
Hide the "Unknown" phase button. #1850
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hide the "Unknown" phase button. #1850
Conversation
The phase dropwdown also displays in what phase diffractometer is. If we remove |
If you want to remove unknown, you could do it in a specific diffractometer HO. |
addcf29
to
d143cff
Compare
@marcus-oscarsson, @beteva We don't want to get rid of the "Unknown" phase entirely (as we could using diffractometer HO config). |
Now that I see the recording, I'm wondering why that "Unknown" value even exists and ends up in the front-end. Seems more like a loading state to me. The value should not change to "Unknown", it should just go from "Transfer" directly to "BeamLocation" and the drop-down should have an orange background and be disabled while that change is happening in the back-end. |
I think its a great idea to remove "unknown" from the list of phase that the user can select, but we need to be able to display unknown or a value with the same meaning. Like in your video, very nice ! We can easily remove the "Unknown" phase from the phase list. I agree that this would make alot of sense in most cases. However sometimes for some strange reasons the MD phase is really unknown because the motors are in position that don't correspond to a known position. That position could also be called invalid or whatever but its been named unknown in the dawn of mxcube. So the unknown label signals something to the user in this sense we can not really remove it. |
Alright, so "Unknown" is a sort of error/invalid value, which is fine. But here it is used while moving from one valid value to another valid value. I feel like there should be a way to either:
|
Actually what we see at ESRF is exactly this. The phase menu turns to yellow when the phase changes and until it is done, shows the phase you've started from. |
Ok, so seems like this is cleared out now. Thanks alot for the PR. Ill merge it ASAP ! :) |
Indeed, the PR prevents "Unknown" from being a selectable option, which is good regardless 👍 |
d143cff
to
3a8be17
Compare
Currently in the phase selection UI element, there is "Unknown" option, which just does not do anything (the ChangeEvent is ignored). It seems preferable to just have "Unknown" appear only as the current value (when set from the hardware object), as it currently is, but not as an option in the select.
3a8be17
to
b27d00f
Compare
Currently in the phase selection UI element, there is "Unknown" option, which just does not do anything (the ChangeEvent is ignored). It seems preferable to just have "Unknown" appear only as the current value (when set from the hardware object), as it currently is, but not as an option in the select.