"use client"; import { useState } from 'react'; import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card'; import { Button } from '@/components/ui/button'; import { Upload, FileText, Database, BarChart3, CheckCircle } from 'lucide-react'; import { UploadForm } from '@/app/components/uploadForm'; interface FileData { id: string; filename: string; mimetype: string; size: number; createdAt: string; updatedAt: string; } export default function CintasCalendarSummaryPage() { const [currentStep, setCurrentStep] = useState(1); const [uploadedFile, setUploadedFile] = useState(null); const [isProcessing, setIsProcessing] = useState(false); const handleFileUploaded = (file: FileData) => { setUploadedFile(file); setCurrentStep(2); }; const steps = [ { id: 1, title: 'Upload Excel File', description: 'Upload the Cintas Install Calendar Excel file to blob storage', icon: Upload, status: currentStep >= 1 ? 'completed' : 'pending', }, { id: 2, title: 'Create Import Record', description: 'Create an import record with Cintas Install Calendar layout configuration', icon: FileText, status: currentStep >= 2 ? 'pending' : 'disabled', }, { id: 3, title: 'Import Data', description: 'Read the Excel file and import data into PostgreSQL database', icon: Database, status: currentStep >= 3 ? 'pending' : 'disabled', }, { id: 4, title: 'Generate Summary', description: 'Run summary calculation and display results', icon: BarChart3, status: currentStep >= 4 ? 'pending' : 'disabled', }, ]; const getStepStatusColor = (status: string) => { switch (status) { case 'completed': return 'text-green-600 bg-green-50 border-green-200'; case 'pending': return 'text-blue-600 bg-blue-50 border-blue-200'; case 'disabled': return 'text-gray-400 bg-gray-50 border-gray-200'; default: return 'text-gray-600 bg-gray-50 border-gray-200'; } }; return (

Cintas Install Calendar Summary

Follow the workflow steps to upload and process the installation calendar data

{/* Workflow Steps */}
{steps.map((step) => { const Icon = step.icon; return (
Step {step.id}: {step.title}
{step.description}
); })}
{/* Step Content */}
{currentStep === 1 && ( Step 1: Upload Excel File Upload your Cintas Install Calendar Excel file to begin processing
{uploadedFile && (

File uploaded successfully!

{uploadedFile.filename} ({(uploadedFile.size / 1024 / 1024).toFixed(2)} MB)

)}
)} {currentStep === 2 && ( Step 2: Create Import Record Creating import record with Cintas Install Calendar layout configuration

Import record creation functionality coming soon...

)} {currentStep === 3 && ( Step 3: Import Data Processing Excel file and importing data into database

Data import functionality coming soon...

)} {currentStep === 4 && ( Step 4: Generate Summary Running summary calculations and displaying results

Summary generation functionality coming soon...

)} {/* Navigation */}
); }