Commit Graph

1663 Commits

Author SHA1 Message Date
3f55d19ce6 fix(catalogos-referencia): corregir etiqueta "Modos" a "Métodos de Transporte" 2026-05-14 12:02:06 -05:00
23ae03343b eliminacion y cracion de registros reactivos 2026-05-14 11:28:09 -05:00
dacfe8f6e8 docs: update frontend .env.example with all required vars for dev local
Agrega INTERNAL_API_URL, INTERNAL_HUB_URL, HUB_URL, KEYCLOAK_URL y ORIGIN
al ejemplo para que el dev local tenga el mismo conjunto de variables que
usa Docker Compose, evitando que el SSO exchange y el refresh proactivo
fallen silenciosamente por vars indefinidas.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-14 09:19:24 -05:00
85f31f8eca fix(auth): replace all /login redirects with redirectToWorkspaceLogin
Todos los page.server.ts que hacían throw redirect(302, '/login') ahora
usan redirectToWorkspaceLogin(cookies, url) para enviar al usuario directo
al login del workspace en lugar de pasar por la página /login local de Anexo76.

Archivos actualizados:
- dashboard/pedimentos/+page.server.ts
- dashboard/pedimentos/edit/[id]/+page.server.ts (2 redirects)
- dashboard/invoices/+page.server.ts
- dashboard/invoices/edit/[id]/+page.server.ts
- dashboard/invoices/settings/+page.server.ts
- dashboard/goods/parts/edit/[[id]]/+page.server.ts
- dashboard/general_catalogs/ports/+page.server.ts
- dashboard/general_catalogs/seal/+page.server.ts
- dashboard/reports/vencimiento/+page.server.ts
- dashboard/reports/invoices/+page.server.ts

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-14 09:09:34 -05:00
228cd533d2 fix(sso): reduce cookie chunk threshold and add defensive error handling in SSO exchange
- Reduce ACCESS_TOKEN_MAX_SINGLE y ACCESS_TOKEN_CHUNK_SIZE de 3500 a 2800
  para garantizar que cada cookie fragmentada no supere el límite de 4096 bytes
  del navegador (incluye overhead del nombre, path, attrs).
- Agrega try/catch alrededor de response.json() en el load de /auth/sso para
  evitar SyntaxError no manejado si el body no es JSON.
- Type guards explícitos en tokens.access_token, refresh_token y tenant_id
  para detectar respuestas incompletas del hub antes de llamar cookies.set().
- .catch(() => ({})) en refreshRes.json() para que el refresh proactivo nunca
  bloquee el flujo SSO aunque el body sea inesperado.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-14 08:30:15 -05:00
