Skip to content

Move FormBoolean back to FormElement field in workflow run form #19938

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

Merged

Conversation

ahmedhamidawan
Copy link
Member

@ahmedhamidawan ahmedhamidawan commented Apr 1, 2025

As opposed to on the step header where we moved it to in 47eb5e8.

It could be confusing for the user to figure out that this is in fact a workflow parameter value like the other string, integer etc. values if the boolean toggle is in the header.

Before ◀️
image
Option After ➡️
1 image
2 (current) image

Change Yes/No to True/False?

firefox_nCAT5avy8s

How to test the changes?

(Select all options that apply)

  • I've included appropriate automated tests.
  • This is a refactoring of components with existing test coverage.
  • Instructions for manual testing are as follows:
    1. [add testing steps and prerequisites here if you didn't write automated tests covering all your changes]

License

  • I agree to license these and all my past contributions to the core galaxy codebase under the MIT license.

@dannon
Copy link
Member

dannon commented Apr 1, 2025

+1, this was identified as confusing because it's an inconsistent UI pattern -- all values otherwise are inside the container and this felt like it was supposed to be a control structure or some step meta-option when put in the header. I prefer option 2 as shown in the PR.

@ahmedhamidawan ahmedhamidawan force-pushed the move_form_boolean_back_to_field branch from 01ccc09 to 03205a1 Compare April 1, 2025 18:24
Note: This is unrelated to the other changes in this PR.
@guerler
Copy link
Contributor

guerler commented Apr 5, 2025

We typically place help text at the bottom, not the top, as far as I know. If we were to change this, we’d need to update the tool forms as well for consistency—but personally, I don’t think this change is necessary.

image

@ahmedhamidawan
Copy link
Member Author

ahmedhamidawan commented Apr 8, 2025

What about this? if it has help text, then no (Yes/No) label, if no help text, then it has the label?

firefox_iRrMCp2Wjx

BTW, made it so that the tool form remains the same as before. In any case, the appearance of the FormElements are different in props.workflowRun version, because we sort of show the progress of how much the workflow form has been populated etc (with the card styling and borders)

@mvdbeek
Copy link
Member

mvdbeek commented Apr 8, 2025

That looks great!

@dannon dannon merged commit 5aae864 into galaxyproject:dev Apr 9, 2025
28 of 30 checks passed
@martenson
Copy link
Member

if it has help text, then no (Yes/No) label, if no help text, then it has the label?

removing he help text and relying completely on the shades of color is making this much less accessible

@mvdbeek
Copy link
Member

mvdbeek commented Apr 9, 2025

I don't think that's true, we are not removing help text, we always display it. We just don't display the redundant Yes/No toggle label when the option has help text.
The toggle itself is accessible, here's what VoiceOver sees. It also says whether the toggle is ticked or unticked.
Screenshot 2025-04-09 at 16 24 14

@dannon
Copy link
Member

dannon commented Apr 9, 2025

@mvdbeek Out of curiosity, what does it say when you operate it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants