Commit Graph

74 Commits

Author SHA1 Message Date
Adrian Flores Cortes
5f25327f18 fix(ddl): Update database ref with storage triggers and whatsapp RLS fix
Some checks are pending
CI / Backend CI (push) Waiting to run
CI / Frontend CI (push) Waiting to run
CI / Security Scan (push) Waiting to run
CI / CI Summary (push) Blocked by required conditions
- storage/06-triggers.sql: Added updated_at triggers for files and usage
- whatsapp RLS: Fixed current_setting pattern with true parameter

Ref: P1 - Triggers storage y correccion RLS whatsapp

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 17:18:19 -06:00
Adrian Flores Cortes
d25058ac75 [CRIT-002] chore: Update database ref (0d3e022)
Some checks are pending
CI / Backend CI (push) Waiting to run
CI / Frontend CI (push) Waiting to run
CI / Security Scan (push) Waiting to run
CI / CI Summary (push) Blocked by required conditions
Add public.set_updated_at() function for MLM schema triggers.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 17:17:33 -06:00
Adrian Flores Cortes
1765f56785 chore: Update backend ref (a671697)
Some checks are pending
CI / Backend CI (push) Waiting to run
CI / Frontend CI (push) Waiting to run
CI / Security Scan (push) Waiting to run
CI / CI Summary (push) Blocked by required conditions
Added unit tests for MLM and Goals modules

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 16:35:34 -06:00
Adrian Flores Cortes
77a7a693e1 docs: Update PROXIMA-ACCION.md - E2E tests completed
Some checks are pending
CI / Backend CI (push) Waiting to run
CI / Frontend CI (push) Waiting to run
CI / Security Scan (push) Waiting to run
CI / CI Summary (push) Blocked by required conditions
- E2E tests for Sales, MLM, Goals marked as completed (72 tests)
- Updated metrics: 830 unitarios + 119 E2E
- All P2 gaps now resolved

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 16:14:18 -06:00
Adrian Flores Cortes
224ed585f5 [SYNC] chore: Update frontend ref (9019261)
Some checks are pending
CI / Backend CI (push) Waiting to run
CI / Frontend CI (push) Waiting to run
CI / Security Scan (push) Waiting to run
CI / CI Summary (push) Blocked by required conditions
E2E tests for Sales, MLM, Goals - 72 tests

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 16:13:36 -06:00
Adrian Flores Cortes
320ec50bb6 docs: Update PROXIMA-ACCION.md - P2/P3 all completed
Some checks are pending
CI / Backend CI (push) Waiting to run
CI / Frontend CI (push) Waiting to run
CI / Security Scan (push) Waiting to run
CI / CI Summary (push) Blocked by required conditions
All P2 and P3 gaps resolved:
- Controller tests recreated (39)
- Billing/webhooks tests verified OK
- DDL roles updated
- BACKEND_INVENTORY.yml v4.2.0

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 16:07:55 -06:00
Adrian Flores Cortes
210f942ef9 docs(P3): Update BACKEND_INVENTORY and sync database
Some checks are pending
CI / Backend CI (push) Waiting to run
CI / Frontend CI (push) Waiting to run
CI / Security Scan (push) Waiting to run
CI / CI Summary (push) Blocked by required conditions
- Updated BACKEND_INVENTORY.yml to v4.2.0
- Fixed MLM/Goals module location (were inside dependencias_npm)
- Updated Sales/Commissions/Portfolio tests counts
- Cleared resolved gaps (tests and DDL)
- Synced database submodule with DDL roles fix

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 16:07:20 -06:00
Adrian Flores Cortes
56119c7ac3 docs: Update PROXIMA-ACCION.md - P2 controller tests completed
Some checks are pending
CI / Backend CI (push) Waiting to run
CI / Frontend CI (push) Waiting to run
CI / Security Scan (push) Waiting to run
CI / CI Summary (push) Blocked by required conditions
- 4 controller test files recreated (39 tests total)
- Updated Gaps section marking P2 tests as RESUELTO

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 15:27:49 -06:00
Adrian Flores Cortes
aa17b1e994 [SYNC] chore: Update backend ref (23bd170)
Some checks are pending
CI / Backend CI (push) Waiting to run
CI / Frontend CI (push) Waiting to run
CI / Security Scan (push) Waiting to run
CI / CI Summary (push) Blocked by required conditions
P2 controller tests recreated - 39 new tests

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 15:26:54 -06:00
Adrian Flores Cortes
c873a85a3e docs(orchestration): Update PROXIMA-ACCION with P0 completions
Some checks are pending
CI / Backend CI (push) Waiting to run
CI / Frontend CI (push) Waiting to run
CI / Security Scan (push) Waiting to run
CI / CI Summary (push) Blocked by required conditions
- Add entity corrections (password_hash, slug) to recent changes
- Add Notifications frontend to recent changes
- Update GAPS section: P0 resolved, P2/P3 pending
- Mark entities gap as resolved

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 14:45:00 -06:00
Adrian Flores Cortes
b0fd287fd0 [SYNC] chore: Update frontend ref (08b1dec)
Some checks are pending
CI / Backend CI (push) Waiting to run
CI / Frontend CI (push) Waiting to run
CI / Security Scan (push) Waiting to run
CI / CI Summary (push) Blocked by required conditions
Add Notifications page and complete RBAC routing

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 14:43:57 -06:00
Adrian Flores Cortes
fa24868bc7 docs(orchestration): Add improvement analysis for P0 entity corrections
Some checks are pending
CI / Backend CI (push) Waiting to run
CI / Frontend CI (push) Waiting to run
CI / Security Scan (push) Waiting to run
CI / CI Summary (push) Blocked by required conditions
- Add ANALISIS-MEJORA-CONTINUA.md with:
  - Directive effectiveness analysis
  - Standards compliance review
  - Execution pattern documentation
  - Subagent usage recommendations
  - Token usage metrics and opportunities
  - Reusable components for future tasks
  - Process improvement recommendations

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 14:33:35 -06:00
Adrian Flores Cortes
eb0d39216c docs(orchestration): Add TASK-2026-02-03-P0-CORRECCION-ENTITIES documentation
Some checks are pending
CI / Backend CI (push) Waiting to run
CI / Frontend CI (push) Waiting to run
CI / Security Scan (push) Waiting to run
CI / CI Summary (push) Blocked by required conditions
- Add METADATA.yml with complete task metadata, artefacts, and commits
- Add TASK-REPORT.md with detailed execution report
- Update _INDEX.yml to register the completed task
- Task completed: DDL vs Entity alignment for user, role, tenant

Changes made:
- user.entity.ts: password_hash nullable for OAuth users
- role.entity.ts: slug NOT NULL to match DDL
- 9 test files corrected, 4 removed temporarily

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 14:31:50 -06:00
Adrian Flores Cortes
73d2524a6d [SYNC] chore: Update backend ref (9baaf4a) - role.slug NOT NULL
Some checks are pending
CI / Backend CI (push) Waiting to run
CI / Frontend CI (push) Waiting to run
CI / Security Scan (push) Waiting to run
CI / CI Summary (push) Blocked by required conditions
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 14:24:51 -06:00
Adrian Flores Cortes
93581494bc [SYNC] chore: Update backend ref (e2abeac) - OAuth password_hash nullable
Some checks are pending
CI / Backend CI (push) Waiting to run
CI / Frontend CI (push) Waiting to run
CI / Security Scan (push) Waiting to run
CI / CI Summary (push) Blocked by required conditions
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 14:20:55 -06:00
Adrian Flores Cortes
10e1c76425 docs: Update PROXIMA-ACCION.md - P1/P2 completados
Some checks are pending
CI / Backend CI (push) Waiting to run
CI / Frontend CI (push) Waiting to run
CI / Security Scan (push) Waiting to run
CI / CI Summary (push) Blocked by required conditions
- UI MLM/Goals: Ya completa (7+6 páginas, router integrado)
- Tests P2: 441 tests pasando (117 controller + 324 service)
- Especificaciones técnicas: ET-SAAS-018 a 022 creadas
- Actualizado gaps y próximas tareas

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 14:06:53 -06:00
Adrian Flores Cortes
ba50b2a166 chore: Update backend ref with P2 controller tests (61d7d29)
Some checks are pending
CI / Backend CI (push) Waiting to run
CI / Frontend CI (push) Waiting to run
CI / Security Scan (push) Waiting to run
CI / CI Summary (push) Blocked by required conditions
- 12 new controller test files (117 tests)
- 441 total tests passing for sales/commissions/portfolio

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 13:26:02 -06:00
Adrian Flores Cortes
2825b3d5fd docs: Add ET-SAAS-018 to ET-SAAS-022 technical specifications
Some checks are pending
CI / Backend CI (push) Waiting to run
CI / Frontend CI (push) Waiting to run
CI / Security Scan (push) Waiting to run
CI / CI Summary (push) Blocked by required conditions
- ET-SAAS-018-sales.md: Sales pipeline/CRM module
- ET-SAAS-019-portfolio.md: Product catalog module
- ET-SAAS-020-commissions.md: Commissions system
- ET-SAAS-021-mlm.md: Multi-Level Marketing module
- ET-SAAS-022-goals.md: Goals and objectives system
- Update _MAP.md with all 9 specifications

