Add breadcrumb and transitions

Introduce breadcrumb navigation component and integrate into detail pages with hover previews; add PageTransition to App for smooth navigations and loading animations.
This commit is contained in:
gpt-engineer-app[bot]
2025-11-12 03:46:34 +00:00
parent 361231bfac
commit fdfa1739e5
8 changed files with 186 additions and 4 deletions

View File

@@ -1,5 +1,6 @@
import { useState, useEffect, lazy, Suspense } from 'react';
import { useParams, useNavigate } from 'react-router-dom';
import { EntityBreadcrumb } from '@/components/navigation/EntityBreadcrumb';
import { Header } from '@/components/layout/Header';
import { trackPageView } from '@/lib/viewTracking';
import { getBannerUrls } from '@/lib/cloudflareImageUtils';
@@ -220,6 +221,15 @@ export default function OperatorDetail() {
<Header />
<main className="container mx-auto px-4 py-8 max-w-7xl">
{/* Breadcrumb Navigation */}
<EntityBreadcrumb
segments={[
{ label: 'Operators', href: '/operators' },
{ label: operator.name }
]}
className="mb-4"
/>
{/* Back Button and Edit Button */}
<div className="flex items-center justify-between mb-6">
<Button variant="ghost" onClick={() => navigate('/operators')}>