19 Commits

Author SHA1 Message Date
Michele
eb5b2cd42c Update UAT: all Phase 1 tests passing
- Test 6 (middleware redirect) now passes after fix
- 12/12 tests passing
- Phase 1 UAT complete

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-01 12:03:51 +01:00
Michele
2c2238548a test(01): complete UAT - 11 passed, 1 issue
Issue found:
- Middleware redirect missing basePath (redirects to /login/ instead of /leopost/login/)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-01 12:00:36 +01:00
Michele
6d1c08dce4 Temporarily disable middleware for debugging
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 15:19:52 +01:00
Michele
e58a79fd2c docs(phase-1): complete Foundation & Auth phase
- All 6 plans executed (4 waves)
- Verification: 5/5 must-haves verified
- Requirements AUTH-01, AUTH-02, AUTH-03 marked complete
- Phase 1 complete, ready for Phase 2

Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
2026-01-31 13:51:08 +01:00
Michele
04347bc9e8 docs(01-06): complete subscription management plan
Tasks completed: 3/3
- Task 1: Plan utilities and types
- Task 2: Plan card component and switch action
- Task 3: Subscription management page

PHASE 1 COMPLETE - Foundation & Auth finished
SUMMARY: .planning/phases/01-foundation-auth/01-06-SUMMARY.md
2026-01-31 13:44:40 +01:00
Michele
8319679f7d docs(01-05): complete session middleware and dashboard plan
Tasks completed: 3/3
- Create middleware helper and main middleware
- Create protected dashboard layout and page
- Update home page to redirect appropriately

SUMMARY: .planning/phases/01-foundation-auth/01-05-SUMMARY.md

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 13:39:30 +01:00
Michele
d5a69fd8c4 docs(01-03): document parallel execution completion
Email/password auth was implemented by 01-04 during parallel wave execution.
All must-haves verified present in codebase.

Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
2026-01-31 13:33:57 +01:00
Michele
fc5e799212 docs(01-04): complete Google OAuth plan
Tasks completed: 3/3
- Create Google Sign-In button component
- Add Google button to login and register pages
- Document Google OAuth setup process

SUMMARY: .planning/phases/01-foundation-auth/01-04-SUMMARY.md

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 05:25:40 +01:00
Michele
0ef0e825a7 docs(01-01): complete Project Setup plan
Tasks completed: 3/3
- Task 1: Initialize Next.js 16 project with TypeScript and Tailwind
- Task 2: Configure environment variables for Supabase
- Task 3: Create dual Supabase client pattern

SUMMARY: .planning/phases/01-foundation-auth/01-01-SUMMARY.md

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 05:01:32 +01:00
Michele
17ee4b4ccb docs(01-02): complete database schema plan
Tasks completed: 3/3
- Create database migration with plans and profiles
- Create seed file for development
- Document database schema

SUMMARY: .planning/phases/01-foundation-auth/01-02-SUMMARY.md

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 03:29:35 +01:00
Michele
bfc5133683 docs(01): update roadmap with phase 1 plan details
- Added 6 plan checkboxes to Phase 1 section
- Updated progress table: 0/6 Planned
- Plans structured in 4 execution waves

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 03:13:19 +01:00
Michele
bd3e1074a8 docs(01): create phase 1 plans - Foundation & Auth
Phase 01: Foundation & Auth
- 6 plans in 4 execution waves
- Wave 1: Project setup (01) + Database schema (02) [parallel]
- Wave 2: Email/password auth (03) + Google OAuth (04) [parallel]
- Wave 3: Middleware & route protection (05)
- Wave 4: Subscription management UI (06)

Requirements covered: AUTH-01, AUTH-02, AUTH-03
Ready for execution

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 03:12:38 +01:00
Michele
6a969bccc8 docs(phase-1): research authentication and multi-tenancy domain
Phase 1: Foundation & Auth
- Standard stack identified (Supabase Auth + @supabase/ssr)
- Architecture patterns documented (dual-client, RLS, middleware)
- Subscription schema researched (plans table + JSONB features)
- 7 common pitfalls catalogued (missing RLS, session expiry, etc.)
- Code examples verified from official Supabase docs

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-31 02:57:28 +01:00
Michele
619353d9da docs(01): capture phase context
Phase 01: Foundation & Auth
- Email verification mandatory
- Password: medium strength (8+, 1 num, 1 upper)
- Specific error messages (not generic)
- New device login notification
- Password reset via email link

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 02:46:16 +01:00
Michele
7c1ca40047 docs: create roadmap (10 phases)
Phases:
1. Foundation & Auth: AUTH-01, AUTH-02, AUTH-03
2. Social Platform Integration: AUTH-04
3. Onboarding & Context: ONBR-01, ONBR-02
4. AI Chat Interface: CHAT-01, CHAT-02, CHAT-03
5. Content Generation: CONT-01, CONT-02
6. Scheduling Foundation: SCHD-01, SCHD-02
7. Automation & Calendar: SCHD-03, SCHD-04
8. AI Learning: CHAT-04
9. Editorial Planning: CONT-03
10. Messaging Integration: MSGN-01, MSGN-02

All 19 v1 requirements mapped to phases.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 02:29:57 +01:00
Michele
52caabc9cc docs: define v1 requirements
19 requirements across 6 categories
7 requirements deferred to v2

Categories:
- Authentication (4)
- Onboarding (2)
- AI Chat (4)
- Content Generation (3)
- Scheduling & Publishing (4)
- Messaging Integration (2)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 02:23:16 +01:00
Michele
dc3ea1cf58 docs: complete domain research
Research dimensions:
- STACK.md: Technology stack recommendations (Next.js 15, Supabase, Vercel AI SDK, BullMQ)
- FEATURES.md: Feature landscape analysis (table stakes vs differentiators)
- ARCHITECTURE.md: System architecture design (headless, multi-tenant, job queue)
- PITFALLS.md: Common mistakes to avoid (rate limits, AI slop, cost control)
- SUMMARY.md: Synthesized findings with roadmap implications

Key findings:
- Stack: Next.js 15 + Supabase Cloud + Vercel AI SDK (multi-provider)
- Architecture: Modular monolith → microservices, headless pattern
- Critical pitfall: API rate limits (Meta reduced by 96%), AI cost explosion

Phase recommendations:
1. Core Scheduling Foundation (6-8 weeks)
2. Reliability & Differentiation (4-6 weeks)
3. Advanced Innovation (8-12 weeks)
4. Scale & Polish (ongoing)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-31 02:08:10 +01:00
Michele
a2f5dc2b97 chore: add project config
Mode: yolo
Depth: comprehensive
Parallelization: enabled
Workflow agents: research=on, plan_check=on, verifier=on

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 01:56:22 +01:00
Michele
1ccb092469 docs: initialize project
Leopost - micro-SaaS di social media management AI per freelance italiani

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