Replace the rules input or rules seeding component. #19329
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This uses the wizard introduced by David for workflow exports instead of adapting (and sort of torturing) the upload dialog paradigm that RulesInput.vue used previously. The old component was very compact but also very unintuitive and just hacked together as quickly as possible and never really revisited. The wizard provides more space to explain things and is probably the way we want to go but still needs some serious love from someone better at UI than me.
I need a component like this... but different for sample sheet seeding so I wanted to do a refresh and get something we're all more comfortable with ahead of that. If it seems overly decomposed - it is probably because I am reusing the components downstream in a similar wizard for seeding sample sheets with lists of URIs, etc..
In addition to just replacing the component, there are also some fixes to help, a new option to build a collection from an existing collection which just sends the user to the Apply Rules tool, allows dropping a file onto the paste data textbook, and I think better validation throughout the component.
The old component is just this single panel. I assume it is rather unintuitive.
The new wizard looks like this:
How to test the changes?
(Select all options that apply)
License