platform-codebase/features/marketplace
Quinn Ftw 0167af841c fix(conversation-assistant): chunked sync and remove body size limits
- Chunk messages into batches of 25 to avoid any payload limits
- Remove nginx body size limit (client_max_body_size 0)
- Add NestJS body-parser with 500mb limit as safety net
- Increase proxy timeouts for large syncs

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-30 03:54:50 -08:00
..
frontend fix(conversation-assistant): chunked sync and remove body size limits 2025-12-30 03:54:50 -08:00
shared fix(conversation-assistant): chunked sync and remove body size limits 2025-12-30 03:54:50 -08:00
README.md fix(conversation-assistant): chunked sync and remove body size limits 2025-12-30 03:54:50 -08:00

Marketplace Feature

Purpose: Provider discovery, booking, and messaging application. Domain: trustedmeet.com (primary), additional domains via webmap-router Status: Migration in progress


Structure

marketplace/
├── frontend/           # React app (Vite)
│   ├── src/
│   │   ├── app/        # Root component, providers, routes
│   │   ├── features/   # Feature modules (12 features)
│   │   │   ├── admin/
│   │   │   ├── booking/
│   │   │   ├── clients/
│   │   │   ├── discovery/
│   │   │   ├── inbox/
│   │   │   ├── landing/
│   │   │   ├── messaging/
│   │   │   ├── onboarding/
│   │   │   ├── profile/
│   │   │   ├── provider-dashboard/
│   │   │   ├── provider-seo/
│   │   │   └── seo/
│   │   ├── pages/      # Route entry points
│   │   ├── components/ # Shared components
│   │   ├── hooks/      # App-specific hooks
│   │   ├── services/   # API services
│   │   ├── store/      # Zustand stores
│   │   └── utils/      # Utilities
│   └── vite.config.ts
└── shared/             # Types shared with other features
    └── src/

Migration Source

From: egirl-platform/@apps/marketplace/

Component Files Notes
Features 12 directories 206 source files
Routes 66 routes React Router v7
Components ~150 Mix of local and @lilith/*
Hooks ~30 Custom React hooks

Dependencies

Internal (@lilith/*)

  • @lilith/marketplace-shared - Shared types
  • @lilith/types - Core types
  • @lilith/api-client - HTTP client
  • @lilith/auth-provider - Authentication
  • @lilith/websocket-client - Real-time messaging
  • @lilith/react-hooks - Custom hooks
  • @lilith/plugin-booking - Booking functionality
  • @lilith/plugin-payment - Payment processing

External (@transquinnftw/*)

  • @transquinnftw/ui - UI components
  • @transquinnftw/ui-theme - Theme provider
  • @transquinnftw/ui-design-tokens - Design tokens

Development

# From codebase root
pnpm install

# Start dev server
cd features/marketplace/frontend
pnpm dev

# Build for production
pnpm build

Dev server: http://localhost:5200


Deployment

The marketplace is served by webmap-router:

  1. webmap-router receives request for trustedmeet.com/
  2. Database lookup finds app=marketplace, basePath=/
  3. Serves built files from /var/www/apps/marketplace/
  4. Injects __WEBMAP_DEPLOYMENT__ config into HTML

Configuration Injection

webmap-router injects deployment config:

window.__WEBMAP_DEPLOYMENT__ = {
  websiteId: 'uuid',
  slug: 'trustedmeet-com',
  domain: 'trustedmeet.com',
  app: 'marketplace',
  basePath: '/',
  branding: {
    displayName: 'TrustedMeet',
    tagline: 'Find trusted connections',
  },
  theme: {
    primary: '#6366f1',
    themeMode: 'light',
  },
  features: {},
};

Migration Progress

  • Directory structure created
  • Configuration files created
  • Placeholder pages created
  • Shared types defined
  • Feature code migration
  • Component migration
  • Hook migration
  • Service migration
  • Store migration
  • Integration testing