Fixes #38853 - Change import of AutocompleteInput#91
Fixes #38853 - Change import of AutocompleteInput#91adamruzicka merged 1 commit intotheforeman:masterfrom
Conversation
|
Tests are failing because required component is not merged yet |
| name="ssl_ca_certs" | ||
| value={inputValues.ssl_ca_certs} | ||
| type="textarea" | ||
| label={__('X509 Certification Authorities')} |
There was a problem hiding this comment.
Typo: Certificate, not Certification
There was a problem hiding this comment.
Thanks! I didn't notice, I just copied the old values :)
Fixed in original PR: #89
3697706 to
fa6ecbe
Compare
|
Checking with stream + packit with this PR and the Foreman one. I think the label spacing could confuse people to think that the labels belong to the fields above not below if you catch my drift. Also the spacing seems to be inconsistent, here Target URL has more space above it than other labels I'm confused by the behavior of the validation icons for all the inputs, you can get red when searching non existent on first try: Also not sure if the icon makes sense for fields like name? Is there really any real-time validation going on? The icon also gets displayed for the HTTP method picker where you really can't make a wrong pick, can you? Well, maybe if typing some nonsense in, but then the icon is still green. Here I'd say a basic dropdown without search would do. I see there is an url validation in place, but again, the warning is not cleaned up when text is deleted So maybe we could get rid of these validation icons altogether in places where no real validation is in place, if that's configurable in the component. Or maybe we could add those validations if thats possible. On a more general note, if an item selection is mandatory and it is to be selected from a defined set of items it is imho a design flaw to allow users to leave the field empty or type nonsense to it -- no blaming you, I know this pattern existed in the old UI, but maybe this is an opportunity to make it less confusing. Searching through patternfy for best practices, I guess we could turn these fields into single select filters with search capability if there is a longer list of options, something like
taken from https://www.patternfly.org/patterns/filters/design-guidelines/#filter-types |
pondrejk
left a comment
There was a problem hiding this comment.
made some comments on UI, downstream test result tba
|
I have run |
fa6ecbe to
569d5e7
Compare
|
Hi, thank you for the review @pondrejk Spacing between inputs fixed by var(--pf-v5-c-form--GridGap)
|
|
thanks, I know packit was down, looking at the rpm build task it is queued for 2 days which is suspicious :) I'll try to rebuild with the comment but I suspect I might not have rights to do it |
|
/packit build |
|
Account pondrejk has no write access nor is author of PR! |
|
/packit build |
|
@Lukshio thanks for the updates, couple of points came to mind:
Interestingly, the patternfly typeahead you shared behaves the same, which is I think is a bug on their side. Though when I look at the pf5 version of that template, the behavior is correct there https://v5-archive.patternfly.org/components/menus/select/react-templates/typeahead/ -- so I think we should aim for this
Otherwise it looks nice, so I'll go on to adjust ds automation for this, nice work |
|
working on downstream tests, I wonder if we can create some unique ids for the fields, in latest version I see |
|
@pondrejk Sure, I will add the unique IDs, fix the validations, and add placeholders. I will make all the changes after approve from @adamruzicka in parent PR and then rebase it here. |
569d5e7 to
00da227
Compare
|
Hi @Lukshio thanks for the improved UI, I have no further comments about the looks, but I see some functional issues with the searchable dropdowns -- when I check the dropdown after selecting some value or the value is preselected (for example http method) I can only pick the selected option Sometimes (maybe on the first pass) I can see all options, but just clicking outside of the box reduces the list back to the selected one. So the only way to change value is by clearing the field and typing the new value, but even after clicking the new value in the list, the selection moves back to the original value. I got some surprising full page refreshes while working with the form, though I can't reproduce them regularly, not sure if it could be related to your changes, mentioning it just in case, maybe it'll sound familar Confirming the unique IDs are there, thank you for that |
|
Needs a rebase now |
00da227 to
17200ac
Compare
|
@adamruzicka rebased, but it needs to be merged after this one theforeman/foreman#10734 |
|
Now this is a reasonably sized PR :) Could you please bump required foreman version in engine.rb? |
17200ac to
696d880
Compare
Updated to 3.17 |
That's not enough, is it? If the foreman part was merged a couple of days ago into what will eventually be 3.18? |
That's good point, edited |
696d880 to
0e23e9f
Compare
|
Thank you @Lukshio ! |











Derived from: #89
Depends on: theforeman/foreman#10734