From 2cf2242b82a1e06e2daf27f09c2a5a2c12f7f18c Mon Sep 17 00:00:00 2001 From: josedario87 Date: Mon, 13 Oct 2025 13:52:13 -0600 Subject: [PATCH] Add maintenance mode to data analysis pages Restore all data analysis pages but display them in maintenance mode. Users can see these pages in the navigation and access them, but they show a maintenance message instead of trying to fetch data. Changes: - Create MaintenanceMode component for reusable maintenance UI - Restore all deleted pages: explorer, metadatos, rawExplorer, panorama, comparativa-cosechas, informe-ingresos - Replace complex data-fetching logic with MaintenanceMode component - Add "Mantenimiento" badges to navigation menu items - Pages show clear maintenance message with technical details - Users can still navigate to these pages without errors This approach: - Keeps the UI structure intact - Shows users what features exist - Provides clear communication about maintenance status - Prevents confusion about missing features - Easy to re-enable when data sources are reconnected --- nuxt4-app/app/components/MaintenanceMode.vue | 78 ++++++++++++++++++++ nuxt4-app/app/components/app/AppSidebar.vue | 42 +++++++++++ nuxt4-app/app/pages/comparativa-cosechas.vue | 15 ++++ nuxt4-app/app/pages/explorer.vue | 15 ++++ nuxt4-app/app/pages/informe-ingresos.vue | 15 ++++ nuxt4-app/app/pages/metadatos.vue | 15 ++++ nuxt4-app/app/pages/panorama.vue | 15 ++++ nuxt4-app/app/pages/rawExplorer.vue | 15 ++++ 8 files changed, 210 insertions(+) create mode 100644 nuxt4-app/app/components/MaintenanceMode.vue create mode 100644 nuxt4-app/app/pages/comparativa-cosechas.vue create mode 100644 nuxt4-app/app/pages/explorer.vue create mode 100644 nuxt4-app/app/pages/informe-ingresos.vue create mode 100644 nuxt4-app/app/pages/metadatos.vue create mode 100644 nuxt4-app/app/pages/panorama.vue create mode 100644 nuxt4-app/app/pages/rawExplorer.vue diff --git a/nuxt4-app/app/components/MaintenanceMode.vue b/nuxt4-app/app/components/MaintenanceMode.vue new file mode 100644 index 0000000..6150c13 --- /dev/null +++ b/nuxt4-app/app/components/MaintenanceMode.vue @@ -0,0 +1,78 @@ + + + diff --git a/nuxt4-app/app/components/app/AppSidebar.vue b/nuxt4-app/app/components/app/AppSidebar.vue index d717a1f..ecce0e5 100644 --- a/nuxt4-app/app/components/app/AppSidebar.vue +++ b/nuxt4-app/app/components/app/AppSidebar.vue @@ -232,6 +232,48 @@ const navigationPrimary = computed(() => [ icon: 'i-lucide-home', to: '/', active: route.path === '/' + }, + { + label: 'Panorama Facturador', + icon: 'i-lucide-bar-chart-3', + to: '/panorama', + active: route.path === '/panorama', + badge: { label: 'Mantenimiento', color: 'amber' } + }, + { + label: 'Informe Ingresos', + icon: 'i-lucide-file-bar-chart', + to: '/informe-ingresos', + active: route.path === '/informe-ingresos', + badge: { label: 'Mantenimiento', color: 'amber' } + }, + { + label: 'Comparativa Cosechas', + icon: 'i-lucide-calendar-range', + to: '/comparativa-cosechas', + active: route.path === '/comparativa-cosechas', + badge: { label: 'Mantenimiento', color: 'amber' } + }, + { + label: 'Explorador de datos', + icon: 'i-lucide-table', + to: '/explorer', + active: route.path === '/explorer', + badge: { label: 'Mantenimiento', color: 'amber' } + }, + { + label: 'Metadatos', + icon: 'i-lucide-database', + to: '/metadatos', + active: route.path === '/metadatos', + badge: { label: 'Mantenimiento', color: 'amber' } + }, + { + label: 'Explorador de datos raw', + icon: 'i-lucide-table', + to: '/rawExplorer', + active: route.path === '/rawExplorer', + badge: { label: 'Mantenimiento', color: 'amber' } } ]) diff --git a/nuxt4-app/app/pages/comparativa-cosechas.vue b/nuxt4-app/app/pages/comparativa-cosechas.vue new file mode 100644 index 0000000..2908caa --- /dev/null +++ b/nuxt4-app/app/pages/comparativa-cosechas.vue @@ -0,0 +1,15 @@ + + + diff --git a/nuxt4-app/app/pages/explorer.vue b/nuxt4-app/app/pages/explorer.vue new file mode 100644 index 0000000..fc35d31 --- /dev/null +++ b/nuxt4-app/app/pages/explorer.vue @@ -0,0 +1,15 @@ + + + diff --git a/nuxt4-app/app/pages/informe-ingresos.vue b/nuxt4-app/app/pages/informe-ingresos.vue new file mode 100644 index 0000000..480026c --- /dev/null +++ b/nuxt4-app/app/pages/informe-ingresos.vue @@ -0,0 +1,15 @@ + + + diff --git a/nuxt4-app/app/pages/metadatos.vue b/nuxt4-app/app/pages/metadatos.vue new file mode 100644 index 0000000..3b148c8 --- /dev/null +++ b/nuxt4-app/app/pages/metadatos.vue @@ -0,0 +1,15 @@ + + + diff --git a/nuxt4-app/app/pages/panorama.vue b/nuxt4-app/app/pages/panorama.vue new file mode 100644 index 0000000..d14ca6e --- /dev/null +++ b/nuxt4-app/app/pages/panorama.vue @@ -0,0 +1,15 @@ + + + diff --git a/nuxt4-app/app/pages/rawExplorer.vue b/nuxt4-app/app/pages/rawExplorer.vue new file mode 100644 index 0000000..60e96ec --- /dev/null +++ b/nuxt4-app/app/pages/rawExplorer.vue @@ -0,0 +1,15 @@ + + +