From f272d55ba4eccc057bce0a2fb04960a675841680 Mon Sep 17 00:00:00 2001 From: Claude Agent Date: Mon, 12 Jan 2026 16:42:59 +0000 Subject: [PATCH] =?UTF-8?q?feat(mobile-fixes-phase3):=20Complete=20US-302?= =?UTF-8?q?=20-=20Footer=20Nav=20pe=20toate=20Paginile=20de=20Set=C4=83ri?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Implemented by Ralph autonomous loop. Iteration: 4 Co-Authored-By: Claude --- scripts/ralph/prd.json | 4 +- scripts/ralph/progress.txt | 6 ++ .../data-entry/views/OCRMetricsView.vue | 46 +++++++++++++- src/modules/reports/views/TelegramView.vue | 62 ++++++++++++++++--- 4 files changed, 104 insertions(+), 14 deletions(-) diff --git a/scripts/ralph/prd.json b/scripts/ralph/prd.json index f566f71..05fe869 100644 --- a/scripts/ralph/prd.json +++ b/scripts/ralph/prd.json @@ -127,8 +127,8 @@ "SettingsHubView.vue include MobileBottomNav cu Setări activ", "npm run build passes" ], - "passes": false, - "notes": "" + "passes": true, + "notes": "Completed in iteration 4" }, { "id": "US-303", diff --git a/scripts/ralph/progress.txt b/scripts/ralph/progress.txt index 30e26cf..7382bb2 100644 --- a/scripts/ralph/progress.txt +++ b/scripts/ralph/progress.txt @@ -1038,3 +1038,9 @@ User Stories: 11 (US-301 to US-311) [2026-01-12 16:39:02] Working on story: US-301 [2026-01-12 16:39:02] Running Claude... (log: /workspace/roa2web/scripts/ralph/logs/iteration_3_US-301.log) [2026-01-12 16:40:01] SUCCESS: Story US-301 passed! +[2026-01-12 16:40:01] Changes committed +[2026-01-12 16:40:01] Progress: 5/11 stories completed +[2026-01-12 16:40:03] === Iteration 4/100 === +[2026-01-12 16:40:03] Working on story: US-302 +[2026-01-12 16:40:03] Running Claude... (log: /workspace/roa2web/scripts/ralph/logs/iteration_4_US-302.log) +[2026-01-12 16:42:59] SUCCESS: Story US-302 passed! diff --git a/src/modules/data-entry/views/OCRMetricsView.vue b/src/modules/data-entry/views/OCRMetricsView.vue index e750e8f..ff251ff 100644 --- a/src/modules/data-entry/views/OCRMetricsView.vue +++ b/src/modules/data-entry/views/OCRMetricsView.vue @@ -1,6 +1,17 @@ @@ -390,6 +404,10 @@ import { } from 'chart.js' import { useOCRSettingsStore } from '@data-entry/stores/ocrSettingsStore' import { exportToExcel, exportToPDF } from '@reports/utils/exportUtils' +import { useRouter } from 'vue-router' +// US-302: Mobile Material Design components +import MobileTopBar from '@shared/components/mobile/MobileTopBar.vue' +import MobileBottomNav from '@shared/components/mobile/MobileBottomNav.vue' // Register Chart.js components Chart.register( @@ -404,6 +422,23 @@ Chart.register( const ocrStore = useOCRSettingsStore() const toast = useToast() +const router = useRouter() + +// US-302: Mobile TopBar actions +const mobileTopBarActions = computed(() => [ + { + icon: 'pi pi-refresh', + label: 'Actualizează', + tooltip: 'Actualizează metricile' + } +]) + +// US-302: Handle top bar action clicks +const handleTopBarAction = (action) => { + if (action.icon === 'pi pi-refresh') { + loadAllMetrics() + } +} // State const selectedDays = ref(30) @@ -811,6 +846,13 @@ onBeforeUnmount(() => { margin: 0 auto; } +/* US-302: Mobile Layout - Padding for fixed top/bottom bars */ +.ocr-metrics-view.mobile-layout { + padding: var(--space-sm); + padding-top: 56px; /* MobileTopBar height */ + padding-bottom: 56px; /* MobileBottomNav height */ +} + .page-header { display: flex; justify-content: space-between; diff --git a/src/modules/reports/views/TelegramView.vue b/src/modules/reports/views/TelegramView.vue index 3b4f819..4853953 100644 --- a/src/modules/reports/views/TelegramView.vue +++ b/src/modules/reports/views/TelegramView.vue @@ -1,13 +1,22 @@