Unclassified

IntegrateWise - Unified Vite App

Tier C — Historical. This document is a point-in-time snapshot preserved for reference. For current architecture, see CANONICAL_PLATFORM_ARCHITECTURE.md.

✅ Status: READY FOR DEPLOYMENT


What Was Built

Unified Vite Application

Location: integratewise-complete/apps/web-vite/

Combines Marketing Site + App Dashboard in a single clean codebase.


Project Structure

apps/web-vite/
├── src/
│   ├── components/
│   │   ├── app/              # Dashboard Components
│   │   │   ├── AppLayout.tsx       # App shell with sidebar
│   │   │   ├── AppSidebar.tsx      # Navigation sidebar
│   │   │   ├── AppHeader.tsx       # Top header with search
│   │   │   ├── DashboardPage.tsx   # Main dashboard
│   │   │   ├── AccountsPage.tsx    # Account management
│   │   │   ├── TasksPage.tsx       # Task list
│   │   │   ├── CalendarPage.tsx    # Calendar view
│   │   │   ├── IntelligencePage.tsx # AI insights
│   │   │   └── SettingsPage.tsx    # Settings & integrations
│   │   ├── pages/            # Marketing Pages
│   │   │   ├── HomePage.tsx
│   │   │   ├── PricingPage.tsx
│   │   │   ├── SecurityPage.tsx
│   │   │   ├── StoryPage.tsx
│   │   │   ├── IntegrationsPage.tsx
│   │   │   └── LoginPage.tsx
│   │   ├── workspace/        # Workspace Screen (Figma)
│   │   ├── ui/               # shadcn/ui components (25+)
│   │   └── motion/           # Animation components
│   ├── lib/
│   │   └── api.ts            # API service layer
│   ├── routes.ts             # React Router config
│   ├── main.tsx              # App entry
│   └── index.css             # Tailwind v4 styles
├── dist/                     # Build output
├── package.json
├── vite.config.ts
├── wrangler.toml             # Cloudflare Pages config
└── README.md

Routes

Marketing Site (Public)

RoutePage
/Home
/pricingPricing tiers
/securitySecurity features
/storyAbout us
/integrationsIntegrations
/loginLogin

App Dashboard (Authenticated)

RoutePage
/appDashboard (default)
/app/dashboardMain workspace
/app/accountsAccount management
/app/tasksTask list
/app/calendarCalendar view
/app/intelligenceAI insights
/app/settingsSettings

Tech Stack

LayerTechnology
FrameworkVite + React 18
RoutingReact Router v7
StylingTailwind CSS v4
Componentsshadcn/ui
AnimationFramer Motion
IconsLucide React
ChartsRecharts
FormsReact Hook Form

Build Status

✅ npm install - SUCCESS
✅ npm run build - SUCCESS
✅ Output: dist/ folder ready
⚠️  Chunk size warning (707KB) - acceptable for now

Deployment

Cloudflare Pages

cd apps/web-vite

# Build
npm run build

# Deploy
wrangler pages deploy dist

Environment Variables

Create .env.local:

VITE_SUPABASE_URL=https://your-project.supabase.co
VITE_SUPABASE_ANON_KEY=your-anon-key
VITE_API_URL=https://api.integratewise.com

Why Vite vs Next.js?

AspectNext.js (Old)Vite (New)
Dev SpeedGood⚡ Faster
Build OutputComplexClean
StylingTailwind v3Tailwind v4
Visual PolishStandardPremium (Figma)
ComplexityHigh (App Router)Low (React Router)
Mental ModelMultiple conceptsSimple SPA

Key Features

Marketing

  • Anti-gravity background animation
  • Responsive design
  • 5 marketing pages
  • Professional polish

App Dashboard

  • Role-based sidebar navigation
  • Real-time data display
  • AI insights feed
  • Integration management
  • Account health tracking
  • Task management
  • Calendar view

Next Steps

  1. Set environment variables

    wrangler secret put VITE_SUPABASE_URL
    wrangler secret put VITE_SUPABASE_ANON_KEY
    
  2. Deploy to Cloudflare Pages

    wrangler pages deploy dist
    
  3. Connect to backend

    • Wire API calls to L3 services
    • Add authentication
    • Enable real-time updates
  4. Test end-to-end

    • Marketing → Login → Dashboard flow
    • All routes working
    • API integration

Timeline

PhaseStatus
Vite app setup✅ DONE
Figma integration✅ DONE
Marketing pages✅ DONE
Dashboard pages✅ DONE
Build & test✅ DONE
Deploy⏳ READY
Backend wiring⏳ PENDING

Commands

# Development
cd apps/web-vite
npm install
npm run dev

# Production build
npm run build

# Deploy
wrangler pages deploy dist

The unified Vite app is ready for deployment! 🚀