Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[JENKINS-74868] Use new build status symbols in multi branch projects #10106

Merged
merged 2 commits into from
Jan 3, 2025

Conversation

timja
Copy link
Member

@timja timja commented Dec 30, 2024

See JENKINS-74868

Fixes jenkinsci/dark-theme-plugin#550
Closes jenkinsci/dark-theme-plugin#552
Closes #10032

Review with whitespace disabled: https://github.com/jenkinsci/jenkins/pull/10106/files?w=1

Testing done

Created a multi branch project
Configured with single repository and branch using https://github.com/timja-org/junit-attachments-test
Ran a build and aborted it before it got anywhere

Before it was using the old symbol which looked bad in dark theme and was inconsistent

After:

image

I've also tested with custom-job-folder-icon and a variety of folder and non folder jobs I have in my setup.

Proposed changelog entries

  • Use refined build status icons in multi-branch projects

Proposed upgrade guidelines

N/A

Submitter checklist

Preview Give feedback

Desired reviewers

@mention

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

Maintainer checklist

Preview Give feedback

@timja
Copy link
Member Author

timja commented Dec 30, 2024

cc @Jonny-vb

@timja timja added the alternative This PR is one of several options to address a given issue label Dec 30, 2024
@timja timja added web-ui The PR includes WebUI changes which may need special expertise bug For changelog: Minor bug. Will be listed after features labels Dec 30, 2024
@timja timja requested a review from a team December 30, 2024 22:27
@krisstern
Copy link
Member

Agreeing that this may be a better approach

<st:attribute name="it" type="hudson.model.BallColor">
Color of the ball or null to skip drawing.
Display the build status icon in a table cell.
<st:attribute name="it" type="hudson.model.StatusIcon">
Copy link
Member Author

Choose a reason for hiding this comment

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

in reality what is passed is not a ballcolor in many cases but actually a status icon

Color of the ball or null to skip drawing.
Display the build status icon in a table cell.
<st:attribute name="it" type="hudson.model.StatusIcon">
Icon to be displayed.
Copy link
Member Author

Choose a reason for hiding this comment

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

balls are not displayed anymore, small cleanup

@janfaracik
Copy link
Contributor

Tested locally, LGTM!

@timja timja requested a review from a team December 31, 2024 19:46
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.

LGTM too

@timja
Copy link
Member Author

timja commented Jan 2, 2025

/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 Jan 2, 2025
@krisstern krisstern merged commit 89f48c5 into jenkinsci:master Jan 3, 2025
16 checks passed
janfaracik added a commit to janfaracik/jenkins that referenced this pull request Jan 5, 2025
commit 76d4bb8
Author: Jan Faracik <43062514+janfaracik@users.noreply.github.com>
Date:   Sun Jan 5 11:01:47 2025 +0000

    Fix in case of null provider

commit ebb6831
Author: Jan Faracik <43062514+janfaracik@users.noreply.github.com>
Date:   Sat Jan 4 15:23:03 2025 +0000

    Lint

commit 11e4b8d
Author: Jan Faracik <43062514+janfaracik@users.noreply.github.com>
Date:   Sat Jan 4 14:48:20 2025 +0000

    Init

commit 519eb19
Merge: 908030e b3b5a69
Author: Kris Stern <krisstern@outlook.com>
Date:   Sat Jan 4 16:01:19 2025 +0800

    Merge pull request jenkinsci#9980 from basil/OptionHandlerExtension

    Register `OptionHandler`s through `META-INF/services/annotations` and Annotation Indexer rather than `META-INF/services` and Commons Discovery

commit 908030e
Merge: d3e8908 fc4a567
Author: Kris Stern <krisstern@outlook.com>
Date:   Sat Jan 4 16:00:31 2025 +0800

    Merge pull request jenkinsci#10026 from mtughan/allow-immutable-collections

    Allow all immutable List subclasses from Java 11

commit d3e8908
Author: Jesse Glick <jglick@cloudbees.com>
Date:   Fri Jan 3 05:43:27 2025 -0500

    Correcting API documentation of `builds` vs. `allBuilds` (jenkinsci#10112)

commit 89f48c5
Merge: 238c498 e1dff1a
Author: Kris Stern <krisstern@outlook.com>
Date:   Fri Jan 3 18:00:18 2025 +0800

    Merge pull request jenkinsci#10106 from timja/ballColorTd-table

    [JENKINS-74868] Use new build status symbols in multi branch projects

commit 238c498
Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Date:   Thu Jan 2 20:32:04 2025 -0800

    Update dependency io.jenkins.plugins:design-library to v342 (jenkinsci#10111)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

commit 75410bc
Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Date:   Thu Jan 2 10:45:55 2025 -0800

    Update dependency io.jenkins.plugins:json-api to v20241224 (jenkinsci#10110)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

commit 1aa9c57
Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Date:   Thu Jan 2 10:44:50 2025 -0800

    Update Yarn to v4.6.0 (jenkinsci#10109)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

commit e1dff1a
Author: Tim Jacomb <timjacomb1@gmail.com>
Date:   Tue Dec 31 19:46:12 2024 +0000

    Adjust test

commit 5fd9f51
Author: Tim Jacomb <timjacomb1@gmail.com>
Date:   Mon Dec 30 22:20:15 2024 +0000

    [JENKINS-74868] Use new build status symbols in multi branch projects

commit b3b5a69
Merge: 33d8280 d73c0ea
Author: Basil Crow <me@basilcrow.com>
Date:   Tue Dec 17 10:19:22 2024 -1000

    Merge branch 'master' into OptionHandlerExtension

commit fc4a567
Author: Michael Tughan <michael.tughan@soti.net>
Date:   Wed Dec 4 15:15:13 2024 -0500

    Allow all immutable List subclasses from Java 11

    A previous commit specifically allowed one of the two subclasses used by
    `List.of` and `List.copyOf`, but not the other, which can result in
    unexpected errors and bugs. Add the other to the default allow list of
    classes to avoid these.

commit 33d8280
Merge: a1c8c83 9965f04
Author: Tim Jacomb <21194782+timja@users.noreply.github.com>
Date:   Sun Dec 8 08:32:24 2024 +0000

    Merge branch 'master' into OptionHandlerExtension

commit a1c8c83
Author: Basil Crow <me@basilcrow.com>
Date:   Fri Nov 15 10:58:26 2024 -0800

    Register `OptionHandler`s through `META-INF/services/annotations` and Annotation Indexer rather than `META-INF/services` and Commons Discovery
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
alternative This PR is one of several options to address a given issue bug For changelog: Minor bug. Will be listed after features ready-for-merge The PR is ready to go, and it will be merged soon if there is no negative feedback 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.

Disabled Status icon is not visible
3 participants