- Implemented UnitsEquivalenceModal for managing unit equivalences.
- Added unit equivalence store and service for CRUD operations.
- Integrated unit equivalence management into Units.vue component.
- Created new HTML page for unit equivalence management layout.
- Defined TypeScript interfaces for unit equivalences.
- Enhanced user permissions for managing unit equivalences.
- 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
- Upgrade vue-tsc to version 3.2.6 in package.json.
- Refactor Companies.vue to replace address column with domains_count and update company service references.
- Modify CompaniesForm.vue to include new fields for email, primary domain, and certificate files, and adjust validation logic.
- Revamp companies.service.ts to implement new API endpoints for tenant management and improve error handling.
- Introduce companies.mapper.ts for payload transformation between form data and API requirements.
- Update companies.types.ts to reflect changes in data structure and types for better type safety.
- 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 approval and rejection dialogs for technical and financial requisitions in Requisitions.vue.
- Updated requisition statuses to include 'pending_technical', 'rejected_technical', 'pending_financial', and 'rejected_financial'.
- Enhanced requisition store to handle approval and rejection logic, including saving to localStorage.
- Modified requisition interface to include approval and rejection records.
- Updated initial requisition data to reflect new approval statuses and added comments field for requisition items.
- Created a new component for managing warehouse inventory exits (WarehouseOutInventory.vue).
- Implemented inventory movement services to handle API requests for inventory movements.
- Added new interfaces for inventory movements and stock management.
- Updated routing to include the new inventory exit page.
- Enhanced existing services to support inventory exit functionality.
- Added validation and user feedback for inventory exit operations.
- Deleted the index.html file from the RH components.
- Created new DepartmentForm.vue and Departments.vue components for managing departments.
- Updated the router to reflect the new path for Departments component.
- Added DepartmentsService for API interactions related to departments.
- Introduced types for departments in departments.interface.ts.
- Updated WarehouseAddInventory.vue to change background color classes.
- Configured TypeScript paths in tsconfig.app.json for easier imports.
- Enhanced Vite configuration to support aliasing for src directory.
- 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.
- Updated SupplierModal.vue to include new fields for supplier information and improved form validation.
- Enhanced Suppliers.vue to handle loading states and improved supplier data fetching logic.
- Removed old supplierServices and unitOfMeasureService files, replacing them with updated service files that align with new interfaces.
- Created new interfaces for suppliers and unit of measure to standardize data handling across the application.
- Adjusted the store files to reference the new service files and interfaces.
- Improved error handling and logging in service methods for better debugging.
- 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 getWarehouseById method in warehouseService to fetch warehouse details by ID.
- Added new types for warehouse inventory management in warehouse.d.ts and warehouse.inventory.d.ts.
- Created WarehouseAddInventory.vue component for handling inventory entries with serial number management.
- Developed inventoryWarehouseServices for adding inventory through API.
- Updated router to include the new inventory management component.
- Added Docker configuration files for production deployment.
- Created Nginx configuration for serving the application.
- Added .dockerignore and .env.production for environment-specific settings.
- 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.
- Added axios as a dependency for handling HTTP requests.
- Refactored the authentication logic by moving it to a new module structure.
- Replaced the old auth store with a composable useAuth for better state management.
- Created a new Login.vue component for the login page with improved UI.
- Implemented an AuthService for handling authentication-related API calls.
- Removed the old Login.vue and uth.ts files to clean up the codebase.
- Updated router to use the new login component and auth composable.
- Added interceptors to handle token management and error responses globally.