Commit Graph

104 Commits

Author SHA1 Message Date
1eccd8d424 los mensajes de errores se envian como message
Some checks failed
build-and-deploy / filter (push) Successful in 2s
Sync to GitHub / sync (push) Failing after 1s
build-and-deploy / build (push) Successful in 12s
build-and-deploy / deploy (push) Successful in 15s
2025-05-30 11:45:23 -06:00
6c7e008164 mejorando el handling de los errores
Some checks failed
build-and-deploy / filter (push) Successful in 2s
Sync to GitHub / sync (push) Failing after 2s
build-and-deploy / build (push) Successful in 9s
build-and-deploy / deploy (push) Successful in 15s
2025-05-30 11:21:35 -06:00
faa18be61d captura correcta de errores para crear asistencia
Some checks failed
build-and-deploy / filter (push) Successful in 2s
Sync to GitHub / sync (push) Failing after 1s
build-and-deploy / build (push) Successful in 12s
build-and-deploy / deploy (push) Successful in 15s
2025-05-30 11:14:17 -06:00
918a53529c mejorado manejo de estados de los stores
Some checks failed
build-and-deploy / filter (push) Successful in 2s
Sync to GitHub / sync (push) Failing after 1s
build-and-deploy / build (push) Successful in 9s
build-and-deploy / deploy (push) Successful in 14s
2025-05-30 11:04:12 -06:00
6e45cf2226 funcionalidad basica empleados api y ui 50%
Some checks failed
build-and-deploy / filter (push) Successful in 2s
Sync to GitHub / sync (push) Failing after 1s
build-and-deploy / build (push) Successful in 9s
build-and-deploy / deploy (push) Successful in 15s
2025-05-30 10:56:17 -06:00
2a844d275d actualizada API empleados, conectando UI con API
Some checks failed
build-and-deploy / filter (push) Successful in 3s
Sync to GitHub / sync (push) Failing after 1s
build-and-deploy / build (push) Successful in 13s
build-and-deploy / deploy (push) Successful in 14s
2025-05-30 10:51:21 -06:00
30f85bf602 agregado npm cors
Some checks failed
build-and-deploy / filter (push) Successful in 2s
Sync to GitHub / sync (push) Failing after 1s
build-and-deploy / build (push) Successful in 26s
build-and-deploy / deploy (push) Successful in 15s
2025-05-30 10:27:36 -06:00
3d1bf3286a modificado uso de CORS en la api, ahora acepta localhost y planilla.interno.com
Some checks failed
build-and-deploy / filter (push) Successful in 2s
Sync to GitHub / sync (push) Failing after 2s
build-and-deploy / build (push) Successful in 13s
build-and-deploy / deploy (push) Successful in 14s
2025-05-30 10:17:41 -06:00
4690197ca4 arreglado problema de CORS
Some checks failed
build-and-deploy / filter (push) Successful in 2s
Sync to GitHub / sync (push) Failing after 2s
build-and-deploy / build (push) Successful in 10s
build-and-deploy / deploy (push) Successful in 15s
2025-05-30 10:02:11 -06:00
0119a77cb7 arreglados url de las api en la UI
Some checks failed
build-and-deploy / filter (push) Successful in 2s
Sync to GitHub / sync (push) Failing after 1s
build-and-deploy / build (push) Successful in 9s
build-and-deploy / deploy (push) Successful in 15s
2025-05-30 02:48:28 -06:00
1198bf1ba8 fix base url
Some checks failed
build-and-deploy / filter (push) Successful in 2s
Sync to GitHub / sync (push) Failing after 1s
build-and-deploy / build (push) Successful in 9s
build-and-deploy / deploy (push) Successful in 14s
2025-05-30 02:40:05 -06:00
944f4a1567 url correcta para la conexion a la api de la UI
Some checks failed
build-and-deploy / filter (push) Successful in 2s
Sync to GitHub / sync (push) Failing after 2s
build-and-deploy / build (push) Successful in 10s
build-and-deploy / deploy (push) Successful in 14s
2025-05-30 02:38:19 -06:00
f5053ab5c1 fixed invalid endtag
Some checks failed
build-and-deploy / filter (push) Successful in 2s
Sync to GitHub / sync (push) Failing after 1s
build-and-deploy / build (push) Successful in 9s
build-and-deploy / deploy (push) Successful in 15s
2025-05-30 02:15:25 -06:00
b6d7759b30 sincronizar cambios
Some checks failed
build-and-deploy / filter (push) Successful in 2s
Sync to GitHub / sync (push) Failing after 2s
build-and-deploy / build (push) Failing after 27s
build-and-deploy / deploy (push) Has been skipped
2025-05-30 02:13:01 -06:00
josedario87
98f6105373 Merge pull request #6 from josedario87/feature/docker-container-linking
I've configured the container names and linked the UI to the API.
2025-05-30 02:09:29 -06:00
google-labs-jules[bot]
2441fb9066 I've configured the container names and linked the UI to the API.
Here's what I did:
- Added `container_name` for `api` and `ui` services in `docker-compose.yml`.
- Created `ui/src/apiClient.js` to configure the API base URL using the API container name (`http://planilla-api:4000/api`).
- Added `axios` as a dependency to the UI project.
- Ensured UI store files correctly import the new `apiClient.js`.

