GlobalFishingWatch / pelagos-client

Documentation
http://globalfishingwatch.io/pelagos-client/
Other
7 stars 4 forks source link

Make only the titles of the blades on the side menu UPPERCASE #394

Closed enriquetuya closed 8 years ago

enriquetuya commented 8 years ago

Based on https://github.com/GlobalFishingWatch/GFW-Tasks/issues/312

We need to remove the UPPERCASE from everywhere except the BLADES Title on the side menu.

enriquetuya commented 8 years ago

@redhog

selection_044

redhog commented 8 years ago

The "flags" title is taken from the selection name in the workspace, see https://github.com/GlobalFishingWatch/pelagos-client/blob/devel/js/app/Visualization/UI/FilterViewer.js#L45

Here is a workspace excerpt for how this is controlled - I've changed flags to Flags:

{
    "map": {
        "animations": [
            {
                "args": {
                    "columns": {
                        "filter": {
                            "name": "filter",
                            "source": {
                                "_": null,
                                "Flags": -1,
                                "timerange": -1
                            },
                            "type": "Float32"
                        }
                    },
                    "selections": {
                        "Flags": {
                            "data": {"category": [{"__jsonclass__": ["Number","-Infinity"]},{"__jsonclass__": ["Number","Infinity"]}]},
                            "header": {"length": 2},
                            "max_range_count": 10,
                            "sortcols": ["category"]
                        }
                    }
                }
            }
        ],
    }
}

Notes: