Fixes #39505 - Update OrderableSelect to PF5#11018
Merged
Merged
Conversation
tlabaj
marked this pull request as ready for review
July 8, 2026 12:50
Lukshio
requested changes
Jul 13, 2026
Lukshio
left a comment
Contributor
There was a problem hiding this comment.
Hi, I went thru the PR and have some notes. Also we have something similar in our plugin, that leads me to the idea of creating reusable component. So could you please create new component from this PR?
Check also this PR so you can better design the new component. theforeman/foreman_ansible#796
Please also take a look at our PF guide.
Contributor
There was a problem hiding this comment.
Do not include locale changes, they are updated in a bulk in a separate PR
Lukshio
requested changes
Jul 16, 2026
Contributor
There was a problem hiding this comment.
Please add test for reordering and onDrop handling
Contributor
|
@tlabaj please squash and rebase |
Lukshio
approved these changes
Jul 22, 2026
Contributor
|
packit + manually tested. Test failures unrelated |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fixes #39505 - Update OrderableSelect to PF5
Summary
Replaces the legacy PF3
OrderableSelect(typeahead + react-dnd tokens) with a PF5 composable dual list for ordered multi-value form fields.The only current consumer is VMware VM Boot order (
orderable_select_fon the new VM form). The form contract is unchanged: multiple hidden inputs with the samename, values submitted in boot order.Intentional UX change (PF3 → PF5)
DragDropThis is an intentional structural change, not a 1:1 PF component swap. A dual list matches existing Foreman/Satellite patterns and was preferred over keeping the typeahead token UI. User-visible outcome is the same: users can select boot devices and control their order.
Implementation
OrderableDualListSelector— reusable PF5 dual list incommon/(controlled API, drag-and-drop on chosen pane, tooltips, dedup on move). Intended for reuse by plugins (e.g. foreman_ansible).OrderableDualList— thin form wrapper (initial state, hidden inputs,onChange).orderable_select_fcontinues to registerorderableSelectinInputFactory; no parallel helper added.OrderableSelect/helpers.jskept and deprecated for plugin compatibility (orderableHOC still used by foreman_ansible/katello until they migrate).