Commit Graph

160 Commits

Author SHA1 Message Date
880999b03a feat: plantilla base workspace SaaS
Some checks failed
Build Producción & Push a Harbor / test (push) Failing after 2s
Build Producción & Push a Harbor / build (push) Has been skipped
Convierte el repositorio de Anexo76 en una plantilla limpia y reutilizable
para nuevos proyectos del ecosistema Workspace de Aduanasoft.

Cambios principales:
- Elimina módulos específicos de Anexo76: a76, a24, sitar, public
- Agrega módulo example/ con patrón CRUD de referencia (models/dto/service/routes)
- Limpia migraciones Alembic: solo quedan las 6 de core (users, tenants, permissions)
- Reemplaza todas las rutas del dashboard con stubs genéricos
- Elimina lógica de negocio aduanera: shortcuts, CSV imports, permisos, catálogos
- Simplifica variables de entorno: una sola WORKSPACE_URL deriva Hub y Keycloak
- Agrega scripts/auth-mode.sh para alternar entre auth local y workspace
- Configura docker-compose con nombres genéricos (app-*)
- Corrige flujo SSO: elimina system-gate SCAF/SCAII que bloqueaba el login
- Modo DEV_LOCAL_AUTH para desarrollo sin Keycloak ni Hub

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-04 10:55:17 -05:00
af6c0698da Se aniado el boton para subir fotografias desde el equipo, ademas de guardardo en minio 2026-06-01 17:13:00 -05:00
22fbb211bd Merge pull request 'feature/optimizacion-de-permisos' (#460) from feature/optimizacion-de-permisos into development
Reviewed-on: ADUANASOFT/anexo76#460
2026-05-29 15:53:44 +00:00
4752a0f452 Merge pull request 'Nuevos formatos de transferencia electronica, ademas de ajsytes en la parte visual y ademas manejos de incosistencias' (#459) from fix/interfaces-faltantes into development
Reviewed-on: ADUANASOFT/anexo76#459
2026-05-29 15:53:33 +00:00
e2445d454b feature/optimizacion-de-permisos 2026-05-29 09:48:43 -06:00
6855eb9531 Nuevos formatos de transferencia electronica, ademas de ajsytes en la parte visual y ademas manejos de incosistencias 2026-05-28 10:39:20 -05:00
dbf68986da feature/app-selector 2026-05-26 16:59:32 -06:00
1249c54738 fix: update health check URL in Jenkinsfile and reduce wait times in e2e tests
- Changed health check URL from localhost:8000 to localhost:3467 in Jenkinsfile.
- Reduced wait times in various e2e tests to improve performance and responsiveness.
- Cleaned up logging in middleware.py by removing unnecessary log statement.

These changes aim to enhance the CI pipeline efficiency and streamline the testing process.
2026-05-22 16:23:29 -05:00
71c19d28b0 Merge pull request 'feature/hub-admin-global-access' (#410) from feature/hub-admin-global-access into development
Reviewed-on: ADUANASOFT/anexo76#410
2026-05-20 16:31:09 +00:00
13ebe9a3b5 feat: remove migration for hub_invite_token from invite_tokens table 2026-05-20 10:56:47 -05:00
7920f190e3 fix(security): improve tenant ID resolution and error handling for hub_admin access 2026-05-20 10:46:31 -05:00
125405458c feat(auth): add hub_admin global access support across modules
- Add is_hub_admin() and resolve_tenant_id_required() to core/security
- hub_admin resolves tenant from company or uses None as global sentinel
- Update routes and services to skip tenant filter when tenant_id is None
- UserService accepts is_hub_admin flag for cross-tenant user management
- get_my_companies returns all companies for hub_admin without tenant restriction
2026-05-15 09:22:35 -05:00
cf27f6103d Merge pull request 'fix/redirect-invitation-users' (#391) from fix/redirect-invitation-users into development
Reviewed-on: ADUANASOFT/anexo76#391
2026-05-12 15:37:30 +00:00
26f9675557 Merge branch 'development' into feature/alembic-daf 2026-05-12 09:23:19 -06:00
831da7b31c refactor: remove unused base_url parameter from create_invite and update fallback URL logic 2026-05-12 10:04:35 -05:00
ee9ac4f64f feature/alembic-daf 2026-05-12 09:00:32 -06:00
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