All specs document:
- Data model (DDL, enums, tables)
- Backend architecture (endpoints, services)
- Security (RLS, RBAC permissions)
- Frontend status and hooks
- Module integrations

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 13:14:48 -06:00
Adrian Flores Cortes
ae092a9bb1 chore: Update docs/_MAP.md and purge obsolete archive files
Some checks are pending
CI / Backend CI (push) Waiting to run
CI / Frontend CI (push) Waiting to run
CI / Security Scan (push) Waiting to run
CI / CI Summary (push) Blocked by required conditions
- Update docs/_MAP.md to include SAAS-015 to SAAS-022 modules
- Update schema count from 12 to 17, tables from 24 to 48
- Add ADR-006 to ADR-011 references
- Add sales, commissions, portfolio, goals, mlm schemas
- Purge 75 obsolete files from orchestration/_archive/ (~620KB)
  - 2026-01-07-trazas/ (5 files)
  - 2026-01-10-simco-v37/ (52 files)
  - 2026-01-10-sprint5/ (18 files)
- Update frontend submodule reference

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 13:05:24 -06:00
Adrian Flores Cortes
c8b75d0435 [TASK-2026-02-03] analysis: Complete integral analysis Template SaaS
Some checks are pending
CI / Backend CI (push) Waiting to run
CI / Frontend CI (push) Waiting to run
CI / Security Scan (push) Waiting to run
CI / CI Summary (push) Blocked by required conditions
Auditoría completa en 5 fases CAPVED (81 SP):

Fase 1 - Inventario:
- 22 módulos SAAS documentados (SAAS-001 a SAAS-022)
- 11 ADRs, 7 integraciones, 5 especificaciones técnicas
- 17 schemas DDL, 48 tablas, 72 RLS policies
- 23 módulos backend, 71 entities, 41 controllers
- 56 páginas frontend, 22 hooks

Fase 2 - Coherencia:
- DDL→Backend: 93% cobertura
- Backend→Frontend: 58% cobertura (gaps críticos)
- Trazabilidad RF/RNF: 97.3%

Fase 3 - Plan Remediación:
- 16 gaps identificados (4 P0, 4 P1, 4 P2, 4 P3)
- P0: Audit, RBAC, Notifications sin frontend
- 57 archivos obsoletos a purgar (620 KB)
- Plan: 21 tareas, 39 SP en 3 sprints

