From feed26da984c017454b01ee6ea3a6face12da4e0 Mon Sep 17 00:00:00 2001 From: Nicole Rappe Date: Tue, 1 Apr 2025 18:25:24 -0600 Subject: [PATCH] Implemented Material UI Icons throughout GUI --- Data/WebUI/src/App.jsx | 83 +++++++++++++++++-- .../src/nodes/Reporting/Export_to_CSV.jsx | 6 +- Launch-Borealis.ps1 | 3 +- 3 files changed, 79 insertions(+), 13 deletions(-) diff --git a/Data/WebUI/src/App.jsx b/Data/WebUI/src/App.jsx index c8f6aa4..19a262c 100644 --- a/Data/WebUI/src/App.jsx +++ b/Data/WebUI/src/App.jsx @@ -26,6 +26,23 @@ import Tooltip from "@mui/material/Tooltip"; import KeyboardArrowDownIcon from "@mui/icons-material/KeyboardArrowDown"; import ExpandMoreIcon from "@mui/icons-material/ExpandMore"; +// Icons for Sidebar Workflow Buttons +import SaveIcon from "@mui/icons-material/Save"; +import FileOpenIcon from "@mui/icons-material/FileOpen"; +import DeleteForeverIcon from "@mui/icons-material/DeleteForever"; + +// Info Icon for About Menu +import InfoOutlinedIcon from "@mui/icons-material/InfoOutlined"; + +// Node Icon (Left-Side of Each Node in Sidebar Menu) +import PolylineIcon from "@mui/icons-material/Polyline"; + +// Gitea Project Icon +import MergeTypeIcon from "@mui/icons-material/MergeType"; + +// Credits Icon +import PeopleIcon from "@mui/icons-material/People"; + import ReactFlow, { Background, addEdge, @@ -86,7 +103,7 @@ function FlowEditor({ nodes, edges, setNodes, setEdges, nodeTypes }) { position, data: { label: nodeMeta?.label || type, - content: nodeMeta?.defaultContent + content: nodeMeta?.content } }; @@ -187,6 +204,7 @@ export default function App() { const [nodes, setNodes] = useState([]); const [edges, setEdges] = useState([]); const [confirmCloseOpen, setConfirmCloseOpen] = useState(false); + const [creditsDialogOpen, setCreditsDialogOpen] = useState(false); const fileInputRef = useRef(null); const handleAboutMenuOpen = (event) => setAboutAnchorEl(event.currentTarget); @@ -266,16 +284,34 @@ export default function App() { color="inherit" onClick={handleAboutMenuOpen} endIcon={} + startIcon={} > About + - Gitea Project - Credits + { + handleAboutMenuClose(); + window.open("https://git.bunny-lab.io/Borealis", "_blank"); + }} + > + + Gitea Project + + { + handleAboutMenuClose(); + setCreditsDialogOpen(true); + }} + > + + Credits + @@ -288,9 +324,15 @@ export default function App() { Workflows - - - + + + @@ -335,15 +377,20 @@ export default function App() { > ))} @@ -384,6 +431,24 @@ export default function App() { + setCreditsDialogOpen(false)} + PaperProps={{ sx: { bgcolor: "#121212", color: "#fff" } }} + > + Borealis Workflow Automation Tool + + + Designed by Nicole Rappe @ Bunny Lab + + + + + + + {
- {data.label || "Export to CSV"} + {data.label}
- {data.content || "Export Input Data to CSV File"} + {data.content}