458d348638 Se le puse la opcion ambas en el modelo de puertos 2026-05-13 09:54:20 -05:00
1482af22cb Mejoramiento de los errores en vehiculos 2026-05-13 09:10:25 -05:00
d927d7761b Merge branch 'development' of https://git.aduanasoft.com/ADUANASOFT/anexo76 into fix/equivalencias 2026-05-13 08:39:51 -05:00
eced3accdc Arreglo de equivalencias 2026-05-13 08:39:37 -05:00
6f2ce605a8 Merge pull request 'fix/logout-anexo' (#392) from fix/logout-anexo into development
Reviewed-on: ADUANASOFT/anexo76#392
2026-05-12 22:46:49 +00:00
35c47e32df fix: update secure cookie handling to use origin-based context for improved security 2026-05-12 17:32:03 -05:00
d8c012d968 Merge branch 'development' of https://git.aduanasoft.com/ADUANASOFT/anexo76 into fix/clientes-provedores-traduccion 2026-05-12 16:53:15 -05:00
d73c0dca83 fix: add ORIGIN environment variable for SvelteKit to prevent internal IP/port usage 2026-05-12 11:17:43 -05:00
2436a4d563 fix: update logout flow to use registered post-logout route and add redirect handler 2026-05-12 11:01:34 -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
51d29950c8 fix: implement backfill for UserCompanyRole during user login and invite flow 2026-05-12 10:35:52 -05:00
47d5257925 Merge pull request 'fix/head-alembic' (#390) from fix/head-alembic into development
Reviewed-on: ADUANASOFT/anexo76#390
2026-05-12 15:32:46 +00:00
99a6daa160 fix/head-alembic 2026-05-12 09:31:37 -06:00
6b23bca596 Merge pull request 'feature/alembic-daf' (#389) from feature/alembic-daf into development
Reviewed-on: ADUANASOFT/anexo76#389
2026-05-12 15:25:44 +00:00
26f9675557 Merge branch 'development' into feature/alembic-daf 2026-05-12 09:23:19 -06:00
e3cbb738e0 feature/csv-correccion-clientes 2026-05-12 09:22:30 -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
1aafa143db Traducciones corregidas en porveedored y clientes 2026-05-12 09:42:40 -05:00
0fd73c5810 Merge pull request 'refactor: update SSO handling and remove deprecated components' (#388) from feature/delete-login into development
Reviewed-on: ADUANASOFT/anexo76#388
2026-05-12 14:21:46 +00:00
42d7b876d1 feat: add environment variables for SMTP configuration and update hub-net to internal 2026-05-12 09:19:39 -05:00
f8356bbd5c Merge pull request 'fix/trailers' (#387) from fix/trailers into development
Reviewed-on: ADUANASOFT/anexo76#387
2026-05-12 14:06:26 +00:00
7671441d04 Merge pull request 'se agrego la edicion y eliminacion de los registros de selectores' (#386) from fix/sectores into development
Reviewed-on: ADUANASOFT/anexo76#386
2026-05-12 14:05:34 +00:00
c8ef9b47fc Merge pull request 'fix/trasnportistas' (#385) from fix/trasnportistas into development
Reviewed-on: ADUANASOFT/anexo76#385
2026-05-12 14:05:02 +00:00
1ca6e8d565 Merge pull request 'feature/correccion-de-actualizar' (#384) from feature/correccion-de-actualizar into development
Reviewed-on: ADUANASOFT/anexo76#384
2026-05-12 14:03:44 +00:00
52577b9e66 refactor: update SSO handling and remove deprecated components
- Changed the hub-net network configuration to external in docker-compose.
- Removed the Single Sign-On (SSO) service implementation and associated login form component.
- Enhanced authentication callback logic to improve error handling and redirect management.
- Updated various routes to streamline login and authentication processes, ensuring proper redirection to workspace login.
- Cleaned up unused code and improved overall structure for better maintainability.
2026-05-11 17:17:37 -05:00
3a0a08fe80 Merge branch 'development' of https://git.aduanasoft.com/ADUANASOFT/anexo76 into fix/trailers 2026-05-11 12:03:16 -05:00
c50d38c496 Errores corregidos y despliegie normal decatalgos en trailers 2026-05-11 12:03:04 -05:00
eb5fed6aee Merge pull request 'fix: update docker-compose network to external and enhance avatar URL resolution logic' (#383) from fix/alembic-version into development
Reviewed-on: ADUANASOFT/anexo76#383
2026-05-11 15:38:25 +00:00
af415eb604 fix: change hub-net network to internal 2026-05-11 10:36:30 -05:00
5dbce1a523 fix: remove cacheDir from Vite configuration 2026-05-11 10:17:20 -05:00
4fef7a6cc4 se agrego la edicion y eliminacion de los registros de selectores 2026-05-11 09:27:19 -05:00
c9d8bf666a fix: update docker-compose network to external and enhance avatar URL resolution logic 2026-05-11 08:39:16 -05:00
ffda66c741 Resolviendo conflicto 2026-05-08 17:44:16 -05:00
06998f61d4 Ahora si guarda y edita de forma correcta 2026-05-08 17:40:56 -05:00
b74d7ce8f3 Merge pull request 'fix: update down_revision for workspace profile fields migration' (#382) from fix/alembic-version into development
Reviewed-on: ADUANASOFT/anexo76#382
2026-05-08 22:38:12 +00:00
96fd14582d fix: update down_revision for workspace profile fields migration 2026-05-08 17:37:27 -05: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
da088ef6e6 feature/correccion-de-actualizar 2026-05-08 15:23:45 -06:00
b0ce6c8a5a Merge pull request 'feature/api-sittar-actualizacion' (#380) from feature/api-sittar-actualizacion into development
Reviewed-on: ADUANASOFT/anexo76#380
2026-05-08 21:20:20 +00:00
f9f87a5e0c Remove SITAR external OpenAPI snapshot and README 2026-05-08 14:51:02 -06:00
8cd6e19a6a feature/api-sittar-actualizacion 2026-05-08 14:43:07 -06:00
290d1c2913 Merge branch 'development' into feature/api-sittar-actualizacion 2026-05-08 14:39:24 -06:00
bec196621c Merge pull request 'fix/rls-fix' (#379) from fix/rls-fix into development
Reviewed-on: ADUANASOFT/anexo76#379
2026-05-08 20:36:46 +00:00