diff --git a/ui/src/App.vue b/ui/src/App.vue index 56c4abf..082ffc5 100644 --- a/ui/src/App.vue +++ b/ui/src/App.vue @@ -2,7 +2,9 @@ import { watchEffect, computed } from 'vue' // Added computed import TopBar from '@/components/ui/TopBar.vue' import NavBar from '@/components/ui/NavBar.vue' +import FloatingChat from '@/components/chat/FloatingChat.vue' import SnackbarContainer from '@/components/ui/SnackbarContainer.vue' + import { useUi } from '@/stores/useUi' const ui = useUi() @@ -72,6 +74,7 @@ const transitionDurationStyle = computed(() => { ]" :style="transitionDurationStyle"> +
diff --git a/ui/src/components/chat/FloatingChat.vue b/ui/src/components/chat/FloatingChat.vue new file mode 100644 index 0000000..9a13aec --- /dev/null +++ b/ui/src/components/chat/FloatingChat.vue @@ -0,0 +1,101 @@ + + + + + diff --git a/ui/src/components/ui/NavBar.vue b/ui/src/components/ui/NavBar.vue index 18bbe8f..c247e90 100644 --- a/ui/src/components/ui/NavBar.vue +++ b/ui/src/components/ui/NavBar.vue @@ -10,7 +10,7 @@ const realtime = useRealtimeStore() // enlaces de la app const links = [ - { to: '/', label: 'Chat', icon: '💬' }, + { to: '/empleados', label: 'Empleados', icon: moduleInfo.Cliente.icon }, { to: '/tareas', label: 'Tareas', icon: moduleInfo.TareaRealizada.icon }, { to: '/planillas', label: 'Planillas', icon: moduleInfo.Planilla.icon }, @@ -39,7 +39,7 @@ const accentColorForPath = (path) => { if (path.startsWith('/asistencias')) return ui.accentColorAsistencias if (path.startsWith('/feed')) return ui.primaryColor if (path.startsWith('/config')) return ui.accentColorConfiguracion - return ui.accentColorChat + return ui.primaryColor } const tableForPath = (path) => { diff --git a/ui/src/router/index.js b/ui/src/router/index.js index d4a9628..315886d 100644 --- a/ui/src/router/index.js +++ b/ui/src/router/index.js @@ -1,8 +1,8 @@ import { createRouter, createMemoryHistory , createWebHashHistory} from 'vue-router' const routes = [ - // Chat principal y config - { path: '/', name: 'chat', component: () => import('@/views/ChatView.vue') }, + // Configuración + { path: '/', name: 'home', component: () => import('@/views/HomeView.vue') }, { path: '/config', name: 'settings', component: () => import('@/views/SettingsView.vue') }, // ────── Empleados ────── diff --git a/ui/src/views/ChatView.vue b/ui/src/views/ChatView.vue deleted file mode 100644 index ee86807..0000000 --- a/ui/src/views/ChatView.vue +++ /dev/null @@ -1,39 +0,0 @@ - - - - - diff --git a/ui/src/views/HomeView.vue b/ui/src/views/HomeView.vue new file mode 100644 index 0000000..b5994dd --- /dev/null +++ b/ui/src/views/HomeView.vue @@ -0,0 +1,83 @@ + + + + +