import { Suspense } from "react"; import Link from "next/link"; import { HydrateClient } from "~/trpc/server"; import { Card, CardContent, CardHeader, CardTitle } from "~/components/ui/card"; import { Button } from "~/components/ui/button"; import { Badge } from "~/components/ui/badge"; import { PageHeader } from "~/components/layout/page-header"; import { CSVImportPage } from "~/components/csv-import-page"; import { ArrowLeft, Upload, FileText, Download, CheckCircle, AlertCircle, Info, FileSpreadsheet, } from "lucide-react"; // File Upload Instructions Component function FormatInstructions() { return (
DATE,DESCRIPTION,HOURS,RATE,AMOUNT
Name your CSV files in{" "}
YYYY-MM-DD.csv
{" "}
format for automatic date detection.
Download our sample CSV template to see the exact format required for importing time entries.
Pro Tip
The template includes sample data and formatting examples to help you get started quickly.
1/15/24,"Web development work",8,75.00,600.00
2024-01-15.csv
Comma-separated values from Excel, Google Sheets, or any CSV editor
Up to 10MB per file with no limit on number of rows
Real-time validation with clear error messages and feedback