feat(print): dashboard UI for print servers + auto-discovered printer pickers
CI/CD / CI · API (dotnet build + test) (push) Successful in 42s
CI/CD / CI · Admin API (dotnet build) (push) Successful in 29s
CI/CD / CI · Dashboard (tsc) (push) Successful in 1m9s
CI/CD / CI · Admin Web (tsc) (push) Successful in 38s
CI/CD / CI · Website (tsc) (push) Successful in 46s
CI/CD / CI · Koja (tsc) (push) Successful in 50s
CI/CD / Deploy · all services (push) Successful in 3m44s

Phase 4 (final). Settings → Printers now has a "Print servers" section: add a
print server (issues a one-time pairing code with steps), see each agent's online
status, its auto-discovered printers, test any of them, and revoke. Receipt,
kitchen and per-station printers can now be picked from a dropdown of discovered
devices instead of typing an IP (manual IP stays as fallback). Wires the device
mappings through the branch print-settings + kitchen-station DTOs/services and adds
the device-test endpoint. fa/en/ar strings added.

Completes the cloud↔LAN print-agent feature (entities/hub → routing → agent → UI).
Remaining polish: agent system-tray + run-at-login + installer, optional LAN scan.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
soroush.asadi
2026-06-25 12:28:27 +03:30
parent 7d5af0c81b
commit 197f6f2d38
12 changed files with 377 additions and 12 deletions
+18
View File
@@ -351,6 +351,24 @@
"empty": "لا توجد محطات بعد. أضف «المطبخ» و«البار» لطباعة أصنافهما بشكل منفصل.",
"deleteConfirm": "حذف المحطة «{name}»؟ ستعود فئاتها إلى طابعة المطبخ.",
"saveError": "تعذّر حفظ المحطة."
},
"agents": {
"title": "خوادم الطباعة (اكتشاف تلقائي)",
"hint": "ثبّت وكيل طباعة Meezi على جهاز الكاشير لاكتشاف طابعات USB والشبكة تلقائياً والطباعة عبره.",
"add": "إضافة خادم طباعة",
"pairingTitle": "أدخل هذا الرمز في وكيل الطباعة على جهاز الكاشير:",
"pairingSteps": "ثبّت وشغّل وكيل طباعة Meezi على الجهاز المتصل بالطابعات ثم أدخل هذا الرمز. صالح لمدة 15 دقيقة.",
"empty": "لا يوجد خادم طباعة متصل بعد.",
"online": "متصل",
"offline": "غير متصل",
"noDevices": "جارٍ اكتشاف الطابعات…",
"test": "اختبار",
"receiptVia": "طابعة الإيصال (عبر الخادم)",
"kitchenVia": "طابعة المطبخ (عبر الخادم)",
"viaServer": "الطابعة (عبر الخادم)",
"useIpInstead": "— استخدام IP يدوي —",
"revokeConfirm": "إزالة خادم الطباعة «{name}»؟ لن يتمكن من الطباعة بعد ذلك.",
"codeError": "تعذّر إنشاء الرمز."
}
},
"receipt": {
+18
View File
@@ -370,6 +370,24 @@
"empty": "No stations yet. Add Kitchen and Bar to print their items separately.",
"deleteConfirm": "Delete station “{name}”? Its categories will fall back to the kitchen printer.",
"saveError": "Failed to save the station."
},
"agents": {
"title": "Print servers (auto-discovery)",
"hint": "Install the Meezi print agent on the cash PC to auto-detect its USB & network printers and print through it.",
"add": "Add print server",
"pairingTitle": "Enter this code in the print agent on the cash PC:",
"pairingSteps": "Install and run the Meezi Print Agent on the PC connected to the printers, then enter this code. It is valid for 15 minutes.",
"empty": "No print server connected yet.",
"online": "Online",
"offline": "Offline",
"noDevices": "Discovering printers…",
"test": "Test",
"receiptVia": "Receipt printer (via server)",
"kitchenVia": "Kitchen printer (via server)",
"viaServer": "Printer (via server)",
"useIpInstead": "— Use manual IP —",
"revokeConfirm": "Remove print server “{name}”? It will no longer be able to print.",
"codeError": "Could not create code."
}
},
"receipt": {
+18
View File
@@ -370,6 +370,24 @@
"empty": "هنوز ایستگاهی ندارید. «آشپزخانه» و «بار» را اضافه کنید تا آیتم‌هایشان جدا چاپ شود.",
"deleteConfirm": "ایستگاه «{name}» حذف شود؟ دسته‌های آن به پرینتر آشپزخانه برمی‌گردند.",
"saveError": "ذخیرهٔ ایستگاه ناموفق بود."
},
"agents": {
"title": "پرینت‌سرورها (شناسایی خودکار پرینتر)",
"hint": "روی کامپیوتر صندوق، برنامهٔ «پرینت‌سرور میزی» را نصب کنید تا پرینترهای USB و شبکه به‌صورت خودکار شناسایی شوند و چاپ از طریق آن انجام شود.",
"add": "افزودن پرینت‌سرور",
"pairingTitle": "این کد را در برنامهٔ پرینت‌سرور روی کامپیوتر صندوق وارد کنید:",
"pairingSteps": "برنامهٔ «پرینت‌سرور میزی» را روی همان کامپیوتری که به پرینترها وصل است نصب و اجرا کنید، سپس این کد را وارد کنید. کد تا ۱۵ دقیقه معتبر است.",
"empty": "هنوز پرینت‌سروری متصل نشده است.",
"online": "آنلاین",
"offline": "آفلاین",
"noDevices": "در حال یافتن پرینترها…",
"test": "تست",
"receiptVia": "پرینتر رسید (از پرینت‌سرور)",
"kitchenVia": "پرینتر آشپزخانه (از پرینت‌سرور)",
"viaServer": "پرینتر (از پرینت‌سرور)",
"useIpInstead": "— استفاده از IP دستی —",
"revokeConfirm": "حذف پرینت‌سرور «{name}»؟ پس از آن دیگر نمی‌تواند چاپ کند.",
"codeError": "ایجاد کد ناموفق بود."
}
},
"receipt": {