feat: wrap all authenticated pages in DashboardShell, fix site card actions

- Move DashboardShell wrapping to layout-content.tsx for all dashboard
  pages (home, integrations, pricing) instead of per-page
- GlassTopBar derives page title from pathname (Integrations, Pricing)
- Site card: gear icon now opens site settings, separate trash icon for delete
This commit is contained in:
Usman Baig
2026-03-28 19:35:23 +01:00
parent 45c518b3ba
commit c36c1b0696
4 changed files with 40 additions and 11 deletions

View File

@@ -23,7 +23,6 @@ import PulseFAQ from '@/components/marketing/PulseFAQ'
import { toast } from '@ciphera-net/ui'
import { getAuthErrorMessage } from '@ciphera-net/ui'
import { getSitesLimitForPlan } from '@/lib/plans'
import DashboardShell from '@/components/dashboard/DashboardShell'
type SiteStatsMap = Record<string, { stats: Stats }>
@@ -230,7 +229,6 @@ export default function HomePage() {
}
return (
<DashboardShell siteId={null}>
<div className="w-full max-w-7xl mx-auto px-4 sm:px-6 pb-8">
{showFinishSetupBanner && (
<div className="mb-6 flex items-center justify-between gap-4 rounded-2xl border border-brand-orange/30 bg-brand-orange/10 px-4 py-3">
@@ -374,6 +372,5 @@ export default function HomePage() {
</div>
)}
</div>
</DashboardShell>
)
}