Commit Graph

28 Commits

Author SHA1 Message Date
b9942fe2f3 feat(reportes): add functionality for downloading client and user reports
- Introduced new functions to download Excel reports for clients and users.
- Added UI elements for administrative users to trigger report downloads.
- Implemented error handling for report generation failures.
- Enhanced the existing portal user listing with node data for better reporting.

This update improves the reporting capabilities within the application, allowing for easier access to client and user data.
2026-06-18 12:29:44 -05:00
b8e47f7654 perf(dashboard): paraleliza la carga de métricas SQL Server por nodo (#11)
Some checks failed
Aduanasoft/PANEL_BASES_ANEXO24/pipeline/head There was a failure building this commit
La carga inicial del dashboard (/+page.server.ts) tardaba ~30s porque
loadSqlDashboardFromNodes recorría los nodos en serie y hacía 3 round-trips
secuenciales por nodo (métricas, alerta, historial) → N×3 viajes encadenados
a SQL Server remoto.

Cambios:
- Las 3 consultas por nodo ahora corren con Promise.all.
- Los nodos se procesan con concurrencia acotada (8) vía mapWithConcurrency;
  la agregación se mantiene secuencial para conservar orden y evitar carreras.
- getMssqlPoolMaster cachea la *promesa* del pool y reserva el slot de forma
  síncrona antes de cualquier await, evitando pools duplicados al paralelizar.
- En +page.server.ts: métricas SQL Server y catálogo PostgreSQL se cargan en
  paralelo (Promise.allSettled); las 6 consultas de catálogo en Promise.all.
- Se elimina la consulta listDatabaseNodes() duplicada (se reusa la ya cargada).
- Hidratación de alertas y filtro de permisos paralelizados.
- Se quita un console.log de depuración por fila (estándar: sin logs sueltos).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

Reviewed-on: #11
Co-authored-by: AlexeerCT <acazares@aduanasoft.com.mx>
Co-committed-by: AlexeerCT <acazares@aduanasoft.com.mx>
2026-06-09 16:25:51 +00:00
632cba163a fix: muestra fallo real al ligar permisos y reconfirma persistencia (#10)
togglePermission confiaba solo en res.ok de un fetch sin use:enhance, así que
ocultaba el fail(500) del action y pintaba "Con Acceso" en falso aunque el
INSERT tronara (42P10 por falta de UNIQUE en a24c).

- togglePermission: manda x-sveltekit-action, deserializa el ActionResult,
  valida type === 'success', relee del servidor y muestra error si falla
- GET de permisos: cache-control no-store para evitar lecturas viejas

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

Reviewed-on: #10
Co-authored-by: AlexeerCT <acazares@aduanasoft.com.mx>
Co-committed-by: AlexeerCT <acazares@aduanasoft.com.mx>
2026-06-09 15:45:07 +00:00
b8be307892 feature/integracion-cloudrestore-targets (#9)
integraciones para cloud recovery

Reviewed-on: #9
Co-authored-by: hreyes <hreyes@aduanasoft.com.mx>
Co-committed-by: hreyes <hreyes@aduanasoft.com.mx>
2026-06-09 14:58:48 +00:00
3e5557c034 feature/jenkins-integration (#8)
integracion de jenkins

Reviewed-on: #8
Co-authored-by: hreyes <hreyes@aduanasoft.com.mx>
Co-committed-by: hreyes <hreyes@aduanasoft.com.mx>
2026-06-09 14:57:11 +00:00
4642086e8c Merge pull request 'feature/boton-avisos' (#7) from fix/T2026-04-023-respaldo-cliente-no-identificado into development
Reviewed-on: #7
2026-05-29 14:47:54 +00:00
9d32bc13ae feature/boton-avisos 2026-05-28 12:29:11 -06:00
ac38fd442c Update certificate and private key files; add new Bash commands to settings.local.json
- Updated the certificate and private key files with new content.
- Added additional Bash commands for OpenSSL operations to settings.local.json for enhanced functionality.
2026-05-27 16:52:37 -05:00
4785491ac7 Merge pull request 'fix/T2026-04-023-respaldo-cliente-no-identificado' (#6) from fix/T2026-04-023-respaldo-cliente-no-identificado into development
Reviewed-on: #6
2026-05-27 21:51:49 +00:00
baa826e36b fix/T2026-04-023-respaldo-cliente-no-identificado
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-27 15:29:45 -06:00
35b8c7a32e Merge pull request 'fix/download' (#5) from fix/download into development
Reviewed-on: #5
2026-05-07 14:10:09 +00:00
1317206b73 Refactor user and database handling in server and Svelte components
- Introduced a default database server address for improved user experience when creating database entries.
- Added a function to handle unique user violation messages for better error reporting.
- Updated form validation to require fewer fields, streamlining user input.
- Enhanced error handling in fetch requests to provide clearer feedback on server responses.
- Refactored database-related form handling to ensure consistent use of the default server address.
2026-04-21 14:06:04 -05:00
50bbf7bdcc Implement streaming file download for backup route
- Enhanced the backup server route to support streaming of large backup files using Node.js streams.
- Improved error handling for file access and added appropriate HTTP responses for missing parameters and inaccessible files.
- Updated response headers to include content length and type for better client handling.
2026-04-15 17:54:28 -05:00
c3e50a2727 Enhance file handling in server routes
- Added checks to ensure only regular files are processed in both the main and backup server routes.
- Improved error handling for invalid file parameters and inaccessible backup files, returning appropriate HTTP responses.
2026-04-15 17:16:40 -05:00
7888edc64e Merge pull request 'feature/migation-postgres' (#4) from feature/migation-postgres into development
Reviewed-on: #4
2026-04-15 00:00:30 +00:00
747e82910e Enhance scroll functionality and pagination in main Svelte component
- Introduced fixed viewport height for tables to improve scrolling behavior.
- Added new state variables for managing visible rows in various tables.
- Implemented functions to dynamically fill scrollable areas until overflow.
- Updated effects to adjust visible rows based on active view, enhancing user experience.
- Refactored pagination logic to utilize visible row count instead of page numbers.
2026-04-14 18:49:27 -05:00
0bf9c9e68d Refactor database configuration and user management
- Updated .env.example to consolidate SQL Server credentials under PANEL_MSSQL_* variables.
- Removed deprecated docker-compose.postgres.yml file.
- Adjusted docker-compose.yml to utilize new SQL Server credential structure.
- Enhanced README.md with Docker build and push instructions.
- Refined database schema in schema.sql to align with new user and permission structures.
- Updated init-database.js to reflect changes in user and session table names.
- Modified user management functions in users.ts to accommodate new database schema.
- Streamlined API routes to utilize PostgreSQL for user and database management.
- Improved error handling and logging in various server routes.
2026-04-14 14:16:11 -05:00
97b67afb25 Ultimos cambios en el proyecto local 2026-04-07 07:36:18 -06:00
298e5ebe36 Merge pull request 'feat: add functionality to suggest next NodoSubNodo based on existing entries' (#3) from feature/sig-consecutivo into development
Reviewed-on: #3
2026-03-04 15:43:07 +00:00
d181e71c01 feat: add functionality to suggest next NodoSubNodo based on existing entries 2026-03-04 09:42:24 -06:00
4fe6058ccf Merge pull request 'feat: update user form to use numeric ClienteAutoridad and improve node selection' (#2) from refactor/users into development
Reviewed-on: #2
2026-03-04 15:33:12 +00:00
0da6e5d6f9 feat: update user form to use numeric ClienteAutoridad and improve node selection 2026-03-04 09:32:13 -06:00
8d74983f5f Merge pull request 'feat: add user management functionality with CRUD operations in database management section' (#1) from feature/generate-usuarios into development
Reviewed-on: #1
2026-03-04 14:54:05 +00:00
78cefa83ff feat: add user management functionality with CRUD operations in database management section 2026-03-04 08:50:14 -06:00
03e3793dd3 feat: Configuración completa de Docker con PostgreSQL, HTTPS y servidor de producción
- Agregada configuración de servidor HTTPS con Express (server.js)
- Integración de PostgreSQL en docker-compose.yml con servicio dedicado
- Actualizado Dockerfile para optimizar build en Alpine Linux
- Configurado vite.config.ts con soporte HTTPS para desarrollo
- Agregados certificados SSL para HTTPS
- Actualizado svelte.config.js con configuración CSRF
- Ajustadas métricas de restauración en +page.server.ts para usar last_restore_date
- Agregado script npm start en package.json
- Instalado express como dependencia de producción
2026-03-04 08:19:38 -06:00
5fa97105c9 feat: improved sidebar UI with larger icons and user info in footer
- Increased all sidebar navigation icons from text-sm to text-xl for better visibility
- Moved user information and logout button from header to sidebar footer
- Added user avatar with name and email in expanded sidebar state
- Collapsed sidebar shows avatar icon and logout icon button stacked vertically
- Simplified header by removing user badge and logout button
- Added version info (v1.0.0) in sidebar footer
- Improved responsive design for both collapsed and expanded states
2026-02-19 12:08:56 -06:00
7e7773578d Initial project commit: Docker + SvelteKit source 2026-02-09 10:32:51 -07:00
fafb3d70fe first commit 2026-02-09 10:32:13 -07:00