From 6d9112d3266c67c4d977a062941d6261eb30fc7c Mon Sep 17 00:00:00 2001 From: Nick Gottlieb Date: Mon, 3 Jun 2024 15:31:19 -0700 Subject: [PATCH] refactor flow querying for nwi table to only submit single queries per reach --- src/app/assets/scss/abstracts/_variables.scss | 6 +- .../components/nwi-rivers-table.vue | 92 +++++++++---------- src/app/views/river-index/rivers-by-state.vue | 6 +- 3 files changed, 46 insertions(+), 58 deletions(-) diff --git a/src/app/assets/scss/abstracts/_variables.scss b/src/app/assets/scss/abstracts/_variables.scss index f8615d1a..ebe0d284 100644 --- a/src/app/assets/scss/abstracts/_variables.scss +++ b/src/app/assets/scss/abstracts/_variables.scss @@ -9,16 +9,16 @@ $flow-medium: #59E78D; $high-runnable: lighten($flow-medium, 15%); $med-runnable: $flow-medium; $low-runnable: darken($flow-medium, 15%); -$stale: #ffcc00; +$flow-warning: #ffcc00; // maps flow classes to their color $flow-map: ( "above-recommended": $flow-high, "high-runnable": $high-runnable, - "runnable": $med-runnable, + "medium-runnable": $med-runnable, "low-runnable": $low-runnable, "below-recommended": $flow-low, - "stale": $stale + "stale": #dfe3e6 // use ui-03 for unknown/stale ); // high contrast/accessibility flow colors diff --git a/src/app/views/river-index/components/nwi-rivers-table.vue b/src/app/views/river-index/components/nwi-rivers-table.vue index de5088a7..38e2b07e 100644 --- a/src/app/views/river-index/components/nwi-rivers-table.vue +++ b/src/app/views/river-index/components/nwi-rivers-table.vue @@ -3,7 +3,7 @@ -