How snehalbhattacharjee038-cloud/roadmap-dynamo-ai works
Purpose and Entry Points
This is a Vite-based React/TypeScript single-page application for generating and presenting career roadmaps, including field information, salary context, learning resources, phased plans, and chatbot assistance. Browser bootstrap occurs at src/main.tsx; top-level application composition is in src/App.tsx, with the main route/page in src/pages/Index.tsx.
UI Composition and Roadmap Workspace
src/pages/Index.tsx likely orchestrates the user journey: collect career goals, request a generated roadmap, and render its results. src/components/InputForm.tsx is the primary input boundary. Result-oriented panels are separated by concern:
• src/components/RoadmapVisualization.tsx
• src/components/RoadmapPhases.tsx
• src/components/FieldInfo.tsx
• src/components/SalaryPanel.tsx
• src/components/ResourcesPanel.tsx
This decomposition makes generated roadmap data the central client-side domain object consumed by several presentation components.
Domain Model and Client Data Boundary
Roadmap-shaped TypeScript contracts are defined in src/types/roadmap.ts. Frontend API access is centralized in src/lib/api.ts, creating a boundary between UI components and remote generation/chat services. PDF generation/export is isolated in src/lib/pdfExport.ts, allowing roadmap output to move from the rendered application into a downloadable document without coupling export behavior to individual panels.
AI/Backend Generation Pipeline
Supabase Edge Functions provide backend execution for two primary workflows:
• supabase/functions/generate-roadmap/index.ts receives career-input requests and returns structured roadmap content.
• supabase/functions/chat/index.ts supports conversational assistance for src/components/Chatbot.tsx.
The expected control flow is: InputForm → src/lib/api.ts → Supabase function → typed roadmap response → page state → roadmap, resource, salary, and field-information panels. Chat follows a parallel UI-to-function request/response path.
Supabase Integration
The browser client is configured under src/integrations/supabase/client.ts, with generated or maintained service typings in src/integrations/supabase/types.ts. Edge-function and local Supabase configuration live under supabase/functions/ and supabase/config.toml. Supabase is therefore the material external platform boundary for server-side logic; credentials/runtime configuration are expected to come from .env rather than client components.
Navigation, Styling, and Shared UI Foundation
Application-level styling begins in src/index.css and src/App.css. Reusable UI primitives are supplied under src/components/ui/, while application-specific navigation is represented by src/components/NavLink.tsx. Tailwind/PostCSS configuration (tailwind.config.ts, postcss.config.js) indicates utility-first styling alongside component-local composition.
Runtime and Delivery Shape
The frontend runs as a Vite client application (vite.config.ts, src/main.tsx) and is deployable independently from Supabase Edge Functions. Static public assets are served from public/, including public/robots.txt. The backend functions run in the Supabase Edge Runtime rather than in the browser, keeping generation and chat provider interactions outside the client trust boundary.
Main entry points: Index.tsx Roadmap workspace · client.ts Supabase browser client · api.ts API boundary · App.tsx App shell
Components 16
Browser SPA
Vite-served React application.
- Vite bootstrap
src/main.tsx - App shell
src/App.tsx - Roadmap workspace · Owns the career-input and generated-roadmap journey.
src/pages/Index.tsx - Career input form
src/components/InputForm.tsx - Roadmap contracts · Shared shape for generated roadmap data.
src/types/roadmap.ts - API boundary · Centralizes calls to remote roadmap and chat services.
src/lib/api.ts - Roadmap visualization
src/components/RoadmapVisualization.tsx - Roadmap phases
src/components/RoadmapPhases.tsx - Field information
src/components/FieldInfo.tsx - Salary panel
src/components/SalaryPanel.tsx - Resources panel
src/components/ResourcesPanel.tsx - PDF export · Converts roadmap output into a downloadable document.
src/lib/pdfExport.ts - Chatbot
src/components/Chatbot.tsx - Supabase browser client
src/integrations/supabase/client.ts
Supabase Edge Runtime
Server-side generation and chat boundary.
- Generate roadmap · Builds structured roadmap content from career input.
supabase/functions/generate-roadmap/index.ts - Chat service · Handles conversational assistance requests.
supabase/functions/chat/index.ts
Connections 17
- Vite bootstrap → App shell: mounts
- App shell → Roadmap workspace: renders
- Roadmap workspace → Career input form: collects goals
- Career input form → API boundary: generation request
- API boundary → Supabase browser client: uses
- Supabase browser client → Generate roadmap: invokes
- Generate roadmap → Roadmap contracts: returns typed roadmap
- Roadmap contracts → Roadmap workspace: page state
- Roadmap workspace → Roadmap visualization: renders roadmap
- Roadmap workspace → Roadmap phases: renders phases
- Roadmap workspace → Field information: renders field context
- Roadmap workspace → Salary panel: renders salary context
- Roadmap workspace → Resources panel: renders resources
- Roadmap workspace → PDF export: exports roadmap
- Roadmap workspace → Chatbot: hosts assistant
- Chatbot → API boundary: chat request
- Supabase browser client → Chat service: invokes