diff --git a/admin-spa/src/routes/Customers/index.tsx b/admin-spa/src/routes/Customers/index.tsx index d1b5b7d..d964097 100644 --- a/admin-spa/src/routes/Customers/index.tsx +++ b/admin-spa/src/routes/Customers/index.tsx @@ -23,8 +23,8 @@ export default function CustomersIndex() { const [search, setSearch] = useState(''); const [selectedIds, setSelectedIds] = useState([]); - // FAB config for "New Customer" button - useFABConfig('customers'); + // FAB config - 'none' because submenu has 'New' tab (per SOP) + useFABConfig('none'); // Fetch customers const customersQuery = useQuery({ @@ -99,7 +99,24 @@ export default function CustomersIndex() { return (
- {/* Toolbar */} + {/* Mobile: Search */} +
+
+ + { + setSearch(e.target.value); + setPage(1); + }} + className="pl-9" + /> +
+
+ + {/* Desktop: Toolbar */}
{/* Left: Bulk Actions */} diff --git a/includes/Compat/NavigationRegistry.php b/includes/Compat/NavigationRegistry.php index df57b1c..f614e4b 100644 --- a/includes/Compat/NavigationRegistry.php +++ b/includes/Compat/NavigationRegistry.php @@ -153,16 +153,7 @@ class NavigationRegistry { 'icon' => 'users', 'children' => [ ['label' => __('All customers', 'woonoow'), 'mode' => 'spa', 'path' => '/customers'], - ], - ], - [ - 'key' => 'coupons', - 'label' => __('Coupons', 'woonoow'), - 'path' => '/coupons', - 'icon' => 'tag', - 'children' => [ - ['label' => __('All coupons', 'woonoow'), 'mode' => 'spa', 'path' => '/coupons'], - ['label' => __('New', 'woonoow'), 'mode' => 'spa', 'path' => '/coupons/new'], + ['label' => __('New', 'woonoow'), 'mode' => 'spa', 'path' => '/customers/new'], ], ], [