Redesign POS order flow with order type picker and counter/takeaway support

- Add OrderTypePicker screen: Table / Counter / Takeaway cards shown when no
  active session, replacing the old always-visible table board
- Move PosTableBoard into a modal overlay (opens on Table selection or
  "Assign Table" for counter orders)
- Add orderType field + setOrderType action to cart store
- Counter and Takeaway orders no longer require a table to submit
- Add "Assign Table →" button in cart for counter orders with active session
- Rewrite category tabs as horizontal scrollable row (no wrapping)
- Larger product cards with 4:3 thumbnail + quantity badge overlay
- Bigger quantity controls (h-8 w-8) and "New order" back button in header
- Add i18n keys for order types in en/fa/ar

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
soroush.asadi
2026-05-28 00:07:58 +03:30
parent 9ed305e5bd
commit 79deab543a
5 changed files with 807 additions and 426 deletions
+12 -1
View File
@@ -229,7 +229,18 @@
"customerSaveError": "تعذّر حفظ العميل",
"customerPhoneExists": "الهاتف مسجّل مسبقاً — ابحث واختر",
"newCustomerHint": "للطلب الحالي فقط، أو احفظ في CRM عبر «إضافة عميل»",
"offlineQueueNotice": "غير متصل — تم حفظ الطلب في الطابور وسيتم إرساله عند الاتصال"
"offlineQueueNotice": "غير متصل — تم حفظ الطلب في الطابور وسيتم إرساله عند الاتصال",
"orderTypePicker": "كيف تريد تسجيل هذا الطلب؟",
"orderTypeTable": "طاولة",
"orderTypeTableDesc": "إجلاس الضيف على طاولة",
"orderTypeCounter": "كاونتر",
"orderTypeCounterDesc": "دون تخصيص طاولة",
"orderTypeTakeaway": "تيك أواي",
"orderTypeTakeawayDesc": "طلب للخارج",
"counterBadge": "كاونتر",
"takeawayBadge": "تيك أواي",
"assignTable": "تعيين طاولة",
"newOrder": "طلب جديد"
},
"print": {
"printReceipt": "طباعة الإيصال",