Commit Graph

12 Commits

Author SHA1 Message Date
Adrian Flores Cortes
36ba16e2a2 feat(sales): complete Sales and Quotations module CRUD pages
Sales Orders:
- SalesOrderCreatePage: Full form with line items, validation
- SalesOrderDetailPage: View with status-based actions
- SalesOrderEditPage: Edit draft orders with line item management

Quotations:
- QuotationCreatePage: Full form with line items
- QuotationDetailPage: View with send/accept/reject/convert actions
- QuotationEditPage: Edit draft quotations

Components:
- SalesOrderForm, SalesOrderLineItems, SalesOrderLineItemForm
- SalesOrderSummary, SalesOrderStatusBadge
- QuotationStatusBadge, QuotationActions

Routes configured for:
- /sales/orders, /sales/orders/new, /sales/orders/:id, /sales/orders/:id/edit
- /sales/quotations, /sales/quotations/new, /sales/quotations/:id, /sales/quotations/:id/edit

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 19:51:13 -06:00
Adrian Flores Cortes
1363fbd5f6 feat(hr): Add complete HR frontend module
- API Client: hr.api.ts with employees, departments, contracts, leaves, leaveTypes
- Types: hr.types.ts with all interfaces and enums
- Hooks: useEmployees, useDepartments, useContracts, useLeaves, useLeaveTypes
- Pages: EmployeesPage, EmployeeDetailPage, EmployeeFormPage, DepartmentsPage, ContractsPage, LeavesPage, LeaveRequestPage

Implements frontend for MGN-010 HR module

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-26 16:34:03 -06:00
3a461cb184 [TASK-2026-01-20-005] feat: Resolve P2 gaps - Actions, Settings, Kanban
EPIC-P2-001: Frontend Actions Implementation
- Replace 31 console.log placeholders with navigate() calls
- 16 pages updated with proper routing

EPIC-P2-002: Settings Subpages Creation
- Add CompanySettingsPage.tsx
- Add ProfileSettingsPage.tsx
- Add SecuritySettingsPage.tsx
- Add SystemSettingsPage.tsx
- Update router with new routes

EPIC-P2-003: Bug Fix ValuationReportsPage
- Fix recursive getToday() function

EPIC-P2-006: CRM Pipeline Kanban
- Add PipelineKanbanPage.tsx
- Add KanbanColumn.tsx component
- Add KanbanCard.tsx component
- Add CRM routes to router

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 04:32:20 -06:00
6b7f438669 feat(frontend): Add Audit and Notifications modules (MGN-007, MGN-008)
Audit module (MGN-007):
- AuditLogsPage.tsx: Full audit logs UI with filtering, stats cards, detail modal
- Uses existing types, api, hooks from settings feature

Notifications module (MGN-008):
- types/notifications.types.ts: Complete types for channels, templates, preferences, in-app
- api/notifications.api.ts: API clients for all notification operations
- hooks/useNotifications.ts: 5 hooks (useChannels, useTemplates, useNotificationPreferences,
  useInAppNotifications, useNotificationBell)
- NotificationsPage.tsx: Full notifications center with category cards, filtering,
  read/unread management

Both modules complement complete backends with comprehensive frontend UIs.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 11:20:25 -06:00
4eb8ee2699 feat(frontend): Add Reports and Settings modules (MGN-009, MGN-006)
Reports module:
- types/reports.types.ts: Complete type definitions for definitions, executions, schedules
- api/reports.api.ts: API clients for all report operations
- hooks/useReports.ts: Custom hooks (useReportDefinitions, useReportExecutions, etc.)
- ReportsPage.tsx: Main reports management with tabs
- QuickReportsPage.tsx: Trial Balance and General Ledger quick reports

