Commit Graph

67 Commits

Author SHA1 Message Date
Adrian Flores Cortes
806612a4db [REESTRUCTURA-DOCS] refactor: Corregir estructura docs/ segun SIMCO-DOCUMENTACION-PROYECTO
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
- Renombrar 02-integraciones/ → 03-integraciones/ (resolver prefijo duplicado)
- Renombrar 02-devops/ → 04-devops/ (resolver prefijo duplicado)
- Renombrar architecture/ → 97-adr/ (agregar prefijo numerico)
- Actualizar _MAP.md con nueva estructura y version 2.1.0

Estructura final:
- 00-vision-general/
- 01-modulos/
- 02-especificaciones/
- 03-integraciones/
- 04-devops/
- 97-adr/

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-24 20:34:14 -06:00
Adrian Flores Cortes
7d05081b4d [SAAS-018-022] docs: Add specifications for advanced modules
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 complete specifications for 5 advanced modules:
- SAAS-018 Sales Foundation (21 SP) - Leads, opportunities, pipeline
- SAAS-019 Portfolio (13 SP) - Product/service catalog
- SAAS-020 Commissions (13 SP) - Commission system for salespeople
- SAAS-021 MLM (21 SP) - Multi-level marketing networks
- SAAS-022 Goals (13 SP) - Goals and objectives tracking

Each specification includes:
- Complete DDL with RLS policies
- Full API endpoint documentation
- Frontend pages and components
- Dependencies and integration points
- Story point estimates

Total new SP: 81 (bringing total to 260 SP)
Core modules: 14 (100% complete)
Advanced modules: 5 (specified, ready for implementation)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-24 20:12:07 -06:00
Adrian Flores Cortes
56e9134e52 [INT-002] docs: Update OAuth 2.0 integration status to 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
- Update MASTER_INVENTORY.yml: INT-002 oauth status "planificado" -> "completado"
- Add Apple provider to OAuth description (4 providers total)
- Add OAuth row to PROJECT-STATUS.md modules table
- OAuth implementation was already complete (backend + frontend)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-24 20:06:19 -06:00
Adrian Flores Cortes
e5a6f1300a [SYNC] docs: Update _inheritance.yml with correct version and modules
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
- Version aligned to 1.2.1 (matching INHERITANCE-MODEL.yml)
- Module list expanded to match erp-core expectations
- Added schema definitions
- Fixed naming: companies→tenants, audit-logs→audit

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-24 18:23:09 -06:00
Adrian Flores Cortes
d3e13e408a [SYNC] chore: Update backend/frontend submodule refs
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: Add entities, tests, notification adapters
- frontend: Add query-keys hook, e2e tests

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-24 18:15:27 -06:00
Adrian Flores Cortes
db27093ba2 [SEMANA-2-AGENTES] feat: Add IDE configurations (L3)
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 CLAUDE.md with project-specific instructions
- Add .trae/rules/ and AGENT-CAPABILITIES.md
- Add .windsurf/rules/ and AGENT-CAPABILITIES.md
- Add .gemini/antigravity/README.md
- Stack: NestJS 11.1.8, React 19.0.0, PostgreSQL 15+
- Type: PROVIDER (propagates to erp-core)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-24 17:31:34 -06:00
Adrian Flores Cortes
2f9c15e740 [SIMCO-ESTRUCTURA-TAREAS] feat: Add date-based task structure
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 orchestration/tareas/ with standard structure
- Added _INDEX.yml for task index
- Added _templates/TASK-TEMPLATE/ with 6 CAPVED phases
- Updated _MAP.md to document new tareas/ folder

Complies with SIMCO-ESTRUCTURA-TAREAS.md v1.0.0

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-24 16:47:55 -06:00
Adrian Flores Cortes
9e527da492 [TASK-2026-01-24] fix: Update CONTEXT-MAP paths and add .claude 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
- Updated CONTEXT-MAP.yml: workspace-v1 -> workspace-v2 (all paths)
- Created .claude/ directory structure for agent integration:
  - README.md: Agent system documentation
  - agents/_MAP.md: Agent profiles map
  - constants/CONSTANTS-PROJECT.yml: Project constants
  - directivas/DIRECTIVAS-LOCALES.md: Local directives
  - directivas/_MAP.md: Directives map
  - referencias/PATHS-TRABAJO.md: Work paths reference

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-24 14:58:43 -06:00
Adrian Flores Cortes
1c847fbe04 [ESTANDAR-ORCHESTRATION] refactor: Consolidate to standard structure
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
- Rename _archivo to _archive (standard convention)
- Move analisis/, planes/ to _archive/
- Archive extra root files
- Update _MAP.md with standardized structure

