-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
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
Revamp Feed bar and Add/Edit description button to be consistent + correctly spaced #5664
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.
Localizations will be affected. Maybe it is better to avoid patching the keys and update the default localization property file
@@ -194,7 +194,7 @@ THE SOFTWARE. | |||
<div id="page-head"> | |||
<l:pageHeader title="${%title}" | |||
logoAlt="${%jenkinshead.alt}" | |||
searchPlaceholder="${%search}" | |||
searchPlaceholder="${%Search}" |
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.
It will impact localizations. Would be nice to clean it up. You can also just update the english localization and keep the key in *.jelly intact
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.
Good spot! I've moved any changed strings to the localisation files.
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 good, I've tested via core-pr-tester
one thing we could consider since we're in this area anyway is updating the text from 'Submit' to 'Save' when editing the description?
Any thoughts?
jenkins/core/src/main/resources/hudson/model/AbstractModelObject/descriptionForm.jelly
Line 42 in 972c6fa
<f:submit /> |
Could someone provide before/after screenshots? |
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 change itself looks really good, +1 from me. No concerns about the arrow changes. We will need to update the changelog a bit, but there are no major obstacles IMHO
Requesting changes because of the license header in the new file, happy to approve once fixed
core/src/main/resources/lib/hudson/editableDescription.properties
Outdated
Show resolved
Hide resolved
Co-authored-by: Oleg Nenashev <o.v.nenashev@gmail.com>
core/src/main/resources/hudson/model/AbstractModelObject/editDescription.jelly
Outdated
Show resolved
Hide resolved
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 good to me. Thanks @janfaracik !
We are missing the merge window for the tomorrow's weekly anyway. I suggest merging on Thursday after the Wednesday's UX SIG meeting if no negative feedback
There's no ux sig meeting till 1st of September, let's merge sometime in the next week, no rush |
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.
Thanks, the new layout looks much better!
(I still would prefer actual icons in the corresponding size as buttons rather than the letters S, M, and L but that is unrelated to your change and an existing usability problem.)
@@ -28,22 +28,22 @@ THE SOFTWARE. | |||
<div align="right"> | |||
<a href="rss" class="yui-button link-button"> | |||
<span class="leading-icon"> | |||
<l:svgIcon class="icon-small" tooltip="Atom feed" | |||
href="${imagesURL}/material-icons/svg-sprite-communication-symbol.svg#ic_rss_feed_24px"/> | |||
<l:svgIcon class="icon-small" tooltip="Atom feed" viewBox="viewbox (default 0 0 16 16)" |
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.
Is there a way to avoid providing a fixed view box every time?
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 there should be an alternative to the viewbox changes here. Maybe a transform: scale
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 syntax seems to be wrong, I now get several console errors;
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.
Noticed that whilst working on something else, I've got a fix for that in another feature PR - https://github.com/jenkinsci/jenkins/pull/5692/files - happy to pull the fix out into a separate bug PR if that makes things easier :)
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.
Changing default padding for buttons is dangerous IMO. I'd suggest you create custom CSS for the feed bar.
I'm also not sure whether the .jenkins-buttons-row
is generic enough that it can be used elsewhere. I wouldn't mind some component-specific naming like .feed-buttons-row
or something like that.
@@ -123,7 +123,7 @@ a.yui-button:visited { | |||
box-sizing: border-box; | |||
// vertical padding: | |||
// 0.375rem == 6px == 32px (target height) - 4px (borders) - 16 (line) / 2 | |||
padding: 0.375rem 1rem; | |||
padding: 0.375rem 0.5rem; |
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 this change should not take place because it will affect all buttons and it can be have unexpected . Any specific modifications could be done using custom CSS.
@@ -167,11 +167,11 @@ a.yui-button:visited { | |||
} | |||
|
|||
.leading-icon { | |||
margin-right: 0.25rem; | |||
margin-right: 0.5rem; |
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.
Ditto about custom CSS
} | ||
|
||
.trailing-icon { | ||
margin-left: 0.25rem; | ||
margin-left: 0.5rem; |
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.
Ditto about custom CSS
@@ -28,22 +28,22 @@ THE SOFTWARE. | |||
<div align="right"> | |||
<a href="rss" class="yui-button link-button"> | |||
<span class="leading-icon"> | |||
<l:svgIcon class="icon-small" tooltip="Atom feed" | |||
href="${imagesURL}/material-icons/svg-sprite-communication-symbol.svg#ic_rss_feed_24px"/> | |||
<l:svgIcon class="icon-small" tooltip="Atom feed" viewBox="viewbox (default 0 0 16 16)" |
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 there should be an alternative to the viewbox changes here. Maybe a transform: scale
Proposed changelog entries
Screenshots
Old
![image](https://user-images.githubusercontent.com/43062514/129442520-3953115c-82f3-4df9-b491-adc90d387a67.png)
New
![image](https://user-images.githubusercontent.com/43062514/129442603-21e873e6-d179-4291-8ee7-38d7e8dc499f.png)
What's changed under the hood?
buttons-row
class which correctly spaces buttons in a rowS
will read asSmall
,M
will read asMedium
andL
will read asLarge
Proposed upgrade guidelines
N/A
Submitter checklist
Proposed changelog entries
section only if there are breaking changes or other changes which may require extra steps from users during the upgradeMaintainer checklist
Before the changes are marked as
ready-for-merge
:Proposed changelog entries
are correctupgrade-guide-needed
label is set and there is aProposed upgrade guidelines
section in the PR title. (example)lts-candidate
to be considered (see query).