Commit Graph

120 Commits

Author SHA1 Message Date
984fa214c2 Revert "Refine: Make persistent navbar viewport-aware"
This reverts commit 35c130f197.
2025-06-10 00:30:00 -06:00
09a2138c6c Revert "Refine: Make persistent navbar viewport-aware"
This reverts commit 35c130f197.
2025-06-10 00:29:34 -06:00
google-labs-jules[bot]
35c130f197 Refine: Make persistent navbar viewport-aware
This commit enhances the behavior of the persistent desktop navbar.
Previously, if `desktopNavbarPersistent` was true, the main content
would always shift to accommodate the sidebar on medium screens and up.

Now, the content shifting is also conditional on available viewport width:

- The main content wrapper in `App.vue` now tracks `window.innerWidth`.
- A `SHIFT_THRESHOLD` is defined (currently 880px), calculated from
  NAVBAR_WIDTH (240px) + MIN_CONTENT_WIDTH (640px).
- If `ui.sidebarOpen` and `ui.desktopNavbarPersistent` are both true,
  the `md:pl-60` class (to shift content) is only applied if
  `viewportWidth.value >= SHIFT_THRESHOLD`.
- If the viewport width is below this threshold (but still potentially
  above the 'md' breakpoint), the persistent sidebar will overlay the
  content, similar to a non-persistent or mobile sidebar, preventing
  the main content area from becoming too cramped.

This provides a more refined and responsive user experience for you
if you enable the persistent navbar feature on varying screen sizes.
2025-06-10 06:24:55 +00:00
google-labs-jules[bot]
405265435d Fix: Prevent main content shift when desktop navbar is not persistent
This commit addresses an issue where the main content area would shift
to the right on desktop when the sidebar was opened, regardless of the
`desktopNavbarPersistent` setting.

The layout logic in `App.vue` has been updated so that the `md:pl-60`
class (which adds left padding to the main content area) is now
applied only when both `ui.sidebarOpen` and `ui.desktopNavbarPersistent`
are true.

This ensures that:
- If `desktopNavbarPersistent` is true, the sidebar will take up
  dedicated space, and the content will correctly shift.
- If `desktopNavbarPersistent` is false, the sidebar will overlay the
  content on desktop, and the main content will no longer shift.
2025-06-10 06:18:54 +00:00
20ee3fc76f le falta la coma 2025-06-10 00:14:30 -06:00
google-labs-jules[bot]
dcd6f3091b Refactor: Update Navbar and TopBar UI
This commit implements the following changes:

1. Removed the close button (✕) from within the NavBar component (`ui/src/components/ui/NavBar.vue`). The sidebar is now exclusively controlled by the hamburger icon in the TopBar.
2. Moved the hamburger menu button in the TopBar component (`ui/src/components/ui/TopBar.vue`) to the left side of the application title ("Núcleo").
3. Improved the visual styling of the hamburger button in `TopBar.vue` with increased padding, consistent border-radius, and clearer hover and focus states for better usability and accessibility.

