From 9ec441c932d6c47df2a0c0d9f35933d7b704e762 Mon Sep 17 00:00:00 2001
From: Usman Baig
Date: Thu, 5 Feb 2026 16:33:36 +0100
Subject: [PATCH] Phase 1: Fix remaining button inconsistencies across all
pages
---
app/faq/page.tsx | 2 +-
app/not-found.tsx | 4 ++--
app/share/[id]/page.tsx | 9 ++++----
app/sites/[id]/funnels/[funnelId]/page.tsx | 12 ++++++-----
app/sites/[id]/funnels/new/page.tsx | 11 +++++-----
app/sites/[id]/funnels/page.tsx | 24 ++++++++++------------
app/sites/[id]/page.tsx | 16 ++++++++-------
7 files changed, 40 insertions(+), 38 deletions(-)
diff --git a/app/faq/page.tsx b/app/faq/page.tsx
index 2118097..ea63f70 100644
--- a/app/faq/page.tsx
+++ b/app/faq/page.tsx
@@ -131,7 +131,7 @@ export default function FAQPage() {
Contact us
diff --git a/app/not-found.tsx b/app/not-found.tsx
index f176abb..f65220d 100644
--- a/app/not-found.tsx
+++ b/app/not-found.tsx
@@ -28,12 +28,12 @@ export default function NotFound() {
-
-
Access Dashboard
-
+
diff --git a/app/sites/[id]/funnels/[funnelId]/page.tsx b/app/sites/[id]/funnels/[funnelId]/page.tsx
index 61d07c5..2eae2e1 100644
--- a/app/sites/[id]/funnels/[funnelId]/page.tsx
+++ b/app/sites/[id]/funnels/[funnelId]/page.tsx
@@ -4,7 +4,7 @@ import { useCallback, useEffect, useMemo, useState } from 'react'
import { useParams, useRouter } from 'next/navigation'
import { ApiError } from '@/lib/api/client'
import { getFunnel, getFunnelStats, deleteFunnel, type Funnel, type FunnelStats } from '@/lib/api/funnels'
-import { toast, LoadingOverlay, Select, DatePicker, ChevronLeftIcon, ArrowRightIcon, TrashIcon, useTheme } from '@ciphera-net/ui'
+import { toast, LoadingOverlay, Select, DatePicker, ChevronLeftIcon, ArrowRightIcon, TrashIcon, useTheme, Button } from '@ciphera-net/ui'
import Link from 'next/link'
import {
BarChart,
@@ -107,8 +107,10 @@ export default function FunnelReportPage() {
return (
Access denied
-
- Back to Funnels
+
+
+ Back to Funnels
+
)
@@ -118,9 +120,9 @@ export default function FunnelReportPage() {
return (
Unable to load funnel
-
loadData()} className="btn-primary">
+ loadData()} variant="primary">
Try again
-
+
)
}
diff --git a/app/sites/[id]/funnels/new/page.tsx b/app/sites/[id]/funnels/new/page.tsx
index fedc126..a6438a2 100644
--- a/app/sites/[id]/funnels/new/page.tsx
+++ b/app/sites/[id]/funnels/new/page.tsx
@@ -215,16 +215,15 @@ export default function CreateFunnelPage() {
-
- Cancel
+
+
+ Cancel
+
{saving ? 'Creating...' : 'Create Funnel'}
diff --git a/app/sites/[id]/funnels/page.tsx b/app/sites/[id]/funnels/page.tsx
index b799d94..1ea02b0 100644
--- a/app/sites/[id]/funnels/page.tsx
+++ b/app/sites/[id]/funnels/page.tsx
@@ -3,7 +3,7 @@
import { useCallback, useEffect, useState } from 'react'
import { useParams, useRouter } from 'next/navigation'
import { listFunnels, deleteFunnel, type Funnel } from '@/lib/api/funnels'
-import { toast, LoadingOverlay, PlusIcon, ArrowRightIcon, ChevronLeftIcon, TrashIcon } from '@ciphera-net/ui'
+import { toast, LoadingOverlay, PlusIcon, ArrowRightIcon, ChevronLeftIcon, TrashIcon, Button } from '@ciphera-net/ui'
import Link from 'next/link'
export default function FunnelsPage() {
@@ -66,12 +66,11 @@ export default function FunnelsPage() {
-
-
-
Create Funnel
+
+
+
+ Create Funnel
+
@@ -87,12 +86,11 @@ export default function FunnelsPage() {
Create a funnel to track how users move through your site and where they drop off.
-
-
- Create Funnel
+
+
+
+ Create Funnel
+
) : (
diff --git a/app/sites/[id]/page.tsx b/app/sites/[id]/page.tsx
index 154a206..176b669 100644
--- a/app/sites/[id]/page.tsx
+++ b/app/sites/[id]/page.tsx
@@ -8,7 +8,7 @@ import { getStats, getRealtime, getDailyStats, getTopPages, getTopReferrers, get
import { formatNumber, formatDuration, getDateRange } from '@/lib/utils/format'
import { toast } from '@ciphera-net/ui'
import { getAuthErrorMessage } from '@/lib/utils/authErrors'
-import { LoadingOverlay } from '@ciphera-net/ui'
+import { LoadingOverlay, Button } from '@ciphera-net/ui'
import { Select, DatePicker, DownloadIcon } from '@ciphera-net/ui'
import ExportModal from '@/components/dashboard/ExportModal'
import ContentStats from '@/components/dashboard/ContentStats'
@@ -297,19 +297,21 @@ export default function SiteDashboardPage() {
{ value: 'custom', label: 'Custom' },
]}
/>
- router.push(`/sites/${siteId}/funnels`)}
- className="btn-secondary text-sm"
+ variant="secondary"
+ className="text-sm"
>
Funnels
-
+
{canEdit && (
- router.push(`/sites/${siteId}/settings`)}
- className="btn-secondary text-sm"
+ variant="secondary"
+ className="text-sm"
>
Settings
-
+
)}