-
Notifications
You must be signed in to change notification settings - Fork 1
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
Improve Switchable Widget and handle intermediate parameters #74
Comments
I was thinking the "select parameters" section could just be one big multiple-select containing both parameters and intermediate parameters all together (all domain types in the workflow). I don't see the reason for keeping the distinction between intermediary and non-intermediary parameters. |
One problem with this solution is that it is totally non obvious to the user which parameters can be set. Parts of defining "THE" parameter of the workflow is to document which inputs are required or options. Saying "any of the intermediate results of the workflow is an optional input" does not serve this important purpose. |
Is your concern is that the user wont know what parameters to select in the big multiple-select list of parameters? |
Then I do not understand the suggestion. For example, above it says
Can you give an example of how this would work for, say, https://github.com/scipp/esssans/blob/1c407162a50f4e68b843899f55384f5c025e19e7/src/ess/sans/parameters.py#L99-L104? |
It's really not different from how it works currently. Here's the UX I'm imagining:
If the user wants to set an intermediate value, they open the parameters-multiple select and selects that value, then they re-generate the parameter form. Example - SANS direct beam
|
|
Ok, so we keep the |
I think @YooSunYoung point was that removing switchable widget would make it easier to style the parameter form. |
I was refering to |
No I don't have an opinion on that |
For clarity here are a couple of screenshots illustrating the idea: Ignoring the collapsed "Manually select parameters" accordion makes the interface the same as what we have today. |
Sure, but to reiterate my question from above: How do you populate the "manually select parameters" list? If we use We can chat in person today! |
The plan was to populate the manually selected parameters list by just grabbing all domain types in the task graph (upstream from the target outputs). But yeah using Unfortunately I'm WFH today, but we can huddle. |
Then please reread my original comment on why that is not a solution: #74 (comment). If you just grad "all domain types" you loose this self-documenting/self-explanatory part of the UI (and are left with something that is little better than just using Python to set parameters on a workflow). |
This is getting pretty confused so I think it's better we talk directly. As I see it this issue is not about how to populate the parameters list. It's about having a multiple -select instead of a checkbox next to each (selectable) parameter in the form. I was thinking we just to have one big list, but really, how to determine what parameters are selectable or not seems orthogonal to the question in the issue. |
Notes from discussion:
Example:
|
Current
Switchable
widget is a check box that shows the underlying widget when it's selected.@jokasimr suggested different way of handling parameter
switch
.Instead of setting
switchable
to all the parameters, we can treat all parametersswitchable
, and have a menu ofparameter
from the workflow, just like we select output.And if the
parameter
is selected, it should show the widget on the right side and the workflow-running widget should set the parameters.Here is the conceptual drawing how it can look like:
The text was updated successfully, but these errors were encountered: