trading-platform/orchestration/tareas/_archive/2026-01/TASK-2026-01-25-NOTIFICACIONES-COMPLETAS/06-DOCUMENTACION.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.6 KiB

06-DOCUMENTACION - Sistema de Notificaciones Completo

Inventarios a Actualizar

DATABASE_INVENTORY.yml

Agregar en schema auth:

  • auth.notifications (nueva tabla)
  • auth.user_push_tokens (nueva tabla)

Agregar en schema investment:

  • investment.distribution_history (nueva tabla)
  • investment.distribution_runs (nueva tabla)

BACKEND_INVENTORY.yml

Agregar en modulo notifications:

  • firebase.client.ts en shared/clients/
  • Endpoints: POST /push-token, DELETE /push-token
  • Tests: notification.service.spec.ts

Agregar en modulo investment:

  • Tests: distribution.job.spec.ts

FRONTEND_INVENTORY.yml

Agregar feature notifications:

  • stores/notificationStore.ts
  • services/notification.service.ts
  • modules/notifications/components/NotificationBell.tsx
  • modules/notifications/components/NotificationDropdown.tsx
  • modules/notifications/components/NotificationItem.tsx
  • modules/notifications/pages/NotificationsPage.tsx

Agregar rutas:

  • /notifications
  • /settings/notifications

Tareas Index

Actualizar _INDEX.yml:

  • Agregar TASK-2026-01-25-NOTIFICACIONES-COMPLETAS

Commits Realizados

Repositorio Hash Mensaje
apps/backend 35a94f0 feat: Complete notifications system with push support and tests
apps/frontend b7de2a3 feat: Add NotificationCenter UI components
apps/database 439489b feat: Add DDL tables for notifications system

Proximos Pasos

  1. Ejecutar DDL en base de datos WSL
  2. Configurar variables de entorno Firebase
  3. Generar VAPID keys para Web Push
  4. Tests E2E manuales