From b1b92b445b33a2b9a5bb1d1303e21420eb1b1df2 Mon Sep 17 00:00:00 2001 From: Joyce <26967919+Joyce-O@users.noreply.github.com> Date: Thu, 5 Feb 2026 21:03:44 -0500 Subject: [PATCH] update --- .../src/components/AvailabilityHeatmapV2.tsx | 22 ++++++++++++------- frontend/src/index.css | 12 ++++++++++ frontend/src/pages/Index.tsx | 9 +++++--- 3 files changed, 32 insertions(+), 11 deletions(-) diff --git a/frontend/src/components/AvailabilityHeatmapV2.tsx b/frontend/src/components/AvailabilityHeatmapV2.tsx index f4c002d..53dc6b9 100644 --- a/frontend/src/components/AvailabilityHeatmapV2.tsx +++ b/frontend/src/components/AvailabilityHeatmapV2.tsx @@ -343,12 +343,18 @@ export const AvailabilityHeatmapV2 = ({ // Styling let bgClass = ""; // Default transparent - if (!slot) bgClass = "bg-muted/10 pattern-diagonal-lines opacity-50"; - else if (isFull) bgClass = "bg-emerald-500/90 hover:bg-emerald-600 shadow-sm"; - else if (isPartial) bgClass = "bg-amber-400/80 hover:bg-amber-500 shadow-sm"; - else if (isNone || isPartialHidden) bgClass = "bg-transparent hover:bg-muted/20"; - if (tooSoon && slot) bgClass = cn(bgClass, "opacity-30 cursor-not-allowed pattern-diagonal-lines"); + if (!slot) { + bgClass = "bg-muted/10 pattern-diagonal-lines opacity-50"; + } else if (tooSoon) { + bgClass = "bg-muted/20 pattern-diagonal-lines cursor-not-allowed border border-border/10"; + } else if (isFull) { + bgClass = "bg-emerald-500/90 hover:bg-emerald-600 shadow-sm"; + } else if (isPartial) { + bgClass = "bg-amber-400/80 hover:bg-amber-500 shadow-sm"; + } else if (isNone || isPartialHidden) { + bgClass = "bg-muted/50 hover:bg-muted/70 border border-border/20"; + } return (
@@ -364,7 +370,7 @@ export const AvailabilityHeatmapV2 = ({ {isFull && }
- + = 12 ? "end" : "start"}>

@@ -439,11 +445,11 @@ export const AvailabilityHeatmapV2 = ({

)}
-
+
Busy / No Match
-
+
Past / Too Soon
diff --git a/frontend/src/index.css b/frontend/src/index.css index c3c7f48..9bacc53 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -233,3 +233,15 @@ 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } } + +.pattern-diagonal-lines { + background-image: repeating-linear-gradient( + 45deg, + currentColor, + currentColor 1px, + transparent 1px, + transparent 10px + ); + background-size: 10px 10px; + opacity: 0.1; +} diff --git a/frontend/src/pages/Index.tsx b/frontend/src/pages/Index.tsx index 622fd60..ac7e576 100644 --- a/frontend/src/pages/Index.tsx +++ b/frontend/src/pages/Index.tsx @@ -392,13 +392,16 @@ const Index = ({ defaultTab = 'schedule' }: IndexProps) => { )} -
+
+