WSWCWaterDataExchange / WestDAAT

Managing the code of the Western States Water Data Access and Analysis Tool (WestDAAT)
https://westdaat.westernstateswater.org/
BSD 3-Clause "New" or "Revised" License
5 stars 4 forks source link

Fix assignment of beneficial use colors in the legend #312

Open amabdallah opened 1 year ago

amabdallah commented 1 year ago

It feels that the beneficial use of legend colors are being randomly assigned after each deployment of Prod, or possibly the introduction of a new beneficial use item. The problem is that it creates user experience issues. For example, I was used to seeing Public supply beneficial use as a sade of orange but now it is gray. See the two screenshots below

Pre-deployment on June 13, 2023

image

Prost-deployment on June 13, 2023

image

amabdallah commented 11 months ago

@Ryan suggested adding a new column 'WaDENameColor' to the CV tables that has the color code (name?) where WestDAAT reads the color from it. We can control the colors in the database.

amabdallah commented 10 months ago

Colors seem to be set here https://github.com/WSWCWaterDataExchange/WestDAAT/blob/9dbb131594bb9b06ace6871d7e8d4038c94fbcf4/src/DashboardUI/src/config/constants.ts