Commit Graph

135 Commits

Author SHA1 Message Date
josedario87
8fd1ba672e Merge pull request #13 from josedario87/feat/per-module-table-backgrounds
Feat/per module table backgrounds
2025-05-31 01:05:23 -06:00
google-labs-jules[bot]
8ddaf975f7 refactor(ui): Improve organization and naming in SettingsView
This commit refactors `SettingsView.vue` to enhance clarity and your experience by reorganizing color customization options.

Key changes:

- **Module-Based Organization:**
    - Color settings (Accent Color, Table Background Color) are now grouped into dedicated sections for each application module (Empleados, Tareas, Planillas, Asistencias, Configuracion).
    - Each module section features a clear heading (e.g., "Empleados Module") with consistent styling, including a bottom border for visual separation.
    - The previous generic "Module Colors" grid has been removed.

- **Improved Naming and Typography:**
    - Labels for color settings within each module section have been simplified to "Accent Color" and "Table Background", as the module context is provided by the section heading.
    - All labels and section headings now use standard title case, avoiding excessive uppercase for better readability.

- **Layout and Styling:**
    - The new module sections are styled consistently with the rest of the Settings page, maintaining a cohesive look and feel.
    - A responsive grid layout is used within each module section to arrange its color settings effectively on different screen sizes.
    - Spacing and visual hierarchy have been reviewed to ensure the page remains easy to navigate.

These changes make it easier for you to find and manage color preferences for specific parts of the application.
2025-05-31 07:04:35 +00:00
josedario87
256f5c3994 Merge pull request #12 from josedario87/feat/module-card-views
Feat: Implement card view option in Asistencias, Planillas, and Tarea…
2025-05-31 01:02:27 -06:00
google-labs-jules[bot]
0027c68087 feat(ui): Add per-module configurable table background colors
This commit introduces the ability for you to customize the background
color of tables individually for each application module (Empleados,
Tareas, Planillas, Asistencias, Configuracion). This enhances user
experience by providing more granular control over the application's
appearance, similar to the existing per-module accent colors.

Key changes:

- **UI Store (`ui/src/stores/useUi.js`):**
    - Removed the previous single `tableBackgroundColor` state.
    - Added new state properties for each module's table background:
        - `tableBgColorEmpleados`
        - `tableBgColorTareas`
        - `tableBgColorPlanillas`
        - `tableBgColorAsistencias`
        - `tableBgColorConfiguracion`
    - These are included in `appearanceSettingKeys` for local storage
      persistence and initialized to `#FFFFFF` (white) by default.
    - Added corresponding actions (e.g., `setTableBgColorEmpleados`) for
      each new property.

- **Settings View (`ui/src/views/SettingsView.vue`):**
    - Removed the previous single global table background color input.
    - Added new color picker inputs for each module's table background
      color, integrated within the "Module Colors" section.
    - These inputs are bound to their respective store properties and
      actions.

- **Global Styles & Application (`ui/src/App.vue` & component styles):**
    - The previous global `--table-bg-color` CSS variable was removed.
    - `App.vue` now dynamically creates and updates CSS variables for each
      module's table background color on the root element (e.g.,
      `--table-bg-color-empleados`).
    - Table components within each module (e.g., `tablaAsistencias.vue`,
      `tablaEmpleados.vue`, etc.) have been updated to use their
      respective CSS variable for the `background-color` property,
      typically by applying it to a module-specific class on the table.

- **Reverted Previous Implementation:**
    - The initial implementation for a single, global table background
      color was reverted before implementing this per-module approach.

This feature allows for a more personalized and visually distinct
experience across different sections of the application.
2025-05-31 06:54:38 +00:00
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
josedario87
ac939341a0 Merge pull request #11 from josedario87/feature/configuracion-accent-color
feat: Add accent color customization for configuracion module
2025-05-30 23:58:56 -06:00
google-labs-jules[bot]
2957054823 feat: Add accent color customization for configuracion module
This commit introduces a new accent color setting for the 'configuracion' module.

Changes include:
- Updated `ui/src/stores/useUi.js` to include:
    - A new state property `accentColorConfiguracion`.
    - Addition of `'accentColorConfiguracion'` to `appearanceSettingKeys` for local storage persistence.
    - A new action `setAccentColorConfiguracion` to modify the new color.
