- Added methods to normalize permissions and roles from API responses.
- Implemented a centralized error handling method for authentication errors.
- Updated API endpoints for login, registration, and user profile management.
- Introduced session refresh functionality to retrieve user roles and permissions.
feat(catalog): improve companies and units management with permissions and filters
- Integrated permission checks for creating, updating, and deleting companies.
- Added user role and permission checks to the Companies component.
- Enhanced the Units component with search and status filters.
- Refactored unit creation and update logic to handle validation errors.
fix(catalog): update unit measure services and mapping logic
- Improved API service methods for fetching, creating, and updating units of measure.
- Added mapping functions to convert API responses to internal data structures.
- Enhanced error handling in unit measure services.
chore(auth): refactor authentication storage utilities
- Created utility functions for managing authentication tokens and user data in local storage.
- Updated API interceptor to use new storage utility functions for session management.
style: clean up code formatting and improve readability across components and services
- Implement DepartmentsService for CRUD operations on departments.
- Create Employees.vue for managing employee listings, including viewing, editing, and deleting employees.
- Add EmployeesForm.vue for creating and editing employee details with validation.
- Introduce employees.interfaces.ts to define employee-related TypeScript interfaces.
- Implement EmployeesService for API interactions related to employees.
- Add positions.interface.ts and positions.services.ts for managing job positions.
- Added Requisitions.vue component for managing requisitions, including search, filter, and pagination functionalities.
- Created requisitionStore.ts for state management using Pinia, including actions for fetching, creating, updating, and canceling requisitions.
- Defined requisition interfaces in requisition.interfaces.ts to structure requisition data.
- Integrated PrimeVue components for UI elements such as DataTable, Dropdown, and Dialogs.
- Implemented cancelation logic with user confirmation and validation for cancelation reasons.
- Added model-document.services.ts for handling API interactions related to model documents.
- Created modelDocumentStore.ts using Pinia for state management of model documents, including actions for fetching, creating, updating, and deleting documents.
- Defined model document types in modelDocument.interface.ts for better type safety and clarity.
- Removed obsolete index.html file from warehouse components.
- Updated router to include a new route for model documents.
- Implemented PurchaseDetails.vue for displaying detailed purchase information.
- Created PurchaseForm.vue for submitting new purchase requests with supplier and item management.
- Developed Purchases.vue for listing all purchase orders with actions for approval, rejection, and conversion.
- Added purchaseServices.ts for API interactions related to purchases.
- Defined types for purchase forms and purchases in respective TypeScript files.
- Integrated PrimeVue components for UI consistency and functionality.
- Changed the sidebar link for roles from '/users/roles' to '/roles'.
- Updated the navigation in RoleForm component to redirect to 'RoleIndex' instead of 'Roles'.
- Introduced a new UserIndex component for user management, including user listing, filtering, and actions.
- Modified the index.html structure to accommodate the new UserIndex component and improved layout for user management.
- Updated router configuration to include the new UserIndex route and adjusted roles routing structure.
- Added ProductsIndex.vue for displaying and managing products.
- Created index.html for the product management interface.
- Developed productService.ts for API interactions related to products.
- Established productStore.ts using Pinia for state management of products.
- Defined product types in product.d.ts for TypeScript support.
- Integrated toast notifications and confirmation dialogs for user feedback.
- Implemented pagination and search functionality in the product table.
- Added form for creating and editing products with validation.
- Implemented WarehouseForm.vue for creating new warehouses with form validation and category assignment.
- Developed WarehouseIndex.vue for displaying a list of warehouses with search and filter functionalities.
- Created warehouseClasificationService.ts for handling warehouse classification API interactions.
- Defined types for warehouse classifications in warehouse.clasification.d.ts.
- Established a Pinia store (warehouseStore.ts) for managing warehouse state and actions.
- Added an index.html file for the warehouse management interface layout.
- Updated README.md to reflect new project structure and conventions.
- Refactored component imports and paths to align with new layout.
- Removed legacy components (AppConfig.vue, AppTopbar.vue) and created new layout components (MainLayout.vue, Sidebar.vue, TopBar.vue).
- Implemented warehouse module with components for inventory management (WarehouseDashboard.vue, InventoryTable.vue).
- Added composables and services for warehouse logic and API interactions.
- Introduced shared components (KpiCard.vue) for KPI display.
- Enhanced API service for handling HTTP requests.
- Defined TypeScript types for warehouse entities and global application types.