-
Notifications
You must be signed in to change notification settings - Fork 74
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
Overhaul ui-samples as the Jenkins Design Library #14
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.
- In HeteroList#getConfigFile() we attempt to load "stuff.xml" from the root directory but never make any promises to create the file if it doesn't exist, therefore it errors if it actually doesn't exist.
- Progress#factor() parses the input as int and likely never completes an operation while throwing a NumberFormatException if you enter a bigger number beyond the integer's max value.
Though, that are more logical concerns, the UI and its examples look really great 🎉
Do you mean if the root directory doesn't exist (not sure if that's possible)? We check if the file exists here: |
Looks like I had a faulty reference from the ui samples -> design lib transition somewhere xstream picked up https://gist.githubusercontent.com/NotMyFault/0c919f268cf84e95a6b8ee061083393a/raw/18c622887c48a0e69c68d11eaf04abd8ba780f31/gistfile1.txt |
Makes sense, can probably refactor it to not do manual XML File handling. |
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.
Looks fine to be shipped as (a first) overhaul, huge thanks to everyone contributing 🎉
<button class="jenkins-button jenkins-button--primary"> | ||
<l:icon src="symbol-add" /> | ||
Primary control | ||
</button> | ||
<button class="jenkins-button">Secondary</button> | ||
<button class="jenkins-button">Secondary</button> | ||
<t:help href="https://www.jenkins.io" /> |
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 spacing looks not good on the buttons
is that just the branch I'm using (jenkinsci/jenkins#6395)
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.
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.
Fix for that should be in with the help button component merge 👍
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.
I think my branch has the help button component update in it
document.querySelector('#button-share').style.display = "none" | ||
} | ||
|
||
document.querySelector('#button-share').addEventListener('click', async () => { |
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.
Looks like html unit breaks on this syntax, https://github.com/jenkinsci/ui-samples-plugin/pull/14/checks?check_run_id=5716218242
missing formal parameter
may be related to HtmlUnit/htmlunit#232
ui-samples-plugin is suspended and has been replaced with design-library: > Plugin distribution has been suspended, see https://groups.google.com/g/jenkinsci-dev/c/2vGn3t9gZ0Y for details. https://plugins.jenkins.io/ui-samples-plugin/ jenkinsci/design-library-plugin#14
…#8909) ui-samples-plugin is suspended and has been replaced with design-library: > Plugin distribution has been suspended, see https://groups.google.com/g/jenkinsci-dev/c/2vGn3t9gZ0Y for details. https://plugins.jenkins.io/ui-samples-plugin/ jenkinsci/design-library-plugin#14
This is a WIP.
What's new
More screenshots
🎉 Major thanks to @timja for all the help and contributions
If you're wanting to try this, I really recommend using this branch https://github.com/janfaracik/jenkins/tree/scalable-icon-support-3-custom-symbols of Jenkins as it features the newer sidebar navigation and support for custom plugin symbols.