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

fix: change icon to symbol #7229

Merged
merged 9 commits into from
Nov 12, 2022

Conversation

ealvesss
Copy link
Contributor

@ealvesss ealvesss commented Oct 6, 2022

See JENKINS-69715.

Before

Screen Shot 2022-10-06 at 19 40 46

After

File addtion:
Screenshot 2022-10-17 at 22 18 21

File modification:
Screenshot 2022-10-17 at 22 18 41

File deletion:
Screenshot 2022-10-17 at 22 19 02

Proposed changelog entries

  • Replace 'Changes' view icon with a symbol.

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

@mention

Maintainer checklist

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

  • 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).

Copy link
Member

@NotMyFault NotMyFault left a comment

Choose a reason for hiding this comment

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

Hey,

thanks for your PR! The icon has three states, according to the corresponding Java class: https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/hudson/scm/EditType.java#L57-L59

The appropriate icon is filled in depending on the SCM operation that took place. We should keep that up, rather than replacing the icons with a generic symbol, no?

@ealvesss
Copy link
Contributor Author

ealvesss commented Oct 7, 2022

Hey,

thanks for your PR! The icon has three states, according to the corresponding Java class: https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/hudson/scm/EditType.java#L57-L59

The appropriate icon is filled in depending on the SCM operation that took place. We should keep that up, rather than replacing the icons with a generic symbol, no?

Where i can test the changes? I fixed it already in the right way.

which screen can I test every single states? (the edit icon I know)

Edit
I found a way to do. I think now is ok.

Any problem, let me know!

@NotMyFault NotMyFault added the rfe For changelog: Minor enhancement. use `major-rfe` for changes to be highlighted label Oct 7, 2022
@NotMyFault
Copy link
Member

I went ahead and cleaned up the improper merge. Although, I'm not too sure about changing the reference from 'delete' to 'trash', because it's available in Jelly.

@ealvesss
Copy link
Contributor Author

I went ahead and cleaned up the improper merge. Although, I'm not too sure about changing the reference from 'delete' to 'trash', because it's available in Jelly.

Any change needed?

Copy link
Member

@daniel-beck daniel-beck left a comment

Choose a reason for hiding this comment

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

As above.

@ealvesss ealvesss requested review from daniel-beck and removed request for NotMyFault October 15, 2022 14:03
@NotMyFault NotMyFault added hacktoberfest web-ui The PR includes WebUI changes which may need special expertise and removed hacktoberfest labels Oct 17, 2022
Copy link
Member

@NotMyFault NotMyFault left a comment

Choose a reason for hiding this comment

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

I went ahead and updated the screenshots matching the new output, looks good to me, thanks for the PR.

core/src/main/resources/lib/hudson/editTypeIcon.jelly Outdated Show resolved Hide resolved
@NotMyFault NotMyFault added the needs-security-review Awaiting review by a security team member label Oct 17, 2022
@NotMyFault NotMyFault requested review from a team October 17, 2022 20:22
Copy link
Member

@uhafner uhafner left a comment

Choose a reason for hiding this comment

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

It is better than before! I'm not sure if it is a good idea to reuse the pencil, as this icon has a meaning for me: to actively edit something. But since there is no +/- symbol available right now I am fine with this change (in the Git forensics plugin I am using this one: https://github.com/jenkinsci/forensics-api-plugin/blob/master/src/main/resources/images/symbols/diff-stat.svg).

@NotMyFault
Copy link
Member

Would someone from @jenkinsci/core-security-review mind taking a look, please? :)

Copy link
Contributor

@Kevin-CB Kevin-CB left a comment

Choose a reason for hiding this comment

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

Sorry for the delay, from a security aspect, I see no issues with this PR 🙂

@Kevin-CB Kevin-CB added security-approved @jenkinsci/core-security-review reviewed this PR for security issues and removed needs-security-review Awaiting review by a security team member labels Nov 10, 2022
@NotMyFault
Copy link
Member

/label ready-for-merge


This PR is now ready for merge. We will merge it after ~24 hours if there is no negative feedback.
Please see the merge process documentation for more information about the merge process.
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 Nov 11, 2022
@NotMyFault NotMyFault merged commit bc4d40d into jenkinsci:master Nov 12, 2022
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 security-approved @jenkinsci/core-security-review reviewed this PR for security issues 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.

5 participants