Skip to content

Conversation

mislav
Copy link
Contributor

@mislav mislav commented Jan 18, 2021

For operations such as closing an issue or merging a PR, we would display the success icon (a checkmark) in red and magenta colors, respectively, to reflect the latest state of the record operated on (red: closed; magenta: merged).

This was always confusing to me, seeing it both in code and in the UI, because I'm instinctively thinking that it's a bug and have to remind myself that it's by design.

Here I'm proposing that we always use the green checkmark icon to indicate a successful operation, regardless of the end state of the record. As a bonus fix, we now use the character consistently, as opposed to in some places.

For operations such as closing an issue or merging a PR, we would
display the success icon (a checkmark) in red and magenta colors,
respectively, to reflect the latest state of the record operated on
(red: closed; magenta: merged).

This was always confusing to me, seeing it both in code and in the UI,
because I'm instinctively thinking that it's a bug and have to remind
myself that it's by design.
@ampinsk
Copy link
Contributor

ampinsk commented Jan 19, 2021

Hey thanks for this proposal! While I'm really glad to clean up our use of the check unicode character, I do feel pretty strongly about our color use as it is now. The color association on GitHub of "closed" = red/deleted, "merged" = purple is really strong, and I would argue stronger than "green" = success, especially in these contexts. For example, when something is "successfully closed", I believe the check icon represents the "success" concept, while the red represents the "closed" concept. To see green in this context, I would be confused since green is so strongly associated with "opening" something. Curious if anyone else has thoughts!

@vilmibm
Copy link
Contributor

vilmibm commented Jan 19, 2021

i like the current color scheme and find it helpful fwiw

Copy link
Contributor

@vilmibm vilmibm left a comment

Choose a reason for hiding this comment

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

It seems like the majority of opinion is that using red for successful "closing" type actions and purple for "merging" is desired behavior, but it's still great to standardize on the character used.

@mislav
Copy link
Contributor Author

mislav commented Jan 22, 2021

Thank you for the feedback! I will revert the color behavior to always use the end state of the record (even if it's red/magenta), but I will try to express it more idiomatically in code so that the reader is clear on the fact that this is a desired behavior and not a typo. 👍

@mislav
Copy link
Contributor Author

mislav commented Jan 22, 2021

I've updated the branch to add a new SuccessIconOfColor() method that always expects a color to be explicitly provided. This method is now used in all create/delete/close/reopen/merge etc. operations.

Copy link
Contributor

@vilmibm vilmibm left a comment

Choose a reason for hiding this comment

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

thanks!

I think of color is an overloaded phrase in English and, even though it's more characters, the new function ought to be SuccessIconWithColor

@mislav
Copy link
Contributor Author

mislav commented Jan 25, 2021

the new function ought to be SuccessIconWithColor

Sure! Updated.

@mislav mislav requested a review from vilmibm January 25, 2021 14:02
@vilmibm vilmibm changed the title Consistently use green success icon Consistently use success icon Jan 25, 2021
@vilmibm vilmibm merged commit 9cbfdac into trunk Jan 25, 2021
@mislav mislav deleted the success-icon-consistency branch March 23, 2021 11:48
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.

3 participants