Skip to content

UI refinements and code cleanup#97

Open
mawinter69 wants to merge 1 commit intojenkinsci:masterfrom
mawinter69:ui-refinements
Open

UI refinements and code cleanup#97
mawinter69 wants to merge 1 commit intojenkinsci:masterfrom
mawinter69:ui-refinements

Conversation

@mawinter69
Copy link

@mawinter69 mawinter69 commented Jan 29, 2026

Refines the config screens to be be in sync with current best practices

  • remove table, tr, td in config screens
  • remove f:block
  • apply proper styling for selects

Refine the columns

  • place most tooltips on a span instead of the td to avoid that the tooltip looks misplaced when the column is much wider than the actual content
  • make links to agents, job or build use the same styling as in core
  • make the agent allocation a link to the label when it is not a selflabel
  • add a tooltip with the agents description for the Last Build Node column (not exactly JENKINS-44437)

some code cleanup in java

  • use pattern variables
  • use isEmpty for lists

Testing done

Interactive testing

Submitter checklist

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests that demonstrate the feature works or the issue is fixed

Refines the config screens to be be in sync with current best practices

- remove tr in config screens
- remove f:block
- apply propery styling for selects

Refine the columns
- place most tooltips on a span instead of the td to avoid that the
  tooltip looks misplaced when the column is much wider than the actual
  content
- make links to agents, job or build use the same styling as in core
- make the agent allocation a link to the label when it is not a
  selfLabel
- add a tooltip with the agents description for the Last Build Node
  column

some code cleanup in java
- use pattern variables
- use isEmpty for lists
@mawinter69 mawinter69 requested a review from a team as a code owner January 29, 2026 20:17
triggers = ((AbstractProject<?, ?>) job).getTriggers();
} if (job instanceof ParameterizedJobMixIn.ParameterizedJob) {
triggers = ((ParameterizedJobMixIn.ParameterizedJob)job).getTriggers();
if (job instanceof ParameterizedJobMixIn.ParameterizedJob<?, ?> pj) {
Copy link
Author

Choose a reason for hiding this comment

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

An AbstractProject is a ParameterizedJobMixIn.ParameterizedJob so that can be simplified.

@fredg02
Copy link
Member

fredg02 commented Jan 29, 2026

Thank you for this pull request. As a general observation, splitting it up into several smaller PRs would have made it a bit easier to review.

I hate to ask this, but did you use any AI-tooling to generate this PR? 😬

@mawinter69
Copy link
Author

Might be some copilot auto complete proposals that did fit though many didn't fit. But that's it. No asking copilot, claude or cline to do things (as it can be seen a lot in core lately, where it is sometimes obvious that they don't really understand the generated code).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants