Commit Graph

144 Commits

Author SHA1 Message Date
fb89ed0569 Merge pull request 'feat: enhance user avatar handling and synchronization with Workspace' (#381) from feature/profile-photo into development
Reviewed-on: ADUANASOFT/anexo76#381
2026-05-08 22:34:06 +00:00
1dbc75107f feat: enhance user avatar handling and synchronization with Workspace
- Updated sidebar component to merge user data from Keycloak and Workspace, including avatar URLs.
- Refactored nav-user component to utilize new avatar resolution logic and display user information more effectively.
- Introduced a new utility function to resolve user avatar URLs, prioritizing Workspace avatars.
- Implemented backend changes to support synchronization of user profile data, including avatar URLs from Workspace.
- Added database migration to include new fields for Workspace profile synchronization in user_tenants.
- Created a new client for fetching user profiles from Workspace.
- Updated dashboard components to reflect changes in user data structure and avatar handling.
- Removed avatar upload functionality from the profile update process, relying on Workspace for avatar management.
- Added tests for avatar resolution logic to ensure correct prioritization of avatar sources.
2026-05-08 17:03:29 -05:00
290d1c2913 Merge branch 'development' into feature/api-sittar-actualizacion 2026-05-08 14:39:24 -06:00
315c94219b feature/api-sittar-actualizacion 2026-05-08 12:54:19 -06:00
9e3274b03a Update environment variables in docker-compose and refactor RLS context handling in database and middleware. Added error handling for Hub license verification. 2026-05-08 13:51:24 -05:00
fd26b8e1dd Merge pull request 'feature/profile-photo' (#372) from feature/profile-photo into development
Reviewed-on: ADUANASOFT/anexo76#372
2026-05-08 14:25:32 +00:00
beaf9b2f8e Correcion con vite, borrar los print y mejorar la barra de manuales 2026-05-07 11:41:44 -05:00
d325218d27 merge: integrar development y resolver conflictos en traducciones 2026-05-06 17:02:27 -05:00
1f2f8d1f83 feat: implement user invitation system
- Add InviteToken model and Alembic migration (core.invite_tokens)
- Add invites module: DTOs, service (create/validate/consume), routes
- Register invites router in core router
- Extend auth register endpoint to support invite_token flow:
  - Validate local token, create user via Hub admin API (service account),
    handle existing user (link instead of duplicate), create UserTenant, consume token
- Add GET /auth/register/check endpoint to validate token without consuming
- Add HUB_ADMIN_EMAIL, HUB_ADMIN_PASSWORD, APP_PUBLIC_URL to config
- Frontend: add invite() method and types to users.ts API client
- Frontend: add invite dialog with real roles dropdown to users page
- Frontend: update register page to handle invite flow and user-exists case
2026-05-06 16:57:29 -05:00
85ecdc88fa fix: estabilizar auth, proxy y traducciones del dashboard 2026-05-06 16:57:28 -05:00
8c8cd0e247 feature/bitacora-correccion-filtro-tenant 2026-05-06 12:12:09 -06:00
d977b08bf9 Merge pull request 'feat: add first_name and last_name fields to UserTenant model and sync with Keycloak' (#366) from fix/user-profile-edit-keycloak-sync into development
Reviewed-on: ADUANASOFT/anexo76#366
2026-05-06 17:11:07 +00:00
5dd65df3e8 feat: add first_name and last_name fields to UserTenant model and sync with Keycloak
Co-authored-by: Copilot <copilot@github.com>
2026-05-06 12:09:04 -05:00
97bb5c23b6 feature/permisos-keycloak-correccion 2026-05-04 13:22:18 -06:00
2ce8a9047c feat: enhance user statistics and tenant management
- Updated user statistics endpoint to include access token and hub tenant ID for improved data retrieval.
- Refactored user listing functionality to support access token and hub tenant ID, ensuring accurate user data from the Hub.
- Introduced new methods in UserService for fetching users with additional information from the Hub.
- Enhanced security functions to ensure user-tenant relationships are maintained and synchronized with the Hub.
- Improved frontend logic to handle company initialization and user authentication more effectively.
2026-05-01 23:32:48 -05:00
259d67ebb2 Merge branch 'development' into feature/reporte-bak 2026-04-30 16:30:14 -06:00
b5c94ca0cc feature/vu-api-acuse-xml-pdf 2026-04-30 11:07:03 -06:00
e8db8f2a86 bak 2026-04-30 07:42:02 -06:00
f10fee9bc3 refactor: update role handling in security and permissions modules, and change hub-net to non-external in docker-compose 2026-04-29 22:08:37 -05:00
1d1d4b1619 Merge remote-tracking branch 'origin/development' into feature/hub-integration
# Conflicts:
#	backend/.env.example
#	backend/api/v1/modules/core/auth/service.py
#	backend/api/v1/modules/core/users/service.py
#	backend/core/middleware.py
#	docker-compose.yml
#	frontend/src/lib/auth.ts
#	frontend/src/lib/components/help/HelpDrawer.svelte
#	scripts/backend-entrypoint.sh
2026-04-29 13:11:44 -05:00
c8e45f5ce2 chore: resolve second wave of merge conflicts, integrate new DODA despacho module and stabilize catalogues 2026-04-27 13:43:51 -05:00
8374975a30 chore: resolve remaining merge conflicts in data-table-actions components 2026-04-27 13:39:04 -05:00
c3e4cf22fc fix/env-api-unica 2026-04-27 11:08:33 -06:00
5c2a84e95d fix: solución de bloqueos y estandarización de permisos 2026-04-27 10:47:30 -05:00
9d232998d6 feature/api-doda 2026-04-26 18:13:20 -06:00
ca21cdf58d feat: Implement token issue detection and enhance license validation middleware; add tests for token issue message detection 2026-04-26 08:25:53 -05:00
73a6d92863 Implement row-level security (RLS) context management for database sessions. Refactor invoice processing and reverting tasks to utilize scoped database sessions with RLS context. Update middleware to extract and set company ID from requests. Enhance task dispatching to propagate RLS context via Celery headers. Update architecture documentation to reflect RLS implementation details. 2026-04-24 18:01:46 -05:00
5ac757dbc1 chore: snapshot before development sync 2026-04-24 11:18:06 -05:00
1cd81ebc03 feature/digitalizacion-api 2026-04-20 15:13:48 -06:00
5e6ee5d4d1 Funciones y logia de exportacion, como mejoras CRUD en las partes de exportacion 2026-04-16 11:30:40 -05:00
84ba0fdb19 Merge branch 'development' of https://git.aduanasoft.com/ADUANASOFT/anexo76 into feature/tareas_TODO_configuracion 2026-04-14 10:40:41 -05:00
e5fa5f0326 TODOS de configuracion general lista 2026-04-13 18:02:39 -05:00
8f4fd7ee90 feature/correcion-hash 2026-04-13 15:57:40 -06:00
15dd7c6225 Merge branch 'feature/API-COBE' of https://git.aduanasoft.com/ADUANASOFT/anexo76 into feature/API-COBE 2026-04-07 14:56:39 -06:00
9d8d27a9d0 fix/variable-encriptado 2026-04-07 14:55:55 -06:00
5fc801f638 Merge branch 'development' into feature/API-COBE 2026-04-07 14:28:40 -05:00
4e08abafb8 merge-conflic-fix 2026-04-07 08:21:16 -06:00
df4024436b checkpoint 2026-04-07 08:15:02 -06:00
fe74481786 feature/api-cove-integration 2026-04-06 13:52:33 -06:00
0c25572d70 feature/correcion-al-borrar-datos-borrar-tambien-del-bucket 2026-04-06 08:13:01 -06:00
d3676aa8ed Refactor code structure for improved readability and maintainability 2026-04-06 08:54:05 -05:00
1355bf34c4 feature/file-manager-user-only-read 2026-04-06 07:43:43 -06:00
9439a6a775 feature/minio-s3-integration 2026-04-02 13:35:18 -06:00
4bc38b691f Add APP_VERSION handling in Dockerfile and config.py
Updated the Dockerfile to include an ARG and ENV for APP_VERSION, allowing for version specification during build time. Modified config.py to set a default APP_VERSION, which can be overridden by the environment, enhancing flexibility for deployment and runtime configuration.
2026-04-02 11:31:00 -05:00
26977b881a Merge branch 'development' into feature/table-celery-tasks 2026-03-25 07:15:31 -06:00
c565696242 feature/limpieza-periodica 2026-03-24 16:58:48 -06:00
18e4477bf1 Add TEST_DATABASE_URL to configuration settings
- Introduced a new configuration variable, TEST_DATABASE_URL, to specify the test database connection string.
- This addition enhances the flexibility of database handling, particularly for testing scenarios, aligning with recent improvements in database URL management.
2026-03-24 15:35:13 -05:00
23509cbcc9 Refactor DTO classes to use model_config with ConfigDict for attribute handling
- Updated multiple DTO classes across various modules to replace the `Config` class with `model_config = ConfigDict(from_attributes=True)`.
- This change enhances consistency in attribute handling and aligns with the latest Pydantic practices.
- Adjusted error handling in core modules to change status codes from `HTTP_422_UNPROCESSABLE_ENTITY` to `HTTP_422_UNPROCESSABLE_CONTENT` for improved clarity in validation responses.
2026-03-24 12:06:55 -05:00
54c137c156 Refactor invoice processing logic to remove legacy returned quantity fields and enhance data handling
- Updated invoice processing functions to eliminate legacy fields related to returned quantities, now relying on new balance movement and discharge records.
- Adjusted various components and services to reflect changes in quantity handling, including updates to the frontend for displaying used quantities instead of returned ones.
- Improved the logic for invoice total updates and validation processes to ensure consistency with the new data structure.

These changes aim to streamline invoice management and improve data integrity across the application.
2026-03-20 11:42:18 -05:00
2a861e480c Enhance invoice and item processing with balance tracking features
- Added `company_id` to `ClientProviderAddress` and `ClientProviderPrograms` for better association.
- Updated `_process_with_discharge` to simplify invoice review by removing redundant parameters.
- Improved `pre_validators` to ensure address validation checks for existence before accessing country.
- Enhanced balance comparison logic in `compare_balances` by tracking consumed quantities.
- Modified `fill_available_balances` to reflect invoice status changes from 'UNPROCESSED' to 'PENDING'.
- Introduced `get_lines_with_balance` method in `ItemService` to fetch invoice lines with available balance.
- Added new API endpoint to retrieve import invoice lines with balance information.
- Updated frontend components to display available balances and improve user experience in invoice selection.
2026-03-18 00:55:17 -05:00