How thiagommeneses/waba-control-panel-pro works
Project type and purpose
• This is a single-page application (SPA) built with React and TypeScript, styled with Tailwind CSS and the shadcn-ui component library.
• It uses Vite as its build tool and development server.
• Data storage and authentication are handled by Supabase, integrated via a client library in the frontend.
• Its primary purpose is to let users create, preview, send, and view logs of message templates.
File structure
• Top-level files:
• package.json / bun.lockb / lockfiles: dependency definitions
• vite.config.ts, tsconfig*.json, tailwind.config.ts, postcss.config.js: build & tool configurations
• public/: static assets (robots.txt) + index.html
• src/: main application code
• main.tsx + index.css: app entry point + global styles
• components/: UI components, organized into feature subfolders (templates, ui primitives)
• pages/: route-level components (Dashboard, Index, NotFound)
• hooks/: custom React hooks (data fetching, form state, toast notifications, mobile detection)
• integrations/supabase/: Supabase client setup and types
• lib/: shared utilities
• types/: domain types (template.ts)
• supabase/config.toml: Supabase CLI configuration for local emulation
README for additional insights
• Stack: Vite, TypeScript, React, shadcn-ui, Tailwind CSS
• Deployment: static site published via Lovable (likely pushes built assets to a CDN)
• Editing: supports live commits via a low-code platform (Lovable) or standard Git workflow
Elements
• HTTP(S) requests from Client → CDN → JS/CSS assets → Client
• API calls from React hooks → Supabase → React
• Git pushes → Lovable platform → Vite build → CDN
• Frontend code (e.g., blue rectangles)
• CI/CD pipeline (e.g., grey parallelogram for Git, orange for build tool)
Detail without over-splitting
• Similar UI components into one “UI Component Library” cluster.
• “Feature Components” (CreateTemplate, SendTemplate, etc.) as a sub-cluster.
• “Primitive UI” (shadcn-ui) as the foundation layer.
• In the deployment pipeline, illustrate both “Dev” and “Prod” lanes if helpful.