diff --git a/ui/src/App.vue b/ui/src/App.vue index dd4e2d8..dd214d8 100644 --- a/ui/src/App.vue +++ b/ui/src/App.vue @@ -2,6 +2,7 @@ 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 { useUi } from '@/stores/useUi' const ui = useUi() @@ -71,6 +72,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..63b52f6 --- /dev/null +++ b/ui/src/components/chat/FloatingChat.vue @@ -0,0 +1,69 @@ + + + + + diff --git a/ui/src/components/ui/NavBar.vue b/ui/src/components/ui/NavBar.vue index 464b314..22e34b8 100644 --- a/ui/src/components/ui/NavBar.vue +++ b/ui/src/components/ui/NavBar.vue @@ -9,7 +9,6 @@ const realtime = useRealtimeStore() // enlaces de la app const links = [ - { to: '/', label: 'Chat', icon: 'πŸ’¬' }, { to: '/empleados', label: 'Empleados', icon: 'πŸ‘₯' }, { to: '/tareas', label: 'Tareas', icon: 'πŸ“‹' }, { to: '/planillas', label: 'Planillas', icon: 'πŸ“‚' }, @@ -38,7 +37,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..dd1968f 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: '/', redirect: '/empleados' }, { 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 @@ - - - - -