From 3dabcad6170e5a79ecad9514bbeeed40bd7532e0 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 06:32:19 +0000 Subject: [PATCH] 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. --- .../components/asistencias/cardAsistencia.vue | 26 +++++--- ui/src/components/planillas/cardPlanilla.vue | 17 +++--- ui/src/components/tareas/cardTarea.vue | 9 +-- ui/src/views/asistencias/AsistenciasIndex.vue | 59 +++++++++++++++++-- ui/src/views/planillas/PlanillasIndex.vue | 57 ++++++++++++++++-- ui/src/views/tareas/TareasIndex.vue | 57 ++++++++++++++++-- 6 files changed, 185 insertions(+), 40 deletions(-) diff --git a/ui/src/components/asistencias/cardAsistencia.vue b/ui/src/components/asistencias/cardAsistencia.vue index f8d8d29..b7426a4 100644 --- a/ui/src/components/asistencias/cardAsistencia.vue +++ b/ui/src/components/asistencias/cardAsistencia.vue @@ -1,12 +1,13 @@