iconsulting/packages/services
hailin 6a3a2130bf feat(conversation): add device tracking and optimize admin-client build
## Device Tracking (conversation-service)
- Add DeviceInfoDto class for validating device information
- Extract client IP from X-Forwarded-For and X-Real-IP headers
- Capture User-Agent header automatically on conversation creation
- Support optional fingerprint and region from client
- Pass deviceInfo through service layer to entity for persistence

Files changed:
- conversation.controller.ts: Add extractClientIp() method and header capture
- conversation.dto.ts: Add DeviceInfoDto with validation decorators
- conversation.service.ts: Update CreateConversationParams interface

## Build Optimization (admin-client)
- Implement code splitting via Rollup manualChunks
- Separate vendor libraries into cacheable chunks:
  - vendor-react: react, react-dom, react-router-dom (160KB)
  - vendor-antd: antd, @ant-design/icons (1013KB)
  - vendor-charts: recharts (409KB)
  - vendor-data: @tanstack/react-query, axios, zustand (82KB)
- Main bundle reduced from 1732KB to 61KB (96% reduction)
- Set chunkSizeWarningLimit to 1100KB for antd

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 09:45:47 -08:00
..
conversation-service feat(conversation): add device tracking and optimize admin-client build 2026-01-25 09:45:47 -08:00
evolution-service fix(audit): reorder routes to fix NestJS route collision 2026-01-25 08:40:56 -08:00
file-service fix(orm): add explicit PostgreSQL column types for all ORM entities 2026-01-25 02:14:07 -08:00
knowledge-service fix(orm): add explicit PostgreSQL column types for all ORM entities 2026-01-25 02:14:07 -08:00
payment-service feat(payment): add transaction reliability and idempotency support 2026-01-25 07:00:01 -08:00
user-service fix(user-service): add jsonwebtoken dependency for admin auth 2026-01-25 09:02:30 -08:00