Commit Graph

15 Commits

Author SHA1 Message Date
Adrian Flores Cortes
891689a4f4 [SPRINT-2] feat: Complete Portfolio, MLM and Goals UI modules
## ST-2.1 Portfolio UI (5 SP)
- Add CategoryDetailPage for category details and products
- Add ProductDetailPage with variants and prices management
- Add ProductFormPage for create/edit products
- Add 7 components: CategoryTree, CategoryForm, ProductCard, ProductForm,
  VariantList, PriceTable, ProductFilters
- Add Portfolio link to sidebar

## ST-2.2 MLM UI (8 SP)
- Add NodesPage with filters and status management
- Add 8 components: NetworkTree, StructureCard, NodeCard, RankBadge,
  NodeStatusBadge, MLMStatsCard, DownlineList, CommissionsSummary
- Complete MLM navigation structure

## ST-2.3 Goals UI (8 SP)
- Add AssignmentsPage for goal assignments list
- Add DefinitionFormPage for create/edit goal definitions
- Add 9 components: GoalProgressBar, GoalCard, GoalAssignmentCard,
  GoalFilters, GoalForm, ProgressLogList, ProgressLogForm, GoalsKPIGrid
- Complete Goals navigation with all routes

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 20:10:38 -06:00
Adrian Flores Cortes
193b26f6f1 [SPRINT-1] feat: Complete RBAC, Audit and Notifications frontend modules
## ST-1.1 RBAC Frontend (5 SP)
- Add RoleDetailPage for create/edit roles
- Add PermissionsPage to list all permissions
- Add RoleCard, RoleForm, PermissionsMatrix components
- Add routes: /rbac/roles/new, /rbac/roles/:id, /rbac/permissions
- Add sidebar navigation item

## ST-1.2 Audit Complete (3 SP)
- Enhance AuditFilters with user filter and search
- Add Recharts graphs to AuditStatsCard (activity trend, action distribution)
- Add period selector (7/14/30 days)
- Add most active users section

## ST-1.3 Notifications Complete (3 SP)
- Add TemplatesPage for CRUD notification templates
- Add TemplateCard, TemplateForm, TemplatePreview components
- Add ChannelConfig component for channel toggles
- Extend notifications API with template endpoints
- Extend useNotifications hook with template queries

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 19:58:31 -06:00
Adrian Flores Cortes
9019261f8e test(e2e): Add E2E tests for Sales, MLM and Goals modules
Sales (24 tests):
- Dashboard metrics and navigation
- Leads CRUD and filtering
- Opportunities list and kanban
- Activities calendar and management

MLM (24 tests):
- Dashboard and network overview
- Structures management
- Ranks and progression
- My Network tree visualization
- My Earnings history

Goals (24 tests):
- Dashboard and metrics
- Goal definitions CRUD
- My Goals and progress tracking
- Reports and filtering

Total: 72 new Playwright E2E tests

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 16:13:28 -06:00
Adrian Flores Cortes
08b1dec305 feat(frontend): Add Notifications page and complete RBAC routing
- Add useNotifications hook with queries and mutations
- Create NotificationsPage with list, preferences, and pagination
- Add notifications/index.ts barrel export
- Add rbac/index.ts barrel export (RolesPage already exists)
- Add routes for /dashboard/notifications and /dashboard/rbac/roles

P0 task: Frontend for Notifications module

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 14:43:41 -06:00
Adrian Flores Cortes
39cf33c3e5 feat(rbac,portfolio): Add RBAC hook and Portfolio/RBAC pages
- Add useRbac hook with roles, permissions, and user role management
- Add RBAC API endpoints to api.ts (roles, permissions, user assignments)
- Add RolesPage for managing roles and viewing permissions
- Add PortfolioPage dashboard with stats and quick links
- Add ProductsPage with search, filters, and pagination
- Add CategoriesPage with tree view and expand/collapse
- Fix useMyEarnings export conflict between useMlm and useCommissions
- Export useMyCommissionEarnings as alias to avoid naming conflict

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 13:05:05 -06:00
Adrian Flores Cortes
b0d5b94c07 [WORKSPACE] chore: Update tsconfig build info 2026-01-29 17:57:01 -06:00
Adrian Flores Cortes
2bfd90cdff [TASK-007] feat: P1 complete - MLM and Goals UI modules
## T-02.1: MLM Structure Pages (4 pages)
- MLMPage.tsx - Dashboard
- StructuresPage.tsx - List structures
- RanksPage.tsx - Manage ranks
- MyNetworkPage.tsx - User network view

## T-02.2: MLM Detail Pages (3 pages)
- StructureDetailPage.tsx
- NodeDetailPage.tsx
- MyEarningsPage.tsx

## T-02.3: Goals Structure Pages (3 pages)
- GoalsPage.tsx - Dashboard
- DefinitionsPage.tsx - Create/edit goals
- MyGoalsPage.tsx - User's assigned goals

## T-02.4: Goals Detail Pages (3 pages)
- GoalDetailPage.tsx
- AssignmentDetailPage.tsx
- ReportsPage.tsx

## T-02.5 & T-02.6: Route Integration
- router/index.tsx: Added 13 new routes with lazy loading
- DashboardLayout.tsx: Added MLM and Goals to sidebar nav

Total: 13 new pages, 13 new routes

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-27 12:53:56 -06:00
Adrian Flores Cortes
5c4e1511d6 chore: Update TypeScript build info
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 14:13:03 -06:00
Adrian Flores Cortes
eff0f70b7f [SAAS-021] feat: Implement MLM module frontend
- 4 API services: structures, ranks, nodes, commissions
- 30+ React Query hooks in useMlm.ts
- My network/dashboard hooks for user experience
- Tree visualization support hooks

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 06:48:55 -06:00
Adrian Flores Cortes
69a6a2c4ea [SAAS-022] feat: Implement Goals module frontend
- Added API services for definitions and assignments
- Added 24 React Query hooks in useGoals.ts
- Updated hooks/index.ts to export useGoals

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 06:26:47 -06:00
Adrian Flores Cortes
a4253a8ce9 [SAAS-019] feat: Add Portfolio module frontend
- API services: categories.api.ts, products.api.ts
- React Query hooks: usePortfolio.ts
- Full CRUD operations for products, categories, variants, prices

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 05:42:13 -06:00
Adrian Flores Cortes
36ee5213c5 [SAAS-018/020] feat: Add Sales and Commissions frontend modules
Sales Frontend (Sprint 2):
- Add services: leads, opportunities, activities, pipeline, dashboard APIs
- Add hooks: useSales with React Query integration
- Add pages: SalesPage, LeadsPage, LeadDetailPage, OpportunitiesPage, OpportunityDetailPage, ActivitiesPage
- Integrate routes in main router

Commissions Frontend (Sprint 4):
- Add services: schemes, entries, periods, assignments, dashboard APIs
- Add hooks: useCommissions with React Query integration
- Add pages: CommissionsPage, SchemesPage, EntriesPage, PeriodsPage, MyEarningsPage
- Integrate routes in main router

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-24 22:50:11 -06:00
Adrian Flores Cortes
f59bbfac64 [SYNC] feat: Add query-keys hook and e2e tests
- src/hooks/query-keys.ts
- tests/e2e/registration.spec.ts
- tests/e2e/subscription.spec.ts

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-24 18:12:21 -06:00
eb95d0e276 Initial commit - Frontend de template-saas migrado desde monorepo
Migración desde workspace-v2/projects/template-saas/apps/frontend
Este repositorio es parte del estándar multi-repo v2

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-16 08:07:16 -06:00
cb173017b3 Initial commit 2026-01-16 14:04:05 +00:00