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

[JENKINS-74879] Use strikethrough on merged pull request name column #501

Merged

Conversation

MarkEWaite
Copy link
Contributor

@MarkEWaite MarkEWaite commented Jan 3, 2025

[JENKINS-74879] Use strikethrough on merged pull request name column

JENKINS-74879 reports that the strikethrough text is no longer displayed when a pull request has been merged or closed. The strikethrough text is a nice visual indicator that the job is no longer active. Let's bring it back so that the visual hint is still there for users.

The strikethrough text is displayed on the job page, but not in the table of jobs for each pull request or branch.

Change was originally introduced when pull request titles were enabled by default in the column name. Refer to:

Assumed that it is better to drop the jenkins-table__link formatting in the plugin rather than adjust the CSS definion in Jenkins core. That CSS definition has been in place in Jenkins core since Sep 2022 and likely would have unexpected side effects if changed in core. Refer to:

Before this change

s-tag-does-not-change-text

After this change

s-tag-changes-text

Testing done

  • Confirmed that the link has strikethrough text with this change.
  • Confirmed that the non-striketrhrough link still looks good

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 demonstrates feature works or fixes the issue

https://issues.jenkins.io/browse/JENKINS-74879 reports that the
strikethrough text is no longer previously displayed when a pull request
has been merged or closed.  The strikethrough text is a nice visual
indicator that the job is no longer active.  Let's bring it back so that
the visual hint is still there for users.

The strikethrough text is displayed on the job page, but not in the
table of jobs for each pull request or branch.

Change was originally introduced when pull request titles were enabled
by default in the column name.  Refer to:

* jenkinsci#476

Assumed that it is better to drop the jenkins-table__link formatting in
the plugin rather than adjust the CSS definion in Jenkins core.  That CSS
definition has been in place in Jenkins core since Sep 2022 and likely
would have unexpected side effects if changed in core.  Refer to:

* jenkinsci/jenkins#6248

Testing done:

* Confirmed that the link has strikethrough text with this change.
* Confirmed that the non-striketrhrough link still looks good
@MarkEWaite MarkEWaite requested a review from a team as a code owner January 3, 2025 19:40
@jtnord jtnord requested a review from janfaracik January 6, 2025 15:49
@jtnord
Copy link
Member

jtnord commented Jan 7, 2025

probably unrelated - but disabled jobs don't look right in dark theme (the status "logo" is hardly visible) https://issues.jenkins.io/browse/JENKINS-75096

image

@janfaracik
Copy link
Contributor

probably unrelated - but disabled jobs don't look right in dark theme (the status "logo" is hardly visible) https://issues.jenkins.io/browse/JENKINS-75096

image

Should be fixed in the next weekly - jenkinsci/jenkins#10106

Copy link
Contributor

@janfaracik janfaracik left a 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! Agreed on not changing core for the time being, this feature is more important than the aesthetic of the link.

@jglick jglick merged commit d9f3500 into jenkinsci:master Jan 7, 2025
17 checks passed
@MarkEWaite MarkEWaite deleted the allow-strikethrough-text-on-PR-link branch January 7, 2025 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants