Commit Graph

21 Commits

Author SHA1 Message Date
882d754d33 feat: persistir selección de compañía mediante cookies y SSR 2026-04-24 10:28:52 -06:00
ce18d81612 feature/tabs-partidas-jerarquia-alt-n 2026-04-15 13:59:50 -06:00
62315e5b24 Implementacion de sistema distribuido de boton de ayuda 2026-02-18 14:25:24 -06:00
Galindo97
343dc10249 Merge branch 'development' into feature/fraction-API 2026-02-16 12:04:56 -06:00
Galindo97
79a9f72741 feat: Introduce a new TariffFractionSelector component, refactor tariff fraction handling across frontend forms and backend services, and add a company amendment database migration. 2026-02-16 11:37:06 -06:00
472e42a02f refactor: remove console logs and clean up fetch URL assignments in various components 2026-02-13 16:30:18 -06:00
13254bbcfc feat: implement server API route to set active company in cookie and update setActiveCompany method 2026-02-13 12:46:47 -06:00
hreyes
1307760dbb fix/focus-nav-bug 2026-02-11 12:04:03 -06:00
99d81e66b9 Tipo de cambio actualizado 2026-02-09 13:39:03 -06:00
hreyes
0dd9f96f5b feature/nav-tab-pediments-and-goods 2026-02-03 16:16:30 -06:00
hreyes
b7a99d7393 Feature/Integracion de navegacion free mouse a pedimentos 2026-02-03 13:27:06 -06:00
hreyes
78adde9737 Feature/Integracion de nasvegacion free mouse para goods 2026-02-03 12:03:41 -06:00
d4e4e1f7f8 Se corrigio el problema de los logos 2026-01-22 08:10:57 -06:00
3d39360f9c Se introdujo el sistema de consolidados 2026-01-21 09:47:28 -06:00
Galindo97
97a318fdba feat: update invoice and item tabs to use 'Datos Soriana' instead of 'Datos Sonana'
refactor: enhance package transportation tab to prevent infinite loops and load data only once

fix: include credentials in fetch request for company data

feat: implement loading of additional pedimento data in edit page, including contributions, packages, transport carriers, guides, seals, and containers

add: create DTOs and models for pedimento contributions, packages, transport carriers, guides, seals, and containers
2026-01-02 18:04:28 -06:00
648197b171 feat: Enhance company loading logic with authentication and error handling 2025-12-08 14:37:45 -06:00
cdc3788a05 feat: update company API endpoint, refine pedimento dates model, and adjust Keycloak mapper creation 2025-11-24 09:58:24 -06:00
ba40123333 feat: Enhance Pedimentos CRUD operations with related data handling
- Updated PedimentosService to create and update related tables for Pedimentos.
- Added company_id filtering in queries for Pedimentos.
- Improved error handling and logging during creation and update processes.
- Refactored router tags for consistency and clarity.
- Adjusted API endpoints for customs brokers to include company_id in requests.
- Enhanced company selection logic in various components to prioritize active company.
- Implemented event listeners for company changes to reload data dynamically.
- Updated frontend components to handle loading states and errors more effectively.
- Ensured all relevant routes and API calls are aligned with the new company context.
2025-11-14 18:14:33 -06:00
a5c1bab201 Refactor authentication handling and API calls in dashboard routes
- Centralized API URL configuration and token management in $lib/server/api.ts.
- Replaced direct token access with a centralized method for retrieving tokens.
- Updated all dashboard reference data routes to use authenticatedFetch for API calls, improving token refresh handling.
- Simplified login route by utilizing centralized token management functions.
- Added a new layout file for the dashboard to pass user and company data to the client.
2025-11-12 09:46:59 -06:00
b68c4316ff Refactor backend and frontend code for improved structure and functionality
- Rearranged imports in multiple files for consistency and clarity.
- Updated logging middleware to exclude specific paths from logging.
- Enhanced security module by cleaning up token handling and improving tenant validation.
- Added tenant and company scoped mixins for better database model management.
- Implemented generic CRUD routes for tenant-scoped resources.
- Improved error handling and response management in API routes.
- Cleaned up login and logout processes to ensure proper session management.
- Introduced mechanisms to clear local storage and cookies on tenant change.
- Enhanced company store to detect tenant changes and clear data accordingly.
- Added new DTO mixins for currency and value affect flags.
2025-11-11 17:20:47 -06:00
52b8fcd434 feat: Implement multi-tenancy support in middleware and security layers
- Enhanced TenantMiddleware to validate tenant information from JWT tokens.
- Added LicenseValidationMiddleware to check tenant licenses before processing requests.
- Updated security utilities to extract tenant information from tokens and validate company access.
- Introduced CompanyStore to manage active company state and handle company switching in the frontend.
- Modified API routes to include company_id in requests for better resource management.
- Improved logging and error handling throughout the middleware and API layers.
- Updated frontend components to reflect changes in company management and selection.
- Added new API route for fetching user's companies with proper authentication handling.
2025-11-11 14:15:31 -06:00