Conversation
Alhadis
left a comment
There was a problem hiding this comment.
I'm a little surprised that this remained under our noses for this long, haha.
LGTM! 👍
I mean, what's the chance two contributors will pick the exact same color? unless they copy paste... |
I’d normally say low, but Ring is a case of a very recent example and #4182 is an example of doing so just to keep the tests happy 😆 |
|
You mentioned using Google's color picker to find alternative colors. Do you know if there's a tool for finding a "nearby" suitable/non-conflicting color? As you mentioned, blue is a fairly popular color, so this might not be easy just guess-and-checking unless there's a tool. EDIT: I found a suitable color, but such a tool may be useful for others. |
Unfortunately not. 😞 |
Description
As discovered in #4182, our current testing allows the reuse of colours as our test wasn't catering for the fact that in the event the two colours are the same, the result from
past_threshold?()would fail and include the same language twice, one for the newly added language and one for the duplicate.This PR addresses that.
With the change to the test I discovered we have four duplicates:
I've adjusted those slightly by picking the language that had its colour set most recently and then:
languages.ymlwith the colour,bundle exec ruby test/test_color_proximity.rb,When that didn't work or was taking too long, I dragged the colour cursor ever-so-slightly and did the same thing again.
The results:
Glyph:
#e4cc98->#c1ac7fKRL:
#28431f->#28430ARing:
#0e60e3->#2D54CBVCL:
#0298c3->#148AA8I think those are close enough to the originals and certainly meet our proximity requirements.
Checklist:
adding new or changing current functionalityfixing a test