These changes address the issue of redundant close buttons and aim to provide a cleaner and more intuitive navigation experience.
2025-06-10 06:13:26 +00:00
josedario87
5e83f10784 feat(ui): show realtime event dots 2025-06-09 21:40:05 -06:00
6f5490ed4d live feed termiando 60% 2025-06-09 21:00:40 -06:00
josedario87
a311c811d7 style(feed): highlight insert/delete events 2025-06-09 20:10:52 -06:00
josedario87
9030469fe7 Improve realtime feed 2025-06-09 19:49:24 -06:00
josedario87
5dae4a20d3 feat(ui): add realtime feed view 2025-06-09 19:40:29 -06:00
e803d3b16a logs para debugear realtime
All checks were successful
build-and-deploy / filter (push) Successful in 2s
build-and-deploy / build (push) Successful in 10s
build-and-deploy / deploy (push) Successful in 1m17s
2025-06-09 17:43:17 -06:00
6d7f95fc71 seguimos habilitando la funcion realtime
All checks were successful
build-and-deploy / filter (push) Successful in 2s
build-and-deploy / build (push) Successful in 12s
build-and-deploy / deploy (push) Successful in 26s
2025-06-09 17:36:27 -06:00
39be1a2d27 faltaba una coma para compilar correctamente las variables en el sh
All checks were successful
build-and-deploy / filter (push) Successful in 2s
build-and-deploy / build (push) Successful in 10s
build-and-deploy / deploy (push) Successful in 26s
2025-06-09 17:22:47 -06:00
264f7f3c48 agregado el config.js a la pagina
All checks were successful
build-and-deploy / filter (push) Successful in 2s
build-and-deploy / build (push) Successful in 9s
build-and-deploy / deploy (push) Successful in 25s
2025-06-09 17:16:15 -06:00
ca56389a1e seguimos implementando los secretos
All checks were successful
build-and-deploy / filter (push) Successful in 2s
build-and-deploy / build (push) Successful in 10s
build-and-deploy / deploy (push) Successful in 26s
2025-06-09 17:09:54 -06:00
d3c441eec6 dar permisos al docker para ejecutar sus propios archivos de runtime.env
All checks were successful
build-and-deploy / filter (push) Successful in 2s
build-and-deploy / build (push) Successful in 10s
build-and-deploy / deploy (push) Successful in 32s
2025-06-09 17:03:06 -06:00
de869de3a7 actualizando uso de secrets en UI
All checks were successful
build-and-deploy / filter (push) Successful in 1s
build-and-deploy / build (push) Successful in 10s
build-and-deploy / deploy (push) Successful in 26s
2025-06-09 16:55:31 -06:00
d685fb7ff7 agregada configuracion nginx para UI para que acepte variables de entorno
All checks were successful
build-and-deploy / filter (push) Successful in 2s
build-and-deploy / build (push) Successful in 11s
build-and-deploy / deploy (push) Successful in 44s
2025-06-09 16:39:43 -06:00
513c305971 agregada funcionalidad realtime postgress, api y ui. 2025-06-09 16:35:36 -06:00
josedario87
bec28b74ab Add SSE triggers for all modules and central listener 2025-06-09 15:26:35 -06:00
josedario87
031314d662 refactor: isolate SSE setup 2025-06-09 15:16:02 -06:00
56a2ad3605 volver a conectar la UI a la API
All checks were successful
build-and-deploy / filter (push) Successful in 1s
build-and-deploy / build (push) Successful in 12s
build-and-deploy / deploy (push) Successful in 33s
2025-06-06 15:23:45 -06:00
05ee5b46fc agregando logers de env variables
All checks were successful
build-and-deploy / filter (push) Successful in 2s
build-and-deploy / build (push) Successful in 25s
build-and-deploy / deploy (push) Successful in 41s
2025-06-06 15:11:18 -06:00
b751cb2911 este agent quedo funcionando al 100 en local al menos
All checks were successful
build-and-deploy / filter (push) Successful in 2s
build-and-deploy / build (push) Successful in 48s
build-and-deploy / deploy (push) Successful in 27s
2025-06-06 14:56:44 -06:00
d570eec221 usar https para las peticiones a la api desde la UI
All checks were successful
build-and-deploy / filter (push) Successful in 1s
build-and-deploy / build (push) Successful in 9s
build-and-deploy / deploy (push) Successful in 26s
2025-06-05 02:54:23 -06:00
5f9de85b44 usar el mcp como es 2025-06-04 17:26:27 -06:00
533637ca51 usar el mcp como es 2025-06-04 17:24:26 -06:00
josedario87
bce7427fee Merge pull request #33 from josedario87/codex/improve-navbar-design-and-animations
Enhance NavBar hover effects
2025-06-03 16:33:20 -06:00
josedario87
5055e8ae47 Fix NavBar gradient hover and spacing 2025-06-03 16:32:38 -06:00
josedario87
e066250601 Refine NavBar styles 2025-06-03 16:25:57 -06:00
josedario87
361e70fcec Merge pull request #34 from josedario87/codex/update-.gitignore-files-to-cover-common-files
Improve gitignore coverage across repo
2025-06-03 16:23:16 -06:00
josedario87
49eaa67627 Refine NavBar hover gradient 2025-06-03 16:19:14 -06:00
josedario87
c8d43ee283 Update gitignore files 2025-06-03 16:15:47 -06:00
josedario87
5b522a4bc8 style(ui): transparent navbar with accent hover 2025-06-03 16:13:13 -06:00
e3a39decda ya funcionando el mcp, vamos a continuar 2025-06-03 16:09:43 -06:00
josedario87
71e15de201 Merge pull request #30 from josedario87/codex/update-empleados-form-styling
Adjust Empleado form theming
2025-06-03 14:41:18 -06:00
3d3756f3a7 cambio pequeño 2025-06-03 14:38:56 -06:00
josedario87
e305afeb29 feat(ui): apply table and accent colors to empleado form 2025-06-03 14:31:14 -06:00
google-labs-jules[bot]
17d95b2d21 feat: Add growing animation to NucleoDataCard and update README
This commit introduces a growing animation to the NucleoDataCard component.
- The animation is implemented using CSS keyframes and is triggered on hover.
- A smooth transition effect has also been added.

