Commit Graph

5 Commits

Author SHA1 Message Date
Michele
d1156c7a03 feat(01-03): add validation schemas and server actions
- Add Zod validation schemas for auth operations
- Add server actions for register, login, reset, update password
- Add clsx and tailwind-merge for class utilities
- Password validation: 8+ chars, 1 number, 1 uppercase
- Error messages in Italian per user requirement
- Specific error messages (not generic 'invalid credentials')

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 05:10:33 +01:00
Michele
dcbd7e8b46 feat(01-04): add Google button to login and register pages
- Add auth layout with centered card design
- Add Input component for form fields
- Add LoginForm component with email/password and validation
- Add RegisterForm component with password requirements
- Add login page with Google button + 'oppure' divider + email form
- Add register page with Google button + 'oppure' divider + email form
- Italian text throughout (Accedi, Registrati, oppure)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 05:07:24 +01:00
Michele
1d454d2fcb feat(01-04): create Google Sign-In button component
- Add cn() utility function for class name merging
- Add Button component with default/outline/ghost variants
- Add Card component with Header, Title, Description, Content, Footer
- Add GoogleSignInButton with signInWithOAuth for Google provider
- Italian text: 'Accedi con Google'
- Redirects to /auth/callback after consent

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 05:05:44 +01:00
Michele
c5b22420ac feat(01-01): create dual Supabase client pattern for App Router
- src/lib/supabase/client.ts: Browser client for Client Components
  - Uses createBrowserClient from @supabase/ssr
  - Reads NEXT_PUBLIC_* env vars

- src/lib/supabase/server.ts: Server client for SSR/Actions
  - Uses createServerClient from @supabase/ssr
  - Async cookies() for Next.js 15+ compatibility
  - Cookie handlers for session management
  - Try/catch in setAll for Server Component safety

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 03:32:14 +01:00
Michele
32d234df62 feat(01-01): initialize Next.js 16 project with TypeScript and Tailwind
- Next.js 16.1.6 with App Router and src/ directory
- TypeScript configuration with path aliases (@/*)
- Tailwind CSS v4 with PostCSS setup
- ESLint with Next.js config
- Supabase packages: @supabase/supabase-js, @supabase/ssr
- Form packages: zod, react-hook-form
- Simple Leopost placeholder page

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 03:31:01 +01:00