trading-platform/orchestration/tareas/_archive/2026-01/TASK-2026-01-25-NOTIFICACIONES-COMPLETAS/01-CONTEXTO.md
Adrian Flores Cortes df43dd90cb [F0-F2] feat: Coherence analysis baseline + entity types + frontend stores
FASE 0 - Preparación y Purga:
- Archived 21 completed tasks to _archive/2026-01/
- Marked 4 docs as DEPRECATED
- Created 3 baseline coherence reports

FASE 1 - DDL-Backend Coherence:
- audit.types.ts: +4 types (SystemEvent, TradingAudit, ApiRequestLog, DataAccessLog)
- investment.types.ts: +4 types (RiskQuestionnaire, WithdrawalRequest, DailyPerformance, DistributionHistory)
- entity.types.ts: +5 types (Symbol, TradingBot, TradingSignal, TradingMetrics, PaperBalance)

FASE 2 - Backend-Frontend Coherence:
- investmentStore.ts: New Zustand store with 20+ actions
- mlStore.ts: New Zustand store with signal caching
- alerts.service.ts: New service with 15 functions

FASE 3 - Documentation:
- OQI-009: Updated to 100% coverage, added ET-MKT-004-productos.md
- OQI-010: Created full structure (STATUS.md, ROADMAP-MT4.md, ET-MT4-001-gateway.md)

Coherence Baseline Established:
- DDL-Backend: 31% (target 95%)
- Backend-Frontend: 72% (target 85%)
- Global: 39.6% (target 90%)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-28 22:08:04 -06:00

1.1 KiB

01-CONTEXTO - Sistema de Notificaciones Completo

Objetivo

Completar la implementación del sistema de notificaciones con todas las capas:

  • DDL para persistencia
  • Push notifications con FCM
  • Tests unitarios
  • Frontend NotificationCenter

Antecedentes

La tarea TASK-2026-01-25-PHASE1-MVP implementó el notification.service.ts y distribution.job.ts base. Esta tarea completa el sistema con:

  1. Tablas de base de datos que no existían
  2. Integración Firebase para push notifications reales
  3. Tests unitarios para validar la lógica
  4. Componentes frontend para mostrar notificaciones

Alcance

Capa Entregables
DDL 4 tablas (auth.notifications, auth.user_push_tokens, investment.distribution_history, investment.distribution_runs)
Backend firebase.client.ts, push token endpoints, tests unitarios
Frontend NotificationBell, NotificationDropdown, NotificationItem, NotificationsPage, notificationStore

Referencias

  • Plan original: C:\Users\cx_ad\.claude\plans\glistening-wondering-mountain.md
  • Tarea previa: TASK-2026-01-25-PHASE1-MVP