Skip to content

Claude/migrate mentorship site n l3 zj#154

Open
caimanoliveira wants to merge 17 commits into
supabase:mainfrom
caimanoliveira:claude/migrate-mentorship-site-nL3ZJ
Open

Claude/migrate mentorship site n l3 zj#154
caimanoliveira wants to merge 17 commits into
supabase:mainfrom
caimanoliveira:claude/migrate-mentorship-site-nL3ZJ

Conversation

@caimanoliveira

Copy link
Copy Markdown

What kind of change does this PR introduce?

Bug fix, feature, docs update, ...

What is the current behavior?

Please link any relevant issues here.

What is the new behavior?

Feel free to include screenshots if it includes visual changes.

Additional context

Add any other context or screenshots.

claude and others added 17 commits March 20, 2026 02:43
Initial planning document for the mentorship CRM system including tech stack, database schema, page structure, and implementation phases.

https://claude.ai/code/session_0118ojZM3u7GeunLzKgKKvHa
Complete CRM system for mentorship lead management with:
- Kanban board with drag & drop (dnd-kit) across 6 pipeline stages
- Lead CRUD with contact info, proposal details, and source tracking
- Interaction timeline per lead (notes, stage changes, meetings)
- Meeting scheduler with date, time and video link
- Dashboard with KPI metrics (total leads, conversion rate, pipeline value)
- Settings page to manage stages, products, and lead sources
- WhatsApp notifications via CallMeBot API for meeting reminders
- Supabase (PostgreSQL) schema + seed with default stages and products
- Built with Next.js 16, Tailwind CSS v4, and custom UI components

https://claude.ai/code/session_0118ojZM3u7GeunLzKgKKvHa
Creates tables: stages, products, sources, leads, meetings, interactions
with indexes, FK constraints, and updated_at trigger.

https://claude.ai/code/session_0118ojZM3u7GeunLzKgKKvHa
- package.json with Next.js 16.2.0, React 19, Tailwind v4
- next.config.ts, tsconfig.json, postcss.config.mjs
- globals.css with CSS variables and color palette
- layout.tsx with full SEO metadata, JSON-LD (Person, Service, FAQPage)

https://claude.ai/code/session_016GEcRQGq1MyRD48MNrB3PH
- Navbar, Hero, Decision Canvas, Pain Points, Method, How it works
- Qualification (for you / not for you), Mentor bio, Testimonials
- Pricing (3 plans: R$600 / R$2.000 / R$450/mês), Final CTA, Footer
- JSON-LD schema: Person, Service, FAQPage
- WhatsApp: +5511940347276, email: mentoriacarreiraedecisao@gmail.com

https://claude.ai/code/session_016GEcRQGq1MyRD48MNrB3PH
Exclude node_modules, .next build artifacts, and next-env.d.ts.

https://claude.ai/code/session_016GEcRQGq1MyRD48MNrB3PH
- Supabase migration: 7 new tables (mentorados, materiais,
  mentorado_materiais, tarefas, sessoes, competencias,
  avaliacoes_competencia) with RLS policies and competency seeds
- src/proxy.ts: route protection for /portal/* (Next.js 16 proxy API)
- src/lib/supabase.ts + supabase-server.ts: browser and server clients
- src/types/portal.ts: TypeScript interfaces for all portal entities
- /portal/login: email+password login page
- /portal/dashboard: session summary, pending tasks, last material
- /portal/materiais: material library with type badges + "new" indicator
- /portal/tarefas: task list with server actions for status updates
- /portal/avaliacao: 8-competency self-assessment with score history
- mentoria-crm: mentorados list, detail (sessions/tasks/materials tabs),
  new-session and new-task forms; sidebar updated with Mentorados link

https://claude.ai/code/session_016GEcRQGq1MyRD48MNrB3PH
Handles token_hash (invite/recovery) and PKCE code exchange,
redirects to /portal/dashboard after successful auth.

https://claude.ai/code/session_016GEcRQGq1MyRD48MNrB3PH
…back

Instead of setting Site URL to /auth/callback (which caused redirect loops),
keep Site URL as root and use a client component to detect token_hash/code
params and forward them to /auth/callback.

https://claude.ai/code/session_016GEcRQGq1MyRD48MNrB3PH
Also handles #access_token= hash params used by implicit flow,
in addition to PKCE ?token_hash= query params.

https://claude.ai/code/session_016GEcRQGq1MyRD48MNrB3PH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants