diff --git a/csv-table-hub-main/src/routes/auth.tsx b/csv-table-hub-main/src/routes/auth.tsx index 64f253c..b86b4c1 100644 --- a/csv-table-hub-main/src/routes/auth.tsx +++ b/csv-table-hub-main/src/routes/auth.tsx @@ -1,42 +1,89 @@ -import { createFileRoute } from "@tanstack/react-router"; +import { createFileRoute, Link, useNavigate } from "@tanstack/react-router"; +import { useState } from "react"; import { Button } from "@/components/ui/button"; -import { Card, CardContent, CardFooter, CardHeader, CardTitle } from "@/components/ui/card"; +import { Input } from "@/components/ui/input"; import { Label } from "@/components/ui/label"; +// Cosmetic sign-in per gitreverse.com/designs/csv-joyride-sync-lovable-app. +// Backend has no user auth (X-API-Key only) — see docs/BUG_REPORT.md BUG-006/035. +// Submit does not authenticate; it just routes to /. Wire a real /api/auth/login +// before treating this as more than a mockup. export const Route = createFileRoute("/auth")({ head: () => ({ meta: [ - { title: "CSV Migrator — Upload without authentication" }, - { name: "description", content: "Authentication is disabled. Upload CSV files directly to your backend." }, + { title: "Sign in — CSV Migrator" }, + { name: "description", content: "Sign in to CSV Migrator." }, ], }), component: AuthPage, }); function AuthPage() { + const navigate = useNavigate(); + const [email, setEmail] = useState(""); + const [password, setPassword] = useState(""); + return ( -
- This Lovable frontend has been configured to use a PostgreSQL-backed backend API directly, so user sign-in is not required. -
++ Need an account?{" "} + + Sign up + +
+