Commit Graph

8 Commits

Author SHA1 Message Date
Michele
e4e04fa784 feat(01-06): add subscription management page
- Display all plans (Free, Creator, Pro) in card grid
- Highlight current plan with 'Piano attuale' badge
- Add feature comparison table
- Include FAQ section
- Show payment deferral notice
- All text in Italian
2026-01-31 13:43:29 +01:00
Michele
8789f26b36 feat(01-06): add plan card component and switch action
- Create switchPlan server action for plan changes
- Create getCurrentPlan utility function
- Build PlanCard component with feature display
- Handle plan switching with loading state
- Revalidate dashboard and subscription pages on change
2026-01-31 13:42:45 +01:00
Michele
4c6ff1ab0f feat(01-05): update home page with auth-aware redirect
- Redirect authenticated users to dashboard
- Show landing page with value proposition for visitors
- Add clear CTAs for register and login
- Italian copy reflecting core product value

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 13:37:59 +01:00
Michele
af17f90d44 feat(01-05): add protected dashboard layout and page
- Create UserNav component with logout functionality
- Add dashboard layout with header, navigation, and user info
- Create dashboard page displaying plan info and onboarding steps
- All text in Italian for target audience

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 13:37:29 +01:00
Michele
af1f5d6fc6 feat(01-03): add auth callback route for code exchange
- Handle OAuth and email verification callback
- Exchange code for session using Supabase SSR
- Redirect to next param or /dashboard on success
- Redirect to /login with error on failure

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 06:16:07 +01:00
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
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