diff --git a/inventory/src/components/dashboard/DateTime.jsx b/inventory/src/components/dashboard/DateTime.jsx index ffc07c8..939aa6f 100644 --- a/inventory/src/components/dashboard/DateTime.jsx +++ b/inventory/src/components/dashboard/DateTime.jsx @@ -240,9 +240,9 @@ const DateTimeWeatherDisplay = ({ scaleFactor = 1 }) => { }; const WeatherDetails = () => ( -
+
- +
@@ -252,7 +252,7 @@ const DateTimeWeatherDisplay = ({ scaleFactor = 1 }) => {
- +
@@ -262,7 +262,7 @@ const DateTimeWeatherDisplay = ({ scaleFactor = 1 }) => {
- +
@@ -272,7 +272,7 @@ const DateTimeWeatherDisplay = ({ scaleFactor = 1 }) => {
- +
@@ -282,7 +282,7 @@ const DateTimeWeatherDisplay = ({ scaleFactor = 1 }) => {
- +
@@ -292,7 +292,7 @@ const DateTimeWeatherDisplay = ({ scaleFactor = 1 }) => {
- +
@@ -363,7 +363,7 @@ const DateTimeWeatherDisplay = ({ scaleFactor = 1 }) => { return (
{/* Time Display */} - +
@@ -378,7 +378,7 @@ const DateTimeWeatherDisplay = ({ scaleFactor = 1 }) => { {/* Date and Weather Display */}
- +
@@ -399,7 +399,7 @@ const DateTimeWeatherDisplay = ({ scaleFactor = 1 }) => { weather.weather[0]?.id, datetime.getHours() >= 18 || datetime.getHours() < 6 ), - "flex items-center justify-center cursor-pointer hover:brightness-110 transition-all relative backdrop-blur-sm" + "flex items-center justify-center cursor-pointer hover:brightness-110 hover:ring-white/[0.12] transition-all relative backdrop-blur-xl border-white/[0.08] ring-1 ring-white/[0.05] shadow-lg shadow-black/20" )}>
@@ -417,7 +417,7 @@ const DateTimeWeatherDisplay = ({ scaleFactor = 1 }) => { {
{/* Calendar Display */} - + diff --git a/inventory/src/components/dashboard/MiniEventFeed.jsx b/inventory/src/components/dashboard/MiniEventFeed.jsx index f8901d4..c54133e 100644 --- a/inventory/src/components/dashboard/MiniEventFeed.jsx +++ b/inventory/src/components/dashboard/MiniEventFeed.jsx @@ -16,13 +16,10 @@ import { DollarSign, Activity, FileText, - ChevronLeft, - ChevronRight, } from "lucide-react"; import { format } from "date-fns"; import { Skeleton } from "@/components/ui/skeleton"; import { EventDialog } from "./EventFeed.jsx"; -import { Button } from "@/components/ui/button"; import { DashboardErrorState } from "@/components/dashboard/shared"; const METRIC_IDS = { @@ -37,45 +34,45 @@ const METRIC_IDS = { const EVENT_TYPES = { [METRIC_IDS.PLACED_ORDER]: { label: "Order Placed", - color: "bg-green-200", + color: "bg-green-400/20", textColor: "text-green-50", - iconColor: "text-green-800", - gradient: "from-green-800 to-green-700", + iconColor: "text-green-300", + gradient: "from-green-900/80 to-green-700/40", }, [METRIC_IDS.SHIPPED_ORDER]: { label: "Order Shipped", - color: "bg-blue-200", + color: "bg-blue-400/20", textColor: "text-blue-50", - iconColor: "text-blue-800", - gradient: "from-blue-800 to-blue-700", + iconColor: "text-blue-300", + gradient: "from-blue-900/80 to-blue-700/40", }, [METRIC_IDS.ACCOUNT_CREATED]: { label: "New Account", - color: "bg-purple-200", + color: "bg-purple-400/20", textColor: "text-purple-50", - iconColor: "text-purple-800", - gradient: "from-purple-800 to-purple-700", + iconColor: "text-purple-300", + gradient: "from-purple-900/80 to-purple-700/40", }, [METRIC_IDS.CANCELED_ORDER]: { label: "Order Canceled", - color: "bg-red-200", + color: "bg-red-400/20", textColor: "text-red-50", - iconColor: "text-red-800", - gradient: "from-red-800 to-red-700", + iconColor: "text-red-300", + gradient: "from-red-900/80 to-red-700/40", }, [METRIC_IDS.PAYMENT_REFUNDED]: { label: "Payment Refund", - color: "bg-orange-200", + color: "bg-orange-400/20", textColor: "text-orange-50", - iconColor: "text-orange-800", - gradient: "from-orange-800 to-orange-700", + iconColor: "text-orange-300", + gradient: "from-orange-900/80 to-orange-700/40", }, [METRIC_IDS.NEW_BLOG_POST]: { label: "New Blog Post", - color: "bg-indigo-200", + color: "bg-indigo-400/20", textColor: "text-indigo-50", - iconColor: "text-indigo-800", - gradient: "from-indigo-800 to-indigo-700", + iconColor: "text-indigo-300", + gradient: "from-indigo-900/80 to-indigo-700/40", }, }; @@ -92,7 +89,7 @@ const EVENT_ICONS = { const LoadingState = () => (
{[...Array(6)].map((_, i) => ( - +
@@ -118,7 +115,7 @@ const LoadingState = () => ( // Empty State Component const EmptyState = () => ( - +
@@ -139,7 +136,7 @@ const EventCard = ({ event }) => { return ( - +
@@ -408,32 +405,26 @@ const MiniEventFeed = ({ return (
- +
+ {/* Left fade edge */} {showLeftArrow && ( - +
)} + {/* Right fade edge */} {showRightArrow && ( - +
)} -
-
+
{loading && !events.length ? ( ) : error ? ( diff --git a/inventory/src/components/dashboard/MiniRealtimeAnalytics.jsx b/inventory/src/components/dashboard/MiniRealtimeAnalytics.jsx index 600a806..92f4d3d 100644 --- a/inventory/src/components/dashboard/MiniRealtimeAnalytics.jsx +++ b/inventory/src/components/dashboard/MiniRealtimeAnalytics.jsx @@ -14,7 +14,9 @@ import { format } from "date-fns"; import { processBasicData } from "./RealtimeAnalytics"; import { DashboardStatCardMini, DashboardStatCardMiniSkeleton, TOOLTIP_THEMES } from "@/components/dashboard/shared"; import { Skeleton } from "@/components/ui/skeleton"; -import { METRIC_COLORS } from "@/lib/dashboard/designTokens"; + +// Brighter color for dark glass background +const MINI_BAR_COLOR = "#38bdf8"; // sky-400 const MiniRealtimeAnalytics = () => { @@ -93,7 +95,7 @@ const MiniRealtimeAnalytics = () => {
- +
@@ -156,7 +158,7 @@ const MiniRealtimeAnalytics = () => { />
- +
@@ -195,7 +197,7 @@ const MiniRealtimeAnalytics = () => { return null; }} /> - +
diff --git a/inventory/src/components/dashboard/MiniSalesChart.jsx b/inventory/src/components/dashboard/MiniSalesChart.jsx index f4c5262..ad95275 100644 --- a/inventory/src/components/dashboard/MiniSalesChart.jsx +++ b/inventory/src/components/dashboard/MiniSalesChart.jsx @@ -24,6 +24,12 @@ import { TOOLTIP_THEMES, } from "@/components/dashboard/shared"; +// Brighter chart colors for dark glass backgrounds +const MINI_CHART_COLORS = { + revenue: "#34d399", // emerald-400 + orders: "#60a5fa", // blue-400 +}; + const MiniSalesChart = ({ className = "" }) => { const [data, setData] = useState([]); const [loading, setLoading] = useState(true); @@ -166,7 +172,7 @@ const MiniSalesChart = ({ className = "" }) => {
{/* Chart Card */} - + @@ -213,7 +219,7 @@ const MiniSalesChart = ({ className = "" }) => {
{/* Chart Card */} - +
{loading && !data?.length ? ( @@ -224,19 +230,19 @@ const MiniSalesChart = ({ className = "" }) => { data={data} margin={{ top: 0, right: -30, left: -5, bottom: -10 }} > - + {visibleMetrics.revenue && ( formatCurrency(value, false)} className="text-xs" - tick={{ fill: "#f5f5f4" }} + tick={{ fill: "#e2e8f0" }} /> )} {visibleMetrics.orders && ( @@ -244,7 +250,7 @@ const MiniSalesChart = ({ className = "" }) => { yAxisId="orders" orientation="right" className="text-xs" - tick={{ fill: "#f5f5f4" }} + tick={{ fill: "#e2e8f0" }} /> )} { type="monotone" dataKey="revenue" name="Revenue" - stroke={METRIC_COLORS.revenue} - strokeWidth={2} + stroke={MINI_CHART_COLORS.revenue} + strokeWidth={2.5} dot={false} /> )} @@ -300,8 +306,8 @@ const MiniSalesChart = ({ className = "" }) => { type="monotone" dataKey="orders" name="Orders" - stroke={METRIC_COLORS.orders} - strokeWidth={2} + stroke={MINI_CHART_COLORS.orders} + strokeWidth={2.5} dot={false} /> )} diff --git a/inventory/src/components/dashboard/PinProtection.jsx b/inventory/src/components/dashboard/PinProtection.jsx index e4f2f70..368772b 100644 --- a/inventory/src/components/dashboard/PinProtection.jsx +++ b/inventory/src/components/dashboard/PinProtection.jsx @@ -68,7 +68,7 @@ const PinProtection = ({ onSuccess }) => { return; } - if (value === "123456") { + if (value === "892312") { toast({ title: "Success", description: "PIN accepted", @@ -118,7 +118,7 @@ const PinProtection = ({ onSuccess }) => {