-
Notifications
You must be signed in to change notification settings - Fork 185
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 Jenkins design library tables and colors #424
Conversation
I am not happy with this change, because data-tables provides more features then jenkins-table. Ex. filtering, paging ... |
1c1ad24
to
eea36be
Compare
I have fixed it in #415 When you want, you can review the changes there. Also you can play with colors there. |
Please verify current master, if I have implemented all your proposals from here. Thx |
eea36be
to
c8214e3
Compare
Rebased with master and applied Jenkins Design Library styles. Fixed a NPE that occurred while testing. |
Hm this is very interesting. I look here 3 times in last 24 hours to make some decisions. And I am still not sure. Please read this comment, there is no criticism. I am just thinking too loud. 😉 Why you prefer jenkins tables look instead of bootstrap solution? When you has many and I mean more then 100 resources with big descriptions and all of them contains many labels it looks much better, then jenkins design. Everything else here LGTM. I am just not happy with the design of jenkins tables as well. Think about table in /computer page. 😬 and as I see, also in this case are necessary stylesheet hack to make it more pretty. I think, that's the reason why so many plugins use the datatables plugin. Try to use a example with more resources and more data and then we can discuss is later. Thx. Apropos later. Probably I am online only on my cell phone for next 2 weeks. Therefore it might take a while until you get a answer. |
And please fill pr description in proper way. Thx |
c8214e3
to
d8743b8
Compare
My goal with this PR was to use the Jenkins Design system to make the look consistent with the rest of Jenkins, not that I necessarily prefer one or the other. Using the standard design system also has the benefit that it works better with themes. Notice the "odd" row text in the dark theme is not readable and the buttons are not themed in the examples below. Here are 2 screenshots comparing the jenkins design tables versus the default data tables style. The total height of the jenkins table version is ~530px more due to the increased padding. Functionally they are they same (i.e. sorting, pagination, search). If the issue is with the Jenkins design library table styling I can submit a separate PR with just the NPE and doc fixes. |
Switch to Jenkins design library table classes.
d8743b8
to
5e6b889
Compare
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
This PR fix the dark mode only partly. I thing it will be better, when somebody fix it in data-table-plugin. See also discussions in #415 |
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
Switch to Jenkins design library table classes. Remove data-tables-api dependency since sorting is handled by jenkins tables by default.
Before:
After:
See JENKINS-XXXXX.
See #XXXXX
Testing done
Proposed upgrade guidelines
N/A
Localizations
Submitter checklist
@NoExternalUse
. In case it is used by non java code theUsed by {@code <panel>.jelly}
Javadocs are annotated.eval
to ease the future introduction of Content Security Policy (CSP) directives (see documentation).Maintainer checklist
Before the changes are marked as
ready-for-merge
:upgrade-guide-needed
label is set and there is a Proposed upgrade guidelines section in the pull request title (see example).