This will allow your UI to reliably connect to the API service using Docker's internal DNS resolution via container names.
2025-05-30 08:08:59 +00:00
josedario87
2538aafc5c Merge pull request #5 from josedario87/feat/daily-employee-sync
feat: Add daily employee data synchronization
2025-05-30 00:48:45 -06:00
google-labs-jules[bot]
3fdba1fe89 feat: Add daily employee data synchronization
I've added a new capability to synchronize employee data from the local database to an external database on a daily basis.

Key changes:

-   **`worker/sync-empleados.js`**: This new script:
    -   Connects to the local Prisma database to fetch `Cliente` records where `empleado` is true.
    -   Provides clear placeholders and guidance for connecting to an external database (you must configure details like host, credentials, DB type, and table name, and implement specific DB client logic).
    -   Outlines a conceptual "upsert" logic (update existing, insert new) for the external database.
    -   Includes extensive comments on configuration, operation, and testing considerations.

-   **`worker/cron-worker.js`**:
    -   I modified this to import and schedule the `syncEmpleadosToExternalDB` function from the new script.
    -   The synchronization is scheduled to run daily at midnight.
    -   The existing example 5-second cron job has been commented as an example.

-   **Documentation**:
    -   I added in-code comments to both modified/new files to explain functionality.
    -   `sync-empleados.js` includes sections on external DB configuration and detailed testing considerations (manual and automated).

You will need to provide the actual connection details and logic for your specific external database system.
2025-05-30 06:48:19 +00:00
josedario87
80b8886762 Merge pull request #4 from josedario87/feat/api-crud-endpoints
feat: Implement CRUD API endpoints for core modules
2025-05-30 00:47:07 -06:00
google-labs-jules[bot]
a394c25245 feat: Implement CRUD API endpoints for core modules
Adds Express.js routes and Prisma-based handlers for common database operations (Create, Read, Update, Delete) for the following modules:

- Empleados (subset of Cliente model)
- Asistencias
- Tareas (TareaRealizada model)
- Planillas

Each module's routes are separated into their own files within `api/routes/`. The new routes are registered in `api/server.js`.

