Skip to content

Refine User page#10807

Merged
timja merged 21 commits intojenkinsci:masterfrom
janfaracik:refine-user-page
Aug 3, 2025
Merged

Refine User page#10807
timja merged 21 commits intojenkinsci:masterfrom
janfaracik:refine-user-page

Conversation

@janfaracik
Copy link
Member

@janfaracik janfaracik commented Jul 4, 2025

Small PR to refine the User page(s).

What's changed?

  • The side panel now shows the current user, along with their icon/avatar
  • User config pages now use an app bar, making the spacing between pages consistent
  • 'Account' page now groups the first section under 'General' for consistency with other pages

Before
image

After
image

Before
image

After
image

Testing done

  • Tested with names of various lengths
image image image

Proposed changelog entries

  • Refine User page.

Proposed changelog category

/label web-ui,rfe

Proposed upgrade guidelines

N/A

Submitter checklist

  • The Jira issue, if it exists, is well-described.
  • The changelog entries and upgrade guidelines are appropriate for the audience affected by the change (users or developers, depending on the change) and are in the imperative mood (see examples). Fill in the Proposed upgrade guidelines section only if there are breaking changes or changes that may require extra steps from users during upgrade.
  • There is automated testing or an explanation as to why this change has no tests.
  • New public classes, fields, and methods are annotated with @Restricted or have @since TODO Javadocs, as appropriate.
  • New deprecations are annotated with @Deprecated(since = "TODO") or @Deprecated(forRemoval = true, since = "TODO"), if applicable.
  • New or substantially changed JavaScript is not defined inline and does not call eval to ease future introduction of Content Security Policy (CSP) directives (see documentation).
  • For dependency updates, there are links to external changelogs and, if possible, full differentials.
  • For new APIs and extension points, there is a link to at least one consumer.

Desired reviewers

@jenkinsci/sig-ux

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

Maintainer checklist

  • There are at least two (2) approvals for the pull request and no outstanding requests for change.
  • Conversations in the pull request are over, or it is explicit that a reviewer is not blocking the change.
  • Changelog entries in the pull request title and/or Proposed changelog entries are accurate, human-readable, and in the imperative mood.
  • Proper changelog labels are set so that the changelog can be generated automatically.
  • If the change needs additional upgrade steps from users, the upgrade-guide-needed label is set and there is a Proposed upgrade guidelines section in the pull request title (see example).
  • If it would make sense to backport the change to LTS, a Jira issue must exist, be a Bug or Improvement, and be labeled as lts-candidate to be considered (see query).

@comment-ops-bot comment-ops-bot bot 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 Jul 4, 2025
@janfaracik janfaracik requested a review from a team July 4, 2025 09:33
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

@daniel-beck
Copy link
Member

Could you document in design library when to do this and when to use regular titles or when to use app bars? "This exists" isn't enough guidance IMO.

@uhafner
Copy link
Member

uhafner commented Jul 5, 2025

I wonder why this is required at all? All other Jenkins pages have a different layout: the top level corner of the side panel starts with a link. Only here we have an additional header now. In my opinion either all pages get such a header or no page gets one.

@janfaracik
Copy link
Member Author

Could you document in design library when to do this and when to use regular titles or when to use app bars? "This exists" isn't enough guidance IMO.

Yep. App bar has custom spacing to align with the header which a regular h1 lacks - an app bar should always be used for a page. I'll update Design Library to include that.

I wonder why this is required at all? All other Jenkins pages have a different layout: the top level corner of the side panel starts with a link. Only here we have an additional header now. In my opinion either all pages get such a header or no page gets one.

The intention is for all pages to have an app bar and that's slowly been happening. There's quite a few uses now in core and in plugins where the title is above the side panel, e.g.

image image image image

@uhafner
Copy link
Member

uhafner commented Jul 7, 2025

Adding an app bar to all pages is a good idea. This is not what I am concerned about: what totally unclear to me is, if a sub page with app bar should contain an own sidebar navigation or not. Or should it show the global sidebar, or should it hide the sidebar? Some new pages have this sidebar, some not, this is not consistent. Now we have another alternative: a sidebar menu with a custom header? Can't we use the same sidebar concept for all pages?

@janfaracik
Copy link
Member Author

If a sub page with app bar should contain an own sidebar navigation or not.
Or should it show the global sidebar, or should it hide the sidebar?
Some new pages have this sidebar, some not, this is not consistent.
Now we have another alternative: a sidebar menu with a custom header? Can't we use the same sidebar concept for all pages?

The intention is to have the app bar contextual to the page it belongs to, whereas the side panel more belongs to a group of pages (e.g. Design Library has one side panel that its pages inherit, Plugins has one side panel for Updates/Installed/Available, Pipeline Graph View has one side panel for its different stages).

Pages like Dashboard and Jobs will (eventually/hopefully) drop their side panels in favour of an app bar for contextual actions, such as Build/Configure/Delete. In the place of the actual links in the side panel could be tabs/widgets - need to test it out.

There's some guidance on https://weekly.ci.jenkins.io/design-library/layouts/

@daniel-beck
Copy link
Member

Based on my previous understanding and

Now we have another alternative: a sidebar menu with a custom header? Can't we use the same sidebar concept for all pages?

it seems both Ulli and I were unaware that these are app-bars as well, just as part of the sidepanel. Although I wonder how this placement would accommodate large labels (e.g., job names), or tasks. A more complete vision, including how to adapt at least most of core, would be nice here before updating individual pages one by one.

Comment on lines +33 to +40
<div class="jenkins-app-bar">
<div class="jenkins-app-bar__content jenkins-build-caption">
<l:icon src="${h.getUserAvatar(it, '96x96')}" class="jenkins-avatar" />
<h1>
${it.fullName}
</h1>
</div>
</div>
Copy link
Member

Choose a reason for hiding this comment

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

Why is there no Jelly tag for this?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point, added support for icons in App bars.

@github-actions github-actions bot added the unresolved-merge-conflict There is a merge conflict with the target branch. label Jul 16, 2025
@github-actions
Copy link
Contributor

Please take a moment and address the merge conflicts of your pull request. Thanks!

@github-actions github-actions bot removed the unresolved-merge-conflict There is a merge conflict with the target branch. label Jul 16, 2025
@janfaracik
Copy link
Member Author

janfaracik commented Jul 16, 2025

Found a bug - plugins page is a little messed up. Fixing. Fixed.

@uhafner
Copy link
Member

uhafner commented Jul 16, 2025

Two pages do not include the new user profile side panel, this should be changed. This is a weird user experience when you click in the sidepanel and suddenly the sidepanel disappears.

Bildschirmfoto 2025-07-16 um 20 03 05

@timja
Copy link
Member

timja commented Aug 1, 2025

All looks resolved now.


/label ready-for-merge


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

Thanks!

@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 Aug 1, 2025
@timja timja merged commit 1bffb0b into jenkinsci:master Aug 3, 2025
13 of 16 checks passed
@timja timja deleted the refine-user-page branch August 3, 2025 09:19
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.

7 participants