The README.md file has been updated to include information about this new feature under the UI section.
2025-06-03 20:28:30 +00:00
josedario87
adcce89f42 Fix row hover color in NucleoTable 2025-06-03 14:21:27 -06:00
josedario87
1d95fbc416 Merge pull request #26 from josedario87/feat/centralize-nucleo-table there is still required to fix the hover feature
Feat/centralize nucleo table
2025-06-03 13:58:41 -06:00
google-labs-jules[bot]
38339466c1 Refactor: Centralize UI card component and add documentation
This commit introduces a new `NucleoDataCard.vue` component to centralize the common structure and styling of various card elements used throughout the UI. It also includes documentation for this new component.

The following existing card components have been refactored to use `NucleoDataCard.vue`:
- `ui/src/components/asistencias/cardAsistencia.vue`
- `ui/src/components/empleados/cardEmpleado.vue`
- `ui/src/components/planillas/cardPlanilla.vue`
- `ui/src/components/tareas/cardTarea.vue`

Key changes:
- Created `NucleoDataCard.vue` in `ui/src/components/ui/` with flexible props (title, status, fields, accentColor, backgroundColor, avatarUrl, observation, showEditButton, showDeleteButton) and slots (header, body, footer, actions) to accommodate different card designs.
- Updated `NucleoDataCard.vue` to directly use hex color values for `accentColor` and `backgroundColor` props for easier integration with your UI store.
- Refactored the listed existing card components to utilize `NucleoDataCard.vue`, passing data through props and customizing specific sections (like avatars or field icons) via slots.
- Ensured that all functionalities, including edit/delete actions and dynamic styling based on your UI store, are preserved in the refactored components.
- Added `ui/src/components/ui/README.md` with detailed documentation for `NucleoDataCard.vue`, covering its purpose, props, slots, events, and a usage example.

This centralization reduces code duplication, improves maintainability, and provides a consistent foundation for future card-based UI elements. The added documentation will help developers understand and use the new component effectively.
2025-06-03 19:48:57 +00:00
google-labs-jules[bot]
a5aaad5201 feat: Centralize table component into NucleoTable
I've created a new reusable table component `NucleoTable.vue` to standardize table implementations across the UI.

Key changes:
- `NucleoTable.vue` (`ui/src/components/ui/NucleoTable.vue`) created with props for columns, items, accent color, and background color name. It supports custom cell rendering and action slots.
- I've implemented basic styling using Tailwind CSS, respecting dynamic accent and background colors from the UI store.
- It declares `editItem` and `deleteItem` events for parent components to handle.
- I've refactored existing table components to use `NucleoTable.vue`:
    - `tablaAsistencias.vue`
    - `tablaEmpleados.vue`
    - `tablaPlanillas.vue`
    - `tablaTareas.vue`
- Each refactored table now passes its specific data, column definitions, and styling props to `NucleoTable`. Custom cell rendering and action button logic are maintained using slots, preserving original functionality and styling.

This change reduces code duplication and makes future updates to table structures and styles more manageable. You've confirmed that all tables function and appear as expected after refactoring.
2025-06-03 19:44:53 +00:00
google-labs-jules[bot]
0de3a8faf4 Refactor: Centralize UI card component with NucleoDataCard
This commit introduces a new `NucleoDataCard.vue` component to centralize the common structure and styling of various card elements used throughout the UI.

The following existing card components have been refactored to use `NucleoDataCard.vue`:
- `ui/src/components/asistencias/cardAsistencia.vue`
- `ui/src/components/empleados/cardEmpleado.vue`
- `ui/src/components/planillas/cardPlanilla.vue`
- `ui/src/components/tareas/cardTarea.vue`

Key changes:
- Created `NucleoDataCard.vue` in `ui/src/components/ui/` with flexible props (title, status, fields, accentColor, backgroundColor, avatarUrl, observation, showEditButton, showDeleteButton) and slots (header, body, footer, actions) to accommodate different card designs.
- Updated `NucleoDataCard.vue` to directly use hex color values for `accentColor` and `backgroundColor` props for easier integration with the UI store.
- Refactored the listed existing card components to utilize `NucleoDataCard.vue`, passing data through props and customizing specific sections (like avatars or field icons) via slots.
- Ensured that all functionalities, including edit/delete actions and dynamic styling based on the UI store, are preserved in the refactored components.

