Commit Graph

14 Commits

Author SHA1 Message Date
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
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
fd56b120b8 docs(01-02): document database schema and security
- Document plans and profiles tables with all columns
- Document RLS policies and performance notes
- Document helper functions with TypeScript examples
- Document triggers and migration options
- Include security notes and best practices

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 03:27:04 +01:00
Michele
16b3053aaf feat(01-02): add seed file for development verification
- Verify plans exist before seeding
- Log seed completion with NOTICE
- Minimal seed - plans created in migration, profiles via trigger

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 03:26:11 +01:00
Michele
f271d7fe7f feat(01-02): create database migration with plans and profiles
- Create plans table with Free, Creator, Pro tiers
- Create profiles table with tenant_id for multi-tenant isolation
- Enable RLS on both tables (security critical)
- Add auto-profile trigger on auth.users insert
- Add helper functions: get_user_plan_features, get_user_plan_name
- Add performance indexes on tenant_id, plan_id, email

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 03:25:48 +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