-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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
Use standard dropdowns for autocomplete #9453
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM worked in testing on a freestyle project and on the design library
Co-authored-by: Tim Jacomb <[email protected]>
Looks good to me - any thoughts on making the dropdown full width? |
I don't have a preference. @timja @NotMyFault WDYT? |
is that after or before? |
The last screenshot is potential after (not implemented), screenshot of the current implementation is in the PR description. |
Current one is cut-off though so can't really see the impact of the change unless I'm misunderstanding |
Ah I see, I think full width is better but no strong preference |
Full width pushed, this is now ready from my side, thanks for the feedback. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This unfavorably interacts with browser built-in autocompletion based on form history.
new.mov
old.mov
Additionally, it seems error-prone and bad UX for the popup to close when you click inside the form field, rather than staying open.
@daniel-beck thanks for pointing those out, both fixed in the last commit |
Co-authored-by: Tim Jacomb <[email protected]>
I created JENKINS-73562 to track the removal of YUI from autocomplete |
@daniel-beck will you have time to check if my last changes address the issues you mentioned? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The current state addresses both previous issues I've identified.
@daniel-beck does this still need a security review? |
@timja Thanks, forgot. |
/label ready-for-merge This PR is now ready for merge, after ~24 hours, we will merge it if there's no negative feedback. Thanks! |
Further reduces usage of YUI by switching autocomplete fields to the dropdown component.
Screenshots
BeforeAfter
Testing done
Manual testing with the job trigger for freestyle jobs (see screenshot)
No automated tests -- this could be only covered by UI tests and I'm not sure those would be worth adding/maintaining.
Proposed changelog entries
Proposed upgrade guidelines
N/A
Submitter checklist
Desired reviewers
@mention
Before the changes are marked as
ready-for-merge
:Maintainer checklist