trading-platform/orchestration/tareas/TASK-2026-01-25-NOTIFICACIONES-COMPLETAS/02-ANALISIS.md
Adrian Flores Cortes 9c2fce0083 docs: Complete documentation for notifications system implementation
- Create TASK-2026-01-25-NOTIFICACIONES-COMPLETAS with full CAPVED docs
- Update DATABASE_INVENTORY with auth.notifications, auth.user_push_tokens,
  investment.distribution_history, investment.distribution_runs tables
- Update BACKEND_INVENTORY with push-token endpoints, firebase.client,
  and unit tests
- Update FRONTEND_INVENTORY with notification components, store, service
- Update MASTER_INVENTORY with updated totals
- Update _INDEX.yml with new task entry

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 04:10:09 -06:00

45 lines
1.5 KiB
Markdown

# 02-ANALISIS - Sistema de Notificaciones Completo
## Analisis de Gaps
### 1. Base de Datos
| Tabla Requerida | Estado Previo | Accion |
|-----------------|---------------|--------|
| notifications | No existia | Crear en auth schema |
| user_push_tokens | No existia | Crear en auth schema |
| distribution_history | No existia | Crear en investment schema |
| distribution_runs | No existia | Crear en investment schema |
Nota: El plan original mencionaba `core` schema pero no existe, se uso `auth` schema.
### 2. Backend
| Componente | Estado Previo | Accion |
|------------|---------------|--------|
| notification.service.ts | Existia sin FCM real | Integrar Firebase |
| firebase.client.ts | No existia | Crear cliente FCM |
| Push token endpoints | No existian | Agregar POST/DELETE |
| Tests unitarios | No existian | Crear specs |
### 3. Frontend
| Componente | Estado Previo | Accion |
|------------|---------------|--------|
| notificationStore | No existia | Crear con Zustand |
| notification.service | No existia | Crear API client |
| NotificationBell | No existia | Crear componente |
| NotificationDropdown | No existia | Crear componente |
| NotificationItem | No existia | Crear componente |
| NotificationsPage | No existia | Crear pagina |
| MainLayout | Sin NotificationBell | Integrar |
## Dependencias
```
DDL -> Backend (queries usan tablas)
Backend notification.service -> firebase.client
Frontend store -> Backend API
Frontend components -> Store
```