- Updated `ui/src/views/SettingsView.vue` to include:
    - A new color picker in the "Module Accent Colors" section, allowing you to select and change the accent color for the 'configuracion' module.
2025-05-31 05:58:44 +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
a28f7fbff3 supuestamente esto es
Some checks failed
build-and-deploy / filter (push) Successful in 1s
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-30 18:33:17 -06:00
bc4dbf6a2f nuevo dockerfile para usar @empresa/prisma
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 5s
build-and-deploy / deploy (push) Has been skipped
2025-05-30 18:28:19 -06:00
1e3fc71974 Merge remote-tracking branch 'github/main'
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:23:36 -06:00
josedario87
e9b05d2000 Merge pull request #10 from josedario87/feature/appearance-settings
feat: Implement module-specific accent colors and enhance theme integ…
2025-05-30 18:23:09 -06:00
josedario87
50390eea88 Merge branch 'main' into feature/appearance-settings 2025-05-30 18:22:59 -06:00
205641aad2 probando compilar api al menos
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 18:12:38 -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
6fd6750d8d quitados node_modules
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 8s
build-and-deploy / deploy (push) Has been skipped
2025-05-30 17:54:40 -06:00
40654fd5be schema compartido ::ALTOPELIGRO::
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 1m50s
build-and-deploy / deploy (push) Has been skipped
2025-05-30 17:41:23 -06:00
josedario87
258785052f Merge pull request #8 from josedario87/feat/shared-prisma-schema
Refactor: Centralize Prisma schema and restrict DB access
2025-05-30 17:40:31 -06: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
josedario87
a4d5e0c227 Merge pull request #7 from josedario87/feature/appearance-settings
feat: Implement UI appearance configuration module
2025-05-30 17:17:19 -06:00
google-labs-jules[bot]
56fd503642 feat: Implement UI appearance configuration module
This commit introduces a new configuration module for UI appearance settings.
You can now customize various aspects of the application's look and feel.

Key features:
- Customizable color palette: primary, secondary, warning, and background colors.
- Font customization: font family and font size.
- Theme selection: light and dark themes.
- Animation control: toggle animations on/off.

Changes include:
- Extended `ui/src/stores/useUi.js` to manage appearance state, including actions for updates and integration with local storage for persistence.
- Created `ui/src/views/SettingsView.vue` with UI controls for all customizable settings.
- Implemented dynamic application of settings in `ui/src/App.vue` by updating CSS variables and classes on the root element.
- Enhanced `SettingsView.vue` with modern styling (TailwindCSS) and subtle animations, ensuring it's theme-aware and respects animation preferences.
- Added comprehensive unit tests for the `useUi` store and component tests for `SettingsView.vue` using Vitest and Vue Test Utils.

The settings page allows for real-time previews of changes, and all preferences are saved locally to persist across sessions.
2025-05-30 23:17:04 +00:00
4f1ec58a99 nueva migracion agregada
Some checks failed
Sync to GitHub / sync (push) Failing after 1s
build-and-deploy / filter (push) Successful in 2s
build-and-deploy / build (push) Successful in 7s
build-and-deploy / deploy (push) Successful in 15s
2025-05-30 16:27:32 -06:00
f4430b001a subiendo
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 14s
2025-05-30 16:24:42 -06:00
3c2c80d5ee agregada la relacion planilla-tareas en schema prisma
Some checks failed
build-and-deploy / filter (push) Successful in 1s
Sync to GitHub / sync (push) Failing after 1s
build-and-deploy / build (push) Successful in 8s
build-and-deploy / deploy (push) Successful in 14s
2025-05-30 13:11:13 -06:00
d7df07dbc2 agregada relacion tarea-planilla en el schema prisma
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 8s
build-and-deploy / deploy (push) Successful in 15s
2025-05-30 13:08:02 -06:00
0bcc340043 mejorando manejo de errores aun mas
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 12s
build-and-deploy / deploy (push) Successful in 14s
2025-05-30 13:03:53 -06:00
49829d9d2e seguimos depurando la api
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 8s
build-and-deploy / deploy (push) Successful in 15s
2025-05-30 12:51:47 -06:00
97b879433d implementado el manejo de errores correcto de prisma
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 12:44:51 -06:00
4066217862 estandarizado el manejo de errores
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 10s
build-and-deploy / deploy (push) Successful in 15s
2025-05-30 11:57:19 -06:00
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