From 5500746138961ea0d2fa395443c0a8a2deefec4e Mon Sep 17 00:00:00 2001
From: doprz <52579214+doprz@users.noreply.github.com>
Date: Wed, 23 Oct 2024 14:57:02 -0500
Subject: [PATCH] feat: improve building selection controls and add week
schedule
Signed-off-by: doprz <52579214+doprz@users.noreply.github.com>
---
src/views/components/map/CampusMap.tsx | 4 +-
src/views/components/map/Map.tsx | 156 ++++++++++++++++++++++++-
src/views/components/map/mapUtils.tsx | 4 +-
3 files changed, 159 insertions(+), 5 deletions(-)
diff --git a/src/views/components/map/CampusMap.tsx b/src/views/components/map/CampusMap.tsx
index 77d9fc33..9089a3c1 100644
--- a/src/views/components/map/CampusMap.tsx
+++ b/src/views/components/map/CampusMap.tsx
@@ -60,7 +60,7 @@ export default function CampusMap() {
{/* Building Selection Controls */}
-
+
@@ -76,7 +76,7 @@ export default function CampusMap() {
-
+
Building Paths:
{generateAllBuildingPaths().map(path => (
);
diff --git a/src/views/components/map/mapUtils.tsx b/src/views/components/map/mapUtils.tsx
index 7d063535..5bd62a56 100644
--- a/src/views/components/map/mapUtils.tsx
+++ b/src/views/components/map/mapUtils.tsx
@@ -86,6 +86,8 @@ export const PathSegment = ({
if (!startNode || !endNode) return null;
+ if (!isHighlighted) return null;
+
return (
);
};