Commit Graph

15 Commits

Author SHA1 Message Date
google-labs-jules[bot]
3dabcad617 Feat: Implement card view option in Asistencias, Planillas, and Tareas modules
This commit introduces a selectable card view in the index pages for the Asistencias, Planillas, and Tareas modules, similar to the existing functionality in the Empleados module.

Key changes:
- Added view toggle buttons (Table/Cards) to `AsistenciasIndex.vue`, `PlanillasIndex.vue`, and `TareasIndex.vue`.
- Implemented conditional rendering to display either the existing data table or a new grid of card components.
- Ensured card components (`cardAsistencia.vue`, `cardPlanilla.vue`, `cardTarea.vue`) are correctly populated with data from their respective Pinia stores.
- Styled the active view toggle button using module-specific accent colors.
- Maintained loading and error state displays for both views.
- Updated "no data" messages to be specific to table or card view.

These enhancements provide you with an alternative way to visualize module data, improving the overall user experience.
2025-05-31 06:32:19 +00:00
32f2686f14 se supone que volvio
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 54s
build-and-deploy / deploy (push) Successful in 15s
2025-05-30 23:51:22 -06:00
254beb897a Revert commits indeseados
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 6s
build-and-deploy / deploy (push) Has been skipped
2025-05-30 23:48:22 -06:00
30a2d71536 probando dockerfile
Some checks failed
build-and-deploy / filter (push) Successful in 1s
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-30 18:38:28 -06:00
josedario87
50390eea88 Merge branch 'main' into feature/appearance-settings 2025-05-30 18:22:59 -06:00
google-labs-jules[bot]
b5c8d88113 feat: Implement module-specific accent colors and enhance theme integration
This commit introduces module-specific accent colors and further integrates
the primary and secondary theme colors throughout the application's UI components.

Key features:
- Four new customizable accent colors, one for each main module:
    - Empleados
    - Tareas
    - Planillas
    - Asistencias
- These accent colors are configurable in the Settings view and persist in local storage.
- Broader application of global primary and secondary colors to common UI elements like navigation bars.
- Module-specific components now use their designated accent color for key visual elements (e.g., primary buttons, titles, icons, borders), providing better visual differentiation between modules.

Changes include:
- Extended `ui/src/stores/useUi.js` to manage state for the four new module accent colors, including actions and local storage persistence.
- Added a "Module Accent Colors" section with color pickers to `ui/src/views/SettingsView.vue`.
- Updated `ui/src/App.vue` to expose these module accent colors as CSS variables (e.g., `--accent-color-empleados`).
- Systematically updated styles in general UI components (`ui/src/components/ui/`) and all module-specific components (`ui/src/components/{module}/` and `ui/src/views/{module}/`) to utilize the new global and module-specific theme colors.
- Updated unit tests for `useUi.js` and component tests for `SettingsView.vue` to cover the new accent color functionality. A bug related to color input event handling in `SettingsView.vue` was identified and fixed during this process.

This enhancement provides a more visually distinct and customizable experience across different sections of the application.
2025-05-31 00:09:55 +00:00
google-labs-jules[bot]
242dc66983 Refactor: Centralize Prisma schema and restrict DB access
This commit refactors the project to use a shared Prisma schema and restricts direct database access to the API service.

Key changes:

- Created a new shared package `core/prisma` containing the Prisma schema, generated client, and types.
- Configured the monorepo to use NPM workspaces, including `core/prisma` and all services.
- Updated all services (`api`, `ui`, `mcp`, `agent`, and the background processing service) to depend on `@empresa/prisma-schema`.
- The API service now imports `PrismaClient` from `@empresa/prisma-schema/client`.
- Other services import only types from `@empresa/prisma-schema`.
- Removed redundant Prisma configurations from `api` and the background processing service.
- Updated the background processing service's `sync-empleados.js` to fetch data via an API call instead of direct database access.
- Updated TypeScript configurations (`tsconfig.base.json` and service-specific ones) to support the new structure and path aliases.
- Updated `README.md` to reflect the new architecture and added convenience scripts for Prisma operations.

This change promotes a single source of truth for data models, reduces code duplication, and improves the overall architecture by centralizing database operations within the API service.
2025-05-30 23:40:00 +00: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
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
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
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
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
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
e1dc751397 Modulo planilla v1
Some checks failed
build-and-push / build (push) Successful in 33s
build-and-push / deploy (push) Failing after 1s
2025-05-02 17:59:47 -06:00