[PULSE-36] Funnels UI - builder and report #8

Merged
uz1mani merged 12 commits from staging into main 2026-02-04 23:16:04 +00:00
7 changed files with 746 additions and 5 deletions
Showing only changes of commit 252b023f0d - Show all commits

View File

@@ -51,6 +51,12 @@ export default function FunnelReportPage() {
loadData() loadData()
}, [siteId, funnelId, dateRange]) }, [siteId, funnelId, dateRange])
const { resolvedTheme } = useTheme()
const chartColors = useMemo(
() => (resolvedTheme === 'dark' ? CHART_COLORS_DARK : CHART_COLORS_LIGHT),
[resolvedTheme]
)
const loadData = async () => { const loadData = async () => {
try { try {
setLoading(true) setLoading(true)
@@ -98,12 +104,6 @@ export default function FunnelReportPage() {
conversion: s.conversion conversion: s.conversion
})) }))
const { resolvedTheme } = useTheme()
const chartColors = useMemo(
() => (resolvedTheme === 'dark' ? CHART_COLORS_DARK : CHART_COLORS_LIGHT),
[resolvedTheme]
)
return ( return (
<div className="w-full max-w-6xl mx-auto px-4 sm:px-6 py-8"> <div className="w-full max-w-6xl mx-auto px-4 sm:px-6 py-8">
<div className="mb-8"> <div className="mb-8">