-
Notifications
You must be signed in to change notification settings - Fork 93
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
2129 pilx multiselection , click / double-click approach #2133
Conversation
for more information, see https://pre-commit.ci
Can you ping Bjorn to make him validate the feature ? Apparently, he has no GH account. |
I tested it and it doesn't feel right to me. The interaction is not really discoverable and not adapted to the usecase in my opinion. I have a few suggestions to improve it: First, I would have kept the single-click interaction for displaying one curve at once to keep things simple. Then, If we think about the usecase: to take the decision that we want to keep a particular pattern displayed, we must first see it. So I think the interaction could be: first a click on the map to display the curve and then a click on the curve to select it to keep it displayed (perhaps via the opening of a contextual menu) ? For this, the silx capability of selecting curves in the curve plot should be re-enabled (it is disabled for now). Finally, it would helpful to also have a button in the toolbar to clear the displayed curves. |
…93/pyFAI into 2129_pilx_multiselection
for more information, see https://pre-commit.ci
My thought was to have the context menu on the curve plot but your solution does not look too shabby either! I find it much better 🙂 ! Great idea to have integrated the background in the context menu as well. Unfortunately, I could not test it locally (the context menu entries do nothing when clicked on and I have an error I notably wanted to test some edge cases:
Anyway, I reckon you can carry on with this implementation and ask for a review once you are happy with your solution. |
sorry, I made a bloody mess with the commits, could you try now? |
LGTM ... I just got an exception for:
This pattern exists at several places in the code and is probably not related to your PR it is never nice to have such exception raising ... |
I made a new issue on this ... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Sorry for being bothersome but there is a still some UX adjustements to be made in my opinion. From what I got from the beamline, the main use case is to keep one pattern displayed and to compare it with several ones from the map. With the current PR, when I add a curve to the graph via Add curve to the graph, it disappears when I click on another map location. So the only way to achieve the usecase mentionned above is to right-click and select the context menu entry on each and every curve I want to compare. Which I find not great in terms of UX. I think the context menu entry should instead be Keep curve displayed. The curve then stays displayed unless the user explicitly asks to clear it. You will have to tackle this in another PR since this is merged now. |
Yes, the issue is still open and I'll create a new PR |
Now, single click plots multi-selection by default.
Double-click plots only one plot (substitutes all the time)
Thoughts about this approach? Single click should be one-plot and double-click multiselection?
Do not use double click at all?