Outputs:
- FASE-1-INVENTARIO-CONTEXTO.md
- FASE-2-ANALISIS-COHERENCIA.md
- FASE-3-PLANEACION-REMEDIACION.md
- REPORTE-FINAL-ANALISIS.md

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 12:49:20 -06:00
Adrian Flores Cortes
0e23f048a0 [HOMOLOG] docs: Complete homologation with workspace-v2 standards
Some checks are pending
CI / Backend CI (push) Waiting to run
CI / Frontend CI (push) Waiting to run
CI / Security Scan (push) Waiting to run
CI / CI Summary (push) Blocked by required conditions
- Add docs/99-referencias/ section:
  - ESTANDARES-APLICADOS.md (14 standards, 98% compliance)
  - MATRIZ-TRAZABILIDAD.md (37 RF/RNF, 97% coverage)
  - ONBOARDING.md (developer guide)
  - _INDEX.md (section index)

- Update CLAUDE.md v1.2.0:
  - Add 4 new modules (sales, portfolio, commissions, mlm, goals)
  - Add quick references section

- Update DIRECTIVAS-LOCALES.md v1.1:
  - Add SIMCO directives table
  - Add principles inheritance table

- Fix CONTEXT-MAP.yml v2.1.0:
  - Correct paths from apps/* to L2 submodules structure

- Update orchestration files:
  - PROJECT-STATUS.md with homologation note
  - PROXIMA-ACCION.md with task reference
  - _INDEX.yml to v1.4.0

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 02:55:31 -06:00
Adrian Flores Cortes
b56eb16450 chore: Update CONTEXT-MAP.yml with PROVIDER role
Some checks are pending
CI / Backend CI (push) Waiting to run
CI / Frontend CI (push) Waiting to run
CI / Security Scan (push) Waiting to run
CI / CI Summary (push) Blocked by required conditions
- Changed tipo from STANDALONE to PROVIDER
- Added modulos_provistos section (19 modules)
- Added consumidores section (erp-core, trading-platform, michangarrito)
- Version bumped to 2.1.0

Part of: TASK-2026-02-02-ANALISIS-REESTRUCTURACION-ORCHESTRATION

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 16:22:03 -06:00
Adrian Flores Cortes
021cfae679 docs: Add TASK-2026-01-30-FIX-BUILD-TESTS documentation
Some checks failed
CI / Backend CI (push) Has been cancelled
CI / Frontend CI (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / CI Summary (push) Has been cancelled
- Created task folder with METADATA.yml
- Documented context, execution, and final documentation
- Updated _INDEX.yml with new task

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 16:41:15 -06:00
Adrian Flores Cortes
ee9b1770c1 chore: Update backend submodule - test expectations fix
Some checks are pending
CI / Backend CI (push) Waiting to run
CI / Frontend CI (push) Waiting to run
CI / Security Scan (push) Waiting to run
CI / CI Summary (push) Blocked by required conditions
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 16:07:42 -06:00
Adrian Flores Cortes
ae2137b5c1 chore: Update backend submodule - test fixes
Some checks are pending
CI / Backend CI (push) Waiting to run
CI / Frontend CI (push) Waiting to run
CI / Security Scan (push) Waiting to run
CI / CI Summary (push) Blocked by required conditions
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 16:04:45 -06:00
Adrian Flores Cortes
76be70a6bc chore: Update backend submodule - DDL entity coherence
Some checks are pending
CI / Backend CI (push) Waiting to run
CI / Frontend CI (push) Waiting to run
CI / Security Scan (push) Waiting to run
CI / CI Summary (push) Blocked by required conditions
Updates backend submodule with entity fixes:
- User, Tenant, Role entities aligned with DDL schema
- Test mocks updated with new entity fields

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 15:57:54 -06:00
Adrian Flores Cortes
b91346ebba [TEMPLATE-SAAS] docs: Update orchestration after submodules integration
Some checks are pending
CI / Backend CI (push) Waiting to run
CI / Frontend CI (push) Waiting to run
CI / Security Scan (push) Waiting to run
CI / CI Summary (push) Blocked by required conditions
- Sync _INDEX.yml: TASK-007 completed, add TASK-2026-01-30
- Update PROXIMA-ACCION.md with recent changes section
- Document .gitmodules creation and apps/ removal

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 15:12:18 -06:00
Adrian Flores Cortes
8189c46a7c [TEMPLATE-SAAS] chore: Remove legacy apps/ directory
Some checks are pending
CI / Backend CI (push) Waiting to run
CI / Frontend CI (push) Waiting to run
CI / Security Scan (push) Waiting to run
CI / CI Summary (push) Blocked by required conditions
Remove 28,107 duplicate files from apps/ structure.
The actual code lives in submodules: backend/, database/, frontend/

This was a legacy monorepo-style structure that is no longer needed.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 15:10:40 -06:00
Adrian Flores Cortes
472671f09f [TEMPLATE-SAAS] chore: Add .gitmodules for L2 submodules
Some checks are pending
CI / Backend CI (push) Waiting to run
CI / Frontend CI (push) Waiting to run
CI / Security Scan (push) Waiting to run
CI / CI Summary (push) Blocked by required conditions
Formalize backend, database, and frontend as git submodules.
This enables proper recursive submodule operations.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 15:04:36 -06:00
Adrian Flores Cortes
7abfa28579 [WORKSPACE] chore: Update frontend submodule + restructure tasks to date folders
Some checks are pending
CI / Backend CI (push) Waiting to run
CI / Frontend CI (push) Waiting to run
CI / Security Scan (push) Waiting to run
CI / CI Summary (push) Blocked by required conditions
2026-01-29 17:57:40 -06:00
Adrian Flores Cortes
1b4b9a0a06 [TASK-009] refactor: Reorganize tasks to date folders
Some checks are pending
CI / Backend CI (push) Waiting to run
CI / Frontend CI (push) Waiting to run
CI / Security Scan (push) Waiting to run
CI / CI Summary (push) Blocked by required conditions
Moved loose tasks to date folders:
- 2026-01-24/: TASK-SAAS-018, TASK-SAAS-020
- 2026-01-25/: TASK-SAAS-019

Aligns with workspace-v2 orchestration standards.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 17:57:13 -06:00
Adrian Flores Cortes
ceb7ffec25 [TASK-007] chore: P2 complete - Archive obsolete docs + sprint history
Some checks failed
CI / Backend CI (push) Has been cancelled
CI / Frontend CI (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / CI Summary (push) Has been cancelled
## T-04.3: Archive obsolete documentation
- Created _archive/2026-01-07-trazas/ (5 files, 64 KB)
- Created _archive/2026-01-10-simco-v37/ (51 files, 524 KB)
- Created _archive/2026-01-10-sprint5/ (19 files, 216 KB)
- Created _archive/_INDEX-ARCHIVED.md with full inventory
- Total: 75 files archived, 816 KB organized

## T-04.4: Consolidate sprint history
- Created HISTORICO-SPRINTS.md with 9 sprints documented
- Sprint 1-5: Initial implementation (42 SP)
- Sprint 6-9: Sales, Commissions, Portfolio, MLM/Goals (218 SP)
- Total: 260 SP across 23 modules

Directories cleaned: analisis/, analisis-previo/, planes/, trazas/

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-27 15:41:36 -06:00
Adrian Flores Cortes
ebf9989aef [TASK-007] feat: P1 complete - Full MLM/Goals UI + 324 tests
Some checks are pending
CI / Backend CI (push) Waiting to run
CI / Frontend CI (push) Waiting to run
CI / Security Scan (push) Waiting to run
CI / CI Summary (push) Blocked by required conditions
## Backend (5b0e61c)
- T-01.5: Billing entities updated (invoice.entity.ts)
- T-05.1: Sales module tests (109 tests, 100% coverage)
- T-05.2: Commissions module tests (136 tests, 100% coverage)
- T-05.3: Portfolio module tests (79 tests, 100% coverage)

## Frontend (2bfd90c)
- T-02.1: MLM structure pages (4 pages)
- T-02.2: MLM detail pages (3 pages)
- T-02.3: Goals structure pages (3 pages)
- T-02.4: Goals detail pages (3 pages)
- T-02.5: MLM routes integrated (7 routes)
- T-02.6: Goals routes integrated (6 routes)

## Metrics
- New pages: 13
- New routes: 13
- New tests: 324
- Test coverage: 100% on new modules

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-27 12:54:22 -06:00
Adrian Flores Cortes
7a43ac1c96 [TASK-007] feat: Complete CAPVED analysis and sync for template-saas
Some checks are pending
CI / Backend CI (push) Waiting to run
CI / Frontend CI (push) Waiting to run
CI / Security Scan (push) Waiting to run
CI / CI Summary (push) Blocked by required conditions
## Entities (DDL↔Backend sync):
- user.entity: 8 missing fields added
- role.entity: 4 missing fields added
- tenant.entity: 5 missing fields added

## Documentation:
- PROXIMA-ACCION.md: Rewritten with 2026-01-27 status
- PROJECT-STATUS.md: Added MLM, Goals, Portfolio phases
- docs/01-modulos/_INDEX.md: Updated module states to Completado

## Inventories:
- DATABASE_INVENTORY.yml: Added mlm/goals schemas (10 tables)
- BACKEND_INVENTORY.yml: Added mlm/goals modules (10 entities)
- MASTER_INVENTORY.yml: MLM/Goals marked as completado
- tareas/_INDEX.yml: Registered TASK-007, SAAS-021, SAAS-022

Metrics: 23 modules, 17 schemas, 48 tables, 260 SP (100%)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-27 12:30:59 -06:00
Adrian Flores Cortes
87603b6d52 chore: Update package-lock and frontend submodule
Some checks failed
CI / Backend CI (push) Has been cancelled
CI / Frontend CI (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / CI Summary (push) Has been cancelled
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 14:13:17 -06:00
Adrian Flores Cortes
8fd38d250e chore: Update submodules (SAAS-021 MLM module)
Some checks are pending
CI / Backend CI (push) Waiting to run
CI / Frontend CI (push) Waiting to run
CI / Security Scan (push) Waiting to run
CI / CI Summary (push) Blocked by required conditions
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 09:32:40 -06:00
Adrian Flores Cortes
40c102025f chore: Update backend submodule - Fix TypeORM entity types
Some checks are pending
CI / Backend CI (push) Waiting to run
CI / Frontend CI (push) Waiting to run
CI / Security Scan (push) Waiting to run
CI / CI Summary (push) Blocked by required conditions
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 06:36:36 -06:00
Adrian Flores Cortes
e8f19d0465 [SAAS-022] feat: Implement Goals module
Some checks are pending
CI / Backend CI (push) Waiting to run
CI / Frontend CI (push) Waiting to run
CI / Security Scan (push) Waiting to run
CI / CI Summary (push) Blocked by required conditions
- DDL: 4 tables (definitions, assignments, progress_log, milestone_notifications)
- DDL: 8 enums, 16 RLS policies
- Backend: 4 entities, 2 services, 2 controllers
- Frontend: 3 API services, 24 React Query hooks

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 06:29:51 -06:00
Adrian Flores Cortes
6bc6706726 [SAAS-019] fix: Correct metadata dates in inventory files
Some checks are pending
CI / Backend CI (push) Waiting to run
CI / Frontend CI (push) Waiting to run
CI / Security Scan (push) Waiting to run
CI / CI Summary (push) Blocked by required conditions
- Update DATABASE_INVENTORY.yml version to 3.3.0, date to 2026-01-25
- Update BACKEND_INVENTORY.yml version to 4.1.0, date to 2026-01-25
- Fixes minor documentation inconsistency

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 06:04:28 -06:00
Adrian Flores Cortes
1cb357ee81 [SAAS-019] docs: Update SIMCO documentation for Portfolio module
Some checks are pending
CI / Backend CI (push) Waiting to run
CI / Frontend CI (push) Waiting to run
CI / Security Scan (push) Waiting to run
CI / CI Summary (push) Blocked by required conditions
- Add METADATA.yml for TASK-2026-01-25-SAAS-019-PORTFOLIO
- Update DATABASE_INVENTORY.yml with portfolio schema (4 tables)
- Update BACKEND_INVENTORY.yml with portfolio module (4 entities, 2 services)
- Update FRONTEND_INVENTORY.yml with portfolio hooks (21 hooks)
- Update MASTER_INVENTORY.yml - SAAS-019 now completado (SP: 13)
- Update _INDEX.yml with SAAS-019 task entry

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 05:58:24 -06:00
Adrian Flores Cortes
1d3ad175aa [SAAS-019] feat: Implement Portfolio module
Some checks are pending
CI / Backend CI (push) Waiting to run
CI / Frontend CI (push) Waiting to run
CI / Security Scan (push) Waiting to run
CI / CI Summary (push) Blocked by required conditions
- DDL: 4 tables (categories, products, variants, prices) with RLS
- Backend: 4 entities, 2 services, 2 controllers, full CRUD
- Frontend: API services and React Query hooks

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 05:43:32 -06:00
Adrian Flores Cortes
72bbc1af23 [FIX] fix(backend): Resolve all TypeScript errors for clean build
Some checks are pending
CI / Backend CI (push) Waiting to run
CI / Frontend CI (push) Waiting to run
CI / Security Scan (push) Waiting to run
CI / CI Summary (push) Blocked by required conditions
- Added missing decorators: roles.decorator.ts, roles.guard.ts
- Added tenant decorators: current-tenant.decorator.ts, tenant-id.decorator.ts
- Fixed duplicate exports in commissions/services/index.ts
- Fixed duplicate exports in sales/services/index.ts
- Fixed TenantStatus type in superadmin DTOs (string -> enum)
- Fixed status array type in superadmin.service.ts
- Fixed test file to use valid status value

Backend now builds successfully with 0 TypeScript errors

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 02:24:24 -06:00
Adrian Flores Cortes
99ec74d9f8 [FIX] fix(frontend): Add missing useToast hook, date-fns dep, api export, and vite-env types
Some checks are pending
CI / Backend CI (push) Waiting to run
CI / Frontend CI (push) Waiting to run
CI / Security Scan (push) Waiting to run
CI / CI Summary (push) Blocked by required conditions
- Created useToast.ts hook for toast notifications
- Added date-fns dependency for NotificationItem.tsx
- Exported api instance as named export for whatsapp.api.ts
- Added vite-env.d.ts for import.meta.env types
- Fixed notification.store.ts unused get parameter

Build now passes successfully (2131 modules)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 02:14:47 -06:00
Adrian Flores Cortes
07064e3346 [GAPS] feat(frontend): Implement 4 missing Zustand stores (tenant, subscription, notification, feature-flag)
Some checks are pending
CI / Backend CI (push) Waiting to run
CI / Frontend CI (push) Waiting to run
CI / Security Scan (push) Waiting to run
CI / CI Summary (push) Blocked by required conditions
2026-01-25 02:02:59 -06:00
Adrian Flores Cortes
0f9899570b chore: Update backend submodule with unit tests
Some checks are pending
CI / Backend CI (push) Waiting to run
CI / Frontend CI (push) Waiting to run
CI / Security Scan (push) Waiting to run
CI / CI Summary (push) Blocked by required conditions
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 01:33:29 -06:00
Adrian Flores Cortes
f853c49568 feat(frontend): Align documentation with development - complete frontend audit
Some checks are pending
CI / Backend CI (push) Waiting to run
CI / Frontend CI (push) Waiting to run
CI / Security Scan (push) Waiting to run
CI / CI Summary (push) Blocked by required conditions
- Add Sales/Commissions routes to router (11 new routes)
- Complete authStore (refreshTokens, updateProfile methods)
- Add JSDoc documentation to 40+ components across all categories
- Create FRONTEND-ROUTING.md with complete route mapping
- Create FRONTEND-PAGES-SPEC.md with 38 page specifications
- Update FRONTEND_INVENTORY.yml to v4.1.0 with resolved gaps

Components documented: ai/, audit/, commissions/, feature-flags/,
notifications/, sales/, storage/, webhooks/, whatsapp/

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 01:23:50 -06:00
Adrian Flores Cortes
0b90d87c1f [TASK-021] docs: Sync SAAS-020 documentation with implementation
Some checks are pending
CI / Backend CI (push) Waiting to run
CI / Frontend CI (push) Waiting to run
CI / Security Scan (push) Waiting to run
CI / CI Summary (push) Blocked by required conditions
- Update SAAS-020-COMMISSIONS.md status to Completed
- Add implementation section and mark acceptance criteria
- Create TASK-2026-01-24-SAAS-020-COMMISSIONS documentation
- Update _INDEX.yml with SAAS-020 task
- Fix PROJECT-STATUS.md DDL section (12 -> 14 schemas)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-24 23:48:02 -06:00
Adrian Flores Cortes
576a5b422a [TASK-021] fix(docs): Correct Sales and Commissions implementation status
Some checks are pending
CI / Backend CI (push) Waiting to run
CI / Frontend CI (push) Waiting to run
CI / Security Scan (push) Waiting to run
CI / CI Summary (push) Blocked by required conditions
CRITICAL CORRECTION: Sales (SAAS-018) and Commissions (SAAS-020) modules
were marked as "not implemented" in documentation but ARE fully implemented
in code.

Verified evidence:
- backend/src/app.module.ts imports both modules (lines 31-32, 93-94)
- backend/src/modules/sales/ has 25 files (entities, services, controllers)
- backend/src/modules/commissions/ has 25 files
- frontend/src/pages/dashboard/sales/ has 6 pages
- frontend/src/pages/dashboard/commissions/ has 5 pages
- database/ddl/schemas/sales/ and commissions/ have complete DDL
- Frontend builds successfully (2733 modules transformed)

Updated files:
- MASTER_INVENTORY.yml: SAAS-018/020 now "completado", sprints 6-7 completed
- BACKEND_INVENTORY.yml: 20 modules, 50 entities, 33 controllers
- FRONTEND_INVENTORY.yml: 38 pages, sales/commissions portals completed
- PROJECT-STATUS.md: MVP 100% complete, added sprint 6-7 details

Metrics verified via find/wc:
- Backend: 20 modules, 50 entities, 33 controllers, 38 services
- Frontend: 38 pages, 28 components
- Database: 14 schemas

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-24 23:29:53 -06:00
Adrian Flores Cortes
2e6ecee8ea [SAAS-018/020] feat: Complete Sales and Commissions modules implementation
Some checks are pending
CI / Backend CI (push) Waiting to run
CI / Frontend CI (push) Waiting to run
CI / Security Scan (push) Waiting to run
CI / CI Summary (push) Blocked by required conditions
Sprint 2 - Sales Frontend:
- Add frontend services, hooks, and pages for Sales module
- Update router with Sales routes

Sprint 3 - Commissions Backend:
- Add Commissions module with entities, DTOs, services, controllers
- Add DDL schema for commissions tables
- Register CommissionsModule in AppModule

Sprint 4 - Commissions Frontend:
- Add frontend services, hooks, and pages for Commissions module
- Add dashboard, schemes, entries, periods, and my-earnings pages
- Update router with Commissions routes

Update submodule references: backend, database, frontend

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-24 22:51:30 -06:00
Adrian Flores Cortes
fdc75d18b9 [TASK-030/031] docs: Fix status inconsistency in ET specs
Some checks are pending
CI / Backend CI (push) Waiting to run
CI / Frontend CI (push) Waiting to run
CI / Security Scan (push) Waiting to run
CI / CI Summary (push) Blocked by required conditions
- ET-SAAS-015-oauth.md: Changed Estado from Propuesto to Implementado
- ET-SAAS-016-analytics.md: Changed Estado from Propuesto to Implementado

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-24 22:48:34 -06:00