From 1af9ad5d863523f15485c43176beec01b8a1e2b1 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 08:14:20 +0000 Subject: [PATCH 1/7] feat: Add fade transitions to route changes This commit introduces fade transitions for route changes in the UI. The main App.vue component has been updated to wrap the RouterView with a Vue transition component. CSS styles for a simple fade-in/out effect have been added. This change aims to make the application feel more consistent and modern by providing visual feedback during navigation. --- ui/src/App.vue | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/ui/src/App.vue b/ui/src/App.vue index 5b8edf1..2aeb383 100644 --- a/ui/src/App.vue +++ b/ui/src/App.vue @@ -65,7 +65,11 @@ watchEffect(() => {
- + + + + +
@@ -73,4 +77,19 @@ watchEffect(() => { From 5edc9da769e9ea9a9fdb2ea454f8db5f44d21f94 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 08:18:40 +0000 Subject: [PATCH 2/7] refactor: Update route transition to slide-fade This commit changes the route transition effect from a simple fade to a slide-fade effect based on your feedback. - Outgoing content now fades and slides to the right. - Incoming content now fades and slides in from the left. The transition duration has also been slightly increased for a smoother visual experience. --- ui/src/App.vue | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/ui/src/App.vue b/ui/src/App.vue index 2aeb383..296e375 100644 --- a/ui/src/App.vue +++ b/ui/src/App.vue @@ -66,7 +66,7 @@ watchEffect(() => {
- + @@ -78,18 +78,25 @@ watchEffect(() => { /* Scoped styles remain, global styles are in style.css */ /* We can add specific App.vue styling here if needed, that doesn't rely on theme variables directly */ -.fade-enter-active, -.fade-leave-active { - transition: opacity 0.2s ease-in-out; +.slide-fade-enter-active, +.slide-fade-leave-active { + transition: all 0.3s ease-out; /* Increased duration for a smoother slide */ } -.fade-enter-from, -.fade-leave-to { +.slide-fade-enter-from { opacity: 0; + transform: translateX(-20px); /* Slide in from the left */ } -.fade-enter-to, -.fade-leave-from { +.slide-fade-leave-to { + opacity: 0; + transform: translateX(20px); /* Slide out to the right */ +} + +/* Ensure content is fully opaque and in place when active/not transitioning */ +.slide-fade-enter-to, +.slide-fade-leave-from { opacity: 1; + transform: translateX(0); } From 40497940f31ba6c9db43c47f2aa72986eebbd640 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 08:26:53 +0000 Subject: [PATCH 3/7] feat: Use dynamic background colors for forms This commit updates the form components to use the dynamic background colors specified in your UI settings. The following forms were modified: - AsistenciaForm.vue - EmpleadoForm.vue - PlanillaForm.vue - TareaForm.vue Each form now imports the `useUi` store and binds the style of its main container to the corresponding `tableBgColor[Module]` property. This ensures that the form background color matches the table background color you selected in the settings. --- ui/src/views/asistencias/AsistenciaForm.vue | 6 ++++-- ui/src/views/empleados/EmpleadoForm.vue | 5 ++++- ui/src/views/planillas/PlanillaForm.vue | 6 ++++-- ui/src/views/tareas/TareaForm.vue | 6 ++++-- 4 files changed, 16 insertions(+), 7 deletions(-) diff --git a/ui/src/views/asistencias/AsistenciaForm.vue b/ui/src/views/asistencias/AsistenciaForm.vue index 29c5f49..757b92f 100644 --- a/ui/src/views/asistencias/AsistenciaForm.vue +++ b/ui/src/views/asistencias/AsistenciaForm.vue @@ -1,5 +1,5 @@