Commit Graph

606 Commits

Author SHA1 Message Date
19b0bf0b5e Arreglo de filtros, click con compoartmiento de exit, reactividad al ingresar un registro, ademmsa del docble click 2026-05-20 17:30:16 -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
eec6ed30d8 Refactor API calls in dashboard components to include company ID for data fetching. Updated methods in reference data files to accept companyId as a parameter, ensuring accurate data retrieval based on the selected company. Enhanced user experience by preventing errors related to missing company context. 2026-05-15 18:05:28 -05:00
02b3ae8334 Add permissions hydration handling to improve user experience and prevent access flash
- Introduced `permissionsHydrated` writable store to track if RBAC permissions are loaded for the active company.
- Added `markPermissionsHydrated` function to set the hydration state.
- Updated dashboard components to wait for permissions to be hydrated before rendering restricted content, enhancing user experience by avoiding "Access Denied" flashes.
- Refactored permission checks in `pedimento-permissions.ts` to consistently use `userHasPermission` for clarity and maintainability.
2026-05-15 17:32:08 -05:00
4c7910ab7b Refactor API calls in dashboard components to use active company ID. Updated classification, countries, and invoice types pages to ensure proper data fetching based on the selected company, enhancing user experience and data accuracy. 2026-05-15 17:13:03 -05:00
c71b52a4f8 Merge pull request 'Botones de edicion y eliminacion en el footer de la informacion de los secotres y doble click para ver la informacion' (#403) from fix/sectores-corregido2 into development
Reviewed-on: ADUANASOFT/anexo76#403
2026-05-15 21:14:47 +00:00
abc5764b70 Merge pull request 'fix/informacion-empresa' (#402) from fix/informacion-empresa into development
Reviewed-on: ADUANASOFT/anexo76#402
2026-05-15 21:10:46 +00:00
e919cc60a3 Botones de edicion y eliminacion en el footer de la informacion de los secotres y doble click para ver la informacion 2026-05-15 12:28:23 -05:00
64d81c83f9 feat(company): add tenant_id support for hub_admin in company creation and updates 2026-05-15 10:28:47 -05:00
7118e26933 Botones de edicion y eliminacion en el footer de la informacion de las empresas y doble click para ver la informacion 2026-05-15 08:26:17 -05:00
4f4ca6453d Botones ya visibles 2026-05-14 17:56:37 -05:00
75ea8a347a fix(dashboard): evitar flash de "Acceso Restringido" al refrescar
Sembrar authStore desde data.user en el script de +layout.svelte
(SSR + hidratación) en lugar de en onMount, para que $currentUser
ya esté poblado en el primer render de las páginas hijas. Antes,
canView quedaba en false durante el SSR/hidratación y las páginas
renderizaban ErrorState 403 hasta que onMount llenaba el store.

Aplica al refrescar la página (F5) y al botón "Refrescar" de los
módulos que usan window.location.reload (countries, material_types,
payment_methods, document_types_digitization, clients_and_providers).

No se modificaron permisos, helpers de permisos, ni el patrón
canView/isError de las páginas afectadas.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-14 13:07:57 -05:00
34bbfff9d2 Merge pull request 'fix/catalogos-fijos' (#399) from fix/catalogos-fijos into development
Reviewed-on: ADUANASOFT/anexo76#399
2026-05-14 17:49:26 +00:00
1c7337915d Merge pull request 'eliminacion y cracion de registros reactivos' (#398) from fix/conversion-unidades into development
Reviewed-on: ADUANASOFT/anexo76#398
2026-05-14 17:48:43 +00:00
d739a89d91 Merge pull request 'fix/clientes-provedores-traduccion' (#394) from fix/clientes-provedores-traduccion into development
Reviewed-on: ADUANASOFT/anexo76#394
2026-05-14 17:45:48 +00:00
924030e268 Merge pull request 'fix/logout-anexo' (#393) from fix/logout-anexo into development
Reviewed-on: ADUANASOFT/anexo76#393
2026-05-14 17:19:53 +00:00
7a7e8a67a3 fix(auth): ensure id_token is cleared and set during SSO exchange for Keycloak logout 2026-05-14 12:15:37 -05:00
0ed350ca11 fix(auth): enhance logout and login flow with Keycloak integration and cookie management 2026-05-14 12:07:10 -05:00
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
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
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
2436a4d563 fix: update logout flow to use registered post-logout route and add redirect handler 2026-05-12 11:01:34 -05: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
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
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
4fef7a6cc4 se agrego la edicion y eliminacion de los registros de selectores 2026-05-11 09:27:19 -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
9bcbc5bc02 Merge pull request 'Se movio la parte de descargas del sidbar al botoncito en reportes' (#378) from fix/descargas-reportes into development
Reviewed-on: ADUANASOFT/anexo76#378
2026-05-08 16:25:20 +00:00
0dd947becf Merge pull request 'Docble click implemnetado, ademas de habilitar permisos para mostrar editar y elimnar correctamente' (#377) from fix/botones-empresas into development
Reviewed-on: ADUANASOFT/anexo76#377
2026-05-08 16:24:22 +00:00
4cadce77fe Merge pull request 'fix/pediemntos-fecha-inicio' (#375) from fix/pediemntos-fecha-inicio into development
Reviewed-on: ADUANASOFT/anexo76#375
2026-05-08 16:23:30 +00:00
1a7e4e7e89 Merge pull request 'fix/clases-selector' (#374) from fix/clases-selector into development
Reviewed-on: ADUANASOFT/anexo76#374
2026-05-08 16:22:51 +00:00
39209501ab Merge pull request 'fix/facturas-ame-mex-2' (#373) from fix/facturas-ame-mex-2 into development
Reviewed-on: ADUANASOFT/anexo76#373
2026-05-08 16:22:24 +00:00
2c550eed04 Se movio la parte de descargas del sidbar al botoncito en reportes 2026-05-08 11:10:29 -05:00
61193c4a21 Docble click implemnetado, ademas de habilitar permisos para mostrar editar y elimnar correctamente 2026-05-08 10:33:43 -05:00
4eeec0efd2 Merge branch 'development' of https://git.aduanasoft.com/ADUANASOFT/anexo76 into fix/pediemntos-fecha-inicio 2026-05-08 09:48:40 -05:00
a9cd2b73ce Validacion de errores en pediemntos y tipos de transporte 2026-05-08 09:48: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
246f2d33f7 Se le agrego multiselect a las partes 2026-05-07 16:49:41 -05:00
a3917544f3 Merge branch 'development' of https://git.aduanasoft.com/ADUANASOFT/anexo76 into fix/facturas-ame-mex-2 2026-05-07 13:57:18 -05:00
52fec4038e feat: implement lazy-link for pending invites and add hub_invite_token to InviteToken model
Co-authored-by: Copilot <copilot@github.com>
2026-05-07 12:41:12 -05:00
04a3c5a8af Merge branch 'development' of https://git.aduanasoft.com/ADUANASOFT/anexo76 into feature/manuales 2026-05-07 11:56:36 -05:00
fdc145b2c6 Merge branch 'development' of https://git.aduanasoft.com/ADUANASOFT/anexo76 into fix/facturas-ame-mex-2 2026-05-07 10:45:27 -05:00
2456c0086b Solucion a tipos de datos, blindaje y resoluciones con el token expirado 2026-05-07 10:45:00 -05:00