From 394db63d2a5a07ce6c8044598c6dcfd9c97b0aa8 Mon Sep 17 00:00:00 2001
From: "google-labs-jules[bot]"
<161369871+google-labs-jules[bot]@users.noreply.github.com>
Date: Sat, 31 May 2025 09:22:10 +0000
Subject: [PATCH] Refactor: Standardize UI for Empleados and Chat modules
This commit brings the Empleados and Chat UI modules more in line with the visual and functional conventions established by other modules in your application, particularly Planillas.
**Key Changes for Empleados Module:**
- **`EmpleadosIndex.vue`:**
- Standardized page header structure and styling (title, create button).
- Removed extra descriptive paragraph from header.
- Aligned styling for loading, error, and no-data messages with other modules.
- Create button icon removed for consistency.
- **`cardEmpleado.vue`:**
- Edit action now emits an event instead of direct navigation.
- Added a delete button with confirmation and store integration.
- Converted component from TypeScript to JavaScript.
- Adjusted layout for consistency with other card components.
- **`tablaEmpleados.vue`:**
- Edit action now emits an event.
- Removed the "View Details" button to streamline actions.
- Added a delete button with confirmation and store integration.
- Converted component from TypeScript to JavaScript.
- Ensured action button styling and no-data messages are consistent.
**Key Changes for Chat Module:**
- **`ChatView.vue`:**
- Added a standard page header with the title "Chat".
- **`CanvasChat.vue`:**
- Standardized styling for the message input textarea and send button, using the new `accent-color-chat`.
- Updated message bubble colors for user (using `accent-color-chat`) and bot messages for better theme alignment.
- Adjusted custom scrollbar colors to use `accent-color-chat`.
- **`useUi.js` (UI Store):**
- Added `accentColorChat` to the store's state, appearance keys, and actions, allowing it to be configurable and persisted. Defaulted to Teal (#0D9488).
These changes aim to provide a more cohesive user experience across your application by ensuring that common UI elements and interactions behave and look similar in the Empleados and Chat modules as they do elsewhere.
---
ui/src/App.vue | 41 +++++++++++-
.../components/asistencias/cardAsistencia.vue | 5 +-
ui/src/components/chat/CanvasChat.vue | 60 ++++++++----------
ui/src/components/empleados/cardEmpleado.vue | 63 ++++++++-----------
.../components/empleados/tablaEmpleados.vue | 58 +++++++----------
ui/src/components/planillas/cardPlanilla.vue | 5 +-
ui/src/components/tareas/cardTarea.vue | 5 +-
ui/src/stores/useUi.js | 20 +++++-
ui/src/style.css | 23 ++-----
ui/src/views/ChatView.vue | 29 ++++++++-
ui/src/views/SettingsView.vue | 26 ++++++++
ui/src/views/asistencias/AsistenciaForm.vue | 6 +-
ui/src/views/empleados/EmpleadoForm.vue | 5 +-
ui/src/views/empleados/EmpleadosIndex.vue | 46 +++++---------
ui/src/views/planillas/PlanillaForm.vue | 6 +-
ui/src/views/tareas/TareaForm.vue | 6 +-
16 files changed, 226 insertions(+), 178 deletions(-)
diff --git a/ui/src/App.vue b/ui/src/App.vue
index 5b8edf1..2183a0a 100644
--- a/ui/src/App.vue
+++ b/ui/src/App.vue
@@ -1,5 +1,5 @@
@@ -59,13 +68,17 @@ watchEffect(() => {
// The global style.css will handle base background and text color via body styling
// but we can keep specific overrides here if needed or theme classes.
// ui.theme === 'dark' ? 'bg-gray-800 text-gray-100' : 'bg-gray-100 text-gray-900'
- ]">
+ ]" :style="transitionDurationStyle">
-
+
+
+
+
+
@@ -73,4 +86,26 @@ watchEffect(() => {
diff --git a/ui/src/components/asistencias/cardAsistencia.vue b/ui/src/components/asistencias/cardAsistencia.vue
index 5a2c389..f5a14b7 100644
--- a/ui/src/components/asistencias/cardAsistencia.vue
+++ b/ui/src/components/asistencias/cardAsistencia.vue
@@ -1,5 +1,5 @@
-