Skip to content

Conversation

@tulinkry
Copy link
Contributor

@tulinkry tulinkry commented Mar 28, 2019

fixes #1361
This is heavily inspired by annotate in idea so we get some better feel out of it.

  • colours on all revisions
  • most recent is yellow (see the screenshots)
  • most recent is also marked with "*"

Screenshot 2019-03-28 at 16 49 44

Screenshot 2019-03-28 at 16 49 56

Screenshot 2019-03-28 at 16 50 02

For two adjacent revisions there is a slightly different shade of the color, still not easy to perceive it very quickly, but definitely faster then as it used to be (5a and 98 are one revision apart).

Screenshot 2019-03-28 at 17 31 14

@tulinkry tulinkry force-pushed the annotate_revision branch from 386f5ba to 6601b2f Compare March 29, 2019 09:44
@coveralls
Copy link

coveralls commented Mar 29, 2019

Pull Request Test Coverage Report for Build 4164

  • 18 of 22 (81.82%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.01%) to 73.614%

Changes Missing Coverage Covered Lines Changed/Added Lines %
opengrok-indexer/src/main/java/org/opengrok/indexer/web/Util.java 0 4 0.0%
Totals Coverage Status
Change from base Build 4159: 0.01%
Covered Lines: 33624
Relevant Lines: 45676

💛 - Coveralls
@tulinkry
Copy link
Contributor Author

tulinkry commented Apr 6, 2019

The idea uses this rainbow on the annotations:
Screenshot 2019-04-06 at 11 24 50

I tried the approach and it looks like this:

Screenshot 2019-04-06 at 11 23 02

Screenshot 2019-04-06 at 11 23 08

Not bad. I'd still prefer the overall color palette generated with hsl, but this isn't bad. You decide. My only worry is about copyrights as this is reversed engineered from IDEA. Is that ok?

@vladak
Copy link
Member

vladak commented Apr 10, 2019

Foremost, I am not a lawyer. It seems to me that as long as you take just the idea it should be fine (as long as it is not patented :-D). Could you try cranking the saturation a bit ? The colors look a tad more faded than in the original rainbow design.

@tulinkry
Copy link
Contributor Author

This is back to the rgb color space, so no saturation here. I'd need to choose different stop colours for the rainbow (by hand). These exactly match the IDEA based on color picker. (Repeating:) The image here looks little faded but when you see it on the page it is similar to what you see in IDEA and it's not bad.

@vladak
Copy link
Member

vladak commented Apr 11, 2019

Ok, go ahead then. I think it makes sense in this case to stick with de-facto standard color scheme rather than pushing/inventing our own.

@tulinkry tulinkry force-pushed the annotate_revision branch from f0ca959 to 959cfd2 Compare June 20, 2019 16:00
@tulinkry
Copy link
Contributor Author

Time to revive this

@vladak
Copy link
Member

vladak commented Jun 20, 2019 via email

@tulinkry
Copy link
Contributor Author

Ill fix the tests but then it’s ready

@tulinkry
Copy link
Contributor Author

Seems like it's passing

@tulinkry
Copy link
Contributor Author

ready

@vladak
Copy link
Member

vladak commented Jun 24, 2019

Okay, let's merge this and see what the feedback will be.

@vladak vladak merged commit e87b8f8 into oracle:master Jun 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants