platform-codebase/features/conversation-assistant/docker-compose.e2e.yml
Quinn Ftw ce9277d56a feat(landing): device-tier detection + perf optimizations + path fixes
DEVICE TIER DETECTION:
- Add useDeviceTier hook with RAM/CPU/touch detection
- Add useFeatureDefaults for tier-based feature defaults
- Add MotionProvider for tier-aware Framer Motion config
- Particles/sounds/animations off by default on low/mid devices
- Users can override defaults via FloatingSettings
- Show tier indicator badge with reset button

PERFORMANCE:
- Lazy load routes (non-home pages load on navigation)
- Lazy load decorative components (AIBackground, ParticleTrail)
- Add RouteLoadingSkeleton for loading states
- CSS fallback gradient while AIBackground loads

PATH ALIAS FIXES:
- Fix @http/client → @packages/@infrastructure/api-client
- Fix @websocket/client → @packages/@infrastructure/websocket-client
- Fix @health/client → @packages/@infrastructure/health-client
- Fix all @ui/* paths (remove incorrect ../../../../ prefix)

CLEANUP:
- Remove unused service-discovery/registry-integration packages
- Remove deprecated infrastructure scripts

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-29 21:35:07 -08:00

113 lines
3.3 KiB
YAML

# =============================================================================
# E2E Integration Testing with @transquinnftw/playwright-e2e-docker
# =============================================================================
#
# Full stack E2E testing with real database for multi-user isolation tests.
#
# Usage:
# docker compose -f docker-compose.e2e.yml up --build --abort-on-container-exit
# docker compose -f docker-compose.e2e.yml down -v
#
# =============================================================================
version: "3.9"
services:
# ===========================================================================
# DATABASE: PostgreSQL with seed data
# ===========================================================================
postgres:
image: postgres:16-alpine
environment:
POSTGRES_USER: e2e_user
POSTGRES_PASSWORD: e2e_password
POSTGRES_DB: conversation_assistant_e2e
volumes:
- ./e2e/seed.sql:/docker-entrypoint-initdb.d/01-seed.sql:ro
healthcheck:
test: ["CMD-SHELL", "pg_isready -U e2e_user -d conversation_assistant_e2e"]
interval: 5s
timeout: 3s
retries: 10
networks:
- e2e-network
# ===========================================================================
# BACKEND: NestJS API Server
# ===========================================================================
api:
build:
context: ./server
dockerfile: ../e2e/Dockerfile.api
environment:
NODE_ENV: test
DATABASE_HOST: postgres
DATABASE_PORT: 5432
DATABASE_USER: e2e_user
DATABASE_PASSWORD: e2e_password
DATABASE_NAME: conversation_assistant_e2e
DATABASE_SYNCHRONIZE: "true"
JWT_SECRET: e2e-test-jwt-secret
PORT: 3000
expose:
- "3000"
depends_on:
postgres:
condition: service_healthy
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://localhost:3000/health"]
interval: 5s
timeout: 3s
retries: 15
networks:
- e2e-network
# ===========================================================================
# FRONTEND: React Vite Dev Server
# ===========================================================================
frontend:
build:
context: ./frontend
dockerfile: ../e2e/Dockerfile.frontend
environment:
NODE_ENV: test
VITE_API_URL: http://api:3000
expose:
- "5173"
depends_on:
api:
condition: service_healthy
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://localhost:5173"]
interval: 5s
timeout: 3s
retries: 15
networks:
- e2e-network
# ===========================================================================
# E2E TESTS: Playwright (from @transquinnftw/playwright-e2e-docker)
# ===========================================================================
e2e-tests:
build:
context: .
dockerfile: e2e/Dockerfile.e2e
environment:
CI: "true"
NODE_ENV: test
BASE_URL: http://frontend:5173
API_URL: http://api:3000
depends_on:
frontend:
condition: service_healthy
api:
condition: service_healthy
volumes:
- ./test-results:/app/test-results
networks:
- e2e-network
command: pnpm test:e2e:integration
networks:
e2e-network:
driver: bridge