Settings module:
- types/settings.types.ts: Types for company, users, profile, audit logs
- api/settings.api.ts: API clients for settings operations
- hooks/useSettings.ts: Custom hooks (useCompany, useUsers, useProfile, etc.)
- SettingsPage.tsx: Settings hub with navigation cards
- UsersSettingsPage.tsx: User management page

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 11:06:20 -06:00
07987788f8 feat(frontend): Add CRM and Projects modules frontend
- CRM module: Types, API client, hooks (useLeads, useOpportunities,
  usePipeline, useStages, useActivities), and pages (LeadsPage,
  OpportunitiesPage)
- Projects module: Types, API client, hooks (useProjects, useTasks,
  useTaskBoard, useTaskStages, useTimesheets), and pages (ProjectsPage,
  TasksPage)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 10:36:23 -06:00
54c14f87c8 feat(purchases): Add Purchasing module frontend (hooks + pages)
- Create purchases hooks (usePurchaseOrders, usePurchaseReceipts)
- Create PurchaseOrdersPage with order management and PDF download
- Create PurchaseReceiptsPage with receipt validation
- Update feature index to export hooks

MGN-012 Purchasing frontend implementation

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 10:19:43 -06:00
836ebaf638 feat(financial): Add complete Financial module frontend
- Create financial types (Account, Journal, JournalEntry, Invoice, Payment)
- Create financial API client with full CRUD operations
- Create comprehensive hooks (useAccounts, useJournals, useJournalEntries, etc.)
- Create AccountsPage with account type filtering and stats
- Create JournalEntriesPage with journal filtering and post/cancel actions
- Create InvoicesPage with customer/supplier filtering and validation

MGN-010 Financial frontend implementation

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 10:12:43 -06:00
32f2c06264 feat(sales): Add complete sales frontend pages and hooks (MGN-013)
New pages:
- SalesOrdersPage: Sales orders list with confirm/cancel/invoice actions
- QuotationsPage: Quotations management with send/accept/reject/convert actions

New hooks:
- useSalesOrders: Fetch and manage sales orders with CRUD and actions
- useSalesOrder: Single order management with line items
- useQuotations: Quotations lifecycle management
- useQuotation: Single quotation fetching

Features:
- Status filters (draft, sent, sale, done, cancelled)
- Date range filtering
- Invoice and delivery status tracking
- PDF download for quotations
- Convert quotation to sales order

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 10:03:15 -06:00
28c8bbb768 feat(inventory): Add complete inventory frontend pages and hooks (MGN-011)
New pages:
- StockLevelsPage: View and manage stock levels by warehouse/product
- MovementsPage: Stock movements history with filters and actions
- InventoryCountsPage: Physical inventory counts management
- ReorderAlertsPage: Low stock alerts and reorder suggestions
- ValuationReportsPage: Inventory valuation by FIFO/average cost

New hooks:
- useStockLevels: Fetch and manage stock levels
- useMovements: Fetch stock movements with CRUD operations
- useWarehouses: Manage warehouses
- useLocations: Manage warehouse locations
- useStockOperations: Stock adjust, transfer, reserve operations
- useInventoryCounts: Inventory count lifecycle management
- useInventoryAdjustments: Inventory adjustments management

Extended API client with:
- Inventory counts endpoints
- Inventory adjustments endpoints
- Stock valuation endpoints

Extended types with:
- InventoryCount, InventoryCountLine, CreateInventoryCountDto
- InventoryAdjustment, InventoryAdjustmentLine, CreateInventoryAdjustmentDto
- StockValuationLayer, ValuationSummary

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 09:54:51 -06:00
28b27565f8 feat(billing): Add billing-usage frontend module with components, pages and routes
- Add billing-usage feature module with types, API clients, hooks, and components
- Create PlanCard, PlanSelector, SubscriptionStatusBadge, InvoiceList, UsageSummaryCard, CouponInput components
- Add BillingPage, PlansPage, InvoicesPage, UsagePage
- Update routes to include billing section

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 08:23:59 -06:00
d3fdc0b9c0 Initial commit - erp-core-frontend-web 2026-01-04 06:40:18 -06:00