From cc99a561bdbf68d73dbabb519979ca18ad07515f Mon Sep 17 00:00:00 2001
From: Phil Owen <19691521+PhillipsOwen@users.noreply.github.com>
Date: Tue, 20 Aug 2024 14:24:10 -0400
Subject: [PATCH 1/5] colorizing help icons
---
.../trays/help-about/helpAboutTray.js | 72 ++++++++++++++-----
1 file changed, 53 insertions(+), 19 deletions(-)
diff --git a/src/components/trays/help-about/helpAboutTray.js b/src/components/trays/help-about/helpAboutTray.js
index 6ef8fca1..bb92b2c2 100644
--- a/src/components/trays/help-about/helpAboutTray.js
+++ b/src/components/trays/help-about/helpAboutTray.js
@@ -1,12 +1,39 @@
import React, {Fragment} from 'react';
import { AccordionGroup, Accordion, AccordionSummary, AccordionDetails, Stack, Typography, List, ListItem, ListItemDecorator }
from '@mui/joy';
-import { Layers as LayersIcon, Storm as HurricaneIcon, Checklist as ModelSelectionIcon, Delete as RemoveIcon, Tune as SettingsIcon,
+import { Layers as LayersIcon, Storm as HurricaneIcon, Checklist as ModelSelectionIcon, DeleteForever as RemoveIcon, Tune as SettingsIcon,
Share as ShareViewIcon, HelpCenter as HelpAboutIcon, Map as MapIcon, LightMode as LightModeIcon,DragHandleRounded as HandleIcon,
KeyboardArrowDown as ExpandIcon, ArrowDropUp as MoveUpArrow, KeyboardArrowLeft, Tsunami as WaveHeightIcon, QueryStats as ObservationIcon,
- Air as WindVelocityIcon, Water as WaterLevelIcon, BlurOn as WaterSurfaceIcon, Flood as FloodIcon }
+ Air as WindVelocityIcon, Water as WaterLevelIcon, BlurOn as WaterSurfaceIcon, Flood as FloodIcon, ToggleOn as OnOffIcon }
from '@mui/icons-material';
+import SvgIcon from '@mui/material/SvgIcon';
+
+/**
+ * gets a svg component for the observation point icon.
+ *
+ * @param color
+ * @param name
+ * @returns {JSX.Element}
+ */
+const getObsSVGIcon = ( color, name ) => {
+ return (
+
+
+
+
+ {name}
+
+ );
+
+};
+
/**
* This component renders the help/about tray
*
@@ -127,30 +154,37 @@ export const HelpAboutTray = () => {
Each icon represents a functionality of the application available to the
user.
- Collapsable tray items
- Model run/layers selected list.
- Hurricane track list.
- Model run filtering and selection.
- Remove various map items.
- Application settings.
- Share your view with a colleague.
- Application help/about (here).
+ Collapsable tray items:
+ Model run/layers selected list
+ Hurricane track list
+ Model run filtering and selection
+ Remove various map items
+ Application settings
+ Share your view with a colleague
+ Application help/about
+
+
+ Map model layer types:
+ Maximum Significant Wave Height
+ Observations
+ Maximum Wind Speed
+ Maximum Water Level
+ HECRAS Water Surface
+ Inundation
- Map model layer types
- Maximum Significant Wave Height layer
- Observation layer
- Maximum Wind Speed layer
- Maximum Water Level layer
- HECRAS Water Surface layer
- Inundation layer
+ Map observation points:
+ { getObsSVGIcon('#FFFF00', 'NOAA/NDBC') }
+ { getObsSVGIcon('#3D4849', 'NCEM') }
+ { getObsSVGIcon('#BEAEFA', 'NOAA/NOS') }
- Other action buttons
+ Action buttons:Toggle light or dark mode.Select a different base map.Reorder a model run up or down in the list.
- Remove a model run or layer.
+ Turn on/off a layer
+ Remove a model run or layer. or Expand or collapse an item. or Reorder a model layer. or Move through tropical advisories or synoptic cycles.
From 1bedef8a15377dbeaf40a2068ffb398e36024aa2 Mon Sep 17 00:00:00 2001
From: Phil Owen <19691521+PhillipsOwen@users.noreply.github.com>
Date: Tue, 20 Aug 2024 14:24:51 -0400
Subject: [PATCH 2/5] lowering some font sizes in the tray components
---
src/components/trays/layers/layer-card.js | 2 +-
src/components/trays/layers/tray-contents.js | 4 ++--
src/components/trays/model-selection/DropDownOptions.js | 2 +-
src/components/trays/model-selection/catalogItems.js | 6 +++---
src/components/trays/model-selection/synopticTab.js | 2 +-
src/components/trays/model-selection/tropicalTab.js | 2 +-
6 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/src/components/trays/layers/layer-card.js b/src/components/trays/layers/layer-card.js
index bf1f00d2..6cae3aa0 100644
--- a/src/components/trays/layers/layer-card.js
+++ b/src/components/trays/layers/layer-card.js
@@ -67,7 +67,7 @@ export const LayerCard = ({ index, layer }) => {
-
+
{layer.properties.product_name}
{
return (
}
onClick={ handleClickToggleState }
>Add a Model Run
@@ -36,7 +36,7 @@ export const TrayContents = () => {
return (
}
onClick={ handleClickToggleState }
diff --git a/src/components/trays/model-selection/DropDownOptions.js b/src/components/trays/model-selection/DropDownOptions.js
index 5ea4537a..73c7b424 100644
--- a/src/components/trays/model-selection/DropDownOptions.js
+++ b/src/components/trays/model-selection/DropDownOptions.js
@@ -36,7 +36,7 @@ export default function DropDownOptions(data) {
return (
{data.data[data.type].filter(item => item !== "").map(item => (
-
+
))}
);
diff --git a/src/components/trays/model-selection/catalogItems.js b/src/components/trays/model-selection/catalogItems.js
index 1928d4b0..1665ffcb 100644
--- a/src/components/trays/model-selection/catalogItems.js
+++ b/src/components/trays/model-selection/catalogItems.js
@@ -175,11 +175,11 @@ export default function CatalogItems(data) {
{ setAccordianDateIndex(expanded ? itemIndex : null); }}>
- {catalog['id']}
+ { catalog['id'] } {
// loop through the data members and put them away
@@ -192,7 +192,7 @@ export default function CatalogItems(data) {
.map((mbr, mbrIdx) => (
// create the checkbox
{
-
+
{ }
diff --git a/src/components/trays/model-selection/tropicalTab.js b/src/components/trays/model-selection/tropicalTab.js
index c5124127..0b4a23ac 100644
--- a/src/components/trays/model-selection/tropicalTab.js
+++ b/src/components/trays/model-selection/tropicalTab.js
@@ -152,7 +152,7 @@ export const TropicalTabForm = () => {