diff --git a/CHANGELOG.md b/CHANGELOG.md index 38041cd..6c09e34 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), ### Improved +- **Refreshed chart background.** The dashboard chart now has a clean grid line pattern instead of the old dotted background, with a soft fade at the top and bottom edges for a more polished look. - **Smoother loading transitions.** When your data finishes loading, the page now fades in smoothly instead of appearing all at once. This applies across Dashboard, Journeys, Funnels, Uptime, Settings, Notifications, and shared dashboards. If your data was already cached from a previous visit, it still loads instantly with no animation — the fade only kicks in when you're actually waiting for fresh data. - **Faster tab switching across the board.** Switching between Settings, Funnels, Uptime, and other tabs now shows your data instantly instead of flashing a loading skeleton every time. Previously visited tabs remember their data and show it right away, while quietly refreshing in the background so you always see the latest numbers without the wait. - **Smoother loading on the Journeys page.** The Journeys tab now shows a polished skeleton placeholder while data loads, matching the loading experience on other tabs. diff --git a/components/dashboard/Chart.tsx b/components/dashboard/Chart.tsx index 4eaf4bc..faf4786 100644 --- a/components/dashboard/Chart.tsx +++ b/components/dashboard/Chart.tsx @@ -11,6 +11,7 @@ import { Checkbox } from '@ciphera-net/ui' import { ArrowUpRight, ArrowDownRight } from '@phosphor-icons/react' import { motion } from 'framer-motion' import { cn } from '@/lib/utils' +import { GridPattern } from '@/components/ui/grid-pattern' const ANNOTATION_COLORS: Record = { deploy: '#3b82f6', @@ -338,7 +339,14 @@ export default function Chart({ return (
- + + {/* Metrics Grid - 21st.dev style */}
@@ -462,9 +470,6 @@ export default function Chart({ style={{ overflow: 'visible' }} > - - - } cursor={{ strokeDasharray: '3 3', stroke: '#9ca3af' }} /> - {/* Background dot grid pattern */} - {/* Annotation reference lines */} {visibleAnnotationMarkers.map((marker) => { diff --git a/components/ui/grid-pattern.tsx b/components/ui/grid-pattern.tsx new file mode 100644 index 0000000..af3e10f --- /dev/null +++ b/components/ui/grid-pattern.tsx @@ -0,0 +1,72 @@ +import { useId } from "react"; + +import { cn } from "@/lib/utils"; + +interface GridPatternProps { + width?: number; + height?: number; + x?: number; + y?: number; + squares?: Array<[x: number, y: number]>; + strokeDasharray?: string; + className?: string; + [key: string]: unknown; +} + +function GridPattern({ + width = 40, + height = 40, + x = -1, + y = -1, + strokeDasharray = "0", + squares, + className, + ...props +}: GridPatternProps) { + const id = useId(); + + return ( + + ); +} + +export { GridPattern };