feat(mobile-navigation-improvements): Complete US-213 - Actualizare Hamburger Menu în toate paginile

Implemented by Ralph autonomous loop.
Iteration: 10

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Claude Agent
2026-01-12 12:36:45 +00:00
parent dc137711ae
commit 4c5d2956d8
10 changed files with 146 additions and 207 deletions

View File

@@ -4,7 +4,14 @@
v-if="isMobile"
title="Dashboard"
:show-menu="true"
@menu-click="handleMenuClick"
@menu-click="showDrawer = true"
/>
<!-- Mobile Drawer Menu (replaces old Sidebar) -->
<MobileDrawerMenu
v-model="showDrawer"
:user="authStore.user"
@logout="handleLogout"
/>
<main class="main-content" :class="{ 'mobile-layout': isMobile }">
@@ -191,7 +198,8 @@ import TreasuryDualCard from "@reports/components/dashboard/cards/TreasuryDualCa
import SwipeableCards from "@shared/components/mobile/SwipeableCards.vue";
import MobileTopBar from "@shared/components/mobile/MobileTopBar.vue";
import MobileBottomNav from "@shared/components/mobile/MobileBottomNav.vue";
import { useCompanyStore } from "@reports/stores/sharedStores";
import MobileDrawerMenu from "@shared/components/mobile/MobileDrawerMenu.vue";
import { useCompanyStore, useAuthStore } from "@reports/stores/sharedStores";
import { useDashboardStore } from "@reports/stores/dashboard";
import { useAccountingPeriodStore } from "@reports/stores/sharedStores";
import api from "@reports/services/api";
@@ -206,10 +214,12 @@ const router = useRouter();
const companyStore = useCompanyStore();
const dashboardStore = useDashboardStore();
const periodStore = useAccountingPeriodStore();
const authStore = useAuthStore();
// State
const filteredCompanies = ref([]);
const isLoading = ref(false);
const showDrawer = ref(false);
// State pentru carduri
const monthlyInflows = ref(0);
@@ -537,10 +547,10 @@ const mobileNavItems = computed(() => [
{ to: '/settings', icon: 'pi pi-cog', label: 'Setări' }
]);
// Handle hamburger menu click
const handleMenuClick = () => {
// TODO: Will be handled by MobileDrawerMenu in US-202
console.log('Menu clicked - drawer will be implemented in US-202');
// Handle logout from drawer menu
const handleLogout = async () => {
await authStore.logout();
router.push('/login');
};
// Computed property pentru luna curentă - folosește perioada din period selector