export interface PageTourStep {
  title: string;
  description: string;
  tip: string;
  iconName?: string;
}

export interface PageTourData {
  route: string;
  badge: string;
  title: string;
  subtitle: string;
  steps: PageTourStep[];
}

export const PAGE_TOURS_DATA: Record<string, PageTourData> = {
  '/dashboard': {
    route: '/dashboard',
    badge: 'Overview • Quick Guide',
    title: 'Welcome to Store Dashboard',
    subtitle: 'Track live WhatsApp sales, paid orders, and instant performance analytics.',
    steps: [
      {
        title: 'Real-Time Revenue & Order Metrics',
        description: 'View total paid revenue, orders volume, and active customer sessions updated live.',
        tip: 'Filter metrics by 24h, 7 days, or 30 days using the time selector in the header.',
      },
      {
        title: 'Sales Volume & Peak Hours Chart',
        description: 'Analyze hourly order trends to discover when your WhatsApp customers are buying.',
        tip: 'Export CSV sales reports anytime with the "Generate Report" button.',
      },
      {
        title: 'Quick Operations Shortcuts',
        description: 'Instantly sync catalog items, customize templates, or update wallet payout details.',
        tip: 'Check your overall onboarding progress bar at the top of this dashboard.',
      },
    ],
  },
  '/dashboard/products': {
    route: '/dashboard/products',
    badge: 'Catalog Sync • Quick Guide',
    title: 'Products & Meta Catalog Sync',
    subtitle: 'Manage inventory items and sync products directly to WhatsApp in real-time.',
    steps: [
      {
        title: 'Product Catalog Management',
        description: 'Add new products, set pricing, currency, and stock quantities.',
        tip: 'Use the search bar to filter products by SKU or item name.',
      },
      {
        title: 'Meta Catalog & WooCommerce Push',
        description: 'Push catalog items directly to your Meta WhatsApp Business Catalog or import via WooCommerce.',
        tip: 'Click "Sync Catalog Now" to trigger an instant synchronization.',
      },
      {
        title: 'CSV Bulk Import',
        description: 'Import hundreds of products at once using our standardized CSV spreadsheet template.',
        tip: 'Click "CSV Import" to download the template file and upload your inventory.',
      },
    ],
  },
  '/dashboard/integrations': {
    route: '/dashboard/integrations',
    badge: 'Integrations • Quick Guide',
    title: 'Integrations & API Credentials',
    subtitle: 'Connect WhatsApp Business API, WooCommerce keys, and payment webhooks.',
    steps: [
      {
        title: 'WhatsApp Business API Channel',
        description: 'Connect your Meta WhatsApp API account or scan the QR code to pair your business phone number.',
        tip: 'Ensures 24/7 automated replies without requiring your personal phone to stay online.',
      },
      {
        title: 'WooCommerce & Platform Sync',
        description: 'Connect Consumer Keys & Consumer Secrets to auto-sync WooCommerce orders and products.',
        tip: 'Click "Test Connection" to verify your store webhooks in real-time.',
      },
      {
        title: 'Local Payment Webhooks',
        description: 'Verify EcoCash, Paynow, and PesePay API webhooks for instant payment verification.',
        tip: 'Orders update to PAID status automatically upon successful customer checkout.',
      },
    ],
  },
  '/dashboard/templates': {
    route: '/dashboard/templates',
    badge: 'Templates • Quick Guide',
    title: 'WhatsApp Message Templates',
    subtitle: 'Customize interactive WhatsApp button templates and automated sales responses.',
    steps: [
      {
        title: 'Interactive WhatsApp Button Builder',
        description: 'Design interactive catalog cards, call-to-action buttons, and instant quick replies.',
        tip: 'Use the live mobile phone mockup on the right to test button clicks in real-time.',
      },
      {
        title: 'Customer Broadcast Blasts',
        description: 'Send targeted marketing announcements or order status notifications to WhatsApp contacts.',
        tip: 'Choose "All Customers" or select individual buyers for direct notifications.',
      },
      {
        title: 'WhatsApp Cloud API JSON Payload',
        description: 'Copy exact Meta WhatsApp Cloud API JSON structures for integration with custom bots.',
        tip: 'Click "Copy API JSON" to paste payloads directly into Meta Developer Console.',
      },
    ],
  },
  '/dashboard/orders': {
    route: '/dashboard/orders',
    badge: 'Orders • Quick Guide',
    title: 'Orders & Sales Management',
    subtitle: 'Track incoming WhatsApp orders, verify payment status, and process dispatch.',
    steps: [
      {
        title: 'Order Status Pipeline',
        description: 'Manage orders from PENDING payment to PROCESSING, COMPLETED, or CANCELLED.',
        tip: 'Filter orders by payment status (PAID vs UNPAID) using tab controls.',
      },
      {
        title: 'Instant Payment Links',
        description: 'Generate and send direct checkout payment links to customers over WhatsApp.',
        tip: 'Click "View Invoice" to inspect itemized pricing, taxes, and customer delivery address.',
      },
    ],
  },
  '/dashboard/deliveries': {
    route: '/dashboard/deliveries',
    badge: 'Logistics • Quick Guide',
    title: 'Deliveries & Live Dispatch Map',
    subtitle: 'Dispatch orders to drivers and track live GPS coordinates on Google Maps.',
    steps: [
      {
        title: 'Interactive Logistics Map',
        description: 'Monitor active delivery drivers and customer delivery destinations in real-time.',
        tip: 'Assign drivers and update delivery status (PREPARING -> DISPATCHED -> DELIVERED).',
      },
      {
        title: 'Live ETA Tracking Link',
        description: 'Send customers a custom tracking web link showing real-time driver coordinates.',
        tip: 'WhatsApp notifications send automatically when the driver is on their way.',
      },
    ],
  },
  '/dashboard/customers': {
    route: '/dashboard/customers',
    badge: 'CRM • Quick Guide',
    title: 'Customer CRM Directory',
    subtitle: 'Manage customer contacts, order history, and broadcast communication.',
    steps: [
      {
        title: 'WhatsApp Contact Directory',
        description: 'View buyer profiles, total spent, order history, and contact details.',
        tip: 'Search contacts by phone number or buyer name.',
      },
      {
        title: 'Direct Chat & Broadcast',
        description: 'Initiate direct WhatsApp messaging or add buyers to marketing broadcast lists.',
        tip: 'Keep your top buyers engaged with special promo announcements.',
      },
    ],
  },
  '/dashboard/profile': {
    route: '/dashboard/profile',
    badge: 'Profile • Quick Guide',
    title: 'Store Profile & Payout Settings',
    subtitle: 'Configure store branding, seller phone, and EcoCash payout wallet.',
    steps: [
      {
        title: 'Store Name & Contact Phone',
        description: 'Set your official store display name and seller contact phone number.',
        tip: 'Displayed to customers on checkout receipts and invoice headers.',
      },
      {
        title: 'EcoCash & Wallet Payout Reference',
        description: 'Specify your EcoCash/ZIPIT payout account where customer payments route.',
        tip: 'Click "Save Profile Details" to apply updates immediately across the platform.',
      },
    ],
  },
  '/dashboard/billing': {
    route: '/dashboard/billing',
    badge: 'Billing • Quick Guide',
    title: 'Store Subscription & Billing Plans',
    subtitle: 'Select plan tiers, activate your 14-day free trial, or manage billing cycles.',
    steps: [
      {
        title: '14-Day Free Trial Activation',
        description: 'Start with 14 days of free unlimited access. No credit card required.',
        tip: 'Click "Activate 14-day Free Trial Now" to immediately unlock all platform features.',
      },
      {
        title: 'Flexible Billing Cycles',
        description: 'Switch between Monthly, Semi-Annual, and Annual billing to save up to 25%.',
        tip: 'Payments process securely via PesePay, EcoCash, or Visa/Mastercard.',
      },
    ],
  },
};
