import React from 'react' function ProgressTracker({ progress = 0 }) { const stages = [ { name: 'Validating URL', threshold: 10 }, { name: 'Capturing Screenshots', threshold: 25 }, { name: 'Scanning Accessibility', threshold: 50 }, { name: 'Generating AI Analysis', threshold: 75 }, { name: 'Compiling Report', threshold: 95 }, { name: 'Complete', threshold: 100 } ] const currentStage = stages.find(stage => progress <= stage.threshold) || stages[stages.length - 1] const currentStageIndex = stages.indexOf(currentStage) return (

Analyzing Your Website

Please wait while we analyze your website. This typically takes 1-3 minutes.

{/* Progress Bar */}
Progress {progress}%
{/* Current Stage */}
{currentStage.name}
{/* Stage Timeline */}
{stages.map((stage, index) => { const isCompleted = progress > stage.threshold const isCurrent = index === currentStageIndex const isPending = progress < stage.threshold return (
{isCompleted ? ( ) : isCurrent ? (
) : ( {index + 1} )}

{stage.name}

{isCurrent && (

In progress...

)}
{isCompleted ? 'Done' : isCurrent ? 'Active' : 'Pending'}
) })}
{/* Estimated Time */}

Estimated time remaining: {Math.max(0, Math.ceil((100 - progress) / 10))} minutes

{/* Tips */}

While you wait...

  • • We're capturing screenshots across multiple device sizes
  • • Our AI is analyzing visual design and user experience patterns
  • • Accessibility compliance is being checked against WCAG guidelines
  • • You'll get a comprehensive report with actionable recommendations
) } export default ProgressTracker