huridocs / uwazi

Uwazi is a web-based, open-source solution for building and sharing document collections
http://www.uwazi.io
MIT License
242 stars 80 forks source link

Inherited geolocations should use the parent template color #3097

Open RafaPolit opened 4 years ago

RafaPolit commented 4 years ago

Inherited geolocations show the same color as the acting template. In order to disambiguate, it would be good to inherit the parent color of the inherited template.

It could also be configured as a "use parent color" option in template, but this may not be for the MVP unless it's very simple.

fnocetti commented 4 years ago

@RafaPolit I related this to #3240 previously, but given we decided to go another way for the main map I think this is more related to the sidepanel view and was solved in #3098 Should we close this?

RafaPolit commented 4 years ago

I will repeat here what I said on the other issue. I wrote this issue as part of a conversation with the team, but I don't fully agree this solution is universal:

... In most cases I can think of, I think I would want the color of the template that is inheriting the property, not the parent of the property.

For example, lets say we have victims and perpetrators with "country of origin" inherited as geolocation.

You go into the map... you want to see the "blue" ticks for victims and the "red" ticks for perpetrators and see: aha, look, most victims reside in A, B and C, while most perpetrators come from D and E.

But, if we color code this according to "source" template, all the geolocations would be "countries" with green ticks, and you wouldn't have ANY IDEA of where they came from, if they are victims or perpetrators.

So, I'm really not sure this is the way to go here.

RafaPolit commented 4 years ago

Not to be done at this point. Discuss later. cc @txau @simonfossom