- 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>
107 lines
3.5 KiB
YAML
107 lines
3.5 KiB
YAML
# METADATA.yml - Sistema de Notificaciones Completo
|
|
id: TASK-2026-01-25-NOTIFICACIONES-COMPLETAS
|
|
fecha: "2026-01-25"
|
|
titulo: "Sistema de Notificaciones Completo con Push, Tests y Frontend"
|
|
descripcion: |
|
|
Implementación completa del sistema de notificaciones incluyendo:
|
|
- DDL: Tablas para notifications, user_push_tokens, distribution_history, distribution_runs
|
|
- Push Notifications: Integración FCM/Web Push con Firebase
|
|
- Tests Unitarios: notification.service.spec.ts y distribution.job.spec.ts
|
|
- Frontend: NotificationCenter con bell, dropdown, página y store
|
|
|
|
clasificacion:
|
|
tipo: feature
|
|
origen: plan
|
|
prioridad: P1
|
|
feature: OQI-001, OQI-004
|
|
|
|
proyecto:
|
|
nombre: trading-platform
|
|
path: projects/trading-platform
|
|
nivel: STANDALONE
|
|
|
|
estado:
|
|
actual: completada
|
|
progreso: 100%
|
|
fecha_inicio: "2026-01-25"
|
|
fecha_fin: "2026-01-25"
|
|
|
|
fases_capved:
|
|
contexto: completada
|
|
analisis: completada
|
|
planeacion: completada
|
|
validacion: completada
|
|
ejecucion: completada
|
|
documentacion: completada
|
|
|
|
agente:
|
|
principal: claude-opus-4.5
|
|
subagentes: []
|
|
|
|
modulos_afectados:
|
|
- OQI-001-fundamentos-auth # Notifications, push tokens
|
|
- OQI-004-investment-accounts # Distribution history
|
|
|
|
archivos_creados:
|
|
ddl:
|
|
- apps/database/ddl/schemas/auth/tables/11-notifications.sql
|
|
- apps/database/ddl/schemas/auth/tables/12-user_push_tokens.sql
|
|
- apps/database/ddl/schemas/investment/tables/08-distribution_history.sql
|
|
- apps/database/ddl/schemas/investment/tables/09-distribution_runs.sql
|
|
|
|
backend:
|
|
- apps/backend/src/shared/clients/firebase.client.ts
|
|
- apps/backend/src/modules/notifications/services/__tests__/notification.service.spec.ts
|
|
- apps/backend/src/modules/investment/jobs/__tests__/distribution.job.spec.ts
|
|
|
|
frontend:
|
|
- apps/frontend/src/stores/notificationStore.ts
|
|
- apps/frontend/src/services/notification.service.ts
|
|
- apps/frontend/src/modules/notifications/components/NotificationBell.tsx
|
|
- apps/frontend/src/modules/notifications/components/NotificationDropdown.tsx
|
|
- apps/frontend/src/modules/notifications/components/NotificationItem.tsx
|
|
- apps/frontend/src/modules/notifications/components/index.ts
|
|
- apps/frontend/src/modules/notifications/pages/NotificationsPage.tsx
|
|
|
|
archivos_modificados:
|
|
backend:
|
|
- apps/backend/src/config/index.ts # Firebase y WebPush config
|
|
- apps/backend/src/modules/notifications/services/notification.service.ts # FCM integration
|
|
- apps/backend/src/modules/notifications/controllers/notification.controller.ts # Push token endpoints
|
|
- apps/backend/src/modules/notifications/notification.routes.ts # Push token routes
|
|
|
|
frontend:
|
|
- apps/frontend/src/components/layout/MainLayout.tsx # NotificationBell integration
|
|
- apps/frontend/src/App.tsx # Notifications routes
|
|
|
|
commits:
|
|
- repo: apps/backend
|
|
hash: 35a94f0
|
|
message: "feat: Complete notifications system with push support and tests"
|
|
- repo: apps/frontend
|
|
hash: b7de2a3
|
|
message: "feat: Add NotificationCenter UI components"
|
|
- repo: apps/database
|
|
hash: 439489b
|
|
message: "feat: Add DDL tables for notifications system"
|
|
|
|
metricas:
|
|
archivos_modificados: 6
|
|
archivos_creados: 14
|
|
lineas_codigo: ~2500
|
|
|
|
dependencias:
|
|
internas:
|
|
- wsManager (WebSocket for real-time)
|
|
- db (PostgreSQL)
|
|
- nodemailer (Email)
|
|
externas:
|
|
- firebase-admin (FCM)
|
|
- web-push (Web Push)
|
|
|
|
tablas_db_creadas:
|
|
- auth.notifications
|
|
- auth.user_push_tokens
|
|
- investment.distribution_history
|
|
- investment.distribution_runs
|