- Moved backend/ submodule to apps/backend/
- Moved frontend/ submodule to apps/frontend-web/ (canonical naming)
- Moved database/ submodule to apps/database/
- Updated docker-compose.yml frontend path to apps/frontend-web
- Updated CLAUDE.md v2.0.0 with canonical structure and aliases
- Created apps/_MAP.md with component index
- Updated MASTER_INVENTORY.yml paths (13 references)
Part of: TASK-2026-02-06-ESTANDARIZACION-ESTRUCTURA-PROYECTOS (Sprint 2)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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>
- 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>
- 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>
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>
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>
- 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>