Claude/migrate mentorship site n l3 zj#154
Open
caimanoliveira wants to merge 17 commits into
Open
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.