This centralization reduces code duplication, improves maintainability, and provides a consistent foundation for future card-based UI elements.
2025-06-03 19:40:48 +00:00
josedario87
e98f108784 Merge branch 'main' into feat/chat-color-customization 2025-05-31 03:45:26 -06:00
google-labs-jules[bot]
5fc581a180 feat: Implement chat interface font customization
This commit introduces new UI settings to control the font color, family, and size of the text within the chat interface.

Key changes:

- Added new state variables and actions to `ui/src/stores/useUi.js` for:
    - Chat font color (`chatFontColor`)
    - Chat font family (`chatFontFamily`)
    - Chat font size (`chatFontSize`)
- These settings are persisted in local storage.
- Added controls for these font properties to the "Chat Interface Colors" section in `ui/src/views/SettingsView.vue`.
    - Includes a color picker for font color.
    - Includes a text input for font family.
    - Includes a number input for font size (px).
- Modified `ui/src/components/chat/CanvasChat.vue` to use these new font settings via CSS custom properties.
    - The `chatStyleVariables` computed property now includes variables for font settings.
    - Chat messages (agent and user) and the chat input textarea now apply these font styles.

I've confirmed that the font settings are applied correctly to messages and the input area, persist across sessions, and integrate well with existing theme and color customizations.
2025-05-31 09:43:18 +00:00
google-labs-jules[bot]
a88ee998b5 feat: Implement chat interface color customization
This commit introduces new UI settings to control the colors of various chat interface elements.

Key changes:

- Added new state variables and actions to `ui/src/stores/useUi.js` for:
    - Agent message color (`chatAgentMessageColor`)
    - Own message color (`chatOwnMessageColor`)
    - Input box color (`chatInputBoxColor`)
    - Accent color (`chatAccentColor`)
    - Background color (`chatBackgroundColor`)
- These settings are persisted in local storage.
- Added a new "Chat Interface Colors" section in `ui/src/views/SettingsView.vue` with color pickers for each new setting.
- Modified `ui/src/components/chat/CanvasChat.vue` to use these new color settings via CSS custom properties. The chat elements (agent messages, own messages, input box, send button, background) now reflect your configured colors.

The changes have been tested to ensure that colors are applied correctly, persist across sessions, and do not conflict with existing theme settings.
2025-05-31 09:35:56 +00:00
josedario87
cd59b7c1f3 Merge branch 'main' into ui-consistency-empleados-chat 2025-05-31 03:35:41 -06:00
google-labs-jules[bot]
de64e0a243 Refactor: Standardize UI for Empleados, Chat and Fixes
This commit resolves issues identified after the initial UI standardization pass for the Empleados and Chat modules. It includes fixes for the EmpleadoForm background and correctly defines and applies distinct accent and background colors for the Chat module.

**Previous Standardization (Recap):**

-   **Empleados Module:**
    -   `EmpleadosIndex.vue`: Standardized page header, messages, and create button.
    -   `cardEmpleado.vue`: Edit emits event, added delete, converted to JS.
    -   `tablaEmpleados.vue`: Edit emits event, removed view details, added delete, converted to JS.
-   **Chat Module (Initial Pass):**
    -   `ChatView.vue`: Added standard page header.
    -   `CanvasChat.vue`: Styled input, send button, message bubbles, and scrollbar using `accentColorChat`.
-   **`useUi.js`:**
    -   Added `accentColorChat`.

**Fixes in this Commit:**

-   **`EmpleadoForm.vue`:**
    -   Corrected background styling:
        -   Page container (`.empleado-form-page-container`) now uses `var(--background-color)` (theme's main background).
        -   Form card (`.empleado-actual-form`) now uses a contrasting background (white/dark theme equivalent), distinct from the page and input field backgrounds.
-   **`useUi.js` (UI Store):**
    -   Added `backgroundColorChat` to the store's state, appearance keys, and actions (defaulting to `#F0F0F0`). This allows a distinct background color specifically for the chat interface.
-   **Chat Module Color Application:**
    -   **`ChatView.vue`:**
        -   `.chat-view-container` now uses `var(--background-color-chat)`.
        -   Page header title confirmed to use `var(--accent-color-chat)`.
    -   **`CanvasChat.vue`:**
        -   Root element background now uses `var(--background-color-chat)`.
        -   Verified that input area, send button, user message bubbles, and scrollbar correctly use `var(--accent-color-chat)` (or its derived alpha versions for the scrollbar) and contrast appropriately with `var(--background-color-chat)`.

These cumulative changes ensure better UI consistency for the Empleados and Chat modules and address specific visual bugs and theming requirements identified during review.
2025-05-31 09:32:30 +00:00