Redesign menu admin screen with two-panel layout and modal forms
UX improvements: - Two-panel layout: sticky category sidebar (desktop) + items grid - Mobile: horizontal scrolling category pills above items - Category sidebar shows item count badge per category; edit on hover - Items search bar + instant filter (name, English name, Arabic name) - Category filter drives items grid (click sidebar = filter items) - Item cards: image hover reveals Edit button (progressive disclosure) - Out-of-stock overlay + inline toggle switch (replaces text button) - Add/Edit item opens in clean modal overlay (no jarring inline expansion) - Add/Edit category opens in separate modal - nameEn made optional (was blocking new item creation) - Consolidated form state with single object per form - Empty state with illustration and Add CTA - Skeleton loading grid - Branch overrides tab wired to branchId from store - New i18n keys for search, counts, states in en/fa/ar Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -651,7 +651,24 @@
|
||||
"media": "صورة وفيديو",
|
||||
"tabCatalog": "الكتالوج",
|
||||
"tabBranch": "إعدادات الفرع",
|
||||
"selectBranchForOverrides": "اختر فرعاً من الأعلى لإدارة قائمة الفرع."
|
||||
"selectBranchForOverrides": "اختر فرعاً من الأعلى لإدارة قائمة الفرع.",
|
||||
"allItems": "كل الأصناف",
|
||||
"searchItemsPlaceholder": "ابحث عن أصناف…",
|
||||
"itemCount": "{count} أصناف",
|
||||
"noItemsInCategory": "لا أصناف في هذه الفئة بعد",
|
||||
"noItemsMatchSearch": "لا أصناف تطابق بحثك",
|
||||
"outOfStock": "نفد المخزون",
|
||||
"newItem": "صنف جديد",
|
||||
"newCategory": "فئة جديدة",
|
||||
"editCategoryTitle": "تعديل الفئة",
|
||||
"close": "إغلاق",
|
||||
"saving": "جاري الحفظ…",
|
||||
"model3d": "نموذج ثلاثي الأبعاد",
|
||||
"nameEnOptional": "الاسم بالإنجليزية (اختياري)",
|
||||
"addItemSuccess": "تمت إضافة الصنف",
|
||||
"updateItemSuccess": "تم تحديث الصنف",
|
||||
"addCategorySuccess": "تمت إضافة الفئة",
|
||||
"updateCategorySuccess": "تم تحديث الفئة"
|
||||
},
|
||||
"branchMenu": {
|
||||
"title": "قائمة الفرع",
|
||||
|
||||
Reference in New Issue
Block a user