Skip to content
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

Improve the appearance of user avatars in Jenkins #10180

Merged
merged 2 commits into from
Jan 21, 2025

Conversation

janfaracik
Copy link
Contributor

@janfaracik janfaracik commented Jan 20, 2025

User avatars are a little clunky right now in Jenkins, e.g. they're square, can be misaligned and low resolution. This small PR aims to fix those issues and make them presentable in Jenkins. Jenkins doesn't support avatars for users out of the box, but with plugins like Gravatar they appear across the system.

Before (user page)
image

After
image


Before (Command Palette)
image

After
image


Before (All users page)
image

After
image

Testing done

Proposed changelog entries

  • Improve the appearance of user avatars in Jenkins

Proposed upgrade guidelines

N/A

Submitter checklist

Preview Give feedback

Desired reviewers

@jenkinsci/sig-ux

Before the changes are marked as ready-for-merge:

Maintainer checklist

Preview Give feedback

@janfaracik janfaracik added web-ui The PR includes WebUI changes which may need special expertise rfe For changelog: Minor enhancement. use `major-rfe` for changes to be highlighted labels Jan 20, 2025
@janfaracik janfaracik requested a review from a team January 20, 2025 12:19
@@ -31,7 +31,7 @@ THE SOFTWARE.
<l:header />
<l:side-panel>
<l:tasks>
<l:task contextMenu="false" href="${rootURL}/${it.url}/" icon="symbol-person" title="${%Status}"/>
<l:task contextMenu="false" href="${rootURL}/${it.url}/" icon="symbol-person-circle" title="${%Status}"/>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated - but keeps it consistent with the default user icon.

@daniel-beck
Copy link
Member

Why a circle instead of a rounded rectangle? The latter leaves more content visible.

@janfaracik
Copy link
Contributor Author

Why a circle instead of a rounded rectangle? The latter leaves more content visible.

That's a good question, and one that I can't really answer with actual evidence. It's entirely subjective, but circular avatars align with contemporary design trends, are a little softer on the eye and I think nowadays they're rather synonymous with representing user avatars (so at a glance its more obvious what they are).

@daniel-beck
Copy link
Member

Thanks! Not sure to what degree Jenkins should align with trends that seem to change faster than we're able to adapt (I would err on the side of "not"), but

synonymous with representing user avatars (so at a glance its more obvious what they are)

seems like a good reason to do this.

Copy link
Member

@krisstern krisstern left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense

@krisstern krisstern requested a review from a team January 20, 2025 14:57
Copy link
Member

@timja timja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@krisstern
Copy link
Member

/label ready-for-merge

This PR is now ready for merge, after ~24 hours, we will merge it if there's no negative feedback.

@comment-ops-bot comment-ops-bot bot added the ready-for-merge The PR is ready to go, and it will be merged soon if there is no negative feedback label Jan 20, 2025
@timja timja merged commit 0148f51 into jenkinsci:master Jan 21, 2025
15 checks passed
@timja timja deleted the circle-avatar branch January 21, 2025 14:45
@paul-uz
Copy link

paul-uz commented Jan 31, 2025

How do you even set a user avatar?!

@janfaracik
Copy link
Contributor Author

How do you even set a user avatar?!

You can use a plugin like Gravatar to set an avatar, there's also Avatar but it needs updating/adopting.

@paul-uz
Copy link

paul-uz commented Jan 31, 2025

Should this update not have been administered by those plugins?

@janfaracik
Copy link
Contributor Author

Should this update not have been administered by those plugins?

The extension point doesn't have a way of controlling the appearance of avatars, so this was the easiest way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-merge The PR is ready to go, and it will be merged soon if there is no negative feedback rfe For changelog: Minor enhancement. use `major-rfe` for changes to be highlighted web-ui The PR includes WebUI changes which may need special expertise
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants