Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign up[JENKINS-43786] Overhaul of Manage Jenkins page #2857
Conversation
@@ -68,12 +67,75 @@ THE SOFTWARE. | |||
|
|||
<st:include page="downgrade.jelly" /> | |||
|
|||
<table style="padding-left: 2em;" id="management-links"> | |||
<style type="text/css"> |
This comment has been minimized.
This comment has been minimized.
</j:forEach> | ||
|
||
|
||
<table style="padding-left: 2em; display: none;" id="management-links"> |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
recena
Jul 9, 2017
Author
Contributor
Given this block of code will be removed, this functional test needs to reviewed.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Do we need ATH runs for this? |
This comment has been minimized.
This comment has been minimized.
@daniel-beck WiP |
This comment has been minimized.
This comment has been minimized.
@recena What do you mean? I'm aware.
|
This comment has been minimized.
This comment has been minimized.
I do not think ATH has much of a coverage for this few things this can possibly break. |
This comment has been minimized.
This comment has been minimized.
Please provide before and after screenshot if it visible UI change. |
This comment has been minimized.
This comment has been minimized.
FWIW I like the "hover" design in the screenshot a lot. Ideally we'd make this a reusable component, so e.g. lists like new agent/view could use the same design. |
This comment has been minimized.
This comment has been minimized.
@KostyaSha I'll do it. To be honest, this is a basic re-style but IMHO improves some small details. Thanks for your participation. |
This comment has been minimized.
This comment has been minimized.
@daniel-beck Let me finish the approach and then, we can see the level of re-utilization. |
@@ -39,7 +39,7 @@ SystemInfoLink.DisplayName=System Information | |||
SystemInfoLink.Description=Displays various environmental information to assist trouble-shooting. | |||
|
|||
SystemLogLink.DisplayName=System Log | |||
SystemLogLink.Description=System log captures output from <tt>java.util.logging</tt> output related to Jenkins. | |||
SystemLogLink.Description=System log captures output from <code>java.util.logging</code> output related to Jenkins. |
This comment has been minimized.
This comment has been minimized.
@@ -35,8 +35,7 @@ THE SOFTWARE. | |||
${taskTags!=null and attrs.contextMenu!='false' ? taskTags.add(href,iconUrl,title,post,requiresConfirmation) : null} | |||
<!-- TODO summary.jelly should be modified to accept requiresConfirmation so the icon link can be included --> | |||
<j:set var="_href" value="${href}"/> | |||
<t:summary icon="${icon}" | |||
href="${requiresConfirmation || post ? null : href}" iconOnly="true"> | |||
<t:summary icon="${icon}" href="${requiresConfirmation || post ? null : href}" iconOnly="true"> |
This comment has been minimized.
This comment has been minimized.
<j:forEach var="m" items="${it.managementLinks}"> | ||
<l:hasPermission permission="${m.requiredPermission}"> | ||
<j:set var="icon" value="${m.iconClassName != null ? m.iconClassName : m.iconFileName}"/> | ||
<j:if test="${icon!=null}"> | ||
<local:feature icon="${icon}" href="${m.urlName}" title="${m.displayName}" requiresConfirmation="${m.requiresConfirmation}" post="${m.requiresPOST}"> | ||
<local:feature icon="${icon}" href="${m.urlName}" title="${m.displayName}" requiresConfirmation="${m.requiresConfirmation}" post="${m.requiresPOST}"> |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
recena
Jul 9, 2017
Author
Contributor
@daniel-beck Do you know any case where <local:feature>
is involved? I'd like to include this part in this re-style. Thanks.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
oleg-nenashev
Jul 15, 2017
Member
@recena local:feature
is a local taglib defined directly in manage.jelly. https://github.com/recena/jenkins/blob/a4b4771a90484b8326fafea92fc47921492cd8a2/core/src/main/resources/jenkins/model/Jenkins/manage.jelly#L32-L55
AFAIK it cannot be used elsewhere outside this file
This comment has been minimized.
This comment has been minimized.
recena
Jul 15, 2017
Author
Contributor
@oleg-nenashev What I really wanted was to know how exercising this taglib. Some use-case.
This comment has been minimized.
This comment has been minimized.
daniel-beck
Jul 15, 2017
Member
@recena Reusability for less repetition, see https://github.com/recena/jenkins/blob/6d119ef16946312d8c4ca319babb2e2b292b9b79/core/src/main/resources/jenkins/model/Jenkins/manage.jelly.
The October 2012 changes converted those to ManagementLink
s in one loop, so it's not relevant anymore, but it was before then.
This comment has been minimized.
This comment has been minimized.
recena
Jul 16, 2017
Author
Contributor
@daniel-beck I appreciate your feedback. Can I understand we could make a cleanup?
This comment has been minimized.
This comment has been minimized.
@@ -155,9 +155,9 @@ public HttpResponse doForward(@QueryParameter String fix, @QueryParameter String | |||
} | |||
|
|||
/** | |||
* Returns true iff there are applicable but ignored (i.e. hidden) warnings. | |||
* Returns true if there are applicable but ignored (i.e. hidden) warnings. |
This comment has been minimized.
This comment has been minimized.
daniel-beck
May 30, 2017
Member
These are not typos.
iff is shorthand for if and only if, see e.g. http://www.dictionary.com/browse/iff
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
In 8774f3c |
This comment has been minimized.
This comment has been minimized.
What is the benefit of these ~1500 lines of (minified) Bootstrap? |
This comment has been minimized.
This comment has been minimized.
@recena Any plans to continue working on it? |
This comment has been minimized.
This comment has been minimized.
@daniel-beck A customized version of bootstrap including some needed things. My proposal is to include Bootstrap by default in Jenkins as part of the core. @oleg-nenashev Yes, this is my plan. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@recena How does this look with multiple multiple admin monitors, how does this affect the warnings popup shown on all other pages? |
This comment has been minimized.
This comment has been minimized.
We still need a blogpost draft to get it merged. |
This comment has been minimized.
This comment has been minimized.
Sure. Working on it. |
This comment has been minimized.
This comment has been minimized.
I think we could remove the label |
This comment has been minimized.
This comment has been minimized.
@jenkinsci/code-reviewers back to review |
This comment has been minimized.
This comment has been minimized.
@recena @daniel-beck - Is the blog post sufficient to say this has been documented? A blog post is great but is there any other actual documentation that need to change? |
This comment has been minimized.
This comment has been minimized.
I don't think so. My commitment was to write a blog post in order to spread the word about this improvement. |
This comment has been minimized.
This comment has been minimized.
@recena - Understood. I meant to ask those driving developer documentation such as @daniel-beck @oleg-nenashev, when you say "needs-docs" are you comfortable with that being just a blog post? |
This comment has been minimized.
This comment has been minimized.
@bitwiseman I am fine with that, the blogpost just needs to be linked from changelog. Regarding the change, I cannot guarantee to review it this week. It depends on how serious the JEP-200 fallout is. Keeps me busy so far. Anybody else can merge it and orchestrate the delivery, but I suggest to wait till Thursday. We may need an out-of-order release tomorrow |
This comment has been minimized.
This comment has been minimized.
Thanks for your feedback. I hope to see these changes merged in the upcoming normal weekly. I'm planning next steps. |
This comment has been minimized.
This comment has been minimized.
Will I be luck on this weekly release? |
This comment has been minimized.
This comment has been minimized.
Sorry, I had no time to review PRs this week. I will try to review it tomorrow on the morning |
This comment has been minimized.
This comment has been minimized.
IMO it is ready to go. The blogpost needs the date update, but it's ready in other matters |
This comment has been minimized.
This comment has been minimized.
@recena would you be fine if I squash the PR during the merge? I lean towards that since there are many small changes like whitespace ones, but there is no strict policy |
This comment has been minimized.
This comment has been minimized.
@oleg-nenashev Sure. My personal preference is always to squash. |
6f2769e
into
jenkinsci:master
This comment has been minimized.
This comment has been minimized.
merged |
This comment has been minimized.
This comment has been minimized.
Probably caused JENKINS-49129. |
<!-- table to show a map --> | ||
<d:tag name="feature"> | ||
<j:set var="iconUrl" value="${icon.startsWith('/') ? resURL+icon : imagesURL+'/48x48/'+icon}"/> | ||
${taskTags!=null and attrs.contextMenu!='false' ? taskTags.add(href,iconUrl,title,post,requiresConfirmation) : null} |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
dwnusbaum
Jan 24, 2018
Member
Indeed it looks like taskTags
is involved with context menu creation, see ModelObjectWithContextMenu.java.
jenkinsci/jenkins#2857 reworked the management page, so that from core 2.103 onward, there's only one `scriptApproval` link where there had been two. So only look for 1 link in relevant core versions while still looking for two in earlier versions.
recena commentedApr 23, 2017
•
edited
Description
See JENKINS-43786.
<table>
tag usage for implementing layouts and content structures. If you need reasons or arguments.Screenshots
There are more screenshots along the PR comments.
Before
After
Changelog entries
Proposed changelog entries:
Submitter checklist
Desired reviewers
@jenkinsci/code-reviewers