Basic error handling, including try-catch blocks and checks for common Prisma errors (e.g., P2025 for record not found, P2003 for foreign key violations), has been implemented in each endpoint.
2025-05-30 06:45:54 +00:00
josedario87
b2b7a38f0e Merge pull request #3 from josedario87/jules_wip_11748544748520558008
Jules was unable to complete the task in time. Please review the work…
2025-05-30 00:43:41 -06:00
google-labs-jules[bot]
fe014b677b Jules was unable to complete the task in time. Please review the work done so far and provide feedback for Jules to continue. 2025-05-30 06:41:49 +00:00
2c43538db3 otra vez
Some checks failed
build-and-deploy / filter (push) Successful in 2s
Sync to GitHub / sync (push) Failing after 4s
build-and-deploy / build (push) Successful in 5s
build-and-deploy / deploy (push) Successful in 15s
2025-05-29 18:51:57 -06:00
4b3ca5ef88 forzaondo la subida
Some checks failed
build-and-deploy / filter (push) Successful in 2s
Sync to GitHub / sync (push) Failing after 4s
build-and-deploy / build (push) Successful in 5s
build-and-deploy / deploy (push) Successful in 14s
2025-05-29 18:51:23 -06:00
096a40959d subir agresivo a github
Some checks failed
build-and-deploy / filter (push) Successful in 2s
Sync to GitHub / sync (push) Failing after 4s
build-and-deploy / build (push) Successful in 6s
build-and-deploy / deploy (push) Successful in 15s
2025-05-29 18:50:04 -06:00
235f5496d5 arreglado docker-compose
Some checks failed
build-and-deploy / filter (push) Successful in 2s
Sync to GitHub / sync (push) Failing after 1s
build-and-deploy / build (push) Successful in 5s
build-and-deploy / deploy (push) Successful in 14s
2025-05-29 18:46:29 -06:00
f579a2f266 activando contenedores en la red
Some checks failed
build-and-deploy / filter (push) Successful in 2s
Sync to GitHub / sync (push) Failing after 2s
build-and-deploy / build (push) Successful in 5s
build-and-deploy / deploy (push) Failing after 2s
2025-05-29 18:42:49 -06:00
925783c1c8 modificado y mejorado el workflow
Some checks failed
build-and-deploy / filter (push) Successful in 2s
Sync to GitHub / sync (push) Failing after 1s
build-and-deploy / build (push) Successful in 5s
build-and-deploy / deploy (push) Successful in 14s
2025-05-29 18:40:05 -06:00
f8926b2b2f modo hash para funcion spa
Some checks failed
build-and-deploy / filter (push) Successful in 2s
Sync to GitHub / sync (push) Failing after 1s
build-and-deploy / build (push) Successful in 9s
build-and-deploy / deploy (push) Successful in 4s
2025-05-29 18:36:17 -06:00
af75b4696e trucazo 2
Some checks failed
build-and-deploy / filter (push) Successful in 2s
Sync to GitHub / sync (push) Failing after 2s
build-and-deploy / build (push) Successful in 9s
build-and-deploy / deploy (push) Successful in 41s
2025-05-29 18:27:05 -06:00
be3fbf4080 trucazo 1
Some checks failed
build-and-deploy / filter (push) Successful in 2s
Sync to GitHub / sync (push) Failing after 2s
build-and-deploy / deploy (push) Has been cancelled
build-and-deploy / build (push) Has been cancelled
2025-05-29 18:26:52 -06:00
ec7e5a274c cambiado nombre del archivo
Some checks failed
build-and-deploy / filter (push) Successful in 2s
Sync to GitHub / sync (push) Failing after 2s
build-and-deploy / build (push) Failing after 8s
build-and-deploy / deploy (push) Has been skipped
2025-05-29 18:04:01 -06:00
708fa3341a typo
Some checks failed
build-and-deploy / filter (push) Successful in 2s
Sync to GitHub / sync (push) Failing after 1s
build-and-deploy / build (push) Failing after 7s
build-and-deploy / deploy (push) Has been skipped
2025-05-29 18:02:03 -06:00
b80d098bea inicializado documentos
Some checks failed
build-and-deploy / filter (push) Successful in 2s
Sync to GitHub / sync (push) Failing after 1s
build-and-deploy / build (push) Failing after 7s
build-and-deploy / deploy (push) Has been skipped
2025-05-29 18:00:38 -06:00
83354c2f00 faltaba un template
Some checks failed
build-and-deploy / filter (push) Successful in 2s
Sync to GitHub / sync (push) Failing after 2s
build-and-deploy / build (push) Failing after 8s
build-and-deploy / deploy (push) Has been skipped
2025-05-29 17:51:09 -06:00
4a5fe9a8d4 vamos a subir los cambios a gitea
Some checks failed
build-and-deploy / filter (push) Successful in 2s
Sync to GitHub / sync (push) Failing after 1s
build-and-deploy / build (push) Failing after 5m30s
build-and-deploy / deploy (push) Has been skipped
2025-05-29 17:27:25 -06:00
9a851064d3 Merge remote-tracking branch 'github/main' 2025-05-29 17:25:48 -06:00
josedario87
968516261c Merge pull request #2 from josedario87/make-sync-commands
feat: Add Makefile commands for Gitea/GitHub synchronization
2025-05-29 17:17:01 -06:00
google-labs-jules[bot]
2c0ddf2809 feat: Add Makefile commands for Gitea/GitHub synchronization
This commit introduces two new Makefile targets:

- `sync-to-github`: Synchronizes the local repository to a GitHub remote.
  It will add the 'github' remote if it doesn't exist and then push all
  branches and tags. The GitHub repository URL is configurable via the
  `GITHUB_REPO_URL` variable (e.g., `https://github.com/josedario87/your-repo-name.git`).

- `sync-to-gitea`: Synchronizes the local repository to a Gitea remote.
  It will add the 'gitea' remote if it doesn't exist and then push all
  branches and tags. The Gitea repository URL is configurable via the
  `GITEA_REPO_URL` variable, which uses placeholders for server details
  (e.g., `ssh://<GITEA_USER>@<GITEA_HOST>:<GITEA_PORT>/nucleo000/your-repo-name.git`).

Both new targets have been added to `.PHONY` to ensure correct behavior.
The repository name is dynamically determined from the local Git configuration.
2025-05-29 23:16:39 +00:00
josedario87
9657e19095 Merge pull request #1 from josedario87/feat/empleado-ui-chat-integration
feat: Implement empleado UI and chat integration
2025-05-29 14:34:52 -06:00
google-labs-jules[bot]
2755a2bed5 feat: Implement empleado UI and chat integration
This commit introduces the following features:

1.  **Empleado UI Components:**
    *   `EmpleadoForm.vue`: A form for creating and editing employee data.
    *   `cardEmpleado.vue`: A component to display a summary of employee information in a card format.
    *   `tablaEmpleados.vue`: A component to display a list of employees in a table format.
    *   `EmpleadosIndex.vue`: A view that displays both the card and table components, allowing you to switch between views and create new employees.

2.  **Chat Interface Integration:**
    *   Modified `agent/handlers.js` to parse specific chat commands:
        *   "Quiero crear un nuevo @empleado": Responds with the `EmpleadoForm`.
        *   "Ver @empleado<CEDULA>": Responds with the `cardEmpleado` for the specified employee.
        *   "Mostrame los primeros X @empleados": Responds with `tablaEmpleados` displaying the requested number of employees.
    *   I send formatted messages (e.g., `CHAT_UI_COMPONENT::EmpleadoForm`) that the chat UI can interpret to render the Vue components.

3.  **Tests:**
    *   Added unit tests for the new Vue components (`EmpleadoForm.vue`, `cardEmpleado.vue`, `tablaEmpleados.vue`) using Vitest.
    *   Added integration tests for the chat command handling in `agent/handlers.js` using Jest.
    *   (Note: Test execution was inconclusive, but all necessary files and configurations are included).

These changes fulfill the issue requirements by creating the necessary UI for the empleado module and enabling the summoning of these UI elements through the chat interface.
2025-05-27 00:49:49 +00:00
e0276ec4c4 actualizado el readme
Some checks failed
build-and-deploy / filter (push) Successful in 2s
Sync to GitHub / sync (push) Failing after 2s
build-and-deploy / build (push) Successful in 6s
build-and-deploy / deploy (push) Successful in 3s
2025-05-26 11:55:16 -06:00
ef5942c842 si no funciona me voy para sps
Some checks failed
build-and-deploy / filter (push) Successful in 1s
Sync to GitHub / sync (push) Failing after 2s
build-and-deploy / build (push) Successful in 6s
build-and-deploy / deploy (push) Successful in 3s
2025-05-26 11:51:28 -06:00
457ab5936e corregido runner equivocado para el workflow
Some checks failed
build-and-deploy / filter (push) Successful in 2s
Sync to GitHub / sync (push) Failing after 0s
build-and-deploy / build (push) Successful in 6s
build-and-deploy / deploy (push) Successful in 2s
2025-05-26 11:48:54 -06:00
a27dcb0615 agregado workflow de comunicacion con github
Some checks failed
build-and-deploy / filter (push) Successful in 2s
build-and-deploy / build (push) Successful in 5s
build-and-deploy / deploy (push) Successful in 35s
Sync to GitHub / sync (push) Has been cancelled
2025-05-26 11:46:48 -06:00
421ff236ae avances poderosos en ui
Some checks failed
build-and-deploy / filter (push) Successful in 4s
build-and-deploy / build (push) Failing after 19s
build-and-deploy / deploy (push) Has been skipped
2025-05-25 08:21:57 -06:00
55645d0cdd trucasos para hacer tests
All checks were successful
build-and-deploy / filter (push) Successful in 2s
build-and-deploy / build (push) Successful in 8s
build-and-deploy / deploy (push) Successful in 13s
2025-05-14 20:11:44 -06:00
ec40acf5b5 actualizando bd
All checks were successful
build-and-deploy / filter (push) Successful in 2s
build-and-deploy / build (push) Successful in 8s
build-and-deploy / deploy (push) Successful in 13s
2025-05-14 20:09:01 -06:00
1b05d739fc arreglado credenciales
All checks were successful
build-and-deploy / filter (push) Successful in 2s
build-and-deploy / build (push) Successful in 6s
build-and-deploy / deploy (push) Successful in 14s
2025-05-14 19:30:05 -06:00
7be5c9742a no hay runner
Some checks failed
build-and-deploy / filter (push) Successful in 5s
build-and-deploy / build (push) Successful in 6s
build-and-deploy / deploy (push) Has been cancelled
2025-05-14 19:28:04 -06:00