From 34b58b3f2e6677a44df25ddebd2d2e2e145b2498 Mon Sep 17 00:00:00 2001 From: bonamin Date: Mon, 8 Jun 2026 04:06:39 +0300 Subject: [PATCH] feat: add Online Orders to feature flag toggles Co-Authored-By: Claude Sonnet 4.6 --- manager_dashboard/src/components/Sidebar.jsx | 2 +- .../src/hooks/usePhase2Features.js | 17 +++++++++-------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/manager_dashboard/src/components/Sidebar.jsx b/manager_dashboard/src/components/Sidebar.jsx index 9a5ef0b..6c204d2 100644 --- a/manager_dashboard/src/components/Sidebar.jsx +++ b/manager_dashboard/src/components/Sidebar.jsx @@ -39,7 +39,7 @@ export default function Sidebar() { const ALL_NAV = [ { to: '/dashboard', icon: BarChart2, label: 'Dashboard' }, { to: '/tables', icon: LayoutGrid, label: 'Τραπέζια' }, - { to: '/online-orders', icon: ShoppingBag, label: 'Online Orders', badge: pendingCount }, + { to: '/online-orders', icon: ShoppingBag, label: 'Online Orders', badge: pendingCount, phase2: 'online-orders' }, { to: '/reports', icon: ClipboardList, label: 'Αναφορές' }, { to: '/management', icon: Package, label: 'Διαχείριση' }, { to: '/notes', icon: NotebookPen, label: 'Σημειώσεις', phase2: 'notes' }, diff --git a/manager_dashboard/src/hooks/usePhase2Features.js b/manager_dashboard/src/hooks/usePhase2Features.js index f60b99a..b53aaf6 100644 --- a/manager_dashboard/src/hooks/usePhase2Features.js +++ b/manager_dashboard/src/hooks/usePhase2Features.js @@ -6,14 +6,15 @@ const STORAGE_KEY = 'phase2_features' // enabled: true = shown by default (feature is polished) // enabled: false = hidden by default (still in development) export const PHASE2_FEATURE_DEFS = [ - { id: 'notes', label: 'Σημειώσεις & Εργασίες', route: '/notes', enabled: true }, - { id: 'expenses', label: 'Έξοδα', route: '/expenses', enabled: true }, - { id: 'contacts', label: 'Επαφές / Προμηθευτές', route: '/contacts', enabled: true }, - { id: 'customers', label: 'Πελάτες', route: '/customers',enabled: true }, - { id: 'tabs', label: 'Καρτέλες', route: '/tabs', enabled: true }, - { id: 'waste', label: 'Αποβλήτα / Φθορές', route: '/waste', enabled: true }, - { id: 'kds', label: 'KDS — Κουζίνα', route: '/kds', enabled: true }, - { id: 'schedule', label: 'Πρόγραμμα Βαρδιών', route: '/schedule', enabled: true }, + { id: 'online-orders', label: 'Online Orders', route: '/online-orders', enabled: true }, + { id: 'notes', label: 'Σημειώσεις & Εργασίες', route: '/notes', enabled: true }, + { id: 'expenses', label: 'Έξοδα', route: '/expenses', enabled: true }, + { id: 'contacts', label: 'Επαφές / Προμηθευτές', route: '/contacts', enabled: true }, + { id: 'customers', label: 'Πελάτες', route: '/customers', enabled: true }, + { id: 'tabs', label: 'Καρτέλες', route: '/tabs', enabled: true }, + { id: 'waste', label: 'Αποβλήτα / Φθορές', route: '/waste', enabled: true }, + { id: 'kds', label: 'KDS — Κουζίνα', route: '/kds', enabled: true }, + { id: 'schedule', label: 'Πρόγραμμα Βαρδιών', route: '/schedule', enabled: true }, ] function _load() {