From 746148cc5fd9cb720c3ee35995f46646f918da32 Mon Sep 17 00:00:00 2001 From: dwindown Date: Thu, 20 Nov 2025 09:19:49 +0700 Subject: [PATCH] feat: Update Orders to follow CRUD pattern SOP Following PROJECT_SOP.md section 5.7 CRUD Module Pattern: **Backend (NavigationRegistry.php):** - Added Orders submenu: All orders | New - Prepared for future tabs (Drafts, Recurring) **Frontend (Orders/index.tsx):** - Removed 'New order' button from toolbar - Kept bulk actions (Delete) in toolbar - Filters remain in toolbar **Result:** - Orders now consistent with Products pattern - Follows industry standard (Shopify, WooCommerce) - Submenu for main actions, toolbar for filters/bulk actions **Next:** - Implement variable product handling in OrderForm --- admin-spa/src/routes/Orders/index.tsx | 6 ------ includes/Compat/NavigationRegistry.php | 6 +++++- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/admin-spa/src/routes/Orders/index.tsx b/admin-spa/src/routes/Orders/index.tsx index 908fce0..99de455 100644 --- a/admin-spa/src/routes/Orders/index.tsx +++ b/admin-spa/src/routes/Orders/index.tsx @@ -245,12 +245,6 @@ export default function Orders() {
- {selectedIds.length > 0 && (