Standard: SIMCO-ESTANDAR-ORCHESTRATION v1.0.0
Level: PROVIDER (L1A)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-24 14:38:23 -06:00
Adrian Flores Cortes
4597c27fc5 [TASK-2026-01-24-ESTANDAR-ORCHESTRATION] feat: Add missing orchestration 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
- Add _inheritance.yml (PROVIDER type definition)
- Add _MAP.md (navigation map)
- Add PROJECT-PROFILE.yml (project metadata)
- Add DEPENDENCY-GRAPH.yml (dependencies)
- Add TRACEABILITY.yml (version history)
- Add MAPA-DOCUMENTACION.yml (documentation map)

Complies with SIMCO-ESTANDAR-ORCHESTRATION.md v1.0.0

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-24 09:27:50 -06:00
Adrian Flores Cortes
75a489a5d8 [TASK-2026-01-24-REESTRUCTURACION] feat: Add BOOTLOADER protocol
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
- Create orchestration/BOOTLOADER.md with NEXUS v4.0 protocol
- Define PROVIDER role (exports to erp-core, erp-suite)
- Document SaaS canonical patterns propagation
- Define token budgets and startup sequence

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-24 07:44:36 -06:00
50a821a415 [SIMCO-V38] feat: Actualizar a SIMCO v3.8.0
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
- HERENCIA-SIMCO.md actualizado con directivas v3.7 y v3.8
- Actualizaciones de configuracion

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-10 08:53:08 -06:00
68d3c54023 docs(ai): Update documentation and fix DDL scripts
Documentation:
- Update SAAS-006-ai-integration.md with full implementation details
- Update _MAP.md with AI schema (30 tables, 11 schemas)
- Update PROJECT-STATUS.md (67% completion)

Database fixes:
- Add update_updated_at_column() function to 03-functions.sql
- Add trigger creation for ai.configs in 03-functions.sql
- Fix partial index in 02-ai-usage.sql (remove CURRENT_DATE)
- Add AI schema grants to create-database.sh
- Add AI to SCHEMA_ORDER array

Validated: Database recreation successful with all AI objects

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-07 07:21:56 -06:00
19ead3506b feat(frontend): Add AI Integration UI components
- Add aiApi client with types (ChatMessage, ChatRequest, ChatResponse, AIConfig, AIModel, AIUsageStats)
- Add useAI hooks (useAIConfig, useUpdateAIConfig, useAIModels, useAIChat, useAIUsage, useCurrentAIUsage, useAIHealth)
- Add AI components (AIChat, AISettings, ChatMessage)
- Add AIPage with chat interface and usage stats
- Add AI tab to Settings page
- Add AI Assistant link to dashboard navigation
- 979 lines added across 13 files

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-07 07:13:28 -06:00
40d57f8124 feat: Add AI Integration, Notifications UI and Settings Page
FASE 1: Notifications UI
- Add NotificationBell, NotificationDrawer, NotificationItem components
- Integrate notification bell in DashboardLayout header
- Real-time unread count with polling

FASE 2: AI Integration Backend
- Add AI module with OpenRouter client
- Endpoints: POST /ai/chat, GET /ai/models, GET/PATCH /ai/config
- GET /ai/usage, GET /ai/usage/current, GET /ai/health
- Database: schema ai with configs and usage tables
- Token tracking and cost calculation

FASE 3: Settings Page Refactor
- Restructure with tabs navigation
- GeneralSettings: profile, organization, appearance
- NotificationSettings: channels and categories toggles
- SecuritySettings: password change, 2FA placeholder, sessions

Files created: 25+
Endpoints added: 7
Story Points completed: 21

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-07 07:04:29 -06:00
4dafffa386 feat: Add superadmin metrics, onboarding and module documentation
- Add MetricsPage and useOnboarding hook
- Update superadmin controller and service
- Add module documentation (docs/01-modulos/)
- Add CONTEXT-MAP.yml and Sprint 5 execution report
- Update project status and task traces

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-07 05:40:26 -06:00
26f0e52ca7 feat: Initial commit - template-saas
Template base para proyectos SaaS multi-tenant.

Estructura inicial:
- apps/backend (NestJS API)
- apps/frontend (React/Vite)
- apps/database (PostgreSQL DDL)
- docs/ (Documentación)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-07